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.
332 lines
17 KiB
HTML
332 lines
17 KiB
HTML
<extend name="Public/base"/>
|
|
|
|
<block name="body">
|
|
|
|
<link rel="stylesheet" href="__CSS__/select2.min.css" type="text/css" />
|
|
<script type="text/javascript" src="__JS__/bootstrap.min.js"></script>
|
|
<script type="text/javascript" src="__JS__/select2.min.js"></script>
|
|
<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;}
|
|
.data_list table td{
|
|
text-indent:0;
|
|
}
|
|
.data_game_list table td{
|
|
line-height:1;
|
|
padding: 3px;
|
|
height: 30px;
|
|
}
|
|
.clearfix:after {
|
|
content:"";
|
|
display: block;
|
|
clear:both;
|
|
}
|
|
</style>
|
|
|
|
<div class="cf main-place top_nav_list navtab_list">
|
|
<h3 class="page_title">{$meta_title}</h3>
|
|
<p class="description_text">说明:该功能是用于录入工会所属的推广公司名称 / 如需删除公司请先将公司底下会长移走后方可操作</p>
|
|
</div>
|
|
<div class="cf top_nav_list clearfix" style="display: inline;">
|
|
<div class="fl button_list">
|
|
<div class="tools">
|
|
<a class="" href="{:U('add')}"><span class="button_icon button_icon1"></span>新增</a>
|
|
<!-- <a class="ajax-post confirm " target-form="ids" url="{:U('del')}"><span class="button_icon button_icon2"></span>删除</a> -->
|
|
</div>
|
|
</div>
|
|
<!-- 高级搜索 -->
|
|
<div class="cf top_nav_list">
|
|
|
|
<!-- 高级搜索 -->
|
|
<div class="jssearch fl cf search_list">
|
|
<div class="input-list">
|
|
<input style="width: 200px;" type="text" name="company_name" class="search-input" value="{:I('company_name')}" placeholder="请输入公司名称搜索">
|
|
</div>
|
|
|
|
<div class="input-list input-list-promote search_label_rehab">
|
|
<select id="promote_id" name="promote_id" class="select_gallery" style="width: 200px;">
|
|
<option value="">推广员账号</option>
|
|
<volist name="promoteList" id="vo">
|
|
<option promote-id="{$vo.id}" value="{$vo.id}">{$vo.account}({$vo.real_name})</option>
|
|
</volist>
|
|
</select>
|
|
</div>
|
|
<div class="input-list input-list-channelstatus">
|
|
<select name="company_belong" class="select_gallery">
|
|
<option value="">请选择团体类型</option>
|
|
<volist name=":getCompanyBlong()" id="vo">
|
|
<option value="{$vo.id}" <php> if($_GET['company_belong'] !='' && $vo['id'] == $_GET['company_belong'])echo selected;</php>>{$vo.name}</option>
|
|
</volist>
|
|
</select>
|
|
</div>
|
|
<div class="input-list input-list-game search_label_rehab">
|
|
<select id="company_type" name="company_type" class="select_gallery">
|
|
<option value="">请选择公司性质</option>
|
|
<option value="1" <?php echo I('company_type') === 1 ? "selected" : ''?>>公司</option>
|
|
<option value="2" <?php echo I('company_type') == 2 ? "selected" : ''?>>个人</option>
|
|
</select>
|
|
</div>
|
|
|
|
<div class="input-list">
|
|
<a class="sch-btn" href="javascript:;" id="search" url="{:U('PromoteCompany/lists','model='.$model['name'].'&row='.I('row'),false)}">搜索</a>
|
|
</div>
|
|
<div class="input-list">
|
|
<a class="sch-btn" href="javascript:;" id="downloadexcel" url="{:U(CONTROLLER_NAME.'/'.ACTION_NAME,array_merge(['export'=>1],I('get.')))}">导出excel</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="cf top_nav_list clearfix">
|
|
<div class="fl button_list">
|
|
<div class="tools">
|
|
<a class="ajax-post" target-form="ids" url="{:U('PromoteCompany/marketingDirectorShow', ['isShow'=>1])}"><span class="button_icon "></span>展示市场总监信息</a>
|
|
<a class="ajax-post" target-form="ids" url="{:U('PromoteCompany/marketingDirectorShow', ['isShow'=>2])}"><span class="button_icon "></span>隐藏市场总监信息</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 数据列表 -->
|
|
<div class="data_list data_game_list">
|
|
<div class="">
|
|
<table border="1">
|
|
<!-- 表头 -->
|
|
<thead>
|
|
<tr>
|
|
<th class="">
|
|
<input class="check-all" type="checkbox">
|
|
</th>
|
|
<th style="width:10%;min-width:150px;">操作</th>
|
|
<th>合作方名称</th>
|
|
<th>对应平台</th>
|
|
<th>公司性质</th>
|
|
<th>内外团归属</th>
|
|
<th>合同期限</th>
|
|
<th>开票税点</th>
|
|
<th>开户行</th>
|
|
<th>银行账号</th>
|
|
<th>是否签署合同</th>
|
|
<th>备注</th>
|
|
<!--
|
|
<th>会长账号</th>
|
|
<th>结算周期</th>
|
|
<th>产品类型</th>
|
|
<th>游戏名称</th>
|
|
<th colspan="2">合作方分成比例</th> -->
|
|
</tr>
|
|
</thead>
|
|
|
|
<!-- 列表 -->
|
|
<tbody>
|
|
<empty name ="listData">
|
|
<td colspan="99" class="text-center">aOh! 暂时还没有内容!</td>
|
|
<else />
|
|
<volist name="listData" id="data" key="companykey">
|
|
<tr>
|
|
<td rowspan="{$data.row}"><input class="ids" type="checkbox" value="{$data['id']}" name="ids[]"></td>
|
|
<td rowspan="{$data.row}">
|
|
<a href="{:U('view',array('id'=>$data['id']))}">查看</a>
|
|
<a href="{:U('edit',array('id'=>$data['id']))}">编辑</a>
|
|
<if condition="$data['can_del'] eq 1 ">
|
|
<a href="{:U('del',array('id'=>$data['id']))}" style="color: red;" class="confirm ajax-get">删除</a>
|
|
</if>
|
|
</td>
|
|
<td rowspan="{$data.row}">{$data.company_name}</td>
|
|
<td rowspan="{$data.row}">{$data.platform_name}</td>
|
|
<td rowspan="{$data.row}">{$data.company_type}</td>
|
|
<td rowspan="{$data.row}">{$data.company_belong}</td>
|
|
<td rowspan="{$data.row}">{$data.contact_begin} - {$data.contact_end}</td>
|
|
<td rowspan="{$data.row}">{$data.fax_ratio}%</td>
|
|
<td rowspan="{$data.row}">{$data.bank_name}</td>
|
|
<td rowspan="{$data.row}">{$data.bank_card}</td>
|
|
<td rowspan="{$data.row}">{$data.is_sign_contact}</td>
|
|
<td rowspan="{$data.row}">{$data.content}</td>
|
|
<notempty name="data.list">
|
|
<foreach name="data['list']" item="promote" key="promotekey">
|
|
<if condition="$promotekey gt 0">
|
|
<tr>
|
|
<td rowspan="{$promote['row']}"> {$promote['account']}</td>
|
|
<td rowspan="{$promote['row']}"> {$promote['settlement_type']}</td>
|
|
<foreach name="promote['list']" item="game" key="gamekey">
|
|
<if condition="$gamekey gt 0">
|
|
<tr>
|
|
<td rowspan="{$game['row']}">{$game['game_type_name']}</td>
|
|
<td rowspan="{$game['row']}">{$game['relation_game_name']}</td>
|
|
<foreach name="game['turnover_ratio']" item="ratio" key="ratiokey">
|
|
<if condition="$ratiokey gt 0">
|
|
<tr>
|
|
<td>{$ratio['name']}</td>
|
|
<td>{$ratio['ratio']}</td>
|
|
</tr>
|
|
<else />
|
|
<td>{$ratio['name']}</td>
|
|
<td>{$ratio['ratio']}</td>
|
|
</if>
|
|
</foreach>
|
|
</tr>
|
|
<else />
|
|
<td rowspan="{$game['row']}">{$game['game_type_name']}</td>
|
|
<td rowspan="{$game['row']}">{$game['relation_game_name']}</td>
|
|
<foreach name="game['turnover_ratio']" item="ratio" key="ratiokey">
|
|
<if condition="$ratiokey gt 0">
|
|
<tr>
|
|
<td>{$ratio['name']}</td>
|
|
<td>{$ratio['ratio']}</td>
|
|
</tr>
|
|
<else />
|
|
<td>{$ratio['name']}</td>
|
|
<td>{$ratio['ratio']}</td>
|
|
</if>
|
|
</foreach>
|
|
</if>
|
|
</foreach>
|
|
</tr>
|
|
<else />
|
|
<td rowspan="{$promote['row']}"> {$promote['account']}</td>
|
|
<td rowspan="{$promote['row']}"> {$promote['settlement_type']}</td>
|
|
<foreach name="promote['list']" item="game" key="gamekey">
|
|
<if condition="$gamekey eq 0">
|
|
<td rowspan="{$game['row']}">{$game['game_type_name']}</td>
|
|
<td rowspan="{$game['row']}">{$game['relation_game_name']}</td>
|
|
<foreach name="game['turnover_ratio']" item="ratio" key="ratiokey">
|
|
<if condition="$ratiokey gt 0">
|
|
<tr>
|
|
<td>{$ratio['name']}</td>
|
|
<td>{$ratio['ratio']}</td>
|
|
</tr>
|
|
<else />
|
|
<td>{$ratio['name']}</td>
|
|
<td>{$ratio['ratio']}</td>
|
|
</if>
|
|
</foreach>
|
|
<else />
|
|
<tr>
|
|
<td rowspan="{$game['row']}">{$game['game_type_name']}</td>
|
|
<td rowspan="{$game['row']}">{$game['relation_game_name']}</td>
|
|
<foreach name="game['turnover_ratio']" item="ratio" key="ratiokey">
|
|
<if condition="$ratiokey gt 0">
|
|
<tr>
|
|
<td>{$ratio['name']}</td>
|
|
<td>{$ratio['ratio']}</td>
|
|
</tr>
|
|
<else />
|
|
<td>{$ratio['name']}</td>
|
|
<td>{$ratio['ratio']}</td>
|
|
</if>
|
|
</foreach>
|
|
</tr>
|
|
</if>
|
|
</foreach>
|
|
</if>
|
|
</foreach>
|
|
</notempty>
|
|
</tr>
|
|
</volist>
|
|
<tr class="data_summary">
|
|
<td style="text-align: center;">汇总:</td>
|
|
<td colspan="16">
|
|
累计推广公司数量:{$count}  会长数量:{$promotecount}
|
|
</td>
|
|
</tr>
|
|
</empty>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="page">
|
|
{$_page|default=''}
|
|
</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="{$meta_title}">
|
|
<input type="hidden" name="url" value="Partner/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 src="__STATIC__/layer/layer.js"></script>
|
|
<script src="__STATIC__/layer/extend/layer.ext.js"></script>
|
|
<style>
|
|
.layui-layer-demo .layui-layer-title {background:#F0F5F7;font-weight:bold;}
|
|
.layui-layer-demo .layui-layer-content {}
|
|
.layui-layer-demo .layui-layer-content table{width:100%;border:0;border-spacing:0;padding:0;}
|
|
.layui-layer-demo .layui-layer-content td {height:42px;padding-left:20px;}
|
|
.layui-layer-demo .layui-layer-content tr:hover {background:#F0F5F7;}
|
|
.layui-layer-demo .layui-layer-content tr~tr {border-top:1px solid #ccc;}
|
|
.layui-layer-demo .layui-layer-content td~td {border-left:1px solid #ccc;}
|
|
.layui-layer-demo .layui-layer-content tr:last-child td {}
|
|
</style>
|
|
|
|
<script>
|
|
<volist name=":I('get.')" id="vo">
|
|
Think.setValue('{$key}',"{$vo}");
|
|
</volist>
|
|
$(".select_gallery").select2();
|
|
</script>
|
|
<script type="text/javascript">
|
|
//导航高亮
|
|
highlight_subnav("{:U('lists')}");
|
|
$(function(){
|
|
//搜索功能
|
|
$("#search").click(function(){
|
|
var url = $(this).attr('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;
|
|
});
|
|
$("#downloadexcel").on("click",function(){
|
|
var url = $(this).attr("url");
|
|
var title = '推广公司导出';
|
|
layer.open({
|
|
type: 2,
|
|
title: title,
|
|
shadeClose: true,
|
|
shade: 0.8,
|
|
area: ['40%', '60%'],
|
|
content: url
|
|
|
|
});
|
|
})
|
|
|
|
//回车自动提交
|
|
$('.jssearch').find('input').keyup(function(event){
|
|
if(event.keyCode===13){
|
|
$("#search").click();
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
</block>
|