You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

281 lines
13 KiB
HTML

5 years ago
<extend name="Public/base" />
<block name="body">
<link rel="stylesheet" type="text/css" href="__CSS__/admin_table.css" media="all">
4 years ago
<link rel="stylesheet" href="__CSS__/select2.min.css" type="text/css" />
5 years ago
<script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
<script type="text/javascript" src="__STATIC__/provincecityarea/AreaData_min.js"></script><!--
5 years ago
<script type="text/javascript" src="__STATIC__/provincecityarea/jquery-1.7.min.js"></script> -->
4 years ago
<style>
.select2-container--default .select2-selection--single {
color: #000;
resize: none;
border-width: 1px;
border-style: solid;
border-color: #a7b5bc #ced9df #ced9df #a7b5bc;
box-shadow: 0px 3px 3px #F7F8F9 inset;height:35px;
height:28px;border-radius:3px;font-size:12px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
line-height:35px;
line-height:28px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
height:26px;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
height:26px;line-height:26px;font-size:12px;
}
.select2-results__option[aria-selected] {font-size:12px;}
.layui-layer-dialog .layui-layer-content{color:red}
</style>
5 years ago
<div class="cf main-place top_nav_list navtab_list">
4 years ago
<h3 class="page_title">新增会长</h3>
5 years ago
<p class="description_text">说明:此功是创建推广员时所需填写信息</p>
</div>
5 years ago
<!-- 标签页导航 -->
<div class="tab-wrap">
<div class="tab-content tabcon1711">
<!-- 表单 -->
<form id="form" action="{:U('add?model='.$model['id'])}" method="post" class="form-horizontal">
<!-- 基础文档模型 -->
<div id="tab1" class="tab-pane in tab1">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>推广员账号:</td>
<td class="r">
<input type="text" class="txt" name="account" value="" placeholder="输入推广员账号" onKeyUp="value=value.replace(/[^\w\.\/]/ig,'')">
<span class="notice-text">通过推广员后台注册申请或者管理后台创建的账号</span>
</td>
</tr>
<tr>
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>登录密码:</td>
<td class="r">
<input style="float:left" type="text" class="txt time" name="password" value="" placeholder="输入登录密码">
<span class="notice-text">密码长度必须大于6位</span>
</td>
</tr>
<tr>
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>所属推广公司</td>
<td class="r">
4 years ago
<select name="company_id" id="company_id" class="select_gallery">
<option value="-1">请选择推广公司</option>
<option value="0">{:C(DEFAULT_COMPANY)}</option>
<volist name="companys" id="vo">
<option value="{$vo.id}">{$vo.company_name}</option>
</volist>
</select>
<!-- <span class="notice-text">设置该推广员所属的推广公司</span>-->
</td>
</tr>
5 years ago
<tr>
<td class="l">账号状态:</td>
<td class="r table_radio">
<span class="form_radio table_btn">
<label >
<input type="radio" value="1" name="status" checked="checked"> 开启
</label >
<label >
<input type="radio" value="2" name="status" > 锁定
</label>
</span>
<span class="notice-text">锁定状态下,推广员账号则无法登录</span>
</td>
</tr>
<!-- <tr>-->
<!-- <td class="l">工会归属:</td>-->
<!-- <td class="r table_radio">-->
<!-- <span class="form_radio table_btn">-->
<!-- <label >-->
<!-- <input type="radio" value="0" name="company_belong" checked="checked" class="company_belong"> 内团-->
<!-- </label >-->
<!-- <label >-->
<!-- <input type="radio" value="1" name="company_belong" class="company_belong"> 外团-->
<!-- </label>-->
<!-- </span>-->
<!--&lt;!&ndash; <span class="notice-text"></span>&ndash;&gt;-->
<!-- </td>-->
<!-- </tr>-->
<!-- <tr style="display: none" id="company_relation">-->
<!-- <td class="l">工会关系:</td>-->
<!-- <td class="r table_radio">-->
<!-- <span class="form_radio table_btn">-->
<!-- <label >-->
<!-- <input type="radio" value="0" name="company_relation" checked="checked"> 自主开发及维护-->
<!-- </label >-->
<!-- <label >-->
<!-- <input type="radio" value="1" name="company_relation" > 只维护-->
<!-- </label>-->
<!-- </span>-->
<!--&lt;!&ndash; <span class="notice-text"></span>&ndash;&gt;-->
<!-- </td>-->
<!-- </tr>-->
5 years ago
<tr>
<td class="l">真实姓名:</td>
<td class="r">
<input type="text" class="txt" name="real_name" value="" placeholder=" 输入推广员负责人姓名">
</td>
</tr>
<tr>
<td class="l">手机号:</td>
<td class="r">
<input type="text" class="txt" name="mobile_phone" value="" placeholder="输入推广员负责人手机号">
</td>
</tr>
<td class="l">邮箱:</td>
<td class="r">
<input type="text" class="txt" name="email" value="" placeholder="输入推广员邮箱">
</td>
</tr>
<!-- <tr>-->
<!-- <td class="l">商务专员</td>-->
<!-- <td class="r">-->
<!-- <select name="ba_id" id="admin">-->
<!-- <option value="0">请选择商务专员</option>-->
<!-- <volist name=":get_business_affairs_list()" id="vo">-->
<!-- <option value="{$vo.id}">{$vo.account}</option>-->
<!-- </volist>-->
<!-- </select>-->
<!-- <span class="notice-text">设置该推广员所属的商务专员组</span>-->
<!-- </td>-->
<!-- -->
<!-- </tr>-->
<tr>
<td class="l">充值信息查看权限:</td>
<td class="r table_radio">
<span class="form_radio table_btn">
<label >
<input type="radio" value="1" name="can_view_recharge" checked="checked"> 开启
</label >
<label >
<input type="radio" value="0" name="can_view_recharge"> 锁定
</label>
</span>
</td>
</tr>
<tr>
<td class="l">公司结算查看权限:</td>
<td class="r table_radio">
<span class="form_radio table_btn">
<label >
<input type="radio" value="1" name="withdraw_show" > 开启
</label >
<label >
<input type="radio" value="0" name="withdraw_show" checked="checked"> 锁定
</label>
</span>
</td>
</tr>
<tr>
<td class="l">公司结算提现权限:</td>
<td class="r table_radio">
<span class="form_radio table_btn">
<label >
<input type="radio" value="1" name="withdraw_done"> 开启
</label >
<label >
<input type="radio" value="0" name="withdraw_done" checked="checked"> 锁定
</label>
</span>
</td>
</tr>
5 years ago
</tbody>
</table>
</div>
<input type="hidden" name="id" value="{$data['id']}" />
<div class="form-item cf">
<button class="submit_btn ajax-post mlspacing" id="submit" type="submit" target-form="form-horizontal">
保存
</button>
<a class="submit_btn " alt="返回上一页" title="返回上一页" href="javascript:window.history.back();" >
返回
</a>
</div>
</form>
</div>
</div>
<div class="common_settings">
<span class="plus_icon"><span><img src="__IMG__/zwmimages/icon_jia.png"></span></span>
<form class="addShortcutIcon">
<input type="hidden" name="title" value="{$m_title}">
<input type="hidden" name="url" value="Promote/lists/type/1">
</form>
<a class="ajax-post add-butn <notempty name='commonset'>addSIsetted</notempty>" href="javascript:;" target-form="addShortcutIcon" url="{:U('Think/addShortcutIcon')}"><img src="__IMG__/zwmimages/icon_jia.png"><span><notempty name='commonset'>已添加<else />添加至常用设置</notempty></span></a>
</div>
</block>
<block name="script">
<script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script><script type="text/javascript" src="__STATIC__/provincecityarea/area1.js"></script>
4 years ago
<script type="text/javascript" src="__JS__/select2.min.js"></script>
5 years ago
<script type="text/javascript">
//导航高亮
highlight_subnav('{:U('Promote/lists')}');
Think.setValue("game_type_id", {$data.game_type_id|default = 0});
Think.setValue("category", {$data.category|default = 0});
$(function(){
showTab();
4 years ago
$(".select_gallery").select2();
5 years ago
prov="{:substr($data['bank_area'],0,2)}";
city="{:substr($data['bank_area'],2,2)}";
ciarea="{:substr($data['bank_area'],4,2)}";
$("input[name=company_belong]").click(function () {
if ($(this).val() == 1) {
$('#company_relation').show();
} else {
$('#company_relation').hide();
}
});
5 years ago
});
//得到地区码
function getAreaID(){
var area = 0;
if($("#seachdistrict").val() != "0"){
area = $("#seachdistrict").val();
}else if ($("#seachcity").val() != "0"){
area = $("#seachcity").val();
}else{
area = $("#seachprov").val();
}
return area;
}
//根据地区码查询地区名
function getAreaNamebyID(areaID){
var areaName = "";
if(areaID.length == 2){
areaName = area_array[areaID];
}else if(areaID.length == 4){
var index1 = areaID.substring(0, 2);
areaName = area_array[index1] + " " + sub_array[index1][areaID];
}else if(areaID.length == 6){
var index1 = areaID.substring(0, 2);
var index2 = areaID.substring(0, 4);
areaName = area_array[index1] + " " + sub_array[index1][index2] + " " + sub_arr[index2][areaID];
}
return areaName;
}
</script>
</block>