Tokiwa Battle Royale  GE777
A PHP Battle Royale inspired game
 All Data Structures Namespaces Files Functions Variables Pages
1_gambling.tpl.php
Go to the documentation of this file.
1 <?php if(!defined('IN_GAME')) exit('Access Denied'); ?>
2 
3 <?php if($gbnum) { ?>
4 当前奖池:<?php echo $gbpool?>。
5 <?php } else { ?>
6 当前还未开设赌局。
7 <?php } ?>
8 当前分成系数:<?php echo $nowodds?>
9 <span class="yellow" id="gbinfo">
10 <?php echo $gbinfo?>
11 </span>
12 <?php if($cuser && isset($credits2)) { ?>
13 你的切糕:<span id="credits2" class="yellow"><?php echo $credits2?></span>
14 <?php if($gbact == 1) { ?>
15 <input type="hidden" name="bet" value="<?php echo $gbudata['bid']?>">
16 <?php } else { ?>
17 选择:
18 <select name="bet">
19 <option value="none">不选择
20 <?php if(is_array($alivedata)) { foreach($alivedata as $alive) { ?>
21 <option value="<?php echo $alive['pid']?>"><?php echo $alive['name']?>
22 <?php } } ?>
23 </select>
24 <?php } ?>
25 赌注:<input type="text" name="wager" value="1" size="4" maxlength="6">
26 
27 <input type="button"
28 <?php if($gbact == 1) { ?>
29 value="追加"
30 <?php } else { ?>
31 value="下注"
32 <?php } ?>
33  onClick="$('gbmode').value='gamble';postCmd('alive','alive.php');">
34 <?php } ?>
$alivedata
Definition: alive.php:17
$gbinfo
Definition: gambling.php:7
value
Definition: 1_alive.tpl.php:10