Tokiwa Battle Royale  GE777
A PHP Battle Royale inspired game
 All Data Structures Namespaces Files Functions Variables Pages
1_admin_pcmng.tpl.php
Go to the documentation of this file.
1 <?php if(!defined('IN_GAME')) exit('Access Denied'); if($command=='check') { ?>
2 <form method="post" name="pcmng" onsubmit="admin.php">
3 <input type="hidden" name="mode" value="pcmng">
4 <input type="hidden" id="command" name="command" value="list">
5 <input type="hidden" name="start" value="<?php echo $start?>">
6 <input type="hidden" name="checkmode" value="<?php echo $checkmode?>">
7 <input type="hidden" name="checkinfo" value="<?php echo $checkinfo?>">
8 <input type="hidden" name="name" value="<?php echo $pc['name']?>">
9 <input type="hidden" name="pid" value="<?php echo $pc['pid']?>">
10 
11 <input type="hidden" name="itm0" value="<?php echo $pc['itm0']?>">
12 <input type="hidden" name="itme0" value="<?php echo $pc['itme0']?>">
13 <input type="hidden" name="itmk0" value="<?php echo $pc['itmk0']?>">
14 <input type="hidden" name="itms0" value="<?php echo $pc['itms0']?>">
15 <input type="hidden" name="itmsk0" value="<?php echo $pc['itmsk0']?>">
16 <table class="admin">
17 <tr>
18 <th>属性名</th>
19 <th>属性值</th>
20 <th>装备属性</th>
21 <th>装备数值</th>
22 <th>包裹属性</th>
23 <th>包裹数值</th>
24 </tr>
25 <tr>
26 <td>姓名</td>
27 <td><?php echo $pc['name']?></td>
28 <td>武器</td>
29 <td><input size="20" type="text" name="wep" value="<?php echo $pc['wep']?>" maxlength="30"></td>
30 <td>包裹1</td>
31 <td><input size="20" type="text" name="itm1" value="<?php echo $pc['itm1']?>" maxlength="30"></td>
32 </tr>
33 <tr>
34 <td>性别</td>
35 <td><input size="20" type="text" name="gd" value="<?php echo $pc['gd']?>" maxlength="20"></td>
36 <td>类型</td>
37 <td><input size="20" type="text" name="wepk" value="<?php echo $pc['wepk']?>" maxlength="20"></td>
38 <td>类型</td>
39 <td><input size="20" type="text" name="itmk1" value="<?php echo $pc['itmk1']?>" maxlength="20"></td>
40 </tr>
41 <tr>
42 <td>学号</td>
43 <td><input size="20" type="text" name="sNo" value="<?php echo $pc['sNo']?>" maxlength="20"></td>
44 <td>效果</td>
45 <td><input size="20" type="text" name="wepe" value="<?php echo $pc['wepe']?>" maxlength="20"></td>
46 <td>效果</td>
47 <td><input size="20" type="text" name="itme1" value="<?php echo $pc['itme1']?>" maxlength="20"></td>
48 </tr>
49 <tr>
50 <td>头像</td>
51 <td><input size="20" type="text" name="icon" value="<?php echo $pc['icon']?>" maxlength="20"></td>
52 <td>耐久</td>
53 <td><input size="20" type="text" name="weps" value="<?php echo $pc['weps']?>" maxlength="20"></td>
54 <td>耐久</td>
55 <td><input size="20" type="text" name="itms1" value="<?php echo $pc['itms1']?>" maxlength="20"></td>
56 </tr>
57 <tr>
58 <td>社团</td>
59 <td><input size="20" type="text" name="club" value="<?php echo $pc['club']?>" maxlength="20"></td>
60 <td>子类型</td>
61 <td><input size="20" type="text" name="wepsk" value="<?php echo $pc['wepsk']?>" maxlength="20"></td>
62 <td>子类型</td>
63 <td><input size="20" type="text" name="itmsk1" value="<?php echo $pc['itmsk1']?>" maxlength="20"></td>
64 </tr>
65 <tr>
66 <td>生命</td>
67 <td><input size="20" type="text" name="hp" value="<?php echo $pc['hp']?>" maxlength="20"></td>
68 <td>防具(体)</td>
69 <td><input size="20" type="text" name="arb" value="<?php echo $pc['arb']?>" maxlength="30"></td>
70 <td>包裹2</td>
71 <td><input size="20" type="text" name="itm2" value="<?php echo $pc['itm2']?>" maxlength="30"></td>
72 </tr>
73 <tr>
74 <td>最大生命</td>
75 <td><input size="20" type="text" name="mhp" value="<?php echo $pc['mhp']?>" maxlength="20"></td>
76 <td>类型</td>
77 <td><input size="20" type="text" name="arbk" value="<?php echo $pc['arbk']?>" maxlength="20"></td>
78 <td>类型</td>
79 <td><input size="20" type="text" name="itmk2" value="<?php echo $pc['itmk2']?>" maxlength="20"></td>
80 </tr>
81 <tr>
82 <td>体力</td>
83 <td><input size="20" type="text" name="sp" value="<?php echo $pc['sp']?>" maxlength="20"></td>
84 <td>效果</td>
85 <td><input size="20" type="text" name="arbe" value="<?php echo $pc['arbe']?>" maxlength="20"></td>
86 <td>效果</td>
87 <td><input size="20" type="text" name="itme2" value="<?php echo $pc['itme2']?>" maxlength="20"></td>
88 </tr>
89 <tr>
90 <td>最大体力</td>
91 <td><input size="20" type="text" name="msp" value="<?php echo $pc['msp']?>" maxlength="20"></td>
92 <td>耐久</td>
93 <td><input size="20" type="text" name="arbs" value="<?php echo $pc['arbs']?>" maxlength="20"></td>
94 <td>耐久</td>
95 <td><input size="20" type="text" name="itms2" value="<?php echo $pc['itms2']?>" maxlength="20"></td>
96 </tr>
97 <tr>
98 <td>基础攻击</td>
99 <td><input size="20" type="text" name="att" value="<?php echo $pc['att']?>" maxlength="20"></td>
100 <td>子类型</td>
101 <td><input size="20" type="text" name="arbsk" value="<?php echo $pc['arbsk']?>" maxlength="20"></td>
102 <td>子类型</td>
103 <td><input size="20" type="text" name="itmsk2" value="<?php echo $pc['itmsk2']?>" maxlength="20"></td>
104 </tr>
105 <tr>
106 <td>基础防御</td>
107 <td><input size="20" type="text" name="def" value="<?php echo $pc['def']?>" maxlength="20"></td>
108 <td>防具(头)</td>
109 <td><input size="20" type="text" name="arh" value="<?php echo $pc['arh']?>" maxlength="30"></td>
110 <td>包裹3</td>
111 <td><input size="20" type="text" name="itm3" value="<?php echo $pc['itm3']?>" maxlength="30"></td>
112 </tr>
113 <tr>
114 <td>位置</td>
115 <td><input size="20" type="text" name="pls" value="<?php echo $pc['pls']?>" maxlength="20"></td>
116 <td>类型</td>
117 <td><input size="20" type="text" name="arhk" value="<?php echo $pc['arhk']?>" maxlength="20"></td>
118 <td>类型</td>
119 <td><input size="20" type="text" name="itmk3" value="<?php echo $pc['itmk3']?>" maxlength="20"></td>
120 </tr>
121 <tr>
122 <td>等级</td>
123 <td><input size="20" type="text" name="lvl" value="<?php echo $pc['lvl']?>" maxlength="20"></td>
124 <td>效果</td>
125 <td><input size="20" type="text" name="arhe" value="<?php echo $pc['arhe']?>" maxlength="20"></td>
126 <td>效果</td>
127 <td><input size="20" type="text" name="itme3" value="<?php echo $pc['itme3']?>" maxlength="20"></td>
128 </tr>
129 <tr>
130 <td>经验</td>
131 <td><input size="20" type="text" name="exp" value="<?php echo $pc['exp']?>" maxlength="20"></td>
132 <td>耐久</td>
133 <td><input size="20" type="text" name="arhs" value="<?php echo $pc['arhs']?>" maxlength="20"></td>
134 <td>耐久</td>
135 <td><input size="20" type="text" name="itms3" value="<?php echo $pc['itms3']?>" maxlength="20"></td>
136 </tr>
137 <tr>
138 <td>钱</td>
139 <td><input size="20" type="text" name="money" value="<?php echo $pc['money']?>" maxlength="20"></td>
140 <td>子类型</td>
141 <td><input size="20" type="text" name="arhsk" value="<?php echo $pc['arhsk']?>" maxlength="20"></td>
142 <td>子类型</td>
143 <td><input size="20" type="text" name="itmsk3" value="<?php echo $pc['itmsk3']?>" maxlength="20"></td>
144 </tr>
145 <tr>
146 <td>对手</td>
147 <td><input size="20" type="text" name="bid" value="<?php echo $pc['bid']?>" maxlength="20"></td>
148 <td>防具(腕)</td>
149 <td><input size="20" type="text" name="ara" value="<?php echo $pc['ara']?>" maxlength="30"></td>
150 <td>包裹4</td>
151 <td><input size="20" type="text" name="itm4" value="<?php echo $pc['itm4']?>" maxlength="30"></td>
152 </tr>
153 <tr>
154 <td>受伤</td>
155 <td><input size="20" type="text" name="inf" value="<?php echo $pc['inf']?>" maxlength="20"></td>
156 <td>类型</td>
157 <td><input size="20" type="text" name="arak" value="<?php echo $pc['arak']?>" maxlength="20"></td>
158 <td>类型</td>
159 <td><input size="20" type="text" name="itmk4" value="<?php echo $pc['itmk4']?>" maxlength="20"></td>
160 </tr>
161 <tr>
162 <td>怒气</td>
163 <td><input size="20" type="text" name="rage" value="<?php echo $pc['rage']?>" maxlength="20"></td>
164 <td>效果</td>
165 <td><input size="20" type="text" name="arae" value="<?php echo $pc['arae']?>" maxlength="20"></td>
166 <td>效果</td>
167 <td><input size="20" type="text" name="itme4" value="<?php echo $pc['itme4']?>" maxlength="20"></td>
168 </tr>
169 <tr>
170 <td>基础姿态</td>
171 <td><input size="20" type="text" name="pose" value="<?php echo $pc['pose']?>" maxlength="20"></td>
172 <td>耐久</td>
173 <td><input size="20" type="text" name="aras" value="<?php echo $pc['aras']?>" maxlength="20"></td>
174 <td>耐久</td>
175 <td><input size="20" type="text" name="itms4" value="<?php echo $pc['itms4']?>" maxlength="20"></td>
176 </tr>
177 <tr>
178 <td>应战策略</td>
179 <td><input size="20" type="text" name="tactic" value="<?php echo $pc['tactic']?>" maxlength="20"></td>
180 <td>子类型</td>
181 <td><input size="20" type="text" name="arask" value="<?php echo $pc['arask']?>" maxlength="20"></td>
182 <td>子类型</td>
183 <td><input size="20" type="text" name="itmsk4" value="<?php echo $pc['itmsk4']?>" maxlength="20"></td>
184 </tr>
185 <tr>
186 <td>杀人数</td>
187 <td><input size="20" type="text" name="killnum" value="<?php echo $pc['killnum']?>" maxlength="20"></td>
188 <td>防具(足)</td>
189 <td><input size="20" type="text" name="arf" value="<?php echo $pc['arf']?>" maxlength="30"></td>
190 <td>包裹5</td>
191 <td><input size="20" type="text" name="itm5" value="<?php echo $pc['itm5']?>" maxlength="30"></td>
192 </tr>
193 <tr>
194 <td>殴熟</td>
195 <td><input size="20" type="text" name="wp" value="<?php echo $pc['wp']?>" maxlength="20"></td>
196 <td>类型</td>
197 <td><input size="20" type="text" name="arfk" value="<?php echo $pc['arfk']?>" maxlength="20"></td>
198 <td>类型</td>
199 <td><input size="20" type="text" name="itmk5" value="<?php echo $pc['itmk5']?>" maxlength="20"></td>
200 </tr>
201 <tr>
202 <td>斩熟</td>
203 <td><input size="20" type="text" name="wk" value="<?php echo $pc['wk']?>" maxlength="20"></td>
204 <td>效果</td>
205 <td><input size="20" type="text" name="arfe" value="<?php echo $pc['arfe']?>" maxlength="20"></td>
206 <td>效果</td>
207 <td><input size="20" type="text" name="itme5" value="<?php echo $pc['itme5']?>" maxlength="20"></td>
208 </tr>
209 <tr>
210 <td>枪熟</td>
211 <td><input size="20" type="text" name="wg" value="<?php echo $pc['wg']?>" maxlength="20"></td>
212 <td>耐久</td>
213 <td><input size="20" type="text" name="arfs" value="<?php echo $pc['arfs']?>" maxlength="20"></td>
214 <td>耐久</td>
215 <td><input size="20" type="text" name="itms5" value="<?php echo $pc['itms5']?>" maxlength="20"></td>
216 </tr>
217 <tr>
218 <td>投熟</td>
219 <td><input size="20" type="text" name="wc" value="<?php echo $pc['wc']?>" maxlength="20"></td>
220 <td>子类型</td>
221 <td><input size="20" type="text" name="arfsk" value="<?php echo $pc['arfsk']?>" maxlength="20"></td>
222 <td>子类型</td>
223 <td><input size="20" type="text" name="itmsk5" value="<?php echo $pc['itmsk5']?>" maxlength="20"></td>
224 </tr>
225 <tr>
226 <td>爆熟</td>
227 <td><input size="20" type="text" name="wd" value="<?php echo $pc['wd']?>" maxlength="20"></td>
228 <td>饰品</td>
229 <td><input size="20" type="text" name="art" value="<?php echo $pc['art']?>" maxlength="30"></td>
230 <td>包裹6</td>
231 <td><input size="20" type="text" name="itm6" value="<?php echo $pc['itm6']?>" maxlength="30"></td>
232 </tr>
233 <tr>
234 <td>灵熟</td>
235 <td><input size="20" type="text" name="wf" value="<?php echo $pc['wf']?>" maxlength="20"></td>
236 <td>类型</td>
237 <td><input size="20" type="text" name="artk" value="<?php echo $pc['artk']?>" maxlength="20"></td>
238 <td>类型</td>
239 <td><input size="20" type="text" name="itmk6" value="<?php echo $pc['itmk6']?>" maxlength="20"></td>
240 </tr>
241 <tr>
242 <td>队伍名称</td>
243 <td><input size="20" type="text" name="teamID" value="<?php echo $pc['teamID']?>" maxlength="20"></td>
244 <td>效果</td>
245 <td><input size="20" type="text" name="arte" value="<?php echo $pc['arte']?>" maxlength="20"></td>
246 <td>效果</td>
247 <td><input size="20" type="text" name="itme6" value="<?php echo $pc['itme6']?>" maxlength="20"></td>
248 </tr>
249 <tr>
250 <td>成就</td>
251 <td><input size="20" type="text" name="achievement" value="<?php echo $pc['achievement']?>" maxlength="500"></td>
252 <td>耐久</td>
253 <td><input size="20" type="text" name="arts" value="<?php echo $pc['arts']?>" maxlength="20"></td>
254 <td>耐久</td>
255 <td><input size="20" type="text" name="itms6" value="<?php echo $pc['itms6']?>" maxlength="20"></td>
256 </tr>
257 <tr>
258 <td>歌魂</td>
259 <td><input size="20" type="text" name="ss" value="<?php echo $pc['ss']?>" maxlength="20"></td>
260 <td>子类型</td>
261 <td><input size="20" type="text" name="artsk" value="<?php echo $pc['artsk']?>" maxlength="20"></td>
262 <td>子类型</td>
263 <td><input size="20" type="text" name="itmsk6" value="<?php echo $pc['itmsk6']?>" maxlength="20"></td>
264 </tr>
265 <tr>
266 <td>最大歌魂</td>
267 <td><input size="20" type="text" name="mss" value="<?php echo $pc['mss']?>" maxlength="20"></td>
268 <td></td>
269 <td></td>
270 <td></td>
271 <td></td>
272 </tr>
273 </table>
274 <input type="submit" value="修改玩家数值" onclick="$('command').value = 'submitedit'">
275 </form>
276 <form method="post" name="pcmng" onsubmit="admin.php">
277 <input type="hidden" name="mode" value="pcmng">
278 <input type="hidden" name="command" value="list">
279 <input type="submit" value="返回玩家管理">
280 </form>
281 <?php } else { ?>
282 <form method="post" name="pcmng" onsubmit="admin.php">
283 <input type="hidden" name="mode" value="pcmng">
284 <input type="hidden" id="command" name="command" value="find">
285 <input type="hidden" name="start" value="<?php echo $start?>">
286 <input type="hidden" name="pagemode" value="">
287 <table class="admin">
288 <tr>
289 <th colspan=2>查找玩家</th>
290 </tr>
291 <tr>
292 <td>条件:
293 <select name="checkmode">
294 <option value="name"
295 <?php if($checkmode == 'name') { ?>
296 selected
297 <?php } ?>
298 >玩家名
299 <option value="teamID"
300 <?php if($checkmode == 'teamID') { ?>
301 selected
302 <?php } ?>
303 >队伍名称
304 <option value="club"
305 <?php if($checkmode == 'club') { ?>
306 selected
307 <?php } ?>
308 >社团
309 </select>类似
310 </td>
311 <td>
312 <input size="30" type="text" name="checkinfo" id="checkinfo" value="<?php echo $checkinfo?>" maxlength="30"><input type="submit" value="查找玩家" onclick="javascript:document.pcmng.pagemode.value='ref'">
313 </td>
314 </tr>
315 </table>
316 <br>
317 <input type="submit" value="上一页" onclick="javascript:document.pcmng.pagemode.value='up';">
318 <span class="yellow"><?php echo $resultinfo?></span>
319 <input type="submit" value="下一页" onclick="javascript:document.pcmng.pagemode.value='down';">
320 <table class="admin">
321 <tr>
322 <th>选</th>
323 <th>姓名</th>
324 <th>性别</th>
325 <th>学号</th>
326 <th>等级</th>
327 <th>位置</th>
328 <th>队伍</th>
329 <th>状态</th>
330 <th>体力</th>
331 <th>生命</th>
332 <th>社团</th>
333 <th>金钱</th>
334 <th>熟练</th>
335 <th>武器</th>
336 <th>操作</th>
337 </tr>
338 <?php if(isset($pcdata)) { if(is_array($pcdata)) { foreach($pcdata as $n => $pc) { ?>
339 <tr>
340 <td><input type="checkbox" id="pc_<?php echo $n?>" name="pc_<?php echo $n?>" value="<?php echo $pc['pid']?>"></td>
341 <td><span
342 <?php if($pc['hp']<=0 || $pc['state']>=10) { ?>
343 class="red"
344 <?php } ?>
345 ><?php echo $pc['name']?></span></td>
346 <td><?php echo $sexinfo[$pc['gd']]?></td>
347 <td><?php echo $pc['sNo']?></td>
348 <td><?php echo $pc['lvl']?></td>
349 <td><?php echo $plsinfo[$pc['pls']]?></td>
350 <td><?php echo $pc['teamID']?></td>
351 <td><span
352 <?php if($pc['state']>=10) { ?>
353 class="red"
354 <?php } ?>
355 ><?php echo $stateinfo[$pc['state']]?></span></td>
356 <td><?php echo $pc['sp']?>/<?php echo $pc['msp']?></td>
357 <td><?php echo $pc['hp']?>/<?php echo $pc['mhp']?></td>
358 <td><?php echo $clubinfo[$pc['club']]?></td>
359 <td><?php echo $pc['money']?></td>
360 <td><?php echo $pc['wp']?>/<?php echo $pc['wk']?>/<?php echo $pc['wg']?>/<?php echo $pc['wc']?>/<?php echo $pc['wd']?>/<?php echo $pc['wf']?></td>
361 <td><?php echo $pc['wep']?>/<?php echo $pc['wepe']?>/<?php echo $pc['weps']?></td>
362 <td><input type="submit" value="查看/修改详细资料" onclick="$('command').value='edit_<?php echo $n?>_<?php echo $pc['pid']?>'"></td>
363 </tr>
364 <?php } } ?>
365 <tr>
366 <td colspan="2">
367 <input type="checkbox" name="pc_all" onchange="for(i=0; i<=<?php echo $n?>;i++){if(! $('pc_'+i).disabled){if(this.checked==true){$('pc_'+i).checked=true}else{$('pc_'+i).checked=false}}}">全选
368 </td>
369 <td colspan="13" style="text-align:center">
370 <input type="submit" value="复活所选玩家" onclick="$('command').value='live'">
371 <input type="submit" value="杀死所选玩家" onclick="$('command').value='kill'">
372 <input type="submit" value="清除所选玩家" onclick="$('command').value='del'">
373 </td>
374 </tr>
375 <?php } ?>
376 </table>
377 
378 </form>
379 <?php } ?>
$sexinfo
Definition: resources_1.php:51
$n
Definition: rank.php:51
$plsinfo
$resultinfo
Definition: npcmng.php:13
$clubinfo
Definition: resources_1.php:26
value
Definition: 1_alive.tpl.php:10
$stateinfo