You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
162 lines
5.8 KiB
HTML
162 lines
5.8 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<meta charset="UTF-8">
|
|
<title></title>
|
|
<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__/style.css" media="all">
|
|
<link rel="stylesheet" type="text/css" href="__CSS__/default_color.css" media="all">
|
|
<link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
|
|
<link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
|
|
<link rel="stylesheet" href="__CSS__/select2.min.css" type="text/css" />
|
|
|
|
<script type="text/javascript" src="__STATIC__/jquery-2.0.3.min.js"></script>
|
|
<script type="text/javascript" src="__JS__/select2.min.js"></script>
|
|
<script type="text/javascript" src="__STATIC__/layer3/layer.js"></script>
|
|
<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__/juicer-min.js" type="text/javascript"></script>
|
|
</head>
|
|
<style>
|
|
html {
|
|
min-width:100%;
|
|
}
|
|
body {
|
|
padding: 0px;
|
|
}
|
|
table{
|
|
|
|
margin: auto;
|
|
}
|
|
.hidebox{
|
|
display: none;
|
|
}
|
|
.r{
|
|
width: 300px;
|
|
}
|
|
.l{
|
|
width: 180px;
|
|
}
|
|
.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;
|
|
}
|
|
.input-list, .i_list {
|
|
float: left;
|
|
margin: 0;
|
|
}
|
|
|
|
</style>
|
|
<body>
|
|
|
|
<!-- 标签页导航 -->
|
|
<div class="tab-wrap">
|
|
<div class="tab-content tabcon1711">
|
|
<!-- 表单 -->
|
|
<form id="form" action="{:U('saveMasterRule')}" method="post" class="form-horizontal">
|
|
<input type="hidden" name="id" value="<?=$rule['id']?: 0?>">
|
|
<!-- 基础文档模型 -->
|
|
<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="base_game_id" id="game-select" class="select_gallery">
|
|
<option value="0">所有游戏</option>
|
|
<?php foreach($games as $game):?>
|
|
<option value="<?=$game['id']?>" <?php if($rule && $rule['base_game_id']==$game['id']):?>selected<?php endif;?>><?=$game['name']?></option>
|
|
<?php endforeach;?>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="l"><i class="mustmark">*</i>首充限制:</td>
|
|
<td class="r">
|
|
<label style="margin-right: 20px;">
|
|
<input type="radio" name="is_first_pay" class="" <?php if(empty($rule) || $rule['is_first_pay']==1):?>checked<?php endif;?> value="1"> 开启
|
|
</label>
|
|
<label>
|
|
<input type="radio" name="is_first_pay" class="" <?php if($rule && $rule['is_first_pay']==0):?>checked<?php endif;?> value="0"> 关闭
|
|
</label>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="l"><i class="mustmark">*</i>充值次数限制:</td>
|
|
<td class="r">
|
|
<input type="text" name="max_times" placeholder="请输入首充限制" value="<?=$rule['max_times'] ?: 0?>" style="width: 150px">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="l"><i class="mustmark">*</i>充值金额限制:</td>
|
|
<td class="r">
|
|
<input type="text" name="max_pay_amount" placeholder="请输入充值金额限制" value="<?=$rule['max_pay_amount'] ?: 0;?>" style="width: 150px">
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="form-item cf">
|
|
<button class="submit_btn mlspacing" id="submit" type="submit" target-form="form-horizontal" style="margin-left: 193px">
|
|
确认
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
$(".select_gallery").select2();
|
|
|
|
$(function(){
|
|
|
|
$('#submit').click(function (e) {
|
|
var target = $('form').get(0).action;
|
|
var query = $('form').serialize();
|
|
var that = this;
|
|
$(that).addClass('disabled').attr('autocomplete','off').prop('disabled',true);
|
|
$.post(target,query).success(function(result){
|
|
if(layer) { layer.closeAll('loading'); }
|
|
if (result.status == 1) {
|
|
layer.msg(result.message)
|
|
setTimeout(function(){
|
|
parent.location.reload()
|
|
},350)
|
|
} else {
|
|
layer.msg(result.message)
|
|
}
|
|
});
|
|
});
|
|
});
|
|
</script>
|
|
</body>
|
|
</html> |