Index.html
5 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
<%include '../../../common/views/__ui/header'%>
<%include '../../../common/views/__partail/ListHeader'%>
<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 hasDatepicker" readonly="readonly" type="text" placeholder="开始时间">
</div>
<div class="panel-col">
<input id="end_time" class="form-control panel-input hasDatepicker" 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 class="row">
<div class="col-md-12">
<div class="dataTab_wrapper" id="basicTab" style="margin-bottom: 10px"></div>
<div id="table-box" class="table-responsive"></div>
</div>
</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" 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 hasDatepicker " 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 hasDatepicker" name="endTime" placeholder="结束时间" required="required" value="{{endTime | dateFormat: 'yyyy-MM-dd hh:mm:ss'}}">
</div>
</div>
</div>
</script>