Tokiwa Battle Royale  GE777
A PHP Battle Royale inspired game
 All Data Structures Namespaces Files Functions Variables Pages
1_news.tpl.php
Go to the documentation of this file.
1 <?php if(!defined('IN_GAME')) exit('Access Denied'); include template('header'); ?>
2 <div id="notice"></div>
3 <div class="subtitle" >进行状况</div>
4 
5 <div align="left">
6 <div class="clearfix">
7 <span style="float:left;" ><img border="0" src="img/question.gif"></span>
8 <span><span class="evergreen">“各位仍在努力奋战,咱很欣慰。<br />以下是到现在为止的游戏状况。<br />请各位再接再厉。”</span></span>
9 </div>
10 <br>
11 <span class="evergreen">当前时间:<?php echo $month?>月<?php echo $day?>日 星期<?php echo $week["$wday"]?> <?php echo $hour?>:<?php echo $min?></span><br />
12 <span class="evergreen">当前天气:<?php echo $wthinfo[$weather]?></span><br />
13 <?php if($gamestate==40) { ?>
14 <span class="yellow">游戏已经进入连斗阶段!</span><br />
15 <?php } if($gamestate==50) { ?>
16 <span class="red">游戏已经进入死斗模式!</span><br />
17 <?php } if($hack) { ?>
18 <span class="evergreen">(禁区已解除)</span>
19 <?php } include template('areainfo'); ?>
20 <br><br>
21 <form method="post" name="news" onSubmit="return false;">
22 <input type="hidden" id="newsmode" name="newsmode" value="last">
23 <button onClick="$('newsmode').value='last';postCmd('news','news.php');">显示最新的<?php echo $newslimit?>条消息</button>
24 <button onClick="$('newsmode').value='all';postCmd('news','news.php');">显示全部消息</button>
25 <button onClick="$('newsmode').value='chat';postCmd('news','news.php');">显示最新聊天纪录</button>
26 </form>
27 
28 
29 <div id="newsinfo">
30 <?php if($newsmode == 'all') { include template('newsinfo'); } else { include template('lastnews'); } ?>
31 </div>
32 
33 </div>
34 <br>
35 <form method="post" name="backindex" action="index.php">
36 <input type="submit" name="enter" value="返回首页">
37 </form>
38 <?php include template('footer'); ?>
$hack
Definition: gameinfo.php:12
$gamestate
Definition: gameinfo.php:4
value
Definition: 1_alive.tpl.php:10
$week
Definition: resources_1.php:25