Index.html
8.38 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
<%include '../../common/__ui/header'%>
<%include '../../common/__partail/ListHeader'%>
<div class="contentpanel">
<div class="panel panel-default" style="...">
<div class="panel-body" style="padding-bottom: 0">
<a id="filter-add" class="btn btn-success"><i class="fa fa-plus"></i> 添加词汇</a>
</div>
<div class="panel-body" id="filter">
<div class="row">
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2">
<input type="text" value="" name="content" id="content-filter" placeholder="内容"
class="form-control">
</div>
<div class="panel-col">
<select name="status" id="status-filter" tabindex="-1" title=""
class="select2-offscreen brandBtn-group">
<option value="" selected="">选择状态</option>
<option value="1">关闭</option>
<option value="2">开启</option>
</select>
</div>
<div class="panel-col">
<div id="channel-ops1">
<select name="channel-ops" id="channel-ops" tabindex="-1" title=""
class="select2-offscreen brandBtn-group">
<option value="" selected="">选择频道</option>
<option value="1">男生</option>
<option value="2">女生</option>
<option value="3">潮童</option>
<option value="4">创意生活</option>
</select>
</div>
</div>
<div class="panel-col">
<input type="text" id="starttime-filter" class="form-control panel-input hasDatepicker"
jsaction="time:end:endtime-filter" name="start_time" placeholder="开始时间" value="">
</div>
<div class="panel-col">
<input type="text" id="endtime-filter" class="form-control panel-input hasDatepicker"
jsaction="time:start:starttime-filter" name="end_time" placeholder="结束时间" value="">
</div>
<div class="panel-col">
<a id="filter-btn" href="javascript:;" class="btn btn-info">查询</a>
</div>
</div>
</div>
</div>
<div id="search-words-list" class="search-words"></div>
</div>
<script type="text/template" id="template">
<ul class="breadcrumb">
<li><a href=""><i class="glyphicon glyphicon-home"></i></a></li>
<li><a href="">搜索词管理</a></li>
<li id="header-item">[[name1]]</li>
</ul>
<div>
<div style="padding-left: 0; font-family: 'Microsoft YaHei'">
<h4 id="header-title" style="line-height: 30px;font-size: 24px;margin-top: 2px">[[name2]]</h4>
</div>
</div>
</script>
<!--添加修改模板-->
<script type="text/template" id="template-content">
[[if _type==1]]
<div class="form-group">
<label for="channelIds" class="col-sm-2 control-label"><i class="red">*</i> 频道</label>
<div class="col-sm-8">
<label style="cursor: pointer;"><input type="radio" class="observe" data-field="channelIds" name="channelIds" value="1"> 男生</label>
<label style="cursor: pointer;"><input type="radio" class="observe" data-field="channelIds" name="channelIds" value="2"> 女生</label>
<label style="cursor: pointer;"><input type="radio" class="observe" data-field="channelIds" name="channelIds" value="3"> 潮童</label>
<label style="cursor: pointer;"><input type="radio" class="observe" data-field="channelIds" name="channelIds" value="4"> 创意生活</label>
</div>
<input type="hidden" id="channelIds" value="[[channelIds]]" for="radio" class="observe"
placeholder="频道" data-field="channelIds">
</div>
[[/if]]
<div class="form-group">
<label for="content" class="col-sm-2 control-label"><i class="red">*</i> 内容</label>
<div class="col-sm-10">
<input type="text" name="" value="[[content]]" id="content" class="form-control observe" required="required" data-field="content"
placeholder="内容">
</div>
</div>
[[if _type==1]]
<div class="form-group">
<label for="url" class="col-sm-2 control-label"> 链接</label>
<div class="col-sm-10">
<input type="text" name="" value="[[url]]" id="url" class="form-control observe" data-field="url" placeholder="链接">
</div>
</div>
<div class="form-group">
<label for="startTime" class="col-sm-2 control-label"><i class="red">*</i> 开始时间</label>
<div class="col-sm-10">
<input type="text" id="startTime" class="form-control panel-input hasDatepicker observe" jsaction="time:end:endTime"
name="start_time" placeholder="开始时间" value="[[startTime]]" data-field="startTime">
</div>
</div>
<div class="form-group">
<label for="endTime" class="col-sm-2 control-label"><i class="red">*</i> 结束时间</label>
<div class="col-sm-10">
<input type="text" id="endTime" class="form-control panel-input hasDatepicker observe" jsaction="time:start:startTime"
name="start_time" placeholder="结束时间" value="[[endTime]]" data-field="endTime">
</div>
</div>
[[/if]]
[[if _type==2]]
<div class="form-group">
<label for="goodsNum" class="col-sm-2 control-label"><i class="red">*</i> 商品数</label>
<div class="col-sm-10">
<input type="text" name="" value="[[goodsNum]]" id="goodsNum" class="form-control observe" required="required" data-field="goodsNum"
placeholder="商品数">
</div>
</div>
[[/if]]
[[if _type==2|_type==3]]
<div class="form-group">
<label for="sort" class="col-sm-2 control-label"><i class="red">*</i> 排序</label>
<div class="col-sm-10">
<input type="text" name="" value="[[sort]]" id="sort" class="form-control observe" data-field="sort" required="required"
placeholder="排序">
</div>
</div>
[[/if]]
[[if _status=='update']]
[[layout template-modify]]
[[/if]]
[[layout template-tips]]
</script>
<!--修改页面共用部分-->
<script type="text/template" id="template-modify">
<div class="form-group">
<label class="col-sm-2 control-label"><span class="red">*</span> 状态</label>
<div class="col-sm-8">
<label class="radio-inline">
<input type="radio" name="status" class="observe" data-field="status" value="2">开启
</label>
<label class="radio-inline">
<input type="radio" name="status" class="observe" data-field="status" value="1">关闭
</label>
</div>
<input type="hidden" id="status" value="[[status]]" for="radio" required="required" class="observe" data-field="status">
</div>
<div class="form-group">
<label for="creatorUsrname" class="col-sm-2 control-label">添加人</label>
<div class="col-sm-10">
<label id="creatorUsrname">[[creatorUsrname]]</label>
</div>
</div>
<div class="form-group">
<label for="createdTime" class="col-sm-2 control-label">添加时间</label>
<div class="col-sm-10">
<label id="createdTime">[[createdTime]]</label>
</div>
</div>
<div class="form-group">
<label for="modifyUsrname" class="col-sm-2 control-label">修改人</label>
<div class="col-sm-10">
<label id="modifyUsrname">[[modifyUsrname]]</label>
</div>
</div>
<div class="form-group">
<label for="modifyTime" class="col-sm-2 control-label">修改时间</label>
<div class="col-sm-10">
<label id="modifyTime">[[modifyTime]]</label>
</div>
</div>
<input type="hidden" id="id" value="[[id]]"/>
</script>
<!--红颜色说明-->
<script type="text/template" id="template-tips">
<div class="form-group">
<input type="hidden" id="type" value="[[type]]"/>
<i class="red" id="i-tips">[[tips]]</i>
</div>
</script>
<%include '../../common/__ui/footer'%>