index.html
5.6 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
<link rel="stylesheet" href="__CDN__/assets/css/member_change.css">
<style>
table {
font-size: 12px;
}
table {
table-layout: fixed;
empty-cells: show;
border-collapse: collapse;
margin: 0 auto;
}
td {
text-align: center;
}
.table {
border: 1px solid #cad9ea;
color: #666;
}
.table th {
background-repeat: repeat-x;
height: 30px;
text-align: center;
}
.table td,
.table th {
border: 1px solid #cad9ea;
padding: 0 1em 0;
}
.subtitle {
border-bottom: 1px solid #CECECE;
}
.rotation {
width: 100%;
height: 200px;
}
.rotation img {
width: 100%;
height: 100%;
}
.sidenav {
background-color: #f7f9fc;
min-height: 700px;
border-right: 3px solid rgb(108, 115, 173);
}
.left_part {
width: 16rem !important;
padding-left: 0 !important;
}
.panel-default{
margin-top: 30px;
}
</style>
<div class="rotation">
<img src="__CDN__/assets/img/teacherRotation.png" />
</div>
<div id="content-container" class="container">
<div class="row">
<div class="col-md-3 left_part">
{include file="common/sidenav" /}
</div>
<div class="col-md-9">
<div class="panel panel-default">
<div class="panel-body">
<div class="main ">
<div class="main_right ">
<div class="title">
<div class="title_left">
<text style="color: #555;font-weight: 550;">房间预约</text>
<text style="color: #999;">RESULT</text>
</div>
<div class="title_right">
<a class=" btn btn-info" href="{:url('sx_basement/index')}">立即申请</a>
<a class=" btn btn-info" href="{:url('projectitem/index')}">返回</a>
</div>
</div>
<div class="subtitle">
<ul>
<li {eq name="status" value="0" } class='subtitle_active' {/eq}><a
href="?status=0">全部</a></li>
<li {eq name="status" value="2" } class='subtitle_active' {/eq}><a
href="?status=2">已通过</a></li>
<li {eq name="status" value="1" } class='subtitle_active' {/eq}><a
href="?status=1}">待审核</a></li>
<li {eq name="status" value="3" } class='subtitle_active' {/eq}><a
href="?status=3}">未通过</a></li>
</ul>
</div>
<table width="100%" class="table">
<tr>
<th width="8%">序号</th>
<th>预约房间</th>
<th>预约日期</th>
<th>预约时间</th>
<th>使用人数</th>
<th>审核状态</th>
<th>操作</th>
</tr>
{foreach name="list" item="vo"}
<tr>
<td>{$key}</td>
<td>{$vo.room_name}</td>
<td>{$vo.apply_date}</td>
<td>{:date('H:i',$vo.start_time)} - {:date('H:i',$vo.end_time)} </td>
<td>{$vo.use_count}</td>
{switch name="vo.status"}
{case value="1"}
<td>待审核</td>
{/case}
{case value="2"}
<td>已通过</td>
{/case}
{case value="3"}
<td>未通过</td>
{/case}
{default/}
<td>已取消</td>
{/switch}
{switch name="vo.status"}
{case value="1"}
<td> <button type="button" class="del" data-id="{$vo.id}"
data-status="{$vo.status}">取消预约</button></td>
{/case}
{default/}
<td> <button type="button" class="del" data-id="{$vo.id}"
data-status="{$vo.status}">删除</button></td>
{/switch}
</tr>
{/foreach}
</table>
<div>
{$page}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>