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.
128 lines
5.1 KiB
HTML
128 lines
5.1 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">
|
||
|
<script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
|
||
|
<script type="text/javascript" src="__STATIC__/provincecityarea/AreaData_min.js"></script>
|
||
|
<div class="main-place">
|
||
|
<span class="main-placetitle">位置</span>
|
||
|
<ul class="main-placeul">
|
||
|
<li><a href="{:U('Promote/lists')}">渠道</a></li>
|
||
|
<li><a href="{:U('Promote/lists')}">渠道管理</a></li>
|
||
|
<li><a href="#">{$meta_title}</a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<!-- 标签页导航 -->
|
||
|
<div class="tab-wrap">
|
||
|
<div class="tab_nav jstabnav">
|
||
|
<ul>
|
||
|
<li data-tab="tab1" class="current"><a href="javascript:void(0);">基本信息</a></li></li>
|
||
|
</ul></div>
|
||
|
<div class="tab-content tab_content">
|
||
|
<!-- 表单 -->
|
||
|
<form id="form" action="{:U('add?model='.$model['id'])}" method="post" class="form-horizontal">
|
||
|
<!-- 基础文档模型 -->
|
||
|
<div id="tab1" class="tab-pane in tab1 tab_table">
|
||
|
<table border="0" cellspacing="0" cellpadding="0">
|
||
|
<tbody>
|
||
|
<tr>
|
||
|
<td class="l">登录账号:</td>
|
||
|
<td class="r">
|
||
|
<input type="text" class="txt" name="account" value="" placeholder="输入推广员账号">
|
||
|
</td>
|
||
|
<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 table_radio">
|
||
|
<label >
|
||
|
<input type="radio" value="1" name="status" checked="checked"> 正常
|
||
|
</label >
|
||
|
<label >
|
||
|
<input type="radio" value="2" name="status" > 锁定
|
||
|
</label>
|
||
|
</td>
|
||
|
<td class="l">真实姓名:</td>
|
||
|
<td class="r">
|
||
|
<input type="text" class="txt" name="real_name" value="" placeholder=" 输入渠道负责人姓名">
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<tr>
|
||
|
<td class="l">手机号:</td>
|
||
|
<td class="r">
|
||
|
<input type="text" class="txt" name="mobile_phone" value="" placeholder="输入渠道负责人手机号">
|
||
|
</td>
|
||
|
<td class="l">平台专员:</td>
|
||
|
<td class="r">
|
||
|
<select name="admin" id="admin">
|
||
|
<option value="0">下拉选择平台专员</option>
|
||
|
<volist name=":get_admin_list()" id="vo">
|
||
|
<option value="{$vo.uid}">{$vo.nickname}</option>
|
||
|
</volist>
|
||
|
</select>
|
||
|
</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>
|
||
|
</div>
|
||
|
</form>
|
||
|
</div>
|
||
|
</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('developers/lists')}');
|
||
|
Think.setValue("game_type_id", {$data.game_type_id|default = 0});
|
||
|
Think.setValue("category", {$data.category|default = 0});
|
||
|
|
||
|
$(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>
|
||
|
|