Фикс устаревших html-тегов и выдача статуса отсутствия поединков в соответствующей панели.
This commit is contained in:
parent
86f3dfbfc6
commit
1366358b1f
21
zayavka.php
21
zayavka.php
@ -643,16 +643,16 @@ if (!empty($_POST['open'])) {
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
<TABLE width=100% cellspacing=0 cellpadding=0>
|
||||
<TABLE class="allzeroes">
|
||||
<TR>
|
||||
<TD valign=top>
|
||||
<TD>
|
||||
<?php
|
||||
$get = urldecode(filter_input(INPUT_SERVER, 'QUERY_STRING'));
|
||||
if ($user['room'] != 1 AND $get != 'current') die(err('В этой комнате невозможно подавать заявки!'));
|
||||
if (!$get) echo '<p style="text-align: center; font-weight: bold; margin-top: 16px;">Выберите раздел</p>';
|
||||
|
||||
if ($get == 'fiz') {
|
||||
echo "<font color=red><b>";
|
||||
echo "<b style='color: #f80000;'>";
|
||||
if (!empty($_POST['open'])) {
|
||||
if ($_POST['k'] == 6) {
|
||||
$blood = 1;
|
||||
@ -688,7 +688,7 @@ if (!empty($_POST['open'])) {
|
||||
if (!empty($_POST['gofi'])) {
|
||||
$zay->battlestart($user['id'], $user['zayavka'], 2);
|
||||
}
|
||||
echo "</b></font>";
|
||||
echo "</b>";
|
||||
echo '<table cellspacing=0 cellpadding=0><tr><td>';
|
||||
if ($zay->user_status($user['id']) == 0) {
|
||||
echo '<FIELDSET><LEGEND><B>Подать заявку на бой</B> </LEGEND>Таймаут <SELECT NAME=timeout><OPTION value=3>3 мин.<OPTION value=4>4 мин.<OPTION value=5>5 мин.<OPTION value=7>7 мин.<OPTION value=10 selected>10 мин.</SELECT> Тип боя <SELECT NAME=k><OPTION value=1>с оружием<OPTION value=4>кулачный<OPTION value=6>кровавый</SELECT><INPUT TYPE=submit name=open value="Подать заявку"> </FIELDSET>';
|
||||
@ -886,16 +886,16 @@ if (!empty($_POST['open'])) {
|
||||
die();
|
||||
}
|
||||
|
||||
echo "<font color=red><b>";
|
||||
echo "<b style='color: #f80000;'>";
|
||||
|
||||
if (($_POST['confirm1']) && $_POST['gocombat'] && !$user['zayavka']) {
|
||||
if (!empty($_POST['confirm1']) AND !empty($_POST['gocombat']) AND empty($user['zayavka'])) {
|
||||
echo $zay->addteam(1, 4);
|
||||
}
|
||||
if (($_POST['confirm2']) && $_POST['gocombat'] && !$user['zayavka']) {
|
||||
if (!empty($_POST['confirm2']) AND $_POST['gocombat'] AND empty($user['zayavka'])) {
|
||||
echo $zay->addteam(2, 4);
|
||||
}
|
||||
|
||||
if ($_POST['open'] && !$user['zayavka']) {
|
||||
if (!empty($_POST['open']) AND empty($user['zayavka'])) {
|
||||
//print_r($_REQUEST);
|
||||
switch ($_POST['levellogin1']) {
|
||||
case 0 : //любой
|
||||
@ -982,7 +982,7 @@ if (!empty($_POST['open'])) {
|
||||
}
|
||||
}
|
||||
/////////////////////////////////
|
||||
echo "</font></b><INPUT TYPE=hidden name=level value=group>";
|
||||
echo "</b><INPUT TYPE=hidden name=level value=group>";
|
||||
echo '<table cellspacing=0 cellpadding=0><tr><td>';
|
||||
if ($zay->user_status($user['id']) == 0)
|
||||
if (($user['room'] == 101) && ($user['align'] != 2.2) && ($user['align'] != 2.1)) {
|
||||
@ -1077,7 +1077,8 @@ if (!empty($_POST['open'])) {
|
||||
if ($get == 'current') {
|
||||
$t1 = floor(time() - 900);
|
||||
$data = db::c()->query('SELECT * FROM `battle` WHERE `win` = 3 AND `to1` > ?i AND `to2` > ?i ORDER BY `id` ASC', $t1, $t1);
|
||||
while ($row = $data->fetch_assoc()) {
|
||||
if (empty($data->getNumRows())) echo 'Надо же! Ни одного поединка!';
|
||||
else while ($row = $data->fetch_assoc()) {
|
||||
echo "<span class=date>{$row['date']}</span>";
|
||||
$z = explode(";", $row['t1']);
|
||||
foreach ($z as $k => $v) {
|
||||
|
Loading…
Reference in New Issue
Block a user