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.

448 lines
34 KiB
HTML

<extend name="Public/base"/>
<block name="body">
<link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
<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>
<div class="cf main-place top_nav_list navtab_list">
<h3 class="page_title">支付限额规则配置</h3>
<p class="description_text">说明:配置支付规则,控制支付渠道</p>
</div>
<div class="tab-content tabcon1711 tabcon17112">
<form action="{:U('editLimitPay')}" method="post" class="form-horizontal form_info_ml">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td class="l noticeinfo">限制支付渠道</td>
<td class="r table_radio">
<span class="form_select">
<select name="pay_type">
<volist name="pay_type" id="vo" key='k'>
<if condition="$vo[paytag] eq $data[pay_type]">
<option value="{$vo.paytag}" selected>{$vo.name}</option>
<else />
<option value="{$vo.paytag}">{$vo.name}</option>
</if>
</volist>
</select>
</span>
</td>
</tr>
<tr>
<td class="l noticeinfo">限制规则</td>
<td class="r table_radio">
<span class="form_select-text">说明:设置限制条件和限制额度</span>
</td>
</tr>
<tr>
<td class="l noticeinfo">全渠道总流水限制</td>
<td class="r table_radio">
<input type="text" class="" name="total_limit" value="{$data.total_limit}" placeholder="请输入额度">
</td>
</tr>
<tr>
<td class="l noticeinfo">玩家全渠道总流水限制</td>
<td class="r table_radio">
<input type="text" class="" name="user_total_limit" value="{$data.user_total_limit}" placeholder="请输入额度">
</td>
</tr>
<tr>
<td class="l noticeinfo">玩家单笔限制</td>
<td class="r table_radio">
<input type="text" class="" name="user_one_limit" value="{$data.user_one_limit}" placeholder="请输入额度">
</td>
</tr>
<tr>
<td class="l noticeinfo">限制方式 </td>
<td class="r table_radio">
<span class="form_select">
<select name="limit_type">
<option value="force" <eq name="data.limit_type" value="force"> selected </eq>>强制限制</option>
<option value="obstacles" <eq name="data.limit_type" value="obstacles"> selected </eq>>支付体验障碍</option>
</select>
</span>
<span class="notice-text">说明:强制限制和支付体验障碍</span>
</td>
</tr>
<tr>
<td class="l noticeinfo">限制时间</td>
<td class="r table_radio">
<span class="form_radio">
<label><input type="radio" name="status" value="daily" <eq name="data['limit_time_type']" value="day">checked="checked"</eq>> 每日</label>
<div class="input-list" style="margin-left:20px">
<input type="text" class="" style="width:7px;;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" maxlength="1" id="day_inp1" name="daily_start1" value="{$info.title|default=''}" placeholder="">
<input type="text" class="" style="width:7px;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" maxlength="1" id="day_inp2" name="daily_start2" value="{$info.title|default=''}" placeholder="">
<span style="margin-left:10px">:</span>
<div class="input-append date" id="datetimepicker" style="display:inline-block;margin-left:5px">
<input type="text" class="" style="width:7px;;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" maxlength="1" name="daily_start3" id="day_inp3" value="{$info.title|default=''}" placeholder="">
<input type="text" class="" style="width:7px;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" maxlength="1" id="day_inp4" name="daily_start4" value="{$info.title|default=''}" placeholder="">
<span style="margin-left:10px">:</span>
<div class="input-append date" id="datetimepicker" style="display:inline-block;margin-left:5px">
<input type="text" class="" style="width:7px;;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" maxlength="1" name="daily_start5" id="day_inp5" value="{$info.title|default=''}" placeholder="">
<input type="text" class="" style="width:7px;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" maxlength="1" id="day_inp6" name="daily_start6" value="{$info.title|default=''}" placeholder="">
<span style="margin-left:10px"></span>
</div>
</div>
</div>
<div class="input-list" style="margin-left:20px">
<input type="text" class="" style="width:7px;;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" maxlength="1" name="daily_start7" id="day_inp7" value="{$info.title|default=''}" placeholder="">
<input type="text" class="" style="width:7px;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" maxlength="1" id="day_inp8" name="daily_start8" value="{$info.title|default=''}" placeholder="">
<span style="margin-left:10px">:</span>
<div class="input-append date" id="datetimepicker" style="display:inline-block;margin-left:5px">
<input type="text" class="" style="width:7px;;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" maxlength="1" name="daily_start9" id="day_inp9" value="{$info.title|default=''}" placeholder="">
<input type="text" class="" style="width:7px;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" maxlength="1" id="day_inp10" name="daily_start10" value="{$info.title|default=''}" placeholder="">
<span style="margin-left:10px">:</span>
<div class="input-append date" id="datetimepicker" style="display:inline-block;margin-left:5px">
<input type="text" class="" style="width:7px;;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" maxlength="1" name="daily_start11" id="day_inp11" value="{$info.title|default=''}" placeholder="">
<input type="text" class="" style="width:7px;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" maxlength="1" id="day_inp12" name="daily_start12" value="{$info.title|default=''}" placeholder="">
<span style="margin-left:10px"></span>
</div>
</div>
</div>
</span>
<span class="notice-text">说明:时间格式(24小时制,时间设置范围00:00:00 23:59:59)</span>
</td>
</tr>
<tr>
<td class="l noticeinfo"></td>
<td class="r table_radio">
<span class="form_radio">
<label><input type="radio" name="status" value="week" <eq name="data['limit_time_type']" value="week">checked="checked"</eq> /> 每周</label>
<span class="form_select" style="margin-left:5px">
<select name="week_remark">
<option value="1" <eq name="data['limit_time_type_remark']" value="1">selected</eq> >周一</option>
<option value="2" <eq name="data['limit_time_type_remark']" value="2">selected</eq>>周二</option>
<option value="3" <eq name="data['limit_time_type_remark']" value="3">selected</eq>>周三</option>
<option value="4" <eq name="data['limit_time_type_remark']" value="4">selected</eq>>周四</option>
<option value="5" <eq name="data['limit_time_type_remark']" value="5">selected</eq>>周五</option>
<option value="6" <eq name="data['limit_time_type_remark']" value="6">selected</eq>>周六</option>
<option value="7" <eq name="data['limit_time_type_remark']" value="7">selected</eq>>周天</option>
</select>
</span>
<div class="input-list" style="margin-left:20px">
<input type="text" class="" id="week_inp1" style="width:7px;;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" maxlength="1" name="week_start1">
<input type="text" class="" style="width:7px;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" id="week_inp2" maxlength="1" name="week_start2" value="" placeholder="">
<span style="margin-left:10px">:</span>
<div class="input-append date" id="datetimepicker" style="display:inline-block;margin-left:5px">
<input type="text" class="" style="width:7px;;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" maxlength="1" id="week_inp3" name="week_start3" value="" placeholder="">
<input type="text" class="" style="width:7px;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" maxlength="1" id="week_inp4"name="week_start4" value="" placeholder="">
<span style="margin-left:10px">:</span>
<div class="input-append date" id="datetimepicker" style="display:inline-block;margin-left:5px">
<input type="text" class="" style="width:7px;;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" maxlength="1" name="week_start5" id="week_inp5" value="" placeholder="">
<input type="text" class="" style="width:7px;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" maxlength="1" name="week_start6" id="week_inp6" value="" placeholder="">
<span style="margin-left:10px"></span>
</div>
</div>
</div>
<div class="input-list" style="margin-left:20px">
<input type="text" class="" style="width:7px;;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" id="week_inp7" name="week_start7" maxlength="1" value="" placeholder="">
<input type="text" class="" style="width:7px;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" id="week_inp8" maxlength="1" name="week_start8" value="" placeholder="">
<span style="margin-left:10px">:</span>
<div class="input-append date" id="datetimepicker" style="display:inline-block;margin-left:5px">
<input type="text" class="" style="width:7px;;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" maxlength="1" id="week_inp9" name="week_start9" value="" placeholder="">
<input type="text" class="" style="width:7px;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" maxlength="1" id="week_inp10" name="week_start10" value="" placeholder="">
<span style="margin-left:10px">:</span>
<div class="input-append date" id="datetimepicker" style="display:inline-block;margin-left:5px">
<input type="text" class="" style="width:7px;;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" name="week_start11" maxlength="1" id="week_inp11" value="" placeholder="">
<input type="text" class="" style="width:7px;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" name="week_start12" id="week_inp12" maxlength="1" value="" placeholder="">
<span style="margin-left:10px"></span>
</div>
</div>
</div>
</span>
</td>
</tr>
<tr>
<td class="l noticeinfo"></td>
<td class="r table_radio">
<span class="form_radio">
<label><input type="radio" name="status" value="month" <eq name="data['limit_time_type']" value="month">checked="checked"</eq>/> 每月</label>
<span class="form_select" style="margin-left:5px">
<select name="month_remark">
<volist name="monthday" id="vo" key='k'>
<if condition="$vo eq $data[limit_time_type_remark]">
<option value="{$vo}" selected>{$vo}</option>
<else />
<option value="{$vo.paytag}">{$vo}</option>
</if>
</volist>
</select>
</span>
<div class="input-list" style="margin-left:20px">
<input type="text" class="" style="width:7px;;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" name="month_start1" id="month_inp1" maxlength="1" value="{$info.title|default=''}" placeholder="">
<input type="text" class="" style="width:7px;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" maxlength="1" id="month_inp2" name="month_start2" value="{$info.title|default=''}" placeholder="">
<span style="margin-left:10px">:</span>
<div class="input-append date" id="datetimepicker" style="display:inline-block;margin-left:5px">
<input type="text" class="" style="width:7px;;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" name="month_start3" maxlength="1" id="month_inp3" value="{$info.title|default=''}" placeholder="">
<input type="text" class="" style="width:7px;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" maxlength="1" id="month_inp4" name="month_start4" value="{$info.title|default=''}" placeholder="">
<span style="margin-left:10px">:</span>
<div class="input-append date" id="datetimepicker" style="display:inline-block;margin-left:5px">
<input type="text" class="" style="width:7px;;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" maxlength="1" id="month_inp5" name="month_start5" value="{$info.title|default=''}" placeholder="">
<input type="text" class="" style="width:7px;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" id="month_inp6" maxlength="1" name="month_start6" value="{$info.title|default=''}" placeholder="">
<span style="margin-left:10px"></span>
</div>
</div>
</div>
<div class="input-list" style="margin-left:20px">
<input type="text" class="" style="width:7px;;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" name="month_start7" maxlength="1" id="month_inp7" value="{$info.title|default=''}" placeholder="">
<input type="text" class="" style="width:7px;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" maxlength="1" id="month_inp8" name="month_start8" value="{$info.title|default=''}" placeholder="">
<span style="margin-left:10px">:</span>
<div class="input-append date" id="datetimepicker" style="display:inline-block;margin-left:5px">
<input type="text" class="" style="width:7px;;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" name="month_start9" maxlength="1" id="month_inp9" value="{$info.title|default=''}" placeholder="">
<input type="text" class="" style="width:7px;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" maxlength="1" id="month_inp10" name="month_start10" value="{$info.title|default=''}" placeholder="">
<span style="margin-left:10px">:</span>
<div class="input-append date" id="datetimepicker" style="display:inline-block;margin-left:5px">
<input type="text" class="" style="width:7px;;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" maxlength="1" id="month_inp11" name="month_start11" value="{$info.title|default=''}" placeholder="">
<input type="text" class="" style="width:7px;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" id="month_inp12" maxlength="1" name="month_start12" value="{$info.title|default=''}" placeholder="">
<span style="margin-left:10px"></span>
</div>
</div>
</div>
</span>
</td>
</tr>
<tr>
<td class="l noticeinfo"></td>
<td class="r table_radio">
<span class="form_radio">
<label><input type="radio" name="status" value="day" <eq name="data['limit_time_type']" value="fix">checked="checked"</eq>/> 特殊</label>
<div class="input-list" >
<input type="text" readonly id="time-start" name="day_remark" class="" value=""
placeholder="日期"/>
</div>
</span>
<div class="input-list" style="margin-left:17px">
<input type="text" class="" style="width:7px;;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" maxlength="1" id="fix_inp1" name="day_start1" value="" placeholder="">
<input type="text" class="" style="width:7px;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" id="fix_inp2" maxlength="1" name="day_start2" value="" placeholder="">
<span style="margin-left:10px">:</span>
<div class="input-append date" id="datetimepicker" style="display:inline-block;margin-left:5px">
<input type="text" class="" style="width:7px;;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" name="day_start3" id="fix_inp3" maxlength="1" value="" placeholder="">
<input type="text" class="" style="width:7px;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" id="fix_inp4" maxlength="1" name="day_start4" value="" placeholder="">
<span style="margin-left:10px">:</span>
<div class="input-append date" id="datetimepicker" style="display:inline-block;margin-left:5px">
<input type="text" class="" style="width:7px;;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" id="fix_inp5" name="day_start5" maxlength="1" value="" placeholder="">
<input type="text" class="" style="width:7px;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" id="fix_inp6" maxlength="1" name="day_start6" value="" placeholder="">
<span style="margin-left:10px"></span>
</div>
</div>
</div>
<div class="input-list" style="margin-left:20px">
<input type="text" class="" style="width:7px;;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" name="day_start7" maxlength="1" id="fix_inp7" value="" placeholder="">
<input type="text" class="" style="width:7px;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" maxlength="1" id="fix_inp8" name="day_start8" value="" placeholder="">
<span style="margin-left:10px">:</span>
<div class="input-append date" id="datetimepicker" style="display:inline-block;margin-left:5px">
<input type="text" class="" style="width:7px;;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" maxlength="1" name="day_start9" id="fix_inp9" value="" placeholder="">
<input type="text" class="" style="width:7px;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" maxlength="1" id="fix_inp10" name="day_start10" value="" placeholder="">
<span style="margin-left:10px">:</span>
<div class="input-append date" id="datetimepicker" style="display:inline-block;margin-left:5px">
<input type="text" class="" style="width:7px;;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" maxlength="1" name="day_start11" id="fix_inp11" value="" placeholder="">
<input type="text" class="" style="width:7px;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" maxlength="1" id="fix_inp12"name="day_start12" value="" placeholder="">
<span style="margin-left:10px"></span>
</div>
</div>
</div>
</td>
</tr>
</tbody>
</table>
<div class="form-item">
<input type="hidden" name="id" value="{$data.id|default=''}">
<button class="submit_btn ajax-post mlspacing" id="submit" type="submit" target-form="form-horizontal">编 辑</button>
<button class="submit_btn " onclick="javascript:history.back(-1);return false;">返 回</button>
</div>
</form>
</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="{$m_url}">
</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>
var limit_type = '{$data.limit_time_type}'
var fixdate = '{$data.limit_time_type_remark}'
var starttime = '{$startTime}'
var starttimeArr = starttime.split("");
var endtime = '{$endTime}'
var endtimeArr = endtime.split("")
if (limit_type == 'day') {
document.getElementById('day_inp1').value = starttimeArr[0]
document.getElementById('day_inp2').value = starttimeArr[1]
document.getElementById('day_inp3').value = starttimeArr[2]
document.getElementById('day_inp4').value = starttimeArr[3]
document.getElementById('day_inp5').value = starttimeArr[4]
document.getElementById('day_inp6').value = starttimeArr[5]
document.getElementById('day_inp7').value = endtimeArr[0]
document.getElementById('day_inp8').value = endtimeArr[1]
document.getElementById('day_inp9').value = endtimeArr[2]
document.getElementById('day_inp10').value = endtimeArr[3]
document.getElementById('day_inp11').value = endtimeArr[4]
document.getElementById('day_inp12').value = endtimeArr[5]
}
if (limit_type == 'week') {
document.getElementById('week_inp1').value = starttimeArr[0]
document.getElementById('week_inp2').value = starttimeArr[1]
document.getElementById('week_inp3').value = starttimeArr[2]
document.getElementById('week_inp4').value = starttimeArr[3]
document.getElementById('week_inp5').value = starttimeArr[4]
document.getElementById('week_inp6').value = starttimeArr[5]
document.getElementById('week_inp7').value = endtimeArr[0]
document.getElementById('week_inp8').value = endtimeArr[1]
document.getElementById('week_inp9').value = endtimeArr[2]
document.getElementById('week_inp10').value = endtimeArr[3]
document.getElementById('week_inp11').value = endtimeArr[4]
document.getElementById('week_inp12').value = endtimeArr[5]
}
if (limit_type == 'month') {
document.getElementById('month_inp1').value = starttimeArr[0]
document.getElementById('month_inp2').value = starttimeArr[1]
document.getElementById('month_inp3').value = starttimeArr[2]
document.getElementById('month_inp4').value = starttimeArr[3]
document.getElementById('month_inp5').value = starttimeArr[4]
document.getElementById('month_inp6').value = starttimeArr[5]
document.getElementById('month_inp7').value = endtimeArr[0]
document.getElementById('month_inp8').value = endtimeArr[1]
document.getElementById('month_inp9').value = endtimeArr[2]
document.getElementById('month_inp10').value = endtimeArr[3]
document.getElementById('month_inp11').value = endtimeArr[4]
document.getElementById('month_inp12').value = endtimeArr[5]
}
if (limit_type == 'fix') {
console.log(limit_type)
console.log(fixdate)
document.getElementById('time-start').value = fixdate
document.getElementById('fix_inp1').value = starttimeArr[0]
document.getElementById('fix_inp2').value = starttimeArr[1]
document.getElementById('fix_inp3').value = starttimeArr[2]
document.getElementById('fix_inp4').value = starttimeArr[3]
document.getElementById('fix_inp5').value = starttimeArr[4]
document.getElementById('fix_inp6').value = starttimeArr[5]
document.getElementById('fix_inp7').value = endtimeArr[0]
document.getElementById('fix_inp8').value = endtimeArr[1]
document.getElementById('fix_inp9').value = endtimeArr[2]
document.getElementById('fix_inp10').value = endtimeArr[3]
document.getElementById('fix_inp11').value = endtimeArr[4]
document.getElementById('fix_inp12').value = endtimeArr[5]
}
</script>
<script type="text/javascript">
//导航高亮
highlight_subnav('{:U('Tool/limitPay')}');
$(function () {
Think.setValue("type", {$info.type|default=0});
Think.setValue("category", {$info.category|default=0});
$("#category").change();
Think.setValue("group", {$info.group|default=0});
})
$("#category").change(function(){
$.ajax({
type:"POST",
dataType:"json",
async:false,
data:{category:$("#category").val()},
url:"{:U('Ajax/getConfigCategory')}",
success:function (data) {
$("#group").empty();
var str = "<option value='0'>不分类</option>";
for(var i in data){
str += "<option value="+i+">"+data[i]+"</option>";
}
$("#group").append(str);
}
})
})
</script>
<script>
$('#time-start').datetimepicker({
format: 'yyyy-mm-dd',
language: "zh-CN",
showMeridian:true,
pickDate:true,
minView: 2,
autoclose: true,
pickTime:true,
todayBtn:true,
minuteStep: 1,//分钟间隔1分钟
}).on('change',function(ev){
var val = new Date($.trim($(this).val())).getTime();
var end = new Date($.trim($('#time-end').val())).getTime();
if (val>end) {
layer.msg('开始时间大于结束时间!');$(this).val('');
}
return false;
});
$("#time-end").datetimepicker({
format:"hh:ii:ss",
language: "zh-CN",
showMeridian:true,
minView:2,
autoclose:true,
todayBtn:true,
}).on('change',function(ev){
var val = new Date($.trim($(this).val())).getTime();
var start = new Date($.trim($('#time-start').val())).getTime();
if (val<start) {
layer.msg('开始时间大于结束时间!');$(this).val('');
}
return false;
});
</script>
</block>