-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbackstage_member.html
187 lines (163 loc) · 7.89 KB
/
backstage_member.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
178
179
180
181
182
183
184
185
186
187
<!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="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<!-- 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>
<!-- 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="backStageBody">
<!------------------------------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 ==='more'"> 查看會員資料</h2>
</div>
<div class="logout" @click="logout">
<h3>
登出
</h3>
</div>
</nav>
</header>
<!-- wrapper請取自己的名稱,套用範例的格式 -->
<div id="backend" class="backstage-member-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">
<div class="editbar" v-if="menu">
<input type="text" v-model="Sdata" placeholder="搜尋會員帳號" @keyup="search(Sdata)">
<i class="fas fa-search fa-2x" type="submit"></i>
<!-- <div class="bkbtn_Blue"><h3>新增籤詩</h3></div> -->
</div>
<table v-if="menu">
<!-- 標題在thead class要按照下面方式寫才能吃到顏色-->
<thead>
<tr>
<!-- td_***是設定寬度 -->
<td class="thtd td_10"><h3>ID</h3></td>
<td class="thtd td_25"><h3>帳號</h3></td>
<td class="thtd td_50"><h3>E-mail</h3></td>
<td class="thtd td_25"><h3>等級</h3></td>
<td class="thtd td_25"><h3>其他資訊</h3></td>
</tr>
</thead>
<!-- 內容在tbody,如果要新增行數就加一組tr -->
<tbody>
<tr is="row" v-for="(data,index) in pagedListdata" :id="data[0]" :index="index" :acct="data[1]" :email="data[2]" :status="data[3]" @update="updateStatus"></tr>
</tbody>
</table>
<table v-else="menu" style="overflow-y: scroll; height: 73vh;" class="MDetail">
<tr>
<td class="thtd td_25"><h4>ID</h4></td>
<td class="td_75"><h4>{{modify_data[0].ID}}</h4></td>
</tr>
<tr>
<td class="thtd td_25"><h4>帳號</h4></td>
<td class="td_75"><h4>{{modify_data[0].USERNAME}}</h4></td>
</tr>
<tr>
<td class="thtd td_25"><h4>信箱</h4></td>
<td class="td_75"><h4>{{modify_data[0].EMAIL}}</h4></td>
</tr>
<tr>
<td class="thtd td_25"><h4>暱稱</h4></td>
<td class="td_75"><h4>{{modify_data[0].NICKNAME}}</h4></td>
</tr>
<tr>
<td class="thtd td_25"><h4>關於</h4></td>
<td class="td_75"><h4>{{modify_data[0].ABOUT}}</h4></td>
</tr>
<tr>
<td class="thtd td_25"><h4>年齡</h4></td>
<td class="td_75"><h4>{{modify_data[0].AGE}}</h4></td>
</tr>
<tr>
<td class="thtd td_25"><h4>興趣</h4></td>
<td class="td_75"><h4>{{interest_data}}</h4></td>
</tr>
<tr>
<td class="thtd td_25"><h4>居住地</h4></td>
<td class="td_75"><h4>{{modify_data[0].AREA}}</h4></td>
</tr>
<tr>
<td class="thtd td_25"><h4>職業</h4></td>
<td class="td_75"><h4>{{modify_data[0].JOB}} / {{modify_data[0].JOB_DETAIL}}</h4></td>
</tr>
<tr>
<td class="thtd td_25"><h4>學歷</h4></td>
<td class="td_75"><h4>{{modify_data[0].EDUCATION}} / {{modify_data[0].SCHOOL}}</h4></td>
</tr>
<tr>
<td class="thtd td_25"><h4>性別</h4></td>
<td class="td_75"><h4>{{modify_data[0].SEX}}</h4></td>
</tr>
<tr>
<td class="thtd td_25"><h4>性取向</h4></td>
<td class="td_75"><h4>{{modify_data[0].SO}}</h4></td>
</tr>
<tr>
<td class="thtd td_25"><h4>接受月老配對</h4></td>
<td class="td_75"><h4>{{modify_data[0].PAIR_PRIV}}</h4></td>
</tr>
<tr>
<td class="thtd td_25"><h4>對外公開個人資訊</h4></td>
<td class="td_75"><h4>{{modify_data[0].PUBLIC_PRIV}}</h4></td>
</tr>
</table>
<paginate
for="sql"
:page-count="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-member.js"></script>
</body>
</html>