Tokiwa Battle Royale  GE777
A PHP Battle Royale inspired game
 All Data Structures Namespaces Files Functions Variables Pages
1_admin_urlist.tpl.php
Go to the documentation of this file.
1 <?php if(!defined('IN_GAME')) exit('Access Denied'); if($urcmd == 'list') { ?>
2 <form method="post" name="urpage" onsubmit="admin.php">
3 <input type="hidden" name="mode" value="urlist">
4 <input type="hidden" id="urcmd" name="urcmd" value="list">
5 <?php if($pagecmd=='check') { ?>
6 <input type="hidden" name="pagecmd" value="check">
7 <input type="hidden" name="urorder" value="<?php echo $urorder?>">
8 <input type="hidden" name="urorder2" value="<?php echo $urorder2?>">
9 <?php } elseif($pagecmd=='find') { ?>
10 <input type="hidden" name="pagecmd" value="find">
11 <input type="hidden" name="checkinfo" value="<?php echo $checkinfo?>">
12 <input type="hidden" name="checkmode" value="<?php echo $checkmode?>">
13 <?php } ?>
14 <input type="hidden" name="start" value="<?php echo $start?>">
15 <input type="hidden" id="pagemode" name="pagemode" value="">
16 <input type="submit" value="上一页" onclick="$('pagemode').value='up';">
17 <span class="yellow"><?php echo $resultinfo?></span>
18 <input type="submit" value="下一页" onclick="$('pagemode').value='down';">
19 <?php if($urdata) { ?>
20 <table class="admin">
21 <tr>
22 <th>选</th>
23 <th>账号</th>
24 <th>密码</th>
25 <th>权限</th>
26 <th>最新游戏</th>
27 <th>ip</th>
28 <th>分数1</th>
29 <th>分数2</th>
30 <th>性别</th>
31 <th>头像</th>
32 <th>社团</th>
33 <th>成就</th>
34 <th>称号表</th>
35 <th>口头禅</th>
36 <th>杀人留言</th>
37 <th>遗言</th>
38 <th>操作</th>
39 </tr>
40 <?php if($urdata) { if(is_array($urdata)) { foreach($urdata as $n => $ur) { ?>
41 <tr>
42 <?php if($ur['groupid']>$mygroup) { ?>
43 <td><input type="checkbox" id="user_<?php echo $n?>" name="user_<?php echo $n?>" value="<?php echo $ur['uid']?>" disabled="true"></td>
44 <td><?php echo $ur['username']?></td>
45 <td><input type="text" name="pass_<?php echo $n?>" size="20" maxlength="20" value="无法修改" disabled="true"></td>
46 <td><?php echo $urgroup[$ur['groupid']]?></td>
47 <td>第<?php echo $ur['lastgame']?>局</td>
48 <td><?php echo $ur['ip']?></td>
49 <td><input type="text" name="credits_<?php echo $n?>" size="6" maxlength="10" value="<?php echo $ur['credits']?>" disabled="true"></td>
50 <td><input type="text" name="credits2_<?php echo $n?>" size="6" maxlength="10" value="<?php echo $ur['credits2']?>" disabled="true"></td>
51 <td>
52 <select name="gender_<?php echo $n?>" disabled="true">
53 <option value="0"
54 <?php if($ur['gender']==0) { ?>
55 selected
56 <?php } ?>
57 ><?php echo $ursex['0']?>
58 <option value="m"
59 <?php if($ur['gender']=='m') { ?>
60 selected
61 <?php } ?>
62 ><?php echo $ursex['m']?>
63 <option value="f"
64 <?php if($ur['gender']=='f') { ?>
65 selected
66 <?php } ?>
67 ><?php echo $ursex['f']?>
68 </select>
69 </td>
70 <td><input type="text" name="icon_<?php echo $n?>" size="2" maxlength="2" value="<?php echo $ur['icon']?>" disabled="true"></td>
71 <td><?php echo $clubinfo[$ur['club']]?></td>
72 <td><input type="text" name="achievement_<?php echo $n?>" size="20" maxlength="400" value="<?php echo $ur['achievement']?>" disabled="true"></td>
73 <td><input type="text" name="nicks_<?php echo $n?>" size="20" maxlength="300" value="<?php echo $ur['nicks']?>" disabled="true"></td>
74 <td><input type="text" name="motto_<?php echo $n?>" size="20" maxlength="60" value="<?php echo $ur['motto']?>" disabled="true"></td>
75 <td><input type="text" name="killmsg_<?php echo $n?>" size="20" maxlength="20" value="<?php echo $ur['killmsg']?>" disabled="true"></td>
76 <td><input type="text" name="lastword_<?php echo $n?>" size="20" maxlength="20" value="<?php echo $ur['lastword']?>" disabled="true"></td>
77 <td>
78 <input type="submit" value="修改" disabled="true">
79 </td>
80 <?php } else { ?>
81 <td><input type="checkbox" id="user_<?php echo $n?>" name="user_<?php echo $n?>" value="<?php echo $ur['uid']?>"></td>
82 <td><?php echo $ur['username']?></td>
83 <td><input type="text" name="pass_<?php echo $n?>" size="20" maxlength="20" value=""></td>
84 <td><?php echo $urgroup[$ur['groupid']]?></td>
85 <td>第<?php echo $ur['lastgame']?>局</td>
86 <td><?php echo $ur['ip']?></td>
87 <td><input type="text" name="credits_<?php echo $n?>" size="6" maxlength="10" value="<?php echo $ur['credits']?>"></td>
88 <td><input type="text" name="credits2_<?php echo $n?>" size="6" maxlength="10" value="<?php echo $ur['credits2']?>"></td>
89 <td>
90 <select name="gender_<?php echo $n?>">
91 <option value="0"
92 <?php if($ur['gender']==0) { ?>
93 selected
94 <?php } ?>
95 ><?php echo $ursex['0']?>
96 <option value="m"
97 <?php if($ur['gender']=='m') { ?>
98 selected
99 <?php } ?>
100 ><?php echo $ursex['m']?>
101 <option value="f"
102 <?php if($ur['gender']=='f') { ?>
103 selected
104 <?php } ?>
105 ><?php echo $ursex['f']?>
106 </select>
107 </td>
108 <td><input type="text" name="icon_<?php echo $n?>" size="2" maxlength="2" value="<?php echo $ur['icon']?>"></td>
109 <td><?php echo $clubinfo[$ur['club']]?></td>
110 <td><input type="text" name="achievement_<?php echo $n?>" size="20" maxlength="400" value="<?php echo $ur['achievement']?>"></td>
111 <td><input type="text" name="nicks_<?php echo $n?>" size="20" maxlength="300" value="<?php echo $ur['nicks']?>"></td>
112 <td><input type="text" name="motto_<?php echo $n?>" size="20" maxlength="60" value="<?php echo $ur['motto']?>"></td>
113 <td><input type="text" name="killmsg_<?php echo $n?>" size="20" maxlength="60" value="<?php echo $ur['killmsg']?>"></td>
114 <td><input type="text" name="lastword_<?php echo $n?>" size="20" maxlength="60" value="<?php echo $ur['lastword']?>"></td>
115 <td>
116 <input type="submit" value="修改" onclick="$('urcmd').value='edit_<?php echo $n?>_<?php echo $ur['uid']?>'">
117 </td>
118 <?php } ?>
119 </tr>
120 <?php } } ?>
121 <tr>
122 <td colspan=2><input type="checkbox" name="user_all" onchange="for(i=0; i<=<?php echo $n?>;i++){if(! $('user_'+i).disabled){if(this.checked==true){$('user_'+i).checked=true}else{$('user_'+i).checked=false}}}">全选</td>
123 <td colspan=12 style="text-align:center;">
124 <input type="submit" name="submit" value="封停选中玩家" onclick="$('urcmd').value='ban'">
125 <input type="submit" name="submit" value="解封选中玩家" onclick="$('urcmd').value='unban'">
126 <input type="submit" name="submit" value="删除选中玩家" onclick="$('urcmd').value='del'">
127 </td>
128 </tr>
129 <?php } ?>
130 </table>
131 <?php } ?>
132 </form>
133 <form method="post" name="backtolist" onsubmit="admin.php">
134 <input type="hidden" name="mode" value="urlist">
135 <input type="hidden" name="command" value="">
136 <input type="submit" name="submit" value="返回玩家帐户管理">
137 </form>
138 <?php } else { ?>
139 <form method="post" name="urlist" onsubmit="admin.php">
140 <input type="hidden" name="mode" value="urlist">
141 <input type="hidden" name="pagecmd" id="pagecmd" value="">
142 <input type="hidden" name="urcmd" value="list">
143 <table class="admin">
144 <tr>
145 <th>搜索指定帐户</th>
146 <th>查看帐户列表</th>
147 </tr>
148 <tr>
149 <td>
150 条件:
151 <select name="checkmode">
152 <option value="username" selected>用户名
153 <option value="ip">用户IP
154 </select>
155 类似
156 <input size="30" type="text" name="checkinfo" id="checkinfo" maxlength="30" />
157 </td>
158 <td>
159 按:
160 <select name="urorder">
161 <option value="groupid" selected>用户所属组
162 <option value="lastgame">最新游戏
163 <option value="uid">用户编号
164 </select>
165 <select name="urorder2">
166 <option value="DESC" selected>降序排列
167 <option value="ASC">升序排列
168 </select>
169 </td>
170 </tr>
171 <tr>
172 <td style="text-align:center;"><input style="width:100px;height:30px;" type="submit" value="搜索" onclick="$('pagecmd').value='find';"></td>
173 <td style="text-align:center;"><input style="width:100px;height:30px;" type="submit" value="查看" onclick="$('pagecmd').value='check';"></td>
174 </tr>
175 </table>
176 
177 </form>
178 <?php } ?>
$urgroup
Definition: admincfg.php:6
this disabled
$n
Definition: rank.php:51
$resultinfo
Definition: npcmng.php:13
$clubinfo
Definition: resources_1.php:26
【生存者数:<?php echo $alivenum?> 人】< input type="button"value="显示全部幸存者"onClick="$('alivemode').value='all';$('gbmode').value='none';postCmd('alive','alive.php');"></p > if($gamblingon &&$gamestate >=20) elseif($gamblingon &&$gamestate<=10)
Definition: 1_alive.tpl.php:18
$ursex
Definition: admincfg.php:8
value
Definition: 1_alive.tpl.php:10