Merge remote-tracking branch 'origin/release' into release
commit
5626dfaf99
@ -0,0 +1,86 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta charset="UTF-8">
|
||||
<title></title>
|
||||
<link href="http://admin.vlcms.com/Public/icon.ico" type="image/x-icon" rel="shortcut icon">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/base.css" media="all">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/common.css" media="all">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/module.css">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/style.css" media="all">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/default_color.css" media="all">
|
||||
<script type="text/javascript" src="__STATIC__/jquery-2.0.3.min.js"></script>
|
||||
<script src="__STATIC__/layer/layer.js" type="text/javascript"></script>
|
||||
</head>
|
||||
<style>
|
||||
html {
|
||||
min-width:100%;
|
||||
}
|
||||
body {
|
||||
padding: 0px;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<div id="main" class="main" style="min-height: 342px;margin-top: 20px;padding-left: 50px;">
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<tr style="padding: 10px;height: 50px;">
|
||||
<td class="l" style="width: 100px;">文件名称:</td>
|
||||
<td class="r" style="margin-left: 10px;">
|
||||
<input type="text" id="filename" name="company_name" value="" placeholder="请输入文件名称">
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="padding: 10px;height: 50px;">
|
||||
<td class="l">文件选择:</td>
|
||||
<td >
|
||||
<input type="file" id="fileinput" name="file">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="jssearch search_list fl cf">
|
||||
<div class="input-list">
|
||||
<div class="sch-btn uploadfile" style="width: 100px;padding: 5px;">确认添加</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(function(){
|
||||
|
||||
$(".uploadfile").on("click",function(){
|
||||
var formData = new FormData();
|
||||
var filename = $("#filename").val();
|
||||
if(filename == ''){
|
||||
layer.msg("文件名不能为空");
|
||||
return false;
|
||||
}
|
||||
formData.append("file_name", filename);
|
||||
formData.append("file", document.getElementById("fileinput").files[0]);
|
||||
var index = layer.load();
|
||||
$.ajax({
|
||||
url:"{:U('PromoteCompany/saveFile')}",
|
||||
type:"post",
|
||||
data:formData,
|
||||
processData:false,
|
||||
contentType:false,
|
||||
success:function(data){
|
||||
layer.close(index);
|
||||
if(data.status == 1){
|
||||
delete data.status;
|
||||
delete data.info;
|
||||
window.parent.addFile(data);
|
||||
}else{
|
||||
layer.alert(data.info);
|
||||
}
|
||||
},
|
||||
error:function(e){
|
||||
|
||||
}
|
||||
});
|
||||
})
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,178 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta charset="UTF-8">
|
||||
<title>游戏登陆列表|----软件管理平台</title>
|
||||
<link href="http://admin.vlcms.com/Public/icon.ico" type="image/x-icon" rel="shortcut icon">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/base.css" media="all">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/common.css" media="all">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/module.css">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/style.css" media="all">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/default_color.css" media="all">
|
||||
<script type="text/javascript" src="__STATIC__/jquery-2.0.3.min.js"></script>
|
||||
<script src="__STATIC__/table2excel.js"></script>
|
||||
</head>
|
||||
<style>
|
||||
html {
|
||||
min-width:100%;
|
||||
}
|
||||
body {
|
||||
padding: 0px;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<div style="margin:auto;font-size: 20px;color: red;line-height: 3;padding: 20px;">
|
||||
导出进行中。。。<br/>
|
||||
如果导出成功你也可以手动关闭此页面
|
||||
</div>
|
||||
<table border="1" id="exporttable" style="opacity: 0;">
|
||||
<!-- 表头 -->
|
||||
<thead>
|
||||
<tr>
|
||||
<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}">{$data.company_name}</td>
|
||||
<td rowspan="{$data.row}">{$data.platform_name}</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>
|
||||
</empty>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<script>
|
||||
$(function(){
|
||||
$("#exporttable").table2excel({
|
||||
filename: "推广公司.xls", // do include extension
|
||||
preserveColors: false // set to true if you want background colors and font colors preserved
|
||||
});
|
||||
|
||||
//搜索功能
|
||||
$("#search").click(function(){
|
||||
console.log(222);
|
||||
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.parent.reloadIframe(url);
|
||||
parent.document.getElementsByTagName('iframe').src = url;
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue