list.vm
8.19 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
<script src="/assets/js/jquery.js"></script>
<script src="/assets/js/riotjs/riotjs.js"></script>
<script src="/assets/products/product.search.categroy.js"></script>
<DIV id="navBar" title="video">
<li><a href="$!{contextPath}/">首页</a><span class="divider">></span>
<a href="$!{contextPath}/titan/video">视频管理</a></li>
</DIV>
<form class="well form-search" name="videoListForm" action="/titan/video" method="POST">
<input type="hidden" name="orderField" value="$!{video.orderField}"/>
<input type="hidden" name="orderFieldType" value="$!{video.orderFieldType}"/>
<input type="hidden" id="categoryIds" value="$!{categoryIds}"/>
<input class="span2" type="text" name="name" value="$!{video.name}" placeholder="视频名称"/>
<input class="span align-middle input-medium numInput" maxlength="12" type="text" name="pid" value="$!{video.pid}" placeholder="商品编号"/>
视频状态:
<select id="status" name="status" class="span2 align-middle" style="height:34px">
<option id="视频状态" value="">全部状态</option>
<option id="视频状态" value="1" #if($!{video.status}==1) selected #end>待审核</option>
<option id="视频状态" value="2" #if(${video.status}==2) selected #end>审核通过</option>
<option id="视频状态" value="3" #if($!{video.status}==3) selected #end>审核拒绝</option>
</select>
爱奇艺状态:
<select id="aqyStatus" name="aqyStatus" class="span2 align-middle" style="height:34px">
<option id="视频状态" value="">全部状态</option>
<option id="视频状态" value="1" #if($!{video.aqyStatus}==1) selected #end>待审核</option>
<option id="视频状态" value="2" #if(${video.aqyStatus}==2) selected #end>审核通过</option>
<option id="视频状态" value="3" #if($!{video.aqyStatus}==3) selected #end>审核拒绝</option>
</select>
<input type="hidden" id="categoryIds" value="$!{categoryIds}"/>
<span class="spw"><span>*</span>请选择分类:</span>
<span id="productCategory">
</span>
<button type="submit" class="btn btn-sm btn-primary"><i class="icon-search icon-white"></i>搜索</button>
<button type="button" class="btn btn-sm btn-primary btn-clear">清除</button>
## #if($!{addOrEdit})
## <a class="btn btn-sm btn-primary" href="/titan/video/edit" style="float:right">新增</a>
## #end
</form>
<!-- 表格数据 -->
<table class="table table-striped table-bordered table-condensed grid">
<thead>
<tr>
<th #sorting($!{video} "id")>视频ID</th>
<th #sorting($!{video} "name")>视频名称</th>
<th #sorting($!{video} "pid")>商品编号</th>
<th #sorting($!{video} "pname")>商品名称</th>
<th #sorting($!{video} "shopname")>店铺名称</th>
<th #sorting($!{video} "categoryId")>视频所属商品分类</th>
<th #sorting($!{video} "aqystatus")>爱奇艺视频状态</th>
<th #sorting($!{video} "status")>运营视频状态</th>
<th #sorting($!{video} "ctime")>创建时间</th>
<th>操作</th>
</tr>
</thead>
<tbody>
#foreach(${item} in ${page.result})
<tr>
<td style="width:20%;text-align:center;vertical-align:middle;">$!{item.id}</td>
<td style="width:20%;text-align:center;vertical-align:middle;">$!{item.name}</td>
<td style="width:5%;text-align:center;vertical-align:middle;">$!{item.pid}</td>
<td style="width:20%;text-align:center;vertical-align:middle;"><a onclick="window.open('http://www.1n4j.com/product/${item.pid}.html')">$!{item.pname}</a></td>
<td style="width:5%;text-align:center;vertical-align:middle;">$!{item.shopName}</td>
<td style="width:10%;text-align:center;vertical-align:middle;">$!{item.categoryName}</td>
<td style="width:5%;text-align:center;vertical-align:middle;">
#if($!{item.aqyStatus}==1)
待审核
#elseif($!{item.aqyStatus}==2)
审核通过
#elseif($!{item.aqyStatus}==3)
审核拒绝
#end
</td>
<td style="width:5%;text-align:center;vertical-align:middle;">
#if($!{item.status}==1)
待审核
#elseif($!{item.status}==2)
审核通过
#elseif($!{item.status}==3)
审核拒绝
#elseif($!{item.status}==-1)
已删除
#end
</td>
<td style="width:10%;text-align:center;vertical-align:middle;">$!dateTool.format('yyyy-MM-dd HH:mm:ss',${item.ctime})</td>
<td class="textC" style="width:20%;text-align:center;vertical-align:middle;">
<div class="btn-group">
#if(($!{item.status}==1 && $!{item.aqyStatus}==2) && $!{audit})
<a class="green"onclick="XUI.PPS.showAuditDlg($!{item.id},'/titan/video/audit',1)"><i class="icon-pencil"></i>审批</a>
## <a href="/titan/video/edit?id=${item.id}"><i class="icon-pencil"></i> 编辑</a>
#end
#if($!{item.aqyStatus}==2 && $!{play})
<a onclick="window.open('$!{item.pageUrl}')"><i class="icon-eye-open"></i> 播放</a>
#end
#if(($!{item.status}==3 || $!{item.aqyStatus}==3) && $!{viewDetail})
<a href="javascript:alert('$!{item.reason}')"><i class="icon-eye-open"></i> 查看原因</a>
#end
#if(($!{item.aqyStatus}==2 || $!{item.aqyStatus}== 3) && $!{delete})
<a onclick="XUI.Video.deleteVideo('$!{item.id}',$!{page.getCurrentPage()})"><i class="icon-trash"></i> 删除</a>
#end
</div>
</td>
</tr>
#end
</tbody>
</table>
<!-- modal -->
<div class="modal fade" id="auditModal" tabindex="-1" role="dialog" aria-labelledby="auditModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header" id="modaltitle">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="myModalLabel">视频审核</h4>
</div>
<div class="modal-body">
<form class="form-horizontal">
## <div class="alert alert-danger" id="auditAlert" style="width:521px;display: none;">
## <strong>注意!</strong>强制下架后商品状态将变更为审核不通过!<br>
## </div>
<filedset>
<div class="form-group" id="auditResult">
<label class="col-sm-3 control-label" for="radioDiv">审核结果 :</label>
<label class="col-sm-2 radio inline"><input type="radio" name="audit" id="audit_ok" value="2" checked>通过</input></label>
<label class="col-sm-2 radio inline"><input type="radio" name="audit" id="audit_no" value="3">不通过</input></label>
</div>
<div class="form-group" id="feedback" style="display:none">
<label class="col-sm-3 control-label" id="feedbackLabel"for="selectFeedback"></label>
<select id="selectFeedback" class="span2 align-middle" style="height:28px">
#foreach(${msg} in ${auditMsg})
<option value="${velocityCount}">${msg.name}</option>
#end
<option value="-1">其他原因</option>
</select>
</div>
<div class="form-group " id="feedbackArea" class="col-sm-3 no-padding-right" style="display:none">
<label class="col-sm-3 control-label" for="selectDiv"></label>
<textarea name="feedback" id="feedback" maxlength="30" style="width:350px;height:110px;"></textarea>
</div>
</filedset>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
<button type="button" class="btn btn-primary" name="confirmAudit">确认</button>
</div>
</div>
</div>
</div>
<!-- 分页栏 -->
#showPage($!{page})
<script>
$(document).ready(function(){
XUI.Video.init();
XUI.PPS.init();
$("#productCategory").productCategory();
});
</script>