示例#1
0
					<h4>經驗值 (<?php 
echo get_exp($result['Exp']);
?>
/<?php 
echo get_lvExp($result['Exp']);
?>
)</h4>
					<div class="progress">
						<div class="progress-bar" role="progressbar" aria-valuenow="0"
							aria-valuemin="0" aria-valuemax="100"
							style="width: <?php 
echo get_LvPa(get_exp($result['Exp']), get_lvExp($result['Exp']));
?>
%;">
							<?php 
echo get_LvPa(get_exp($result['Exp']), get_lvExp($result['Exp']));
?>
%
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-md-3">
				<button class="btn btn-success fa fa-money" type="button" style="font-size: 40px">
					金庫等級 <span class="badge" style="font-size: 40px"><?php 
echo $result['bankLV'];
?>
</span>
				</button>
示例#2
0
                 $receptions .= " onclick=\\'disabled = true; window.location.href=\"battle.php?page=battle&p={$f}&enemy={$victims[$random]}&tmp=\"+Math.random();\"\"\\' class=input>";
             }
             $receptions .= " </center>";
         }
     }
 } else {
     // ----- # Выигрыш # ----- //
     if (!$endbattle) {
         //$echo="<center><b>Поздравляем! Победа за Вами!</b><br><input type=button value='Вернуться' onclick='disabled = true; window.location.href=\"main.php?tmp=\"+Math.random();\"\"' class=input></center><br>";
         $echo = "<script language='javascript'>endbattle(" . $stat['battle'] . ");</script>";
         $ebtype = 'win';
         $page = 'showbupdate';
         mysql_query("UPDATE players SET last_battle=" . $stat['battle'] . " WHERE battle='" . $stat['battle'] . "' AND side='" . $opp_side . "'");
         mysql_query("UPDATE battles_stat SET a=0, d=0, u=0, k=0 WHERE u_id = {$stat['id']}");
         mysql_query("UPDATE participants SET hp=0 WHERE time='" . $stat['battle'] . $opp_stat['id'] . "' AND side='" . $opp_side . "'");
         get_exp();
         require_once "inc/chat/functions.php";
         insert_msg("Поздравляем, Вы одержали победу! Всего Вами нанесено урона: <b><u>" . $participant['damage'] . " HP</u></b>. Получено опыта: <b><u>" . $addexp . "</u></b> и <b><u>" . $cr . "</u></b> зм.", "", "", "1", $stat['user'], "", $stat['room']);
         if ($addexp > 0) {
             mysql_query('INSERT INTO battles (offer,time,id,type,comment1)VALUES(' . $stat['battle'] . ',' . time() . ',' . ($max1['id'] + 1) . ',2,\'Персонаж <b>' . $stat['user'] . '</b> получил ' . $addexp . ' единиц опыта и <b><u>' . $cr . '</u></b> зм, нанес ' . $participant['damage'] . ' единиц урона.<br>\')');
         }
         if ($stat['exp'] + $addexp >= $stat['next_exp'] && $stat['next_exp'] != 0) {
             $new_exp = $stat['exp'] + $addexp;
             $up_level = mysql_fetch_array(mysql_query("SELECT level, credits, updates FROM levels WHERE exp=" . $stat['next_exp'] . ""));
             $new_exp = mysql_fetch_array(mysql_query("SELECT exp FROM levels WHERE exp>" . $stat['next_exp'] . " ORDER BY level LIMIT 1"));
             if (!$new_exp['exp']) {
                 $new_exp['exp'] = 0;
             }
             if ($stat['level'] == $up_level['level']) {
                 insert_msg("Поздравляем, Вы получили новое повышение", "", "", "1", $stat['user'], "", $stat['room']);
             } elseif ($stat['level'] < $up_level['level']) {