commit
7ddf61e536
@ -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,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