合作方
parent
3b47c94b1e
commit
e15460b08f
@ -0,0 +1,202 @@
|
||||
<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>
|
||||
<script src="__STATIC__/table2excel.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;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="cf main-place top_nav_list navtab_list">
|
||||
<h3 class="page_title">{$meta_title}</h3>
|
||||
</div>
|
||||
|
||||
<!-- 数据列表 -->
|
||||
<div class="data_list data_game_list">
|
||||
<div class="">
|
||||
<table border="1" id="exporttable" style="opacity: 0;">
|
||||
<!-- 表头 -->
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width:5%;min-width:10px;">操作</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="15" class="text-center">aOh! 暂时还没有内容!</td>
|
||||
<else />
|
||||
<volist name="listData" id="data">
|
||||
<tr>
|
||||
<td rowspan="{$data.row}">
|
||||
<a href="{:U('edit',array('id'=>$data['id']))}">编辑</a>
|
||||
<a href="{:U('edit',array('id'=>$data['id'],'action' => 'show'))}">查看</a>
|
||||
<a href="{:U('del',array('id'=>$data['id']))}" class="confirm ajax-get">删除</a>
|
||||
</td>
|
||||
<td rowspan="{$data.row}">{$data.partner}</td>
|
||||
<td rowspan="{$data.row}">{$data.matche_platform}</td>
|
||||
<td rowspan="{$data.row}">{$data.contract_time}</td>
|
||||
<td rowspan="{$data.row}">{$data.invoice_rate}%</td>
|
||||
<td rowspan="{$data.row}">{$data.settlement_type}</td>
|
||||
<td rowspan="{$data.row}">{$data.bank_account}</td>
|
||||
<td rowspan="{$data.row}">{$data.opening_bank}</td>
|
||||
<td rowspan="{$data.row}">{$data.remark}</td>
|
||||
<td rowspan="{$data.row}">{$data.has_game_evidence}</td>
|
||||
<td rowspan="{$data.row}">{$data.is_sign_contract}</td>
|
||||
|
||||
<notempty name="data.game">
|
||||
<foreach name="data['game']" item="game" key="gamekey">
|
||||
|
||||
<if condition="$gamekey gt 0">
|
||||
<tr>
|
||||
<td rowspan="{$game.row}">{$game['game_type_name']}</td>
|
||||
<td rowspan="{$game.row}">{$game['original_package_name']}</td>
|
||||
<td rowspan="{$game.row}">{$game['relation_game_name']}</td>
|
||||
<notempty name="game.game_ratio">
|
||||
<foreach name="game['game_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 />
|
||||
<td >-</td>
|
||||
<td>-</td>
|
||||
</notempty>
|
||||
</tr>
|
||||
<else />
|
||||
<td rowspan="{$game.row}">{$game['game_type_name']}</td>
|
||||
<td rowspan="{$game.row}">{$game['original_package_name']}</td>
|
||||
<td rowspan="{$game.row}">{$game['relation_game_name']}</td>
|
||||
|
||||
<notempty name="game.game_ratio">
|
||||
<foreach name="game['game_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 />
|
||||
<td >-</td>
|
||||
<td>-</td>
|
||||
</notempty>
|
||||
|
||||
</if>
|
||||
</foreach>
|
||||
<else />
|
||||
<td rowspan="{$data.row}">-</td>
|
||||
<td rowspan="{$data.row}">-</td>
|
||||
<td rowspan="{$data.row}">-</td>
|
||||
<td rowspan="{$data.row}">-</td>
|
||||
<td rowspan="{$data.row}">-</td>
|
||||
</notempty>
|
||||
|
||||
</tr>
|
||||
</volist>
|
||||
</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>
|
||||
<link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
|
||||
<php>if(C('COLOR_STYLE')=='blue_color') echo '<link href="__STATIC__/datetimepicker/css/datetimepicker_blue.css" rel="stylesheet" type="text/css">';</php>
|
||||
<link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
|
||||
<script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
|
||||
<script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></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">
|
||||
$("#exporttable").table2excel({
|
||||
filename: "合作方.xls", // do include extension
|
||||
preserveColors: false // set to true if you want background colors and font colors preserved
|
||||
});
|
||||
</script>
|
||||
</block>
|
@ -0,0 +1 @@
|
||||
(function($,window,document,undefined){var pluginName="table2excel",defaults={exclude:".noExl",name:"Table2Excel",filename:"table2excel",fileext:".xls",exclude_img:true,exclude_links:true,exclude_inputs:true,preserveColors:false};function Plugin(element,options){this.element=element;this.settings=$.extend({},defaults,options);this._defaults=defaults;this._name=pluginName;this.init()}Plugin.prototype={init:function(){var e=this;var utf8Heading='<meta http-equiv="content-type" content="application/vnd.ms-excel; charset=UTF-8">';e.template={head:'<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40">'+utf8Heading+"<head><!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets>",sheet:{head:"<x:ExcelWorksheet><x:Name>",tail:"</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet>"},mid:"</x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--></head><body>",table:{head:"<table>",tail:"</table>"},foot:"</body></html>"};e.tableRows=[];var additionalStyles="";var compStyle=null;$(e.element).each(function(i,o){var tempRows="";$(o).find("tr").not(e.settings.exclude).each(function(i,p){additionalStyles="";if(e.settings.preserveColors){compStyle=getComputedStyle(p);additionalStyles+=(compStyle&&compStyle.backgroundColor?"background-color: "+compStyle.backgroundColor+";":"");additionalStyles+=(compStyle&&compStyle.color?"color: "+compStyle.color+";":"")}tempRows+="<tr style='"+additionalStyles+"'>";$(p).find("td,th").not(e.settings.exclude).each(function(i,q){additionalStyles="";if(e.settings.preserveColors){compStyle=getComputedStyle(q);additionalStyles+=(compStyle&&compStyle.backgroundColor?"background-color: "+compStyle.backgroundColor+";":"");additionalStyles+=(compStyle&&compStyle.color?"color: "+compStyle.color+";":"")}var rc={rows:$(this).attr("rowspan"),cols:$(this).attr("colspan"),flag:$(q).find(e.settings.exclude)};if(rc.flag.length>0){tempRows+="<td> </td>"}else{tempRows+="<td";if(rc.rows>0){tempRows+=" rowspan='"+rc.rows+"' "}if(rc.cols>0){tempRows+=" colspan='"+rc.cols+"' "}if(additionalStyles){tempRows+=" style='"+additionalStyles+"'"}tempRows+=">"+$(q).html()+"</td>"}});tempRows+="</tr>"});if(e.settings.exclude_img){tempRows=exclude_img(tempRows)}if(e.settings.exclude_links){tempRows=exclude_links(tempRows)}if(e.settings.exclude_inputs){tempRows=exclude_inputs(tempRows)}e.tableRows.push(tempRows)});e.tableToExcel(e.tableRows,e.settings.name,e.settings.sheetName)},tableToExcel:function(table,name,sheetName){var e=this,fullTemplate="",i,link,a;e.format=function(s,c){return s.replace(/{(\w+)}/g,function(m,p){return c[p]})};sheetName=typeof sheetName==="undefined"?"Sheet":sheetName;e.ctx={worksheet:name||"Worksheet",table:table,sheetName:sheetName};fullTemplate=e.template.head;if($.isArray(table)){Object.keys(table).forEach(function(i){fullTemplate+=e.template.sheet.head+sheetName+i+e.template.sheet.tail})}fullTemplate+=e.template.mid;if($.isArray(table)){Object.keys(table).forEach(function(i){fullTemplate+=e.template.table.head+"{table"+i+"}"+e.template.table.tail})}fullTemplate+=e.template.foot;for(i in table){e.ctx["table"+i]=table[i]}delete e.ctx.table;var isIE=navigator.appVersion.indexOf("MSIE 10")!==-1||(navigator.userAgent.indexOf("Trident")!==-1&&navigator.userAgent.indexOf("rv:11")!==-1);if(isIE){if(typeof Blob!=="undefined"){fullTemplate=e.format(fullTemplate,e.ctx);fullTemplate=[fullTemplate];var blob1=new Blob(fullTemplate,{type:"text/html"});window.navigator.msSaveBlob(blob1,getFileName(e.settings))}else{txtArea1.document.open("text/html","replace");txtArea1.document.write(e.format(fullTemplate,e.ctx));txtArea1.document.close();txtArea1.focus();sa=txtArea1.document.execCommand("SaveAs",true,getFileName(e.settings))}}else{var blob=new Blob([e.format(fullTemplate,e.ctx)],{type:"application/vnd.ms-excel"});window.URL=window.URL||window.webkitURL;link=window.URL.createObjectURL(blob);a=document.createElement("a");a.download=getFileName(e.settings);a.href=link;document.body.appendChild(a);a.click();document.body.removeChild(a)}return true}};function getFileName(settings){return(settings.filename?settings.filename:"table2excel")}function exclude_img(string){var _patt=/(\s+alt\s*=\s*"([^"]*)"|\s+alt\s*=\s*'([^']*)')/i;return string.replace(/<img[^>]*>/gi,function myFunction(x){var res=_patt.exec(x);if(res!==null&&res.length>=2){return res[2]}else{return""}})}function exclude_links(string){return string.replace(/<a[^>]*>|<\/a>/gi,"")}function exclude_inputs(string){var _patt=/(\s+value\s*=\s*"([^"]*)"|\s+value\s*=\s*'([^']*)')/i;return string.replace(/<input[^>]*>|<\/input>/gi,function myFunction(x){var res=_patt.exec(x);if(res!==null&&res.length>=2){return res[2]}else{return""}})}$.fn[pluginName]=function(options){var e=this;e.each(function(){if(!$.data(e,"plugin_"+pluginName)){$.data(e,"plugin_"+pluginName,new Plugin(this,options))}});return e}})(jQuery,window,document);
|
Loading…
Reference in New Issue