-
Notifications
You must be signed in to change notification settings - Fork 1
/
userBooklist.php
112 lines (100 loc) · 3.63 KB
/
userBooklist.php
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
<?php
include('template/init.php');
include('template/function.php');
?><!DOCTYPE html>
<html lang="zh">
<head>
<?php include('template/head.php'); ?>
</head>
<body>
<?php include('template/menu.php'); ?>
<br />
<div class="container marketing">
<div class="row">
<div class="col-lg-12">
<legend>註冊</legend>
<div class="row">
<div class="col-lg-2">
<?php include('template/sidebar.php'); ?>
</div>
<div class="col-lg-10">
<div class="col-md-4" style="margin-bottom:20px;">
<div class="btn-group" data-toggle="buttons" style="margin: -9px auto;">
<label class="btn btn-default">
關閉表單
</label>
<label class="btn btn-default">
刪除表單
</label>
</div>
<div class="btn-group" data-toggle="buttons" style="margin: -9px auto;">
<a href="clsCreate.php" class="btn btn-primary">
新增表單
</a>
</div>
</div>
<table class="table table-bordered table-hover">
<thead>
<tr>
<th>#</th>
<th>書單</th>
<th>建立日期</th>
<th>截止日期</th>
<th>狀態</th>
</tr>
</thead>
<tbody>
<?php
$text = json_decode(post('control/book.php',array('user_data'=>$_SESSION['user_data'],'cmd'=>'getBookListByUID')),1);
foreach ($text as $row) {
?>
<tr>
<td><input type="checkbox" name="blid[]" value="<?=$row['blid']?>"></td>
<td><a href="clsList.php?blid=<?=$row['blid']?>"><?=$row['blist_name']?></a></td>
<td><?=$row['created_at']?></td>
<td><?=$row['deadline']?></td>
<td><?=$row['status']?></td>
</tr>
<?php
}
?>
</tbody>
</table>
<div class="col-md-5">
<div class="btn-group" data-toggle="buttons" style="margin: -9px auto;">
<label class="btn btn-default">
關閉表單
</label>
<label class="btn btn-default">
刪除表單
</label>
</div>
<div class="btn-group" data-toggle="buttons" style="margin: -9px auto;">
<a href="clsCreate.php" class="btn btn-primary">新增表單</a>
</div>
</div>
<div class="col-md-4">
<ul class="pagination" style="margin: 0 auto;">
<li><a href="#">«</a></li>
<li><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">»</a></li>
</ul>
</div>
</div>
</div>
</div>
<hr>
<footer>
<p>© Company 2013</p>
</footer>
</div>
<!-- /container -->
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
</body>
</html>