-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.htm
184 lines (183 loc) · 5.86 KB
/
index.htm
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
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="author" content="CPRTeam" />
<title>無線電管理系統</title>
<link type="image/x-icon" href="favicon.ico" rel="shortcut icon" />
<link type="text/css" href="css/jquery-ui-1.8.23.custom.css" rel="stylesheet" />
<link type="text/css" href="css/index.css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.23.custom.min.js"></script>
<script type="text/javascript" src="js/jquery.store.js"></script>
<script type="text/javascript" src="js/func.js"></script>
<script type="text/javascript" src="js/default.js"></script>
<script type="text/javascript" src="js/moment.min.js"></script>
</head>
<body >
<div id="tabs">
<ul>
<li><a onclick="is_in_borrow=false;is_in_return=false;load_item()" href="#tab_item_list">設備列表</a></li>
<li><a onclick="is_in_borrow=false;is_in_return=false;load_member()" href="#tab_member_list">人員列表</a></li>
<li><a onclick="load_borrow()" href="#tab_borrow">設備借出</a></li>
<li><a onclick="load_return()" href="#tab_return">設備歸還</a></li>
<li><a onclick="data_IO()" href="#tab_dataIO">匯出/入</a></li>
<li><a href="#tab_INIT">初始化</a></li>
</ul>
<div id="tab_item_list">
設備數量:<span id="sp_item_count"></span> 已借出數:<span id="sp_item_count_borrow"></span>
<!--
<br />
條碼掃描區:<input type="text" id="barcode_item" />
-->
<table width="100%" class="tabstyle_def">
<thead>
<tr>
<th>設備編號</th>
<th>設備名稱</th>
<th>借出人</th>
<th>借出時間</th>
<th>歸還時間</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div id="tab_member_list">
人員數量:<span id="sp_member_count"></span>
<!--
<br />
條碼掃描區:<input type="text" id="barcode_member" />
-->
<table width="100%" class="tabstyle_def">
<thead>
<tr>
<th>人員編號</th>
<th>人員名稱</th>
<th>組別</th>
<th>未歸還數量</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div id="tab_borrow">
<table width="100%" class="tabstyle_def">
<tr>
<th width="120" align="right">條碼掃描區:</th>
<td><input type="text" id="barcode_borrow" style="width:99%"/></td>
</tr>
<tr>
<th width="120" align="right">借出人編號:</th>
<td><div id="txt_borrow_who"></div></td>
</tr>
<tr>
<th align="right">設備編號:</th>
<td><div id="txt_borrow_item"></div></td>
</tr>
<tr>
<th align="right">借出人:</th>
<td id="td_borrow_who"></td>
</tr>
<tr>
<th align="right">設備名稱:</th>
<td id="td_borrow_item"></td>
</tr>
<tr>
<td align="center" colspan="2" id="td_borrow_msg" style="font-size:5em;" ></td>
</tr>
</table>
</div>
<div id="tab_return">
<table width="100%" class="tabstyle_def">
<tr>
<th width="120" align="right">設備編號:</th>
<td><input type="text" id="txt_return_item" style="width:99%"></td>
</tr>
<tr>
<th align="right">借出人:</th>
<td id="td_return_who"></td>
</tr>
<tr>
<th align="right">設備名稱:</th>
<td id="td_return_item"></td>
</tr>
<tr>
<td align="center" colspan="2" id="td_return_msg" style="font-size:5em;" ></td>
</tr>
</table>
</div>
<div id="tab_dataIO">
<table width="100%" class="tabstyle_def">
<tr>
<th width="50%" align="center">匯出資料</th>
<th width="50%" align="center">匯入資料</th>
</tr>
<tr>
<td>
<div align="center">
<button id="export_file">下載存檔</button>
</div>
<textarea id="txt_export" style="display: none;" rows="25"></textarea>
</td>
<td>
<div align="center">
<input type="file" id="import_input" />
<button id="but_import_data">匯入</button>
</div>
<textarea id="txt_import" style="display: none;" rows="25"></textarea>
</td>
</tr>
</table>
</div>
<div id="tab_INIT">
<table width="100%" class="tabstyle_def">
<tr>
<th colspan="3" width="100%" align="center">初始化成員資料</th>
</tr>
<tr>
<td colspan="3">
<div align="center">
<button onclick="download_sample()">下載範本</button>
</div>
</td>
</tr>
<tr>
<td colspan="3">
<div align="center">
<input type="file" id="init_data" />
<button id="but_init">匯入</button>
</div>
<textarea id="txt_import" style="display: none;" rows="25"></textarea>
</td>
</tr>
<tr>
<th colspan="3" width="100%" align="center">連結 Google 試算表</th>
</tr>
<tr>
<td colspan="3">
<div align="center">
範本:<a href="https://docs.google.com/spreadsheets/d/1KH8TnIbhIxAsewlRky3AFiFM7m2J9VX_sA-JSxWr4rc/edit?usp=sharing">https://docs.google.com/spreadsheets/d/1KH8TnIbhIxAsewlRky3AFiFM7m2J9VX_sA-JSxWr4rc/edit?usp=sharing</a>
<br><font color="red">*請在文件中選擇"檔案"->"發佈到網路" 並點選"發佈"。</font>
<br><font color="red">*文件中所有的儲存格格式請用"文字"。</font>
</div>
</td>
</tr>
<tr>
<td width="10%" align="right">文件Key值:</td>
<td width="80%"><input type="text" id="txt_googledoc_key" style="width:99%"/></td>
<td width="10%"><button id="but_googledoc_confirm">確定</button></td>
</tr>
<tr>
<td colspan="3">
<div align="center">
<font color="red">*文件Key值為文件的分享網址中的一雜湊碼,如範本網址來說,Key值為 1KH8TnIbhIxAsewlRky3AFiFM7m2J9VX_sA-JSxWr4rc</font>
</div>
</td>
</tr>
</table>
</div>
</div>
</body>
</html>