|
|
|
@ -15,35 +15,34 @@
|
|
|
|
|
<span class="title_main">{$promoteTypeName}管理</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="trunk-content article">
|
|
|
|
|
<div class="trunk-search clearfix">
|
|
|
|
|
<form action="{:U('Promote/children',array('row'=>I('get.row')))}" method="post" enctype="multipart/form-data">
|
|
|
|
|
<input type="hidden" name="promote_type" value="{:I('promote_type', 0)}">
|
|
|
|
|
<div class="form-group fl normal_space">
|
|
|
|
|
<a href="{:U('Promote/addPromote', ['promote_type' => I('promote_type', 0)])}" class="submit btn" style="line-height: 25px"><i class="add_qudao"></i><span>添加{$promoteTypeName}</span></a>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group fr">
|
|
|
|
|
<input type="submit" class="submit normal_space" value="查询">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group fr normal_space">
|
|
|
|
|
<select name="status" class="reselect select_gallery" style="width: 220px;" >
|
|
|
|
|
<option value="all">请选择状态</option>
|
|
|
|
|
<option value="1" <if condition="I('status') === '1'">selected</if>>启用</option>
|
|
|
|
|
<option value="2" <if condition="I('status') === '2'">selected</if>>冻结中</option>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group fr normal_space">
|
|
|
|
|
<input type="text" name="real_name" class="txt normal_txt" id="uid" placeholder="请输入姓名" value="{:I('real_name')}">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group fr normal_space">
|
|
|
|
|
<input type="text" name="mobile" class="txt normal_txt" id="uid" placeholder="请输入手机号" value="{:I('mobile')}">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group fr normal_space">
|
|
|
|
|
<input type="text" name="idcard" class="txt normal_txt" id="uid" placeholder="请输入身份证" value="{:I('idcard')}">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group fr normal_space">
|
|
|
|
|
<input type="text" name="account" class="txt normal_txt" id="uid" placeholder="请输入帐号" value="{:I('account')}">
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
<div class="trunk-search clearfix jssearch">
|
|
|
|
|
<input type="hidden" name="promote_type" value="{:I('promote_type', 0)}">
|
|
|
|
|
<div class="form-group fl normal_space">
|
|
|
|
|
<a href="{:U('Promote/addPromote', ['promote_type' => I('promote_type', 0)])}" class="submit btn" style="line-height: 25px"><i class="add_qudao"></i><span>添加{$promoteTypeName}</span></a>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group fr">
|
|
|
|
|
<input type="submit" class="submit" id='submit' url="{:U('Promote/children','model='.$model['name'],false)}"
|
|
|
|
|
value="查询">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group fr normal_space">
|
|
|
|
|
<select name="status" class="reselect select_gallery" style="width: 220px;" >
|
|
|
|
|
<option value="all">请选择状态</option>
|
|
|
|
|
<option value="1" <if condition="I('status') === '1'">selected</if>>启用</option>
|
|
|
|
|
<option value="2" <if condition="I('status') === '2'">selected</if>>冻结中</option>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group fr normal_space">
|
|
|
|
|
<input type="text" name="real_name" class="txt normal_txt" id="uid" placeholder="请输入姓名" value="{:I('real_name')}">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group fr normal_space">
|
|
|
|
|
<input type="text" name="mobile" class="txt normal_txt" id="uid" placeholder="请输入手机号" value="{:I('mobile')}">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group fr normal_space">
|
|
|
|
|
<input type="text" name="idcard" class="txt normal_txt" id="uid" placeholder="请输入身份证" value="{:I('idcard')}">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group fr normal_space">
|
|
|
|
|
<input type="text" name="account" class="txt normal_txt" id="uid" placeholder="请输入帐号" value="{:I('account')}">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="trunk-list list_normal">
|
|
|
|
|
<table class="table normal_table">
|
|
|
|
@ -236,6 +235,21 @@ $(function(){
|
|
|
|
|
level = 3
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$('#submit').click(function () {
|
|
|
|
|
var url = $(this).attr('url');
|
|
|
|
|
console.log(url);
|
|
|
|
|
var query = $('.jssearch').find('input').serialize();
|
|
|
|
|
query += "&" + $('.jssearch').find('select').serialize();
|
|
|
|
|
query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g, '');
|
|
|
|
|
query = query.replace(/^&/g, '');
|
|
|
|
|
if (url.indexOf('?') > 0) {
|
|
|
|
|
url += '&' + query;
|
|
|
|
|
} else {
|
|
|
|
|
url += '?' + query;
|
|
|
|
|
}
|
|
|
|
|
window.location.href = url;
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
getSubPromotes({level: level}, function(response) {
|
|
|
|
|
var options = '<option value="0">请选择推广账号</option>'
|
|
|
|
|
for (var i in response.data.promotes) {
|
|
|
|
|