|
|
<extend name="Public/base" />
|
|
|
|
|
|
<block name="body">
|
|
|
<link rel="stylesheet" type="text/css" href="__CSS__/admin_table.css" media="all">
|
|
|
<script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
|
|
|
<script type="text/javascript" src="__STATIC__/provincecityarea/AreaData_min.js"></script><style>.tabcon1711 .table_btn{width:215px;}</style>
|
|
|
|
|
|
<div class="cf main-place top_nav_list navtab_list">
|
|
|
<h3 class="page_title">编辑商务专员</h3>
|
|
|
<p class="description_text"></p>
|
|
|
</div>
|
|
|
<!-- 标签页导航 -->
|
|
|
<div class="tab-wrap">
|
|
|
|
|
|
|
|
|
|
|
|
<div class="tab-content tabcon1711">
|
|
|
<!-- 表单 -->
|
|
|
<form id="form" action="{:U('edit?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">商务员账号:</td>
|
|
|
<td class="r">
|
|
|
<input type="text" class="txt" name="account" value="{$data.account}" placeholder="输入商务员账号" readonly="readonly">
|
|
|
<span class="notice-text">账号由管理后台创建,发放给商务专员</span>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td class="l">登录密码:</td>
|
|
|
<td class="r">
|
|
|
<input type="text" class="txt time" name="password" value="" placeholder="输入登录密码">
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td class="l">姓名:</td>
|
|
|
<td class="r">
|
|
|
<input type="text" class="txt" name="sw_name" value="{$data.sw_name}" placeholder="输入姓名">
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td class="l">联系电话:</td>
|
|
|
<td class="r">
|
|
|
<input type="text" class="txt" name="phone" value="{$data.phone}" placeholder=" 输入联系电话">
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<tr>
|
|
|
<td class="l">QQ号:</td>
|
|
|
<td class="r">
|
|
|
<input type="text" class="txt" name="qq" value="{$data.qq}" placeholder="输入QQ号" maxlength="12">
|
|
|
</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="status" > 正常
|
|
|
</label >
|
|
|
<label >
|
|
|
<input type="radio" value="0" name="status" > 禁用
|
|
|
</label></span>
|
|
|
<span class="notice-text">禁用状态,账号则无法登录</span>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td class="l">旗下数量:</td>
|
|
|
<td class="r">
|
|
|
<input type="text" class="txt" name="inferiors" value="{$data.inferiors}" placeholder="0" disabled="disabled">
|
|
|
<span class="notice-text">数量无法修改,根据推广员所属商务专员自动显示</span>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td class="l">创建时间:</td>
|
|
|
<td class="r">
|
|
|
<input type="text" class="txt" name="createdtime" value="{:set_show_time($data['create_time'])}" placeholder="0" disabled="disabled">
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</div>
|
|
|
<div class="form-item cf">
|
|
|
<input type='hidden' name="id" value="{$data['id']}" />
|
|
|
<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="BusinessAffairs/lists">
|
|
|
</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>
|
|
|
<script type="text/javascript">
|
|
|
//导航高亮
|
|
|
highlight_subnav("{:U('BusinessAffairs/lists')}");
|
|
|
|
|
|
Think.setValue('status','{$data.status|default=1}');
|
|
|
|
|
|
$(function(){
|
|
|
showTab();
|
|
|
prov="{:substr($data['bank_area'],0,2)}";
|
|
|
city="{:substr($data['bank_area'],2,2)}";
|
|
|
ciarea="{:substr($data['bank_area'],4,2)}";
|
|
|
});
|
|
|
//得到地区码
|
|
|
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>
|
|
|
|