Tokiwa Battle Royale  GE777
A PHP Battle Royale inspired game
 All Data Structures Namespaces Files Functions Variables Pages
1_battle.tpl.php
Go to the documentation of this file.
1 <?php if(!defined('IN_GAME')) exit('Access Denied'); ?>
2 <table border="0" width=720px height=380px cellspacing="0" cellpadding="0" valign="middle">
3 <TR align="center" >
4 <TD valign="middle" class="b5">
5 <TABLE border="0" width=720px height=380px align="center" cellspacing="0" cellpadding="0" class="battle">
6 <tr>
7 <td>
8 <table border="0" cellspacing="0" cellpadding="0" width="100%">
9 <tr>
10 <td>
11 <table border="0" cellspacing="0" cellpadding="0" valign="top" width="100%">
12 <tr>
13 <td class="b1" colspan=2 height=20px><span>Lv. <?php echo $w_lvl?></span></td>
14 <td class="b1" colspan=2><span><?php echo $w_name?></span></td>
15 <td class="b1" colspan=2><span><?php echo $w_sNoinfo?></span></td>
16 <td class="b5" rowspan=4 width=140px colspan=1 height=80px><IMG src="img/<?php echo $w_iconImg?>" height=80px border="0" align="middle"
17 <?php if($w_hp==0) { ?>
18 style="filter:Xray()"
19 <?php } ?>
20  /></td>
21 </tr>
22 <tr>
23 <td class="b2" width=75px height=20px><span>怒气</span></td>
24 <td class="b3" width=90px><span><?php echo $w_ragestate?></span></td>
25 <td class="b2" width=75px><span>体力</span></td>
26 <td class="b3" width=90px><span><?php echo $w_spstate?></span></td>
27 <td class="b2" width=100px><span>生命</span></td>
28 <td class="b3" width=145px><span><?php echo $w_hpstate?></span></td>
29 </tr>
30 <tr>
31 <td class="b2" height=20px><span>武器攻击</span></td>
32 <td class="b3"><span><?php echo $w_wepestate?></span></td>
33 <td class="b2"><span>武器种类</span></td>
34 <td class="b3"><span>
35 <?php if($w_wepk != '') { ?>
36 <?php echo $iteminfo[$w_wepk]?>
37 <?php } else { ?>
38 ???
39 <?php } ?>
40 </span></td>
41 <td class="b2"><span>武器</span></td>
42 <td class="b3"><span><?php echo $w_wep?></span></td>
43 </tr>
44 <tr>
45 <td class="b2" height=20px><span>应战策略</span></td>
46 <td class="b3"><span>
47 <?php if($w_tactic >= 0) { ?>
48 <?php echo $tacinfo[$w_tactic]?>
49 <?php } else { ?>
50 ???
51 <?php } ?>
52 </span></td>
53 <td class="b2"><span>基础姿态</span></td>
54 <td class="b3"><span>
55 <?php if($w_pose >= 0) { ?>
56 <?php echo $poseinfo[$w_pose]?>
57 <?php } else { ?>
58 ???
59 <?php } ?>
60 </span></td>
61 <td class="b2"><span>受伤部位</span></td>
62 <td class="b3"><span>
63 <?php if($w_infdata) { ?>
64 <?php echo $w_infdata?>
65 <?php } else { ?>
66 无
67 <?php } ?>
68 </span></td>
69 </tr>
70 </table>
71 </td>
72 </tr>
73 </table>
74 </td>
75 </TR>
76 <tr>
77 <TD class="b3" height="100%">
78 <span><B><FONT color="#ff0000" size="5" face="黑体"><?php echo $battle_title?></FONT></B></span>
79 </TD>
80 </TR>
81 <tr>
82 <td>
83 <table border="0" width=720px cellspacing="0" cellpadding="0" valign="middle">
84 <tr>
85 <td class="b5" rowspan=4 colspan=1 width=140px height=80px><IMG src="img/<?php echo $iconImg?>" height=80px border="0" align="middle"
86 <?php if($hp==0) { ?>
87 style="filter:Xray()"
88 <?php } ?>
89  /></td>
90 <td class="b1" colspan=2 height=20px><span><?php echo $typeinfo[$type]?>(<?php echo $sexinfo[$gd]?><?php echo $sNo?>号)</span></td>
91 <td class="b1" colspan=2><span><?php echo $name?></span></td>
92 <td class="b1" colspan=2><span>Lv. <?php echo $lvl?></span></td>
93 </tr>
94 <tr>
95 <td class="b2" width=100px height=20px><span>生命</span></td>
96 <td class="b3" width=145px><span><span class="<?php echo $hpcolor?>"><?php echo $hp?> / <?php echo $mhp?></span></span></td>
97 <td class="b2" width=75px><span>体力</span></td>
98 <td class="b3" width=90px><span><?php echo $sp?> / <?php echo $msp?></span></td>
99 <td class="b2" width=75px><span>怒气</span></td>
100 <td class="b3" width=90px><span>
101 <?php if($rage >=30) { ?>
102 <span class="yellow"><?php echo $rage?></span>
103 <?php } else { ?>
104 <?php echo $rage?>
105 <?php } ?>
106 </span></td>
107 </tr>
108 <tr>
109 <td class="b2" height=20px><span>武器</span></td>
110 <td class="b3"><span><?php echo $wep?></span></td>
111 <td class="b2"><span>武器种类</span></td>
112 <td class="b3"><span><?php echo $iteminfo[$wepk]?></span></td>
113 <td class="b2"><span>武器攻击</span></td>
114 <td class="b3"><span><?php echo $wepe?></span></td>
115 </tr>
116 <tr>
117 <td class="b2" height=20px><span>受伤部位</span></td>
118 <td class="b3">
119 <span>
120 <?php if($inf) { if(is_array($infinfo)) { foreach($infinfo as $key => $val) { if(strpos($inf,$key)!==false) { ?>
121 <?php echo $val?>
122 <?php } } } } else { ?>
123 无
124 <?php } ?>
125 </span>
126 </td>
127 <td class="b2"><span>基础姿态</span></td>
128 <td class="b3"><span><?php echo $poseinfo[$pose]?></span></td>
129 <td class="b2"><span>应战策略</span></td>
130 <td class="b3"><span><?php echo $tacinfo[$tactic]?></span></td>
131 </tr>
132 </table>
133 </td>
134 </tr>
135 </TABLE>
136 </TD>
137 </TR>
138 </table>
$inf
Definition: botservice.php:49
$iteminfo
$sexinfo
Definition: resources_1.php:51
$infinfo
$tacinfo
Definition: resources_1.php:57
$typeinfo
Definition: resources_1.php:58
$poseinfo
Definition: resources_1.php:56