parent
a199ffa2cf
commit
41cb769fba
@ -0,0 +1,84 @@
|
|||||||
|
<div class="task-popup" style="width: 572px;">
|
||||||
|
<div class="task-popup-title clearfix">添加管理员</div>
|
||||||
|
<div class="task_popup_con">
|
||||||
|
<div class="clearfix mb20" id="add_major_manager">
|
||||||
|
<li class="">
|
||||||
|
<input id="object_id" type="hidden" value="">
|
||||||
|
<input id="object_type" type="hidden" value="">
|
||||||
|
<p class="clearfix mb15">
|
||||||
|
<span class="fl">姓名:<input placeholder="请输入真实姓名" type="text" name="name" class="winput-120-30 greyInput"/></span>
|
||||||
|
<span class="ml20 fl">单位:<input placeholder="请输入单位名称" name="school" value="" type="text" class="winput-240-30 greyInput"/></span>
|
||||||
|
</p>
|
||||||
|
<div class="df">
|
||||||
|
<span class="fl lineh-35">职业:</span>
|
||||||
|
<div class="pr flex1" select-for>
|
||||||
|
<input type="hidden" name="identity">
|
||||||
|
<input type="text" class="input-100-35 color-grey-3" readonly value="请选择职业" placeholder="请选择职业"/>
|
||||||
|
<div class="down-select bor-grey-e user_bg_shadow" id="vecation_option">
|
||||||
|
<p>请选择职业</p>
|
||||||
|
<p data-shixun-value="0">教师</p>
|
||||||
|
<p data-shixun-value="1">学生</p>
|
||||||
|
<p data-shixun-value="2">专业人士</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<a href="javascript:void(0);" onclick="submit_search_user()" class="white-btn mt6 edu-blueback-btn fl ml15">搜索</a>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
</div>
|
||||||
|
<div class="mb20 clearfix">
|
||||||
|
<p class="pl10 color-grey-6 clearfix">
|
||||||
|
<span class="fl edu-txt-w90 pl10">姓名</span>
|
||||||
|
<span class="fl edu-txt-w90 edu-txt-center">职称</span>
|
||||||
|
<span class="fl edu-txt-w200 edu-txt-left">单位</span>
|
||||||
|
<span class="fl edu-txt-w100 edu-txt-center">手机号</span>
|
||||||
|
</p>
|
||||||
|
<div class="edu-back-skyblue clearfix pl10 over280" id="serch_user_list">
|
||||||
|
<p class="clearfix">
|
||||||
|
<span class="fl edu-txt-w90">
|
||||||
|
<input type="checkbox" name="user_id[]" value="12545" id="user_12545" class="magic-checkbox">
|
||||||
|
<label for="user_12545">李健</label>
|
||||||
|
</span>
|
||||||
|
<span class="fl edu-txt-w90 mt5 edu-txt-center color-grey-6 pointer">学生</span>
|
||||||
|
<span class="fl task-hide edu-txt-w200 mt5 edu-txt-left color-grey-9">湖北工业大学 </span>
|
||||||
|
<span class="fl edu-txt-w100 mt5 edu-txt-center color-grey-9">156****9087</span>
|
||||||
|
</p>
|
||||||
|
<p class="clearfix">
|
||||||
|
<span class="fl edu-txt-w90">
|
||||||
|
<input type="checkbox" name="user_id[]" value="12545" id="user_12545" class="magic-checkbox">
|
||||||
|
<label for="user_12545">李健</label>
|
||||||
|
</span>
|
||||||
|
<span class="fl edu-txt-w90 mt5 edu-txt-center color-grey-6 pointer">学生</span>
|
||||||
|
<span class="fl task-hide edu-txt-w200 mt5 edu-txt-left color-grey-9">湖北工业大学 </span>
|
||||||
|
<span class="fl edu-txt-w100 mt5 edu-txt-center color-grey-9"></span>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<p class="color-orange-tip" id="form_notice"></p>
|
||||||
|
<li class="clearfix mt10 edu-txt-center">
|
||||||
|
<a href="javascript:void(0);" class="task-btn mr10" onclick="hideModal()">取消</a>
|
||||||
|
<a href="javascript:void(0);" class="task-btn task-btn-orange ml20" onclick="submit_add_manager()">确定</a>
|
||||||
|
</li>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
$(function() {
|
||||||
|
unitDownOption();
|
||||||
|
|
||||||
|
$("#add_major_manager").on("keydown", "input[name='name'],input[name='school']", function(e){
|
||||||
|
// 兼容FF和IE和Opera
|
||||||
|
var theEvent = e || window.event;
|
||||||
|
var code = theEvent.keyCode || theEvent.which || theEvent.charCode;
|
||||||
|
if (code == 13) {
|
||||||
|
//回车执行查询
|
||||||
|
submit_search_user();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
function submit_search_user(){
|
||||||
|
if($("input[name='name']").val()==""){
|
||||||
|
$("input[name='name']").addClass("bor-red");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
</script>
|
@ -0,0 +1,71 @@
|
|||||||
|
<div class="task-popup" style="width: 572px;">
|
||||||
|
<div class="task-popup-title clearfix">添加合作伙伴</div>
|
||||||
|
<div class="task_popup_con">
|
||||||
|
<div class="clearfix mb20 df">
|
||||||
|
<div class="flex1">
|
||||||
|
<div class="df">
|
||||||
|
<span class="fl lineh-35">地区:</span>
|
||||||
|
<select placeholder="请选择地区" id="province" class="flex1"></select>
|
||||||
|
</div>
|
||||||
|
<div class="df mt15">
|
||||||
|
<span class="fl lineh-35">单位:</span>
|
||||||
|
<input placeholder="请输入单位关键字" class="input-flex-35"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<a href="javascript:void(0);" onclick="submit_search_user()" class="white-btn mt6 edu-blueback-btn fl ml15 mt55">搜索</a>
|
||||||
|
</div>
|
||||||
|
<div class="mb20 clearfix">
|
||||||
|
<p class="pl10 color-grey-6 clearfix">
|
||||||
|
<span class="fl ml25">单位</span>
|
||||||
|
<span class="fr with30">地区</span>
|
||||||
|
</p>
|
||||||
|
<div class="edu-back-skyblue clearfix pl10 over280" id="serch_user_list">
|
||||||
|
<p class="clearfix mt5">
|
||||||
|
<span class="fl with70">
|
||||||
|
<span>
|
||||||
|
<input type="checkbox" name="user_id[]" value="1" id="user_1" class="magic-checkbox">
|
||||||
|
<label for="user_1">国防科技大学</label>
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
|
<span class="fl with30">湖南</span>
|
||||||
|
</p>
|
||||||
|
<p class="clearfix mt5">
|
||||||
|
<span class="fl with70">
|
||||||
|
<span>
|
||||||
|
<input type="checkbox" name="user_id[]" value="12" id="user_12" class="magic-checkbox">
|
||||||
|
<label for="user_12">国防科技大学</label>
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
|
<span class="fl with30">湖南</span>
|
||||||
|
</p>
|
||||||
|
<p class="clearfix mt5">
|
||||||
|
<span class="fl with70">
|
||||||
|
<span>
|
||||||
|
<input type="checkbox" name="user_id[]" value="125" id="user_125" class="magic-checkbox">
|
||||||
|
<label for="user_125">国防科技大学</label>
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
|
<span class="fl with30">湖南</span>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<p class="clearfix" style="height: 20px;"><span class="fl lineh-20 none color-red" id="checkNotice"></span></p>
|
||||||
|
</div>
|
||||||
|
<li class="clearfix mt10 edu-txt-center">
|
||||||
|
<a href="javascript:void(0);" class="task-btn mr10" onclick="hideModal()">取消</a>
|
||||||
|
<a href="javascript:void(0);" class="task-btn task-btn-orange ml20" onclick="submit_add_partner()">确定</a>
|
||||||
|
</li>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
$(function() {
|
||||||
|
unitDownOption();
|
||||||
|
showprovince("province");
|
||||||
|
})
|
||||||
|
|
||||||
|
function submit_add_partner(){
|
||||||
|
if($("input[name='user_id[]']:checked").length==0){
|
||||||
|
$("#checkNotice").html("请选择需要添加的内容").removeClass("none");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
@ -0,0 +1,75 @@
|
|||||||
|
<div class="mt20">
|
||||||
|
<div class="clearfix edu-back-white padding20-30">
|
||||||
|
<input class="fl task-form-20 task-height-30" placeholder="输入合作伙伴名称进行搜索">
|
||||||
|
<a href="javascript:void(0)" class="fl task-btn task-btn-orange ml10">搜索</a>
|
||||||
|
<a href="javascript:void(0)" class="fl task-btn ml10">清除</a>
|
||||||
|
</div>
|
||||||
|
<div class="clearfix mt20">
|
||||||
|
<div class="with25 fl edu-back-white">
|
||||||
|
<a href="javascript:void(0)" class="color-blue addOperation">+添加</a>
|
||||||
|
<ul class="partnerList">
|
||||||
|
<li><a class="active" href="javascript:void(0)">北京真假科技有限公司</a></li>
|
||||||
|
<li><a href="javascript:void(0)">北京真假科技有限公司</a></li>
|
||||||
|
<li><a href="javascript:void(0)">北京真假科技有限公司</a></li>
|
||||||
|
<li><a href="javascript:void(0)">北京真假科技有限公司</a></li>
|
||||||
|
<li><a href="javascript:void(0)">北京真假科技有限公司</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="with75 fl pl20">
|
||||||
|
<div class="edu-back-white">
|
||||||
|
<div>
|
||||||
|
<div class="padding10-20">
|
||||||
|
<p class="mb20"><span class="mr30 color-grey-9">添加时间</span><span class="color-grey-6">2019-04-03 15:40</span></p>
|
||||||
|
<div class="clearfix">
|
||||||
|
<span class="mr45 color-grey-9 fl">管理员</span>
|
||||||
|
<ul class="manageList">
|
||||||
|
<li><a href="javascript:void(0)" class="addManage">+</a></li>
|
||||||
|
<li><img src="https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=105293018,2500805440&fm=27&gp=0.jpg"/><a href="javascript:void(0)" class="removeImg"><i class="iconfont icon-htmal5icon19 color-grey-9"></i></a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="tableList">
|
||||||
|
<li class="clearfix tableHead">
|
||||||
|
<span>序号</span>
|
||||||
|
<span>客户名称</span>
|
||||||
|
<span><a href="javascript:void(0)" class="color-blue">+添加</a></span>
|
||||||
|
<span>添加时间</span>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>1</span>
|
||||||
|
<span class="task-hide">国防科技大学</span>
|
||||||
|
<span>
|
||||||
|
<a href="javascript:void(0)" class="color-grey-9">删除</a>
|
||||||
|
</span>
|
||||||
|
<span>
|
||||||
|
2019-04-03 16:04
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
$(function(){
|
||||||
|
$(".partnerList li").on("click","a",function(){
|
||||||
|
$(".partnerList li a").removeClass("active");
|
||||||
|
$(this).addClass("active");
|
||||||
|
})
|
||||||
|
|
||||||
|
$(".removeImg").on("click",function(){
|
||||||
|
$(this).parents("li").remove();
|
||||||
|
})
|
||||||
|
|
||||||
|
$(".addOperation").on("click",function(){
|
||||||
|
var html="<%= escape_javascript(render :partial => "managements/partner_addUnit") %>";
|
||||||
|
pop_box_new(html,572,500);
|
||||||
|
})
|
||||||
|
|
||||||
|
$(".manageList").on("click",".addManage",function(){
|
||||||
|
var html="<%= escape_javascript(render :partial => "managements/partner_addManage") %>";
|
||||||
|
pop_box_new(html,572,500);
|
||||||
|
})
|
||||||
|
})
|
||||||
|
</script>
|
Loading…
Reference in new issue