live_management.jsp
3.96 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
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/pages/common/taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>活动管理 | <f:message key="common.title" /></title>
<meta
content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no'
name='viewport'>
<%@ include file="/pages/common/css.jsp"%>
</head>
<!--
<body class="skin-blue fixed ">-->
<body class="skin-blue sidebar-mini">
<div class="wrapper">
<%@ include file="/pages/common/top.jsp"%>
<%@ include file="/pages/common/left.jsp"%>
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
活动管理<small><a href="../../live/preload"><i
class="fa fa-plus"></i>新增活动</a> </small>
<small class="label label-warning" style="display: none"
id="info_tab_span"><i class="fa fa-bell-o"></i></small>
</h1>
<ol class="breadcrumb">
<li><a><i class="fa fa-dashboard"></i> 首页</a></li>
<li class="active">活动管理</li>
</ol>
</section>
<!-- Main content -->
<section class="content">
<div class="row">
<div class="col-xs-12">
<div class="box box-warning">
<div class="box-header with-border">
<h3 class="box-title"></h3>
<div class="box-tools">
<div class="input-group">
<form action="../search/1" method="post">
<div class="input-group">
<input type="text" name="search_text" id="search_text"
class="form-control input-sm" style="width: 150px;"
placeholder="Search" />
<button id="t_activity_search_btn" type="submit"
class="btn btn-sm btn-default">
<i class="fa fa-search"></i>搜索
</button>
</div>
</form>
</div>
</div>
</div>
<!-- /.box-header -->
<div class="box-body">
<table class="table table-bordered">
<tr>
<th>活动名称</th>
<th>开始时间</th>
<th>结束时间</th>
<th>状态</th>
<th>修改</th>
<th>删除</th>
</tr>
<c:forEach var="item" items="${tLive.recordList}"
varStatus="stat">
<tr>
<td><a href="${BASE}/live/preview/${item.id}">${item.title}</a>
</td>
<td><fmt:formatDate value="${item.start_time}"
pattern="yyyy-MM-dd HH:mm" /></td>
<td>${item.end_time}</td>
<td>
<c:if test="${item.t_status_id==0}">
<span class="badge bg-green">未开始</span>
</c:if> <c:if test="${item.t_status_id==1}">
<span class="badge bg-red">直播中</span>
</c:if> <c:if test="${item.t_status_id==2}">
<span class="badge">直播结束</span>
</c:if> <c:if test="${item.t_status_id==3}">
<span class="badge">回放同步中</span>
</c:if> <c:if test="${item.t_status_id==4}">
<span class="badge">同步完成</span>
</c:if>
</td>
<td>
<button class="btn btn-default btn-sm"
onclick="t_live_edit(${item.id});">
<i class="fa fa-edit"></i>
</button>
</td>
<td>
<button class="btn btn-danger btn-sm"
onclick="t_live_delete(${item.id});">
<i class="fa fa-close"></i>
</button>
</td>
</tr>
</c:forEach>
</table>
</div>
<!-- /.box-body -->
<div class="box-footer clearfix">
<center>
<tag:pager id="product_pager" pager="${tLive}" />
</center>
</div>
</div>
</div>
</div>
</div>
<%@ include file="/pages/common/bottom.jsp"%>
</div>
<%@ include file="/pages/common/js.jsp"%>
</body>
</html>