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.

139 lines
5.7 KiB
HTML

5 years ago
<extend name="Public/base" />
<block name="body">
<link rel="stylesheet" type="text/css" href="__CSS__/admin_table.css" media="all">
<script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
<div class="cf main-place top_nav_list navtab_list">
<h3 class="page_title">{$meta_title}</h3>
<p class="description_text"></p>
</div>
<div class="tab-content tabcon1711 tabcon17112">
<form action="{:U('add_list?model='.$model['id'])}" 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">
<select name="push_id">
<option value="">请选择应用</option>
<volist name=":get_push_list()" id="vo">
<option value="{$vo.id}">{$vo.push_name}</option>
</volist>
</select>
<input type="hidden" id="game_name" name="game_name" value="">
<span class="notice-text"></span>
</td>
</tr>
<tr>
<td class="l noticeinfo">推送内容</td>
<td class="r table_radio">
<textarea name="content" class="txt_area2"></textarea>
<span class="notice-text"></span>
</td>
</tr>
<tr>
<td class="l noticeinfo">推送对象</td>
<td class="r table_radio">
<label>
<input type="radio" class="inp_radio" value="0" name="push_object" checked="ture" > 不限
</label>
<label>
<input type="radio" class="inp_radio" value="1" name="push_object" > IOS
</label>
<label>
<input type="radio" class="inp_radio" value="2" name="push_object" > 安卓
</label>
<label>
<input type="radio" class="inp_radio" value="3" name="push_object" > WinPhone
</label>
<span class="notice-text"></span>
</td>
</tr>
<tr>
<td class="l noticeinfo">启用状态</td>
<td class="r table_radio">
<label><input type="radio" class="inp_radio" id="push_time_type" value="0" name="push_time_type" checked="checked" > 立即</label>
<label><input type="radio" class="inp_radio" id="push_time_type" value="1" name="push_time_type" > 定时</label>
<span class="notice-text"></span>
</td>
</tr>
<tr id="dtime">
<td class="l noticeinfo">定时时间</td>
<td class="r table_radio">
<input type="text" class="txt time" name="push_time" id="push_time" value="" placeholder="请选择时间">
<input type="hidden" class="txt time" name="create_time" value="{:time()}" >
<span class="notice-text"></span>
</td>
</tr>
</tbody>
</table>
<!-- <ul class="form_info ">
<li><label>应用名称</label><div class="form_main"></input></div><i class="form_hint"></i></li>
<li><label>推送内容</label><div class="form_main"></div><i class="form_hint"></i></li>
<li><label>推送对象</label><div class="form_main form_radio"></div><i class="form_hint"></i></li>
<li><label>启用状态</label><div class="form_main form_radio"></div><i class="form_hint"></i></li>
<li id="dtime"><label>定时时间</label><div class="form_main"></div><i class="form_hint"></i></li>
<li><label>&nbsp;</label><input type="submit" id="submit" value="确认保存" target-form="form-horizontal" class="form_btn ajax-post"></li>
</ul> -->
<div class="form-item cf">
<button class="submit_btn ajax-post " id="submit" type="submit" target-form="form-horizontal">
保存
</button>
<a class="submit_btn " alt="返回上一页" title="返回上一页" href="javascript:window.history.back();" >
返回
</a>
</div>
</form>
</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 type="text/javascript">
//导航高亮
highlight_subnav('{:U('Push/pushlist')}');
$('#submit').click(function(){
$('#form').submit();
});
$(function(){
var push_time_type=$("#push_time_type:checked").val();
if(push_time_type==0){
$("#dtime").hide();
$("#push_time").val("{:time()}");
}
$(".inp_radio[name='push_time_type']").change(function() {
if($(this).val()==0){
$("#dtime").hide();
$("#push_time").val("{:time()}");
}else{
$("#dtime").show();
$("#push_time").val("");
}
});
$('.time').datetimepicker({
language:"zh-CN",
hour: 13,
minute: 15
});
showTab();
});
</script>
</block>