-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbackstage_publicMsg.html
177 lines (150 loc) · 6.82 KB
/
backstage_publicMsg.html
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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<!DOCTYPE html>
<html lang="zh-hant">
<head>
<meta charset="UTF-8">
<link rel="shortcut icon" href="./favicon.ico"/>
<link rel="bookmark" href="./favicon.ico"/>
<!-- icon -->
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css" integrity="sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p" crossorigin="anonymous"/>
<!-- bootstrap css -->
<link rel="stylesheet" href="./js/bootstrap/dist/css/bootstrap.min.css">
<!-- css -->
<link rel="stylesheet" href="./css/style.css">
<!-- jq -->
<script src="./js/jquery/dist/jquery.min.js"></script>
<!-- popper js -->
<script src="./js/@popperjs/core/dist/umd/popper.min.js"></script>
<!-- bootstrap -->
<script src="./js/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- vue -->
<script src="./js/vue.min.js"></script>
<!-- axios js -->
<script src="./js/axios/dist/axios.min.js"></script>
<!-- 只要有套用backstage.js 會自動在當aside頁籤上fontWeight:bold -->
<title>公版留言管理</title>
</head>
<body class="backstage_publicMsg-body">
<!------------------------------header---------------------------------->
<header class="header">
<nav class="nav navback" id="nav">
<div class="title"><h1>公版留言管理 |</h1>
<h2 class="smallTitle" v-if="title === 'menu'"> 留言檢舉管理</h2>
<h2 class="smallTitle" v-else="title === 'modify'">留言檢舉管理修改</h2>
</div>
<div class="logout" @click="logout">
<h3>
登出
</h3>
</div>
</nav>
</header>
<!-- wrapper請取自己的名稱,套用範例的格式 -->
<div id="backend" class="backstage-publicMsg-wrapper">
<!------------------------------內容---------------------------------->
<!------------------------------側邊選單---------------------------------->
<aside>
<div class="Logo"><a href="./index.html"><img src="./images/logo.png"></a></div>
<div class="username">
<h2 class="text">登入者 : <br> {{username}}</h2>
</div>
<ul class="option">
<li class="list" v-for="(list,key) in lists" :key="key">
<a :href="list.href">
<h3 class="listName">
{{list.list}}
</h3>
</a>
</li>
</ul>
</aside>
<!------------------------------主要內容---------------------------------->
<main>
<div class="Bcontainer">
<table v-if="menu">
<!-- 標題在thead class要按照下面方式寫才能吃到顏色-->
<thead>
<tr>
<!-- td_***是設定寬度 -->
<td class="thtd td_55"><h3>檢舉編號</h3></td>
<td class="thtd td_80"><h3>留言/回應編號</h3></td>
<td class="thtd td_75"><h3>檢舉人</h3></td>
<td class="thtd td_125"><h3>檢舉時間</h3></td>
<td class="thtd td_75"><h3>檢舉詳情</h3></td>
</tr>
</thead>
<!-- 內容在tbody,如果要新增行數就加一組tr -->
<tbody>
<tr is="row" v-for="(data,index) in pagedListdata" :id="data[0]" :id="data[0]" :num="data[1]" :lucky="data[2]" :answer="data[3]"></tr>
</tbody>
</table>
<table v-else="menu">
<tr>
<td class="td_30"><h4>檢舉編號</h4></td>
<td class="td_md">
<h4>{{modify_data[0]}}</h4>
</td>
</tr>
<tr>
</tr>
<td class="td_30"><h4>檢舉人</h4></td>
<td class="td_md">
<h4>{{modify_data[6]}}</h4>
</td>
<tr>
</tr>
<td class="td_30"><h4>檢舉事由</h4></td>
<td class="td_md">
<h4>{{modify_data[4]}}</h4>
</td>
<tr>
</tr>
<td class="td_30"><h4>留言內容</h4></td>
<td class="td_md">
<h4>{{modify_data[3]}}</h4>
</td>
<tr>
<td class="td_30"><h4>狀態</h4></td>
<td class="td_md">
<select class="input_status" v-model="modify_data[7]">
<option value="1" :selected="modify_data[7]">顯示</option>
<option value="0" :selected="modify_data[7]">隱藏</option>
</select>
</td>
</tr>
<tr>
<td class="td_100">
<div class="btn">
<div class="bkbtn_Blue" @click="cancel">
<h3>取消</h3>
</div>
<div class="bkbtn_Red" @click="change">
<h3>完成</h3>
</div>
</div>
</td>
</tr>
</table>
<paginate
for="sql"
:page-count="pageCount"
:margin-pages = "pageCount"
:prev-text="'«'"
:next-text="'»'"
:click-handler="pageCallback"
prev-class ="page-item"
prev-link-class ="page-link"
next-class ="page-item"
next-link-class ="page-link"
page-class ="page-item"
page-link-class ="page-link"
container-class="pagination" v-show="menu">
</paginate>
</div>
</main>
</div>
<!-- vue paginate -->
<script src="https://unpkg.com/[email protected]"></script>
<!-- 後台js -->
<script src="./js/backstage-publicMsg.js"></script>
</body>
</html>