Tokiwa Battle Royale  GE777
A PHP Battle Royale inspired game
 All Data Structures Namespaces Files Functions Variables Pages
1_admin_gameinfomng.tpl.php
Go to the documentation of this file.
1 <?php if(!defined('IN_GAME')) exit('Access Denied'); ?>
2 <form method="post" name="gameinfomng" onsubmit="admin.php">
3 <input type="hidden" name="mode" value="gameinfomng">
4 <input type="hidden" id="command" name="command" value="">
5 
6 <table class="admin">
7 <tr>
8 <th>游戏变量</th>
9 <th>当前数据</th>
10 <th>操作</th>
11 </tr>
12 
13 <tr>
14 <td>游戏局数</td>
15 <td><?php echo $gamenum?></td>
16 <td></td>
17 </tr>
18 <tr>
19 <td>游戏状态</td>
20 <td><?php echo $gstate[$gamestate]?></td>
21 <td>
22 <?php if($gamestate == 0) { ?>
23 <input type="submit" value="准备开始" onclick="$('command').value='gsedit_10'">
24 <?php } elseif($gamestate == 10) { ?>
25 <input type="submit" value="开始游戏" onclick="$('command').value='gsedit_20'"><br>
26 <input type="submit" value="结束游戏" onclick="$('command').value='gsedit_0'">
27 <?php } elseif($gamestate == 20) { ?>
28 <input type="submit" value="停止激活" onclick="$('command').value='gsedit_30'"><br>
29 <input type="submit" value="进入连斗" onclick="$('command').value='gsedit_40'"><br>
30 <input type="submit" value="进入死斗" onclick="$('command').value='gsedit_50'"><br>
31 <input type="submit" value="结束游戏" onclick="$('command').value='gsedit_0'">
32 <?php } elseif($gamestate == 30) { ?>
33 <input type="submit" value="进入连斗" onclick="$('command').value='gsedit_40'"><br>
34 <input type="submit" value="进入死斗" onclick="$('command').value='gsedit_50'"><br>
35 <input type="submit" value="结束游戏" onclick="$('command').value='gsedit_0'">
36 <?php } elseif($gamestate == 40) { ?>
37 <input type="submit" value="进入死斗" onclick="$('command').value='gsedit_50'"><br>
38 <input type="submit" value="结束游戏" onclick="$('command').value='gsedit_0'">
39 <?php } elseif($gamestate == 50) { ?>
40 <input type="submit" value="结束游戏" onclick="$('command').value='gsedit_0'">
41 <?php } ?>
42 </td>
43 </tr>
44 <tr>
45 <td>
46 <?php if($gamestate) { ?>
47 当前游戏开始时间
48 <?php } else { ?>
49 下局游戏开始时间
50 <?php } ?>
51 </td>
52 <td>
53 <input type="text" name="setyear" size="4" value="<?php echo $styear?>"><?php echo $lang['year']?>
54 <input type="text" name="setmonth" size="2" value="<?php echo $stmonth?>"><?php echo $lang['month']?>
55 <input type="text" name="setday" size="2" value="<?php echo $stday?>"><?php echo $lang['day']?>
56 <input type="text" name="sethour" size="2" value="<?php echo $sthour?>"><?php echo $lang['hour']?>
57 <input type="text" name="setmin" size="2" value="<?php echo $stmin?>"><?php echo $lang['min']?>
58 </td>
59 <td>
60 <?php if($gamestate) { ?>
61 <input type="submit" value="无法设定" disabled>
62 <?php } else { ?>
63 <input type="submit" value="设定时间" onclick="$('command').value='sttimeedit'">
64 <?php } ?>
65 </td>
66 </tr>
67 <tr>
68 <td>当前天气</td>
69 <td>
70 <select name="iweather">
71 <?php if(is_array($wthinfo)) { foreach($wthinfo as $n => $wth) { ?>
72 <option value="<?php echo $n?>"
73 <?php if($weather == $n) { ?>
74 selected
75 <?php } ?>
76 ><?php echo $wth?>
77 <?php } } ?>
78 </select>
79 </td>
80 <td><input type="submit" value="更改天气" onclick="$('command').value='wthedit'"></td>
81 </tr>
82 <tr>
83 <td>禁区列表</td>
84 <td><?php echo $arealiststr?></td>
85 <td></td>
86 </tr>
87 <tr>
88 <td>下次禁区列表</td>
89 <td><?php echo $nextarealiststr?></td>
90 <td></td>
91 </tr>
92 <tr>
93 <td>已有禁区数目</td>
94 <td><?php echo $areanum?></td>
95 <td></td>
96 </tr>
97 <tr>
98 <td>下次禁区时间</td>
99 <td>
100 <input type="text" name="areayear" size="4" disabled value="<?php echo $aryear?>"><?php echo $lang['year']?>
101 <input type="text" name="areamonth" size="2" disabled value="<?php echo $armonth?>"><?php echo $lang['month']?>
102 <input type="text" name="areaday" size="2" disabled value="<?php echo $arday?>"><?php echo $lang['day']?>
103 <input type="text" name="areahour" size="2" disabled value="<?php echo $arhour?>"><?php echo $lang['hour']?>
104 <input type="text" name="areamin" size="2" disabled value="<?php echo $armin?>"><?php echo $lang['min']?>
105 </td>
106 <td><input type="submit" value="立刻禁区" onclick="$('command').value='areaadd'"></td>
107 </tr>
108 <tr>
109 <td>禁区解除</td>
110 <td>
111 <input type="radio" name="ihack" value="1"
112 <?php if($hack) { ?>
113 checked
114 <?php } ?>
115 >是&nbsp;&nbsp;&nbsp;<input type="radio" name="ihack" value="0"
116 <?php if(!$hack) { ?>
117 checked
118 <?php } ?>
119 >否
120 </td>
121 <td><input type="submit" value="更改状态" onclick="$('command').value='hackedit'"></td>
122 </tr>
123 </table>
124 </form>
$gstate
Definition: resources_1.php:23
$wthinfo
Definition: resources_1.php:50
$areanum
Definition: gameinfo.php:9
this disabled
if(!defined('IN_ADMIN')) if($mygroup< 3) global $wth
Definition: wthmng.php:5
$n
Definition: rank.php:51
< inputtype="radio"name="tplrefresh"value="0"<?phpif(!$tplrefresh){?> checked
【生存者数:<?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
$weather
Definition: gameinfo.php:11
$arealiststr
$lang
Definition: admin.lang.php:4
$hack
Definition: gameinfo.php:12
$gamestate
Definition: gameinfo.php:4
value
Definition: 1_alive.tpl.php:10
$gamenum
Definition: gameinfo.php:3