ContentManage.html
3.81 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
<%include '../../common/__ui/header'%>
<%include '../../common/__partail/ListHeader'%>
<div class="allContents">
<div id="times-list">
</div>
<div class="clearfix"></div>
<div class="col-sm-10 col-sm-offset-2">
<a href="javascript:;" id="copyTab" class="btn btn-info btn-sm">复制</a>
<a href="javascript:;" id="delTab" class="btn btn-danger btn-sm">删除</a>
<a href="javascript:;" id="saveTime" class="btn btn-info btn-sm">保存时间</a>
</div>
<div class="clearfix"></div>
<div class="contentpanel" id="content-list">
</div>
</div>
<script type="text/template" id="times-template">
<div class="dataTab_wrapper" id="resourcePre">
<ul class="nav" style="padding: 0; margin: 0">
<input type="hidden" class="form-control"id="dateFromInfinity"value="1970-01-01 08:00:00">
[[each times as item index]]
<li class="[[index==selected?'active':'']] timesLi" data-index="[[index]]">
<input type="text" [[(item.time=="" || item.status == "进行中") ? "disabled" : (index==selected?"":"disabled")]] class="form-control preTimes" data-index="[[index]]" jsaction="time" id="dateFrom[[index]]" prompt="时间" value="[[item.time]]" readonly required>
<span style="display: block; line-height: 20px">[[item.status||"默认"]]</span>
</li>
[[/each]]
<input type="hidden" class="form-control"id="dateFromInfinity1"value="2970-01-01 08:00:00">
</ul>
</div>
</script>
<!--内容模板-->
<script type="text/template" id="content-template">
<div id="base-form">
<div class="source-content" id="source-m">
<!-- left -->
<div class="content-left" id="contentLeft">
<h4 class="title" data-type="title" style="text-align: center">[[resource.name]]</h4>
<ul class="add-box showContain ui-sortable" id="add-content">
</ul>
<nav>
<input type="button" id="sub_btn" name="sub_btn" value="保存" style="float: right; margin:10px;">
</nav>
</div>
<!--right-->
<div class="content-right panel-heading" id="contentRight" style="width:700px">
<ul class="nav nav-pills nav-justified" style="height: 80px">
<li class="button-type active"><a href="#" data-channel="all">全部</a></li>
<li class="button-type "><a href="#" data-channel="app">有货APP</a></li>
<!-- 这里的active属性就是使得所在的li的背景色变为蓝色-->
<li class="button-type"><a href="#" data-channel="h5">有货H5</a></li>
<li class="button-type"><a href="#" data-channel="pc">有货PC</a></li>
<li class="button-type"><a href="#" data-channel="miniapp">有货小程序</a></li>
<li class="button-type"><a href="#" data-channel="blk">BLK</a></li>
</ul>
<nav>
<em><i></i></em>
<ul class="contents clearfix">
</ul>
</ul>
</nav>
</div>
</div>
</div>
</script>
<!-- 按钮 -->
<script type="text/template" id="template_content_btns">
[[each btns as btn index]]
<li><a href="javascript:void(0)" name="text" class="add_btn" data-index="[[index]]" >[[btn.button_name]]</a></li>
[[/each]]
</script>
<script type="text/template" id="template_content_btns2">
[[each btns2 as btn2 index]]
<li><a href="javascript:void(0)" name="text" class="add_btn" data-index="[[index]]">[[btn2.button_name]]</a></li>
[[/each]]
</script>
<%include '../__partail/actions'%>
<%include '../__partail/taoyu'%>
<%include '../__partail/weiqingting'%>
<%include '../__partail/jiangming'%>