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