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.

104 lines
3.6 KiB
HTML

2 years ago
<!DOCTYPE html>
<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="__CSS__/base.css" media="all">
<link rel="stylesheet" type="text/css" href="__CSS__/style.css" media="all">
<link rel="stylesheet" type="text/css" href="__CSS__/common.css" media="all">
<script type="text/javascript" src="__STATIC__/jquery-2.0.3.min.js"></script>
<style type="text/css">
html {
height: 0;
overflow-y: scroll;
min-width: 0px;
}
.txt{
width: 100%;
height: 100%;
line-height: 32px;
text-indent: 10px;
font-size: 12px;
}
.dragsort > .search{
padding: 0px;
}
.delAll{
float: right;
font-weight:normal;
margin-right: 8px;
}
a:hover{text-decoration:none;/*指鼠标在链接*/}
</style>
</head>
<body style="padding: 20px;display:inline-block;">
<div id="tab1" class="tab-pane in tab1 tab_table " style="margin-bottom: 0px;">
<table border="0" cellspacing="0" cellpadding="0" style="width: 0px">
<tbody>
<tr>
<td class="l">商务专员账号:</td>
<td class="r" >
{:$sw_name}
</td>
</tr>
<tr>
<td class="l">推广员列表:</td>
<td class="r" >
<div class="form_main">
<div class="form-item cf edit_sort edit_sort_l form_field_sort" style="width: 340px">
<span>渠道列表 <a url="{:U('delPromote',array('ba_id'=>$ba_id))}" target-form="ids" class="delAll ajax-post confirm" >清空全部</a></span>
<ul class="dragsort">
<li class="search" id="search" >
<em><input type="text" name="promote_name" class="txt" value="{:I('promote_name')}" placeholder="请输入推广员账号然后回车" url="{:U('BusinessAffairs/showPromote','id='.$ba_id,false)}"></em>
</li>
<volist name="data" id="field" key="k">
<li >
<em >
<!-- <if condition="in_array($field['id'],explode(',',$data['game_heji']))">checked="checked"</if> -->
<input class="ids" type="checkbox" name="ids[]" value="{$field['id']}" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<label>{$field['account']}</label>
<a href="{:U('delPromote',array('ids'=>$field['id'],'ba_id'=>$ba_id))}" style="margin-top: 5px;float:right;" class="ajax-get">
<img src="__IMG__/close.png">
</a>
</em>
</li>
</volist>
<li>总计{:$num}个推广员</li>
</ul>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="tip" class="tip"><a class="tipclose hidden" ></a><div class="tipmain"><div class="tipicon"></div><div class="tipinfo">这是内容</div></div></div>
</body>
</html>
<script type="text/javascript" src="__JS__/common.js"></script>
<script type="text/javascript">
$(function(){
//回车自动提交
$('#search').find('input').keyup(function(event){
if(event.keyCode===13){
var url = $(this).attr('url');
var query = $('.search').find('input').serialize();
query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g,'');
query = query.replace(/^&/g,'');
if( url.indexOf('?')>0 ){
url += '&' + query;
}else{
url += '?' + query;
}
window.location.href = url;
}
});
})
</script>