解决冲突
commit
edb090feca
@ -0,0 +1,288 @@
|
||||
<?php
|
||||
|
||||
namespace Admin\Controller;
|
||||
|
||||
use Org\Util\Date;
|
||||
use Sdk\Controller\AgeController;
|
||||
use User\Api\MemberApi as MemberApi;
|
||||
use Org\WeixinSDK\Weixin;
|
||||
|
||||
class PayMerchantController extends ThinkController
|
||||
{
|
||||
|
||||
const WAY_ALIPAY = 1;
|
||||
const WAY_WEIXIN = 2;
|
||||
const WAY_EXPRESS = 4;
|
||||
|
||||
public function index($p = 0) {
|
||||
// if(!array_key_exists("timestart",$_REQUEST)){
|
||||
// $this->redirect(ACTION_NAME, array('timestart' => date('Y-m-d',strtotime('-30 day')),"timeend"=>date('Y-m-d')));
|
||||
// }
|
||||
$page = intval($p);
|
||||
$page = $page ? $page : 1; //默认显示第一页数据
|
||||
$arraypage = $page;
|
||||
|
||||
if (isset($_REQUEST['row'])) {
|
||||
$row = $_REQUEST['row'];
|
||||
} else {
|
||||
$row = 10;
|
||||
}
|
||||
|
||||
$map = [];
|
||||
|
||||
if (!empty($_REQUEST['timestart']) && !empty($_REQUEST['timeend'])) {
|
||||
$map['payed_time'] = array('between', [strtotime($_REQUEST['timestart']), strtotime($_REQUEST['timeend']) + 86399]);
|
||||
} elseif (!empty($_REQUEST['timestart']) && empty($_REQUEST['timeend'])) {
|
||||
$map['payed_time'] = array('between', [strtotime($_REQUEST['timestart']), time()]);
|
||||
} elseif (empty($_REQUEST['timestart']) && !empty($_REQUEST['timeend'])) {
|
||||
$map['payed_time'] = array('elt', (strtotime($_REQUEST['timeend']) + 86399));
|
||||
}
|
||||
|
||||
if ($_REQUEST['game_id']) {
|
||||
$map['game_id'] = $_REQUEST['game_id'];
|
||||
}
|
||||
|
||||
if ($_REQUEST['name']) {
|
||||
$map['name'] = $_REQUEST['name'];
|
||||
}
|
||||
|
||||
if ($_REQUEST['main_name']) {
|
||||
$map['main_name'] = $_REQUEST['main_name'];
|
||||
}
|
||||
|
||||
//游戏充值金额
|
||||
$data = M("spend use index(pay_channel)","tab_")
|
||||
->field("SUM(CASE WHEN merchant.id is not null and tab_test_white_list.user_id is null THEN pay_amount ELSE 0 END) as cash_amount,
|
||||
SUM(CASE WHEN merchant.id is not null and tab_test_white_list.user_id is not null THEN pay_amount ELSE 0 END) as test_amount,
|
||||
0 coin_amount,0 offcial_amount,0 spread_amount,0 supersign_amount,0 test_order_amount,merchant_id,name,channel,identifier,
|
||||
payed_time,game_id,main_name,merchant_way,merchant.account")
|
||||
->join("left join tab_test_white_list on tab_spend.user_id=tab_test_white_list.user_id")
|
||||
->join("left join tab_payment_merchant merchant on merchant.id=tab_spend.merchant_id")
|
||||
->where(['pay_status'=>1,'tab_spend.pay_way'=>['egt',1],'merchant.status'=>1,'merchant.type'=>1])
|
||||
->where($map)
|
||||
->group("merchant_id,merchant_way")
|
||||
->select(false);
|
||||
|
||||
//平台币充值金额计算
|
||||
$coinData = M('pay_info','tab_')
|
||||
->join("inner join tab_deposit on tab_pay_info.order_id=tab_deposit.pay_order_number")
|
||||
->join("left join tab_test_white_list on tab_test_white_list.user_id=tab_pay_info.user_id")
|
||||
->join("left join tab_payment_merchant merchant on merchant.id=tab_deposit.merchant_id")
|
||||
->field("0 cash_amount,SUM(CASE WHEN merchant.id is not null and pay_source=2 and tab_test_white_list.user_id is not null THEN pay_amount ELSE 0 END) as test_amount,
|
||||
SUM(CASE WHEN merchant.id is not null and tab_test_white_list.user_id is null and pay_source=2 THEN pay_amount ELSE 0 END) as coin_amount,
|
||||
0 offcial_amount,0 spread_amount,0 supersign_amount,0 test_order_amount,merchant_id,name,channel,identifier,payed_time,game_id,main_name,merchant_way,merchant.account")
|
||||
->where(['pay_status'=>1,'tab_deposit.pay_way'=>['egt',1],'merchant.status'=>1,'merchant.type'=>1])
|
||||
->where($map)
|
||||
->group("merchant_id,merchant_way")
|
||||
->select(false);
|
||||
// var_dump($coinData);die();
|
||||
//官网金额
|
||||
$officalData = M('deposit','tab_')
|
||||
->join("left join tab_test_white_list on tab_test_white_list.user_id=tab_deposit.user_id")
|
||||
->join("left join tab_payment_merchant merchant on merchant.id=tab_deposit.merchant_id")
|
||||
->field("0 cash_amount,SUM(CASE WHEN merchant.id is not null and pay_source=0 and tab_test_white_list.user_id is not null THEN pay_amount ELSE 0 END) as test_amount,
|
||||
0 as coin_amount,SUM(CASE WHEN merchant.id is not null and tab_test_white_list.user_id is null and pay_source=0 THEN pay_amount ELSE 0 END) as offcial_amount,
|
||||
0 spread_amount,0 supersign_amount,0 test_order_amount,merchant_id,name,channel,identifier,payed_time,0 as game_id,main_name,merchant_way,merchant.account")
|
||||
->where(['pay_status'=>1,'tab_deposit.pay_way'=>['egt',1],'merchant.status'=>1,'merchant.type'=>1])
|
||||
->where($map)
|
||||
->group("merchant_id,merchant_way")
|
||||
->select(false);
|
||||
|
||||
if ($map['payed_time'])
|
||||
{
|
||||
$map['pay_time'] = $map['payed_time'];
|
||||
unset($map['payed_time']);
|
||||
}
|
||||
|
||||
//推广后台
|
||||
$spreadData = M("coin_pay_order","tab_")
|
||||
->field("0 cash_amount,0 test_amount,0 coin_amount,0 offcial_amount,
|
||||
SUM(CASE WHEN merchant.id is not null THEN pay_amount ELSE 0 END) as spread_amount,0 supersign_amount,
|
||||
0 test_order_amount,merchant_id,name,channel,identifier,pay_time payed_time,0 game_id,main_name,merchant_way,merchant.account")
|
||||
->join("left join tab_payment_merchant merchant on merchant.id=tab_coin_pay_order.merchant_id")
|
||||
->where(['order_status'=>1,'tab_coin_pay_order.pay_way'=>['egt',1],'merchant.status'=>1,'merchant.type'=>1])
|
||||
->where($map)
|
||||
->group("merchant_id,merchant_way")
|
||||
->select(false);
|
||||
// var_dump($spreadData);die();
|
||||
//超级签数据
|
||||
$superSignData = M('game_supersign','tab_')
|
||||
->field("0 cash_amount,
|
||||
SUM(CASE WHEN merchant.id is not null and tab_test_white_list.user_id is not null THEN pay_price ELSE 0 END) as test_amount,
|
||||
0 coin_amount,0 offcial_amount,0 spread_amount,
|
||||
SUM(CASE WHEN merchant.id is not null and tab_test_white_list.user_id is null THEN pay_price ELSE 0 END) as supersign_amount,
|
||||
0 test_order_amount,merchant_id,name,channel,identifier,pay_time payed_time,game_id,main_name,merchant_way,merchant.account")
|
||||
->join("left join tab_payment_merchant merchant on merchant.id=tab_game_supersign.merchant_id")
|
||||
->join("left join tab_test_white_list on tab_test_white_list.user_id=tab_game_supersign.user_id")
|
||||
->where(['pay_status'=>1,'tab_game_supersign.pay_way'=>['egt',1],'merchant.status'=>1,'merchant.type'=>1])
|
||||
->where($map)
|
||||
->group("merchant_id,merchant_way")
|
||||
->select(false);
|
||||
|
||||
//测试环境内网平台订单
|
||||
$testOrder = M('test_order', 'tab_')
|
||||
->where(['tab_test_order.pay_way'=>['egt',1]])
|
||||
->field('0 cash_amount,0 test_amount,0 coin_amount,0 offcial_amount,0 spread_amount,0 supersign_amount,
|
||||
SUM(CASE WHEN merchant.id is not null THEN pay_amount ELSE 0 END) as test_order_amount,merchant_id,name,
|
||||
channel,identifier,pay_time payed_time,game_id,main_name,merchant_way,merchant.account')
|
||||
->join("left join tab_payment_merchant merchant on merchant.id=tab_test_order.merchant_id")
|
||||
->where(['merchant.status'=>1,'merchant.type'=>1])
|
||||
->where($map)
|
||||
->group("merchant_id,merchant_way")
|
||||
->select(false);
|
||||
|
||||
$sql = "{$data} UNION ALL {$coinData} UNION ALL {$officalData} UNION ALL {$spreadData} UNION ALL {$superSignData} UNION ALL {$testOrder}";
|
||||
|
||||
if (!$_REQUEST['export']) {
|
||||
$data = M()->table("({$sql})a")
|
||||
->field("sum(cash_amount) cash_amount,sum(test_amount) test_amount,
|
||||
sum(coin_amount) coin_amount,sum(offcial_amount) offcial_amount,
|
||||
sum(spread_amount) spread_amount,sum(supersign_amount) supersign_amount,
|
||||
sum(test_order_amount) test_order_amount,merchant_id,account,merchant_way,main_name,
|
||||
name,channel,identifier")
|
||||
->page($p, $row)
|
||||
->where("name is not null and merchant_way !=0")
|
||||
// ->where($map)
|
||||
->group("merchant_id,merchant_way")
|
||||
->select();
|
||||
} else {
|
||||
$data = M()->table("({$sql})a")
|
||||
->field("sum(cash_amount) cash_amount,sum(test_amount) test_amount,
|
||||
sum(coin_amount) coin_amount,sum(offcial_amount) offcial_amount,
|
||||
sum(spread_amount) spread_amount,sum(supersign_amount) supersign_amount,
|
||||
sum(test_order_amount) test_order_amount,merchant_id,account,merchant_way,main_name,
|
||||
name,channel,identifier")
|
||||
->where("name is not null and merchant_way !=0")
|
||||
->group("merchant_id,merchant_way")
|
||||
->select();
|
||||
}
|
||||
|
||||
// var_dump($data);die();
|
||||
|
||||
|
||||
$count = M()->table("({$sql})a")
|
||||
->field("merchant_id")
|
||||
->page($p, $row)
|
||||
->where("name is not null and merchant_way !=0")
|
||||
// ->where($map)
|
||||
->group("merchant_id,merchant_way")
|
||||
->count();
|
||||
|
||||
$page = set_pagination($count, $row);
|
||||
if ($page) {
|
||||
$this->assign('_page', $page);
|
||||
}
|
||||
|
||||
|
||||
$sum = M()->table("({$sql})a")
|
||||
->field("sum(cash_amount) cash_amount,sum(test_amount) test_amount,
|
||||
sum(coin_amount) coin_amount,sum(offcial_amount) offcial_amount,
|
||||
sum(spread_amount) spread_amount,sum(supersign_amount) supersign_amount,
|
||||
sum(test_order_amount) test_order_amount,merchant_id")
|
||||
->where("name is not null and merchant_way !=0")
|
||||
// ->where($map)
|
||||
->find();
|
||||
|
||||
$sum['sum'] = $sum['cash_amount']+$sum['test_amount']+$sum['coin_amount']+$sum['offcial_amount']
|
||||
+$sum['spread_amount']+$sum['supersign_amount']+$sum['test_order_amount'];
|
||||
|
||||
$sum_merchant = M()->table("({$sql})a")
|
||||
->field("sum(cash_amount+test_amount+coin_amount+offcial_amount+spread_amount+supersign_amount+test_order_amount) sum_amount,
|
||||
merchant_id,name,merchant_way")
|
||||
->where("name is not null and merchant_way !=0")
|
||||
// ->where($map)
|
||||
->group("merchant_id,merchant_way")
|
||||
->select();
|
||||
|
||||
$this->checkListOrCountAuthRestMap($map,[]);
|
||||
foreach ($data as $key => $value) {
|
||||
$data[$key]['sum'] = $value['cash_amount']+$value['test_amount']+$value['coin_amount']+
|
||||
$value['offcial_amount']+$value['spread_amount']+$value['supersign_amount']+$value['test_order_amount'];
|
||||
$data[$key]['ratio'] = round (($data[$key]['sum']/array_sum(array_column($sum_merchant,'sum_amount')))*100,2);
|
||||
|
||||
if ($value['merchant_way'] == self::WAY_ALIPAY) {
|
||||
$data[$key]['merchant_way'] = "支付宝";
|
||||
} else if ($value['merchant_way'] == self::WAY_WEIXIN) {
|
||||
$data[$key]['merchant_way'] = "微信";
|
||||
} else if ($value['merchant_way'] == self::WAY_EXPRESS) {
|
||||
$data[$key]['merchant_way'] = "快捷";
|
||||
} else {
|
||||
$data[$key]['merchant_way'] = "无";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$sum_radio = [];
|
||||
foreach ($sum_merchant as $key => $value) {
|
||||
if ($value['merchant_way'] == self::WAY_ALIPAY) {
|
||||
$sum_merchant[$key]['merchant_way'] = "支付宝";
|
||||
$sum_radio[$key]['merchant_way'] = "支付宝";
|
||||
} else if ($value['merchant_way'] == self::WAY_WEIXIN) {
|
||||
$sum_merchant[$key]['merchant_way'] = "微信";
|
||||
$sum_radio[$key]['merchant_way'] = "微信";
|
||||
} else if ($value['merchant_way'] == self::WAY_EXPRESS) {
|
||||
$sum_merchant[$key]['merchant_way'] = "快捷";
|
||||
$sum_radio[$key]['merchant_way'] = "快捷";
|
||||
} else {
|
||||
$sum_merchant[$key]['merchant_way'] = "无";
|
||||
$sum_radio[$key]['merchant_way'] = "无";
|
||||
}
|
||||
$sum_merchant[$key]['sum_amount'] = round($value['sum_amount'],2);
|
||||
$sum_radio[$key]['name'] = $value['name'];
|
||||
$sum_radio[$key]['ratio'] = round(($value['sum_amount']/array_sum(array_column($sum_merchant,'sum_amount')))*100,2);
|
||||
}
|
||||
|
||||
if ($_REQUEST['export']) {
|
||||
$title = ['main_name' => '商户主体',
|
||||
'name' => '支付商户',
|
||||
'account' => '商户账号',
|
||||
'ratio' => '占比(总充值量%)',
|
||||
'cash_amount' => '游戏现金金额',
|
||||
'coin_amount' => '平台币直充金额',
|
||||
'test_amount'=>'测试白名单金额',
|
||||
'test_order_amount' => '测试环境内外网平台金额',
|
||||
'supersign_amount' => '超级签',
|
||||
'offcial_amount' => '官网',
|
||||
'spread_amount' => '推广后台',
|
||||
'sum' => '支付渠道内合计'];
|
||||
|
||||
$sum['main_name'] = "合计(根据时间检索变化)";
|
||||
$sum['ratio'] = 100;
|
||||
|
||||
|
||||
$sum_merchant_export['main_name'] = '汇总(根据时间检索变化)';
|
||||
$sum_radio_export['main_name'] = '收款商户占比';
|
||||
|
||||
foreach ($sum_merchant as $key => $value) {
|
||||
if ($value['merchant_way'] == self::WAY_ALIPAY) {
|
||||
$merchant_way = "支付宝";
|
||||
} else if ($value['merchant_way'] == self::WAY_WEIXIN) {
|
||||
$merchant_way = "微信";
|
||||
} else if ($value['merchant_way'] == self::WAY_EXPRESS) {
|
||||
$merchant_way = "快捷";
|
||||
} else {
|
||||
$merchant_way = "无";
|
||||
}
|
||||
|
||||
$radio = round(($value['sum_amount']/array_sum(array_column($sum_merchant,'sum_amount')))*100,2);
|
||||
|
||||
$sum_merchant_export['account'] .= $value['name']."-".$merchant_way.":".$value['sum_amount'];
|
||||
$sum_radio_export['account'] .= $value['name']."-".$merchant_way.":".$radio."%";
|
||||
}
|
||||
$data = array_merge($data,[$sum],[$sum_merchant_export],[$sum_radio_export]);
|
||||
|
||||
data2csv($data,'个人总提成列表',$title);
|
||||
}
|
||||
|
||||
// dump($sum_merchant);die();
|
||||
$this->assign("sum_radio",$sum_radio);
|
||||
$this->assign("sum_merchant",$sum_merchant);
|
||||
$this->assign("sum",$sum);
|
||||
$this->assign("listdata",$data);
|
||||
$this->display();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,56 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | OneThink [ WE CAN DO IT JUST THINK IT ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: huajie <banhuajie@163.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace Admin\Model;
|
||||
|
||||
use Common\Api\GameApi;
|
||||
use Org\WeixinSDK\Weixin;
|
||||
use Think\Model;
|
||||
|
||||
/**
|
||||
* 文档基础模型
|
||||
*/
|
||||
class RewardModel extends Model
|
||||
{
|
||||
const REWARD_TYPE_REWARD = 1;
|
||||
const REWARD_TYPE_PUNISH = 2;
|
||||
const REWARD_TYPE_ALL = 3;
|
||||
|
||||
public static $rewardTypes = [
|
||||
self::REWARD_TYPE_REWARD => '奖励',
|
||||
self::REWARD_TYPE_PUNISH => '惩罚',
|
||||
self::REWARD_TYPE_ALL => '双向'
|
||||
];
|
||||
|
||||
const GAME_RELATION_OTHER = 0;
|
||||
|
||||
const SETTLEMENT_TYPE_ONLINE = 2;
|
||||
const SETTLMENT_TYPE_OFFLINE = 1;
|
||||
|
||||
public static $settlementTypes = [
|
||||
self::SETTLEMENT_TYPE_ONLINE => '线上结算',
|
||||
self::SETTLMENT_TYPE_OFFLINE => '线下结算'
|
||||
];
|
||||
|
||||
const COMPANY_TYPE_PARTNER = 1;
|
||||
const COMPANY_TYPE_COMPANY = 2;
|
||||
const COMPANY_TYPE_INSIDE = 3;
|
||||
|
||||
public static $companyTypes = [
|
||||
self::COMPANY_TYPE_PARTNER => '上游公司',
|
||||
self::COMPANY_TYPE_COMPANY => '下游公司',
|
||||
self::COMPANY_TYPE_INSIDE => '内部'
|
||||
];
|
||||
|
||||
public function __construct($name = '', $tablePrefix = '', $connection = '')
|
||||
{
|
||||
$this->tablePrefix = 'tab_';
|
||||
parent::__construct($name, $tablePrefix, $connection);
|
||||
}
|
||||
}
|
@ -0,0 +1,206 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
|
||||
<meta charset="utf-8">
|
||||
<title>{:C('WEB_SITE_TITLE')}</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="">
|
||||
|
||||
<!-- CSS -->
|
||||
|
||||
<link rel="stylesheet" href="__CSS__/reset.css">
|
||||
<link rel="stylesheet" href="__CSS__/supersized.css">
|
||||
<link rel="stylesheet" href="__CSS__/loginnews1711.css">
|
||||
<script src="__JS__/jquery-3.0.0.min.js" ></script>
|
||||
<script src="__STATIC__/layer/layer.js" type="text/javascript"></script>
|
||||
<script src="__JS__/cloud.js" type="text/javascript"></script>
|
||||
<style>
|
||||
#sendSasfeCode {
|
||||
border-radius:3px;
|
||||
width:29%;
|
||||
cursor:pointer;
|
||||
border:1px solid;
|
||||
position:absolute;
|
||||
top:0;
|
||||
right:0;
|
||||
height:48px;
|
||||
text-align: center;
|
||||
line-height: 50px;
|
||||
}
|
||||
.g-btntn{
|
||||
border-color: grey;
|
||||
color: grey;
|
||||
}
|
||||
.g-btn{
|
||||
border-color: #2697FF;
|
||||
color: #2697FF;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
|
||||
<body style="background-color:#1c77ac; background-image:url(__IMG__/light.png); background-repeat:no-repeat; background-position:center top; overflow:hidden;">
|
||||
|
||||
|
||||
|
||||
<div id="mainBody">
|
||||
<div id="cloud1" class="cloud"></div>
|
||||
<div id="cloud2" class="cloud"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="logintop" style="display: none">
|
||||
<span>欢迎登录后台管理界面平台</span>
|
||||
<ul>
|
||||
<li><a href="http://xue.vlcms.com/" target="_blank">帮助</a></li>
|
||||
<li><a href="http://www.vlcms.com/" target="_blank">关于</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="loginbody" >
|
||||
|
||||
<span class="systemlogo"></span>
|
||||
|
||||
<div class="loginbox">
|
||||
<form class="inputlogin">
|
||||
<div class="wrap">
|
||||
<h3><span>手机号码快捷登录</span><span>User Login</span><a href="{:U('login')}">账号登录</a></h3>
|
||||
<ul>
|
||||
<li>
|
||||
<img src="__IMG__/login_name.png" class="icon icon-user">
|
||||
<input name="mobile" type="text" id="mobile" class="login_input" value="" autocomplete="off" placeholder="请输入手机号码" />
|
||||
</li>
|
||||
<li>
|
||||
<img src="__IMG__/login_code.png" class="icon icon-code">
|
||||
<input name="verify" type="text" class="login_input verify" value="" placeholder="请填写验证码"/>
|
||||
<div id="sendSasfeCode" class="g-btn">获取验证码</div>
|
||||
</li>
|
||||
<li><input name="" type="submit" class="loginbtn" value="登录" /></li>
|
||||
<li style="color: grey"><input type="checkbox" name="auto_login" id="">下次自动登录</li>
|
||||
</ul>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- <div class="loginbm"><i>©徐州梦创信息科技有限公司 版权所有</i>2016 <a href="http://www.vlcms.com/" target="_blank">vlcms.com</a> ©版权所有</div> -->
|
||||
|
||||
<div id="tip" class="tip"><a class="tipclose hidden" ></a><div class="tipmain"><div class="tipicon"></div><div class="tipinfo">这是内容</div></div></div>
|
||||
<script>
|
||||
$('#sendSasfeCode').on('click',function() {
|
||||
if ($(this).hasClass('g-btntn')) {
|
||||
return false;
|
||||
}
|
||||
var phone = $.trim($('#mobile').val());
|
||||
if (phone == '') {
|
||||
alert("手机号不能为空");
|
||||
return false;
|
||||
}
|
||||
if (phone.length !== 11 || !(/^[1][35789][0-9]{9}$/.test(phone))) {
|
||||
pmsg.msg("格式不正确");
|
||||
return false;
|
||||
}
|
||||
$.ajax({
|
||||
type:'post',
|
||||
dataType:'json',
|
||||
data:'phone='+phone,
|
||||
url:'{:U("telsafecode")}',
|
||||
success:function(data) {
|
||||
if (data.status ==1) {
|
||||
r(1);
|
||||
} else {
|
||||
alert(data.msg);
|
||||
}
|
||||
},
|
||||
error:function() {
|
||||
alert('服务器开小差了,请稍后再试。');
|
||||
}
|
||||
});
|
||||
var r = function(i, t) {
|
||||
if (i>0) {
|
||||
var r = 60;
|
||||
e='#sendSasfeCode';
|
||||
$(e).removeClass('g-btn').addClass('g-btntn');
|
||||
var a = setInterval(function() {
|
||||
r--;
|
||||
$(e).text(r + '秒');
|
||||
0 == r && ($(e).removeClass('g-btntn').addClass('g-btn'),
|
||||
$(e).text('获取验证码'),
|
||||
clearInterval(a))
|
||||
},1000)
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
/**顶部警告栏*/
|
||||
var content = $('#main');
|
||||
var top_alert = $('#tip');
|
||||
|
||||
top_alert.find('.tipclose').on('click', function () {
|
||||
top_alert.removeClass('block').slideUp(200);
|
||||
});
|
||||
|
||||
window.updateAlert = function (text,c) {
|
||||
text = text||'default';
|
||||
c = c||false;
|
||||
if ( text!='default' ) {
|
||||
top_alert.find('.tipinfo').text(text);
|
||||
if (top_alert.hasClass('block')) {
|
||||
} else {
|
||||
top_alert.addClass('block').slideDown(200);
|
||||
}
|
||||
} else {
|
||||
if (top_alert.hasClass('block')) {
|
||||
top_alert.removeClass('block').slideUp(200);
|
||||
}
|
||||
}
|
||||
if ( c!=false ) {
|
||||
top_alert.removeClass('tip_error tip_right').addClass(c);
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<script>
|
||||
$(function(){
|
||||
$(".inputlogin").unbind('submit').submit(function(){
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
async: true,
|
||||
dataType: 'json',
|
||||
url: "{:U('phone_login')}",
|
||||
data: $(".inputlogin").serialize(),
|
||||
success: function(data) {
|
||||
if(data.status!=1){
|
||||
var msg = data.info ? data.info : data.msg;
|
||||
alert(msg)
|
||||
}else{
|
||||
window.location.href = data.url;
|
||||
}
|
||||
},
|
||||
error:function(){
|
||||
updateAlert("服务器故障!",'tip_error');
|
||||
setTimeout(function(){
|
||||
$('#tip').find('.tipclose').click();
|
||||
},1500);
|
||||
}
|
||||
});
|
||||
return false;
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
</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>奖惩类型</th>
|
||||
<th>结算公司类型</th>
|
||||
<th>结算方</th>
|
||||
<th>会长账号</th>
|
||||
<th>奖惩金额</th>
|
||||
<th>结算方式</th>
|
||||
|
||||
<th>添加人</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<!-- 列表 -->
|
||||
<tbody>
|
||||
<if condition = "empty($list)">
|
||||
<tr>
|
||||
<td colspan="99" class="text-center">aOh! 暂时还没有内容!</td>
|
||||
</tr>
|
||||
</if>
|
||||
<notemtpy name = "list">
|
||||
<volist name="list" id="data">
|
||||
<!-- 如果没有子级 -->
|
||||
<?php if(!$data['maxCount']):?>
|
||||
<tr>
|
||||
<td>{$data['relation_game_name']}</td>
|
||||
<td>{$data['relation_game_partner']}</td>
|
||||
<td>{$data['settlement_time']}</td>
|
||||
<td>{$data['confirm_time']}</td>
|
||||
<td>{$data['content']}</td>
|
||||
<td>{$data['reward_type_text']}</td>
|
||||
<td>惩罚方</td>
|
||||
<td>无</td>
|
||||
<td>无</td>
|
||||
<td>无</td>
|
||||
<td>无</td>
|
||||
<td>无</td>
|
||||
|
||||
<td>奖励方</td>
|
||||
<td>无</td>
|
||||
<td>无</td>
|
||||
<td>无</td>
|
||||
<td>无</td>
|
||||
<td>无</td>
|
||||
|
||||
<td>{:get_admin_name($data['creater_id'])}</td>
|
||||
</tr>
|
||||
<!-- 如果有子级 -->
|
||||
<?php else:?>
|
||||
<?php for($i=0; $i<$data['maxCount']; $i++):?>
|
||||
<?php if($i == 0):?>
|
||||
<tr>
|
||||
<td rowspan="{$data['maxCount']}">{$data['relation_game_name']}</td>
|
||||
<td rowspan="{$data['maxCount']}">{$data['relation_game_partner']}</td>
|
||||
<td rowspan="{$data['maxCount']}">{$data['settlement_time']}</td>
|
||||
<td rowspan="{$data['maxCount']}">{$data['confirm_time']}</td>
|
||||
<td rowspan="{$data['maxCount']}">{$data['content']}</td>
|
||||
<td rowspan="{$data['maxCount']}">{$data['reward_type_text']}</td>
|
||||
<td rowspan="{$data['maxCount']}">惩罚方</td>
|
||||
<td><?=$data['detail'][2][$i]['company_type_text'] ?? '无'?></td>
|
||||
<td><?=$data['detail'][2][$i]['company_name'] ?? '无'?></td>
|
||||
<td><?=$data['detail'][2][$i]['promote_account'] ?? '无'?></td>
|
||||
<td><?=$data['detail'][2][$i]['amount'] ?? '无'?></td>
|
||||
<td><?=$data['detail'][2][$i]['settlement_type_text'] ?? '无'?></td>
|
||||
|
||||
<td rowspan="{$data['maxCount']}">奖励方</td>
|
||||
<td><?=$data['detail'][1][$i]['company_type_text'] ?? '无'?></td>
|
||||
<td><?=$data['detail'][1][$i]['company_name'] ?? '无'?></td>
|
||||
<td><?=$data['detail'][1][$i]['promote_account'] ?? '无'?></td>
|
||||
<td><?=$data['detail'][1][$i]['amount'] ?? '无'?></td>
|
||||
<td><?=$data['detail'][1][$i]['settlement_type_text'] ?? '无'?></td>
|
||||
|
||||
<td rowspan="{$data['maxCount']}">{:get_admin_name($data['creater_id'])}</td>
|
||||
</tr>
|
||||
<?php else:?>
|
||||
<tr>
|
||||
<td><?=$data['detail'][2][$i]['company_type_text'] ?? '无'?></td>
|
||||
<td><?=$data['detail'][2][$i]['company_name'] ?? '无'?></td>
|
||||
<td><?=$data['detail'][2][$i]['promote_account'] ?? '无'?></td>
|
||||
<td><?=$data['detail'][2][$i]['amount'] ?? '无'?></td>
|
||||
<td><?=$data['detail'][2][$i]['settlement_type_text'] ?? '无'?></td>
|
||||
|
||||
<td><?=$data['detail'][1][$i]['company_type_text'] ?? '无'?></td>
|
||||
<td><?=$data['detail'][1][$i]['company_name'] ?? '无'?></td>
|
||||
<td><?=$data['detail'][1][$i]['promote_account'] ?? '无'?></td>
|
||||
<td><?=$data['detail'][1][$i]['amount'] ?? '无'?></td>
|
||||
<td><?=$data['detail'][1][$i]['settlement_type_text'] ?? '无'?></td>
|
||||
</tr>
|
||||
<?php endif;?>
|
||||
<?php endfor;?>
|
||||
<?php endif;?>
|
||||
</volist>
|
||||
</notemtpy>
|
||||
<tr>
|
||||
<td colspan="10" class="text-center">合计</td>
|
||||
<td class="text-center" id="total_reward">-{:array_sum(array_column($list, 'totalPunish'))}</td>
|
||||
<td colspan="5" class="text-center">合计</td>
|
||||
<td class="text-center" id="total_punish">{:array_sum(array_column($list, 'totalReward'))}</td>
|
||||
<td colspan="2" class="text-center"></td>
|
||||
</tr>
|
||||
</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(){
|
||||
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>
|
@ -0,0 +1,321 @@
|
||||
<extend name="Public/base" />
|
||||
<block name="css">
|
||||
<link rel="stylesheet" type="text/css" href="__CSS__/admin_table.css" media="all">
|
||||
<link rel="stylesheet" type="text/css" href="__STATIC__/webuploader/webuploader.css" media="all">
|
||||
<style>
|
||||
#form .txt_area.download_url {width:400px;}
|
||||
.tabcon1711 .table_radio2 .table_btn {width:215px;}
|
||||
.bnt_add,.bnt_remove,.bnt_save, .settlement_bnt_add{
|
||||
height: 30px;
|
||||
width: 20px;
|
||||
font-size: 20px;
|
||||
line-height: 10px;
|
||||
color: #3399ff;
|
||||
background: none;
|
||||
border: none;
|
||||
margin-left: 20px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.bnt_remove{
|
||||
color: #F70909;
|
||||
}
|
||||
.bnt_save{
|
||||
color: #4DB361;
|
||||
}
|
||||
|
||||
.data_list table td {
|
||||
line-height:20px;
|
||||
padding: 0px;
|
||||
height: 30px;
|
||||
text-indent: 0%;
|
||||
}
|
||||
</style>
|
||||
<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;}
|
||||
</style>
|
||||
</block>
|
||||
<!-- 管理员用户组新增和编辑页面 -->
|
||||
<block name="body">
|
||||
<script src="__STATIC__/layer/layer.js" type="text/javascript"></script>
|
||||
<script src="__STATIC__/layer/extend/layer.ext.js" type="text/javascript"></script>
|
||||
<script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.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>
|
||||
<script type="text/javascript" src="__STATIC__/laydate/laydate.js"></script>
|
||||
<div class="tab-wrap" id='pop-form' hidden>
|
||||
<div class="tab-content tabcon1711">
|
||||
<!-- 表单 -->
|
||||
<form id="item-form" method="post" class="form-horizontal" style="margin-bottom: 40px;">
|
||||
<!-- 基础文档模型 -->
|
||||
<div id="tab1" class="tab-pane in tab1">
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td class="l"><i class="mustmark">*</i>类型:</td>
|
||||
<td class="r">
|
||||
<select name="type" id='form-type' class="select_gallery">
|
||||
<option value="1">奖励</option>
|
||||
<option value="2">惩罚</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="l"><i class="mustmark">*</i>公司类型:</td>
|
||||
<td class="r">
|
||||
<select name="company_type" id='form-company-type' class="select_gallery">
|
||||
<?php foreach($companyTypes as $index => $type):?>
|
||||
<option value="{$index}">{$type}</option>
|
||||
<?php endforeach;?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="l"><i class="mustmark">*</i>公司/部门:</td>
|
||||
<td class="r">
|
||||
<select name="company_id" id='form-company-id' class="select_gallery">
|
||||
<option value="0">其他</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l"></td>
|
||||
<td class="r">
|
||||
<input type="text" name="company_name" id='form-company-name' autocomplete="off" placeholder="请填写公司/部门" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="l"><i class="mustmark">*</i>会长账号:</td>
|
||||
<td class="r">
|
||||
<select name="promote_account" id="form-promote-account" class="select_gallery">
|
||||
<option value="0">其他</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l"></td>
|
||||
<td class="r">
|
||||
<input type="text" name="promote_account_input" autocomplete="off" id='form-promote-account-input' placeholder="请填写会长账号" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="l"><i class="mustmark">*</i>结算方式:</td>
|
||||
<td class="r">
|
||||
<select name="settlement_type" id='form-settlement-type' class="select_gallery">
|
||||
<?php foreach($settlementTypes as $index => $type):?>
|
||||
<option value="{$index}">{$type}</option>
|
||||
<?php endforeach;?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="l"><i class="mustmark">*</i>金额</td>
|
||||
<td class="r">
|
||||
<input type="text" name="amount" id='form-amount' autocomplete="off" value="0" />
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="form-item cf">
|
||||
<button class="submit_btn mlspacing" id="add-item" type="button" target-form="form-horizontal" style="margin-top: 10px;">
|
||||
新增
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<form action="{:U('StatementMangement/rewardManageSave')}" enctype="application/x-www-form-urlencoded" method="POST"
|
||||
class="form-horizontal form_info_ml" id="form">
|
||||
<div class="formtitle"><span>查看</span></div>
|
||||
<ul class="form_info ">
|
||||
<input type="hidden" name="id" value="{$data.id}" />
|
||||
<li>
|
||||
<div class="data_list">
|
||||
<div class="">
|
||||
<table id="record-table" border="1px solid #ccc" >
|
||||
<!-- 表头 -->
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan='5'>奖励</th>
|
||||
<th colspan='5'>惩罚</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<!-- 表头 -->
|
||||
<thead>
|
||||
<tr>
|
||||
<th>公司类型</th>
|
||||
<th>公司/部门</th>
|
||||
<th>会长账号</th>
|
||||
<th>结算方式</th>
|
||||
<th>金额</th>
|
||||
|
||||
<th>公司类型</th>
|
||||
<th>公司/部门</th>
|
||||
<th>会长账号</th>
|
||||
<th>结算方式</th>
|
||||
<th>金额</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<!-- 列表 -->
|
||||
<tbody id="table-body">
|
||||
<?php for($i=0; $i<$data['maxCount']; $i++):?>
|
||||
<tr class="<?php if (!isset($details[1][$i])): php?>empty-reward<?php endif; php?> <?php if (!isset($details[2][$i])): php?>empty-punish<?php endif; php?>">
|
||||
<!-- 奖励信息 -->
|
||||
<td class="reward-data-info" hidden>
|
||||
<input class="info" name="settlement_info[]" hidden value='<?=$details[1][$i]['info'] ? json_encode($details[1][$i]['info']) : ''?>' />
|
||||
</td>
|
||||
<td class="reward-td company-type"><?=$companyTypes[$details[1][$i]['company_type']] ?? '-'?></td>
|
||||
<td class="reward-td company-name"><?=$details[1][$i]['company_name'] ?? '-'?></td>
|
||||
<td class="reward-td promote-account"><?=$details[1][$i]['promote_account'] ?? '-'?></td>
|
||||
<td class="reward-td settlement-type"><?=$settlementTypes[$details[1][$i]['settlement_type']] ?? '-'?></td>
|
||||
<td class='reward-amount reward-td amount'><?=$details[1][$i]['amount'] ?? '-'?></td>
|
||||
|
||||
<!-- 惩罚信息 -->
|
||||
<td class="punish-data-info" hidden>
|
||||
<input class="info" name="settlement_info[]" hidden value='<?=$details[2][$i]['info'] ? json_encode($details[2][$i]['info']) : ''?>' />
|
||||
</td>
|
||||
<td class="punish-td company-type"><?=$companyTypes[$details[2][$i]['company_type']] ?? ''?></td>
|
||||
<td class="punish-td company-name"><?=$details[2][$i]['company_name'] ?? ''?></td>
|
||||
<td class="punish-td promote-account"><?=$details[2][$i]['promote_account'] ?? ''?></td>
|
||||
<td class="punish-td settlement-type"><?=$settlementTypes[$details[2][$i]['settlement_type']] ?? ''?></td>
|
||||
<td class='punish-amount punish-td amount'><?=$details[2][$i]['amount'] ?? ''?></td>
|
||||
</tr>
|
||||
<?php endfor;?>
|
||||
<tr id='total-amount'>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>合计</td>
|
||||
<td id='total-reward-amount'>{$data['rewardAmount']}</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>合计</td>
|
||||
<td id='total-punish-amount'>{$data['punishAmount']}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<?php if ($data['accounts']):?>
|
||||
<?php foreach ($data['accounts'] as $k => $account):?>
|
||||
<?php if ($k == 0):?>
|
||||
<li class="user-account">
|
||||
<?php if ($k == 0):?>
|
||||
<label>涉及账号</label>
|
||||
<?php else:?>
|
||||
<label>-</label>
|
||||
<?php endif;?>
|
||||
<select name="user_type[]" readonly class="select_gallery user_type" onchange="userAccountChange(this)">
|
||||
<option value="1" <?php if ($account['user_type'] == 1):?>selected<?php endif;?>>推广员</option>
|
||||
<option value="2" <?php if ($account['user_type'] == 2):?>selected<?php endif;?>>玩家</option>
|
||||
</select>
|
||||
<input type="text" readonly class="txt table_text_input" name="account[]" value="{$account['account']}" placeholder="账号">
|
||||
</li>
|
||||
<?php else:?>
|
||||
<li class="user-account">
|
||||
<label>涉及账号</label>
|
||||
<select disabled name="user_type[]" class="select_gallery user_type" onchange="userAccountChange(this)">
|
||||
<option value="1" <?php if ($account['user_type'] == 1):?>selected<?php endif;?>>推广员</option>
|
||||
<option value="2" <?php if ($account['user_type'] == 2):?>selected<?php endif;?>>玩家</option>
|
||||
</select>
|
||||
<input readonly type="text" class="txt table_text_input" name="account[]" value="{$account['account']}" placeholder="账号">
|
||||
</li>
|
||||
<?php endif;?>
|
||||
<?php endforeach;?>
|
||||
<?php else:?>
|
||||
<li class="user-account">
|
||||
<label>涉及账号</label>
|
||||
<select name="user_type[]" class="select_gallery user_type" onchange="userAccountChange(this)">
|
||||
<option value="1">推广员</option>
|
||||
<option value="2">玩家</option>
|
||||
</select>
|
||||
<input type="text" class="txt table_text_input" name="account[]" value="" placeholder="账号">
|
||||
</li>
|
||||
<?php endif;?>
|
||||
<li>
|
||||
<label>游戏</label>
|
||||
<select id="relation_game_id" disabled name="relation_game_id" class="select_gallery">
|
||||
<option value="0">其他</option>
|
||||
<?php foreach ($games as $game):?>
|
||||
<option value="{$game['relation_game_id']}" <?php if ($game['relation_game_id'] == $data['relation_game_id']):?>selected<?php endif;?> >{$game['relation_game_name']}</option>
|
||||
<?php endforeach;?>
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
<label>事件</label>
|
||||
<textarea name="content" readonly class="" id='content' placeholder="事件" >{$data.content}</textarea>
|
||||
</li>
|
||||
<li>
|
||||
<label>奖惩时间</label>
|
||||
<input type="text"readonly class="" value="{:date('Y-m-d H:i:s',$data['reward_time'])}" placeholder="奖惩时间" />
|
||||
</li>
|
||||
<li>
|
||||
<label>奖惩结算时间</label>
|
||||
<input type="text" readonly class="" value="<?=$data['settlement_time'] ? date('Y-m-d H:i:s',$data['settlement_time']) : ''?>" placeholder="奖惩时间" />
|
||||
</li>
|
||||
<li>
|
||||
<label>奖惩确认时间</label>
|
||||
<input type="text" readonly class="" value="{$data['confirm_time']}" placeholder="奖惩确认时间" />
|
||||
</li>
|
||||
<li>
|
||||
<label>备注</label>
|
||||
<textarea name="remark" readonly class="" placeholder="备注" >{$data.remark}</textarea>
|
||||
</li>
|
||||
<li>
|
||||
<label> </label>
|
||||
<input type="button" value="返 回" target-form="form-horizontal" class="form_btn" onclick="javascript:void(window.history.go(-1))">
|
||||
</li>
|
||||
</ul>
|
||||
</form>
|
||||
|
||||
<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="{$m_title}">
|
||||
<input type="hidden" name="url" value="AuthManager/index">
|
||||
</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 type="text/javascript">
|
||||
highlight_subnav('{:U('StatementMangement/rewardManageList')}');
|
||||
</script>
|
||||
</block>
|
Loading…
Reference in New Issue