合并请求
commit
f0109e9554
@ -0,0 +1,131 @@
|
||||
<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{
|
||||
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;
|
||||
}
|
||||
</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>
|
||||
|
||||
<form action="{:U('Game/devide_warn_edit')}" enctype="application/x-www-form-urlencoded" method="POST"
|
||||
class="form-horizontal form_info_ml">
|
||||
<div class="formtitle"><span>预警编辑</span></div>
|
||||
<ul class="form_info ">
|
||||
<input type="hidden" name="id" value="{$warnInfo.id}" />
|
||||
<li>
|
||||
<label>预警对象</label>
|
||||
<select id="partner_id" name="partner_id" class="select_gallery">
|
||||
<?php foreach ($partners as $p):?>
|
||||
<option value="{$p['id']}" <?php if ($p['id'] == $warnInfo['id']):?>selected<?php endif;?> >{$p.partner}</option>
|
||||
<?php endforeach;?>
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
<label>预付金额</label>
|
||||
<input name="advance_amount" type="text" class="txt" placeholder="预付金额" value="{$warnInfo.advance_amount}" /><span style="color: red;">*</span>
|
||||
</li>
|
||||
<li>
|
||||
<label>预警金额</label>
|
||||
<input name="warming_amount" type="text" class="txt" placeholder="预警金额" value="{$warnInfo.warming_amount}" /><span style="color: red;">*</span>
|
||||
</li>
|
||||
<li>
|
||||
<label>预警金额频率</label>
|
||||
<input name="warn_frequency" type="text" class="txt" placeholder="当达到预警值时,每扣除多少流水短信提醒一次" value="{$warnInfo.warn_frequency}" /><span style="color: red;">*</span>
|
||||
</li>
|
||||
<?php if ($warnInfo['phones']):?>
|
||||
<?php foreach ($warnInfo['phones'] as $k => $phone):?>
|
||||
<?php if ($k == 0):?>
|
||||
<li class="warn-phone">
|
||||
<label>手机号</label>
|
||||
<input type="text" class="txt table_text_input" name="phones[]" value="{$phone}" placeholder=""><span style="color: red;">*</span>
|
||||
<button type="button" class="bnt_add">✚</button>
|
||||
</li>
|
||||
<?php else:?>
|
||||
<li class="warn-phone">
|
||||
<label>通知手机号</label>
|
||||
<input type="text" class="txt table_text_input" name="phones[]" value="{$phone}" placeholder="">
|
||||
<button type="button" class="bnt_remove">✖</button>
|
||||
</li>
|
||||
<?php endif;?>
|
||||
<?php endforeach;?>
|
||||
<?php else:?>
|
||||
<li class="warn-phone">
|
||||
<label>手机号</label>
|
||||
<input type="text" class="txt table_text_input" name="phones[]" value="" placeholder=""><span style="color: red;">*</span>
|
||||
<button type="button" class="bnt_add">✚</button>
|
||||
</li>
|
||||
<?php endif;?>
|
||||
<li>
|
||||
<label> </label><input type="submit" id="submit" value="确认保存" target-form="form-horizontal" class="form_btn ajax-post">
|
||||
<input type="button" value="返 回" target-form="form-horizontal" class="form_btn ajax-post" 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('Game/devide_warn_edit')}');
|
||||
$(".bnt_add").bind("click",function(){
|
||||
var a= '<li class="warn-phone"><label>手机号</label><input type="text" class="txt table_text_input" name="phones[]" value="" placeholder=""><button type="button" class="bnt_remove">✖</button></li>';
|
||||
$(".warn-phone:last").after(a);
|
||||
});
|
||||
$(document).on('click', '.bnt_remove', function(){
|
||||
$(this).parents('li').remove();
|
||||
});
|
||||
</script>
|
||||
</block>
|
@ -0,0 +1,205 @@
|
||||
<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;}
|
||||
</style>
|
||||
<!-- 标题栏 -->
|
||||
<div class="cf main-place top_nav_list navtab_list">
|
||||
<h3 class="page_title">预警管理</h3>
|
||||
<p class="description_text">说明:此处显示预警管理记录</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="cf top_nav_list">
|
||||
<!-- <div class="fl button_list">
|
||||
<a class="confirm ajax-post" id="dtnn" target-form="ids" url="{:U('Member/delprovide')}"><span class="button_icon button_icon2 "></span>批量删除</a>
|
||||
</div> -->
|
||||
<!-- 高级搜索 -->
|
||||
<div class="jssearch fl cf search_list">
|
||||
<div class="input-list search-title-box">
|
||||
<label>搜索:</label>
|
||||
</div>
|
||||
<div class="input-list input-list-game search_label_rehab">
|
||||
<select id="relation_game_id" name="relation_game_id" class="select_gallery">
|
||||
<option value="">游戏</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="input-list input-list-game search_label_rehab">
|
||||
<select id="partner_id" name="partner_id" class="select_gallery">
|
||||
<option value="">预警对象</option>
|
||||
<?php foreach ($partners as $p):?>
|
||||
<option value="{$p['id']}" <?php if ($p['id'] == $_GET['id']):?>selected<?php endif;?> >{$p.partner}</option>
|
||||
<?php endforeach;?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="input-list">
|
||||
<a class="sch-btn" href="javascript:;" id="search"
|
||||
url="{:U('Game/devide_warn_list','model='.$model['name'] . '&row=' . I('row'),false)}">
|
||||
搜索
|
||||
</a>
|
||||
</div>
|
||||
<div class="input-list">
|
||||
<a class="sch-btn" href="{:U('Game/devide_warn_edit')}">
|
||||
新增
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- 数据列表 -->
|
||||
<div class="data_list">
|
||||
<div class="">
|
||||
<table>
|
||||
<!-- 表头 -->
|
||||
<thead>
|
||||
<tr>
|
||||
<!-- <th class="">
|
||||
<input class="check-all" type="checkbox">
|
||||
</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>
|
||||
<empty name="list_data">
|
||||
<td colspan="11" class="text-center">aOh! 暂时还没有内容!</td>
|
||||
<else/>
|
||||
<volist name="list_data" id="data">
|
||||
<tr>
|
||||
<!-- <td><input class="ids" type="checkbox" value="{$data['id']}" name="ids"></td> -->
|
||||
<td>{$data.partner}</td>
|
||||
<td>{$data.game_name}</td>
|
||||
<td>{$data.total_amount}</td>
|
||||
<td>{$data.advance_amount}</td>
|
||||
<td>{$data.warming_amount}</td>
|
||||
<td>{$data.warn_frequency}</td>
|
||||
<td><?php echo implode(',', json_decode($data['phones'], true))?></td>
|
||||
<td>{$data.upt_time|date='Y-m-d H:i:s',###}</td>
|
||||
<td>{$data.create_time|date='Y-m-d H:i:s',###}</td>
|
||||
<td>{:get_admin_nickname($data['operater_id'])}</td>
|
||||
<td>
|
||||
<a href="{:U('Game/devide_warn_edit',array('id'=>$data['id']))}">编辑 </a>
|
||||
<a class="ajax-get confirm" href="{:U('Game/devide_warn_edit',array('id'=>$data['id'], 'delete'=>1))}">解除 </a>
|
||||
</td>
|
||||
</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="{$m_title}">
|
||||
<input type="hidden" name="url" value="Member/login_record">
|
||||
</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">
|
||||
<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 src="__STATIC__/layer/layer.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
//导航高亮
|
||||
highlight_subnav('{:U('Game/devide_warn_list')}');
|
||||
$(function () {
|
||||
<volist name = ":I('get.')" id = "vo" > Think.setValue('{$key}', "{$vo}");
|
||||
</volist >
|
||||
$(".select_gallery").select2();
|
||||
|
||||
//搜索功能
|
||||
$("#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;
|
||||
}
|
||||
var start = $("#time-start").val();
|
||||
var end = $("#time-end").val();
|
||||
if (start !='' && end != ''){
|
||||
if (Date.parse(start) > Date.parse(end)){
|
||||
layer.msg('开始时间必须小于等于结束时间');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
window.location.href = url;
|
||||
});
|
||||
|
||||
var game_id = "{:I('relation_game_id')}";
|
||||
$.ajax({
|
||||
url:"{:U('Ajax/getGameList')}",
|
||||
type:"get",
|
||||
data:{sdk_type:$("#relation_game_id option:selected").val()},
|
||||
dataType:'json',
|
||||
success:function(response){
|
||||
str = '<option value="">游戏名称</option>';
|
||||
data = response.data;
|
||||
for (var i in data){
|
||||
str += "<option value='"+data[i].relation_game_id+"' "+(game_id && data[i].relation_game_id == game_id?'selected':'')+">"+data[i].relation_game_name+"</option>"
|
||||
}
|
||||
$("#relation_game_id").empty();
|
||||
$("#relation_game_id").append(str);
|
||||
$("#relation_game_id").select2();
|
||||
}
|
||||
})
|
||||
|
||||
})
|
||||
</script>
|
||||
</block>
|
Loading…
Reference in New Issue