All Data Structures Namespaces Files Functions Variables Pages
1_index.tpl.php
Go to the documentation of this file.
<?php if(!defined('IN_GAME')) exit('Access Denied'); include template('header'); ?>
<table align="center" style="text-align:center;border:0;padding:0;">
<tr>
<td><span class="yellow">游戏版本：</span></td>
<td style="text-align:left;"><span class="evergreen"><?php echo $gameversion?></span></td>
<td style="text-align:center;padding:0 0 0 25px;"><span class="yellow">站长留言</span></td>
</tr>
<tr>
<td><span class="yellow">当前时刻：</span></td>
<td style="text-align:left;"><span class="evergreen"><?php echo $month?>月<?php echo $day?>日 星期<?php echo $week["$wday"]?> <?php echo $hour?>:<?php echo $min?></span></td>
<td rowspan="4" style="width:400px;vertical-align:top;text-align:left;padding:0 0 0 25px;"><span class="evergreen"><?php echo $adminmsg?></span></td>
</tr>
<tr>
<td><span class="yellow">系统状况：</span></td>
<td style="text-align:left;"><span class="evergreen"><?php echo $systemmsg?></span></td>
</tr>
<tr>
<td><span class="yellow">游戏情报：</span></td>
<td style="text-align:left;"><span class="evergreen"><span class="evergreen2">第 <?php echo $gamenum?> 回游戏 <?php echo $gstate[$gamestate]?></span></span></td>
</tr>
<tr>
<td colspan="2" style="vertical-align:top;">
<div>
<?php if($gamestate > 10 ) { ?>
本局游戏已经进行 <span id="timing"></span><script type="text/javascript">updateTime(<?php echo $timing?>,1);</script><br>
<?php if($hplayer) { ?>
当前最高伤害 <?php echo $hplayer?> (<?php echo $hdamage?>)<br>
<?php } } else { if($starttime > $now) { ?>
下局游戏开始于 <span id="timing"></span><script type="text/javascript">updateTime(<?php echo $timing?>,0);</script> 后<br>
<?php } else { ?>
下局游戏开始时间 <span id="timing"></span>未定<br>
<?php } if($hplayer) { ?>
上局最高伤害 <?php echo $hplayer?> (<?php echo $hdamage?>)<br>
<?php } } ?>
</div>
<div>
上局结果：<span id="lastwin"><?php echo $gwin[$winmode]?></span>
<?php if($winner) { ?>
，优胜者：<span id="lastwinner"><?php echo $winner?></span>
<?php } ?>
</div>
禁区间隔时间： <?php echo $areahour?> 分钟 ， <?php echo $arealimit?> 禁后停止激活<br>
每次增加禁区： <?php echo $areaadd?> 个 ， 当前禁区数： <?php echo $areanum?><br>
自动逃避禁区功能：
<?php if($areaesc && $gamestate < 40) { ?>
<span class="yellow">开放</span>
<?php } else { ?>
<span class="red">关闭</span>
<?php } ?>
<br>
<span class="red">注意：进入连斗后，自动逃避功能自动关闭。</span><br><br>
激活人数：<span id="alivenum"><?php echo $validnum?></span>
生存人数：<span id="alivenum"><?php echo $alivenum?></span>
死亡总数：<span id="alivenum"><?php echo $deathnum?></span>
<br />
<?php if($cuser) { ?>
<br />欢迎你，<?php echo $cuser?>！
<form method="post" name="togame" action="game.php">
<input type="hidden" name="mode" value="main">
<input type="submit" name="enter" value="进入游戏">
</form>
<form method="post" name="quitgame" action="game.php">
<input type="hidden" name="mode" value="quit">
<input type="submit" name="quit" value="账号退出">
</form>
<?php } else { ?>
<form method="post" name="login" action="login.php">
<input type="hidden" name="mode" value="main">
账号<input type="text" name="username" size="20" maxlength="20" value="<?php echo $cuser?>">
密码<input type="password" name="password" size="20" maxlength="20" value="<?php echo $cpass?>">
<input type="submit" name="enter" value="登录">
</form>
<?php } ?>
<span class="evergreen2">第一次玩的，请先看 <a href="help.php" class="clit">游戏帮助</a> !!!</span><br>
</td>
</tr>
</table>
<?php include template('footer'); ?>
updateTime
function updateTime(timing, mode)
Definition: game.js:15
$hplayer
$hplayer
Definition: combatinfo.php:6
$systemmsg
$systemmsg
Definition: systemmng.php:7
$hdamage
if(!defined('IN_GAME')) $hdamage
Definition: combatinfo.php:5
$validnum
$validnum
Definition: gameinfo.php:13
$winner
$winner
Definition: gameinfo.php:7
$timing
$timing
Definition: index.php:7
$areaesc
$areaesc
Definition: gamecfg_1.php:13
$winmode
$winmode
Definition: gameinfo.php:6
$deathnum
$deathnum
Definition: gameinfo.php:15
$gameversion
$gameversion
Definition: system.php:12
$alivenum
$alivenum
Definition: gameinfo.php:14
$now
$now
Definition: clear.php:23
$gwin
$gwin
Definition: resources_1.php:24
$gamestate
$gamestate
Definition: gameinfo.php:4
value
value
Definition: 1_alive.tpl.php:10
href
href
Definition: 1_itemdrop0.tpl.php:5
$week
$week
Definition: resources_1.php:25
$starttime
$starttime
Definition: gameinfo.php:5
$adminmsg
if(!defined('IN_ADMIN')) $adminmsg
Definition: systemmng.php:6