Index.html
5.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<%include '../../common/__ui/header'%>
<%include '../../common/__partail/ListHeader'%>
<style type="text/css" media="all">
td { word-break:break-all; max-width: 200px; }
</style>
<div class="contentpanel">
<div class="panel panel-default" style="margin-bottom:10px;">
<div class="panel-body" style="padding-bottom: 0">
<a href="javascript:void(0);" id="btn_add" class="btn btn-success "><i class="fa fa-plus"></i> 添加匹配词</a>
</div>
<div class="panel-body">
<div class="row">
<div class="panel-col">
<input id="matchWordName" class="form-control panel-input" type="text" placeholder="匹配词">
</div>
<div class="panel-col">
<select name="status" id="status" tabindex="-1" title="" class="select2-offscreen brandBtn-group">
<option value="" selected="">选择开启状态</option>
<option value="1">关闭</option>
<option value="0">开启</option>
</select>
</div>
<div class="panel-col">
<select name="time_status" id="time_status" tabindex="-1" title="" class="select2-offscreen brandBtn-group">
<option value="" selected="">选择时间状态</option>
<option value="1">未开始</option>
<option value="2">进行中</option>
<option value="3">已结束</option>
</select>
</div>
<div class="panel-col">
<input id="start_time" class="form-control panel-input" readonly="readonly" type="text" placeholder="开始时间">
</div>
<div class="panel-col">
<input id="end_time" class="form-control panel-input" readonly="readonly" type="text" placeholder="结束时间">
</div>
<div class="panel-col2">
<a id="filter-btn" href="javascript:;" class="btn btn-info">筛选</a>
<a id="all-btn" href="" class="btn btn-info">全部</a>
</div>
</div>
</div>
</div>
<div id="table-box"></div>
</div>
<!--添加修改模板-->
<script type="text/template" id="template">
<div class="rows" id="baseform">
<div class="form-group">
<label class="col-sm-2 control-label" for="matchWordName">匹配词</label>
<input type="hidden" value="{{id}}" id="id"/>
<input type="hidden" value="{{status }}" id="status"/>
<div class="col-sm-10">
<input type="text" value="{{matchWordName}}" class="form-control" id="matchWordName" required="required" placeholder="多个匹配词之间以 , 隔开" />
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">显示频道<i class="red">*</i></label>
<div class="col-sm-8 " id="channelCheckBox">
<div style="float:left;margin-right: 5px"><input type="checkbox" name="channelIds" class="observe" data-field="channelIds" value="0">默认</div>
</div>
<input type="hidden" id="channelIds" name="channelIds" value="{{channelIds}}" for="checkbox" class="observe" data-field="channelIds"
placeholder="显示频道" required/>
</div>
<div class="form-group">
<label class="col-sm-2 control-label" for="matchPcUrl">PC 链接</label>
<div class="col-sm-10">
<input type="text" value="{{matchPcUrl}}" class="form-control" id="matchPcUrl" required="required"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">移动端链接</label>
<div class="col-sm-3">
<select id="matchAppAction" name="matchAppAction" class="form-control" required="required">
<option value="">选择跳转目的</option>
<%each actions as item index%>
<option value="<%item.enName%>" {{if matchAppAction == "<%item.enName%>"}}selected{{/if}}><%item.chName%></option>
<%/each%>
</select>
</div>
<div class="col-sm-7">
<input id="matchAppUrl" value="{{matchAppUrl}}" class="form-control" placeholder="URL地址" required="required"/>
<p style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</p>
</div>
</div>
<div class="form-group col-sm-100">
<label class="col-sm-2 control-label">发布时间</label>
<div class="panel-col1 col-sm-4">
<input type="text" id="startTime" jsaction="time:end:endTime" readonly
class="form-control panel-input " name="startTime" placeholder="开始时间" required="required" value="{{startTime | dateFormat: 'yyyy-MM-dd hh:mm:ss'}}">
</div>
<div class="panel-col1 col-sm-4">
<input type="text" id="endTime" jsaction="time:start:startTime" readonly
class="form-control panel-input" name="endTime" placeholder="结束时间" required="required" value="{{endTime | dateFormat: 'yyyy-MM-dd hh:mm:ss'}}">
</div>
</div>
</div>
</script>