This commit is contained in:
2023-07-28 01:25:38 +03:00
parent 74b644fe59
commit cffcf57031
7 changed files with 305 additions and 335 deletions
+35 -66
View File
@@ -15,12 +15,10 @@ if (isset($btl['id'])) {
)
);
$allprice = 0 + $allprice[0];
function typeBattle($x)
function typeBattle($x): array
{
$r = [0, 0, 'Обычный поединок', 'Кровавый Поединок'];
if ($x < 50000) {
//Обычный бой
} elseif ($x >= 50000 && $x < 100000) {
if ($x >= 50000 && $x < 100000) {
$r = [25, 50, 'Великая Битва', 'Кровавая Битва'];
} elseif ($x < 500000) {
$r = [50, 75, 'Величайшая Битва', 'Кровавая Резня'];
@@ -39,7 +37,7 @@ if (isset($btl['id'])) {
$allprice = [150, 150, 'Жесточайшее Сражение', 'Жесточайшее Сражение'];
}
if ($btl['type'] == 99) {
$allprice = '<font color=red>' . str_replace(' ', '&nbsp;', $allprice[3]) . '</font>';
$allprice = '<span style="color: red;">' . str_replace(' ', '&nbsp;', $allprice[3]) . '</span>';
} else {
$allprice = str_replace(' ', '&nbsp;', $allprice[2]);
}
@@ -68,7 +66,7 @@ $b .= '</td>
</table>';
if (isset($btl['id']) && $btl['team_win'] != -1 && isset($_GET['analiz'])) {
function rzv($v)
function rzv($v): string
{
$v = explode('.', $v);
if (!isset($v[1])) {
@@ -85,9 +83,7 @@ if (isset($btl['id']) && $btl['team_win'] != -1 && isset($_GET['analiz'])) {
if ($btl['invis'] > 0) {
$tbtl .= '<img src="//img.new-combats.tech/i/fighttypehidden0.gif">';
}
if ($btl['type'] == 0) {
$tbtl = 'Тип боя: ' . $tbtl . ' (физический поединок) &nbsp; &nbsp; ';
} elseif ($btl['type'] == 1) {
if ($btl['type'] == 1) {
$tbtl = 'Тип боя: ' . $tbtl . ' (кулачный поединок) &nbsp; &nbsp; ';
} else {
$tbtl = 'Тип боя: ' . $tbtl . ' (физический поединок) &nbsp; &nbsp; ';
@@ -99,15 +95,10 @@ if (isset($btl['id']) && $btl['team_win'] != -1 && isset($_GET['analiz'])) {
$tbtl .= 'Продолжительность боя: ' . $tmStart . ' мин.<br>';
$users = [
$users = [];
$uids = [];
];
$uids = [
];
function con_login($us)
function con_login($us): string
{
$r = '';
if ($us['align'] > 0) {
@@ -124,35 +115,24 @@ if (isset($btl['id']) && $btl['team_win'] != -1 && isset($_GET['analiz'])) {
//Поулчаем инфо
$tpas = [
1 => 'X',
2 => '<font color=#AAAAEE>&bull;</font>',
2 => '<span style="color: #AAAAEE; ">&bull;</span>',
3 => '<b>&bull;</b>',
4 => '<font color=#FF0000>&curren;</font>',
5 => '<font color=#FF0000>X</font>',
6 => '<font color=#AAAAEE>&bull;</font>',
7 => '<font color=777777><B>&bull;</B></font>',
8 => '<font color=#AAAAEE>&bull;</font>',
4 => '<span style="color: #FF0000; ">&curren;</span>',
5 => '<span style="color: #FF0000; ">X</span>',
6 => '<span style="color: #AAAAEE; ">&bull;</span>',
7 => '<span style="color:#777777; "><B>&bull;</B></span>',
8 => '<span style="color: #AAAAEE; ">&bull;</span>',
];
/*$tpbs = array(
0 => 'X',
1 => 'X',
2 => '<font color=#AAAAAA><B>&bull;</B></font>',
3 => '<font color=#AAAAEE><B>&bull;</B></font>',
4 => 'X',
5 => '<font color=#FF0000><B>&bull;</B></font>',
6 => '<font color=#AAAAEE><B>&bull;</B></font>',
7 => '<font color=#777777><B>&bull;</B></font>',
8 => '<font color=#AAAAAA><B>&bull;</B></font>'
);*/
$tpbs = [
0 => '',
1 => '<B>&bull;</B>',
2 => '<font color=#AAAAAA><B>&bull;</B></font>',
2 => '<span style="color: #AAAAAA; "><B>&bull;</B></span>',
3 => 'X',
4 => '<font color=#FFEEEE><B>X</B></font>',
5 => '<font color=#FFEEEE><B>&bull;</B></font>',
6 => '<font color=#AAAAEE><B>&bull;</B></font>',
7 => '<font color=#777777><B>&bull;</B></font>',
8 => '<font color=#AAAAAA><B>&bull;</B></font>',
4 => '<span style="color: #FFEEEE; "><B>X</B></span>',
5 => '<span style="color: #FFEEEE; "><B>&bull;</B></span>',
6 => '<span style="color: #AAAAEE; "><B>&bull;</B></span>',
7 => '<span style="color: #777777; "><B>&bull;</B></span>',
8 => '<span style="color: #AAAAAA; "><B>&bull;</B></span>',
];
$sp = mysql_query('SELECT * FROM `battle_users` WHERE `battle` = "' . $btl['id'] . '"');
while ($pl = mysql_fetch_array($sp)) {
@@ -214,7 +194,6 @@ if (isset($btl['id']) && $btl['team_win'] != -1 && isset($_GET['analiz'])) {
$users[$i]['value']['sa'][$k] .= $tpas[$tpa];
} else {
$zag[$k] = false;
//$users[$i]['value']['sa'][$za] .= '.';
}
$k++;
}
@@ -235,7 +214,7 @@ if (isset($btl['id']) && $btl['team_win'] != -1 && isset($_GET['analiz'])) {
//
$k = 1;
while ($k <= 5) {
if ($zag[$k] == false) {
if (!$zag[$k]) {
$users[$i]['value']['sa'][$k] .= ' ';
}
$k++;
@@ -284,9 +263,7 @@ if (isset($btl['id']) && $btl['team_win'] != -1 && isset($_GET['analiz'])) {
} else {
$d = 1;
while ($d <= 5) {
if ($bjj[$d] == true) {
} else {
if (!$bjj[$d]) {
$users[$i]['value']['sb'][$d] .= ' ';
}
$d++;
@@ -391,9 +368,9 @@ if (isset($btl['id']) && $btl['team_win'] != -1 && isset($_GET['analiz'])) {
}
$r .= '</TABLE>';
$r .= '(<b>X</b>&nbsp;-&nbsp;удачный блок, <b><FONT COLOR=red>X</FONT></b>&nbsp;-&nbsp;пробили блок критом, <B>&bull;</B>&nbsp;-&nbsp;пропустил удар,
<font color=#AAAAAA><B>&bull;</B></font>&nbsp;-&nbsp;увернулся,
<font color=#AAAAEE><B>&bull;</B></font>&nbsp;-&nbsp;парировал,
<font color=#777777><B>&bull;</B></font>&nbsp;-&nbsp;отбил щитом)';
<span style="color: #AAAAAA; "><B>&bull;</B></span>&nbsp;-&nbsp;увернулся,
<span style="color: #AAAAEE; "><B>&bull;</B></span>&nbsp;-&nbsp;парировал,
<span style="color: #777777; "><B>&bull;</B></span>&nbsp;-&nbsp;отбил щитом)';
//
$r .= '<H4>Суммарно</H4>';
$r .= '<TABLE border=1 cellspacing=0 cellpadding=4>
@@ -441,7 +418,7 @@ if (isset($btl['id']) && $btl['team_win'] != -1 && isset($_GET['analiz'])) {
$team_data['heal'] += $us['heal'];
$winw = '';
if ($us['hp'] < 1) {
$us['hp'] = '<font color=red>0</font>';
$us['hp'] = '<span style="color: red; ">0</span>';
$winw = '<img title="Погиб" width="7" height="7" src="//img.new-combats.tech/i/ico/looses.gif">';
} else {
$winw = '<img title="Выжил" width="7" height="7" src="//img.new-combats.tech/i/ico/wins.gif">';
@@ -681,11 +658,8 @@ if (isset($btl['id']) && $btl['team_win'] != -1 && isset($_GET['analiz'])) {
$clr = 'f2e5e0';
}
$cclr = 'border-top:1px solid #b1b1b1;';
#$r .= '<table cellspacing="1" width="100%"><tbody><tr><td height="1" bgcolor="#b0b0b0"></td></tr></tbody></table>';
}
$h = $pl['id_hod'];
} else {
//$r .= '<br>';
}
$r .= '<div class="logs_php_line" style="background-color:#' . $clr . ';' . $cclr . 'padding:1px;">' . $pl['text'] . '</div>';
$cclr = '';
@@ -762,9 +736,9 @@ if (isset($btl['id']) && $btl['team_win'] != -1 && isset($_GET['analiz'])) {
}
?>
<!DOCTYPE html>
<html>
<html lang="ru">
<head>
<title>Архив: Поединки</title>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jqueryrotate.js"></script>
@@ -776,7 +750,7 @@ if (isset($btl['id']) && $btl['team_win'] != -1 && isset($_GET['analiz'])) {
hi_no_fm = 1;
function maginfo(z, p, m, obj) {
var r = '';
let r = '';
r += '<b>' + $(obj).attr('magelogin') + '</b><br><br>';
r += 'Мощь: ' + m + ', ';
r += 'Защита: ' + z + ', ';
@@ -794,8 +768,6 @@ if (isset($btl['id']) && $btl['team_win'] != -1 && isset($_GET['analiz'])) {
#f2e5e0;
min-height: 100vh;
min-width: 400px;
}
h3 {
@@ -804,10 +776,7 @@ if (isset($btl['id']) && $btl['team_win'] != -1 && isset($_GET['analiz'])) {
.ttl_css {
position: absolute;
padding-left: 3px;
padding-right: 3px;
padding-top: 2px;
padding-bottom: 2px;
padding: 2px 3px;
background-color: #ffffcc;
border: 1px solid #6F6B5E;
}
@@ -885,17 +854,17 @@ if (isset($btl['id']) && $btl['team_win'] != -1 && isset($_GET['analiz'])) {
<body> <!--#E2E0E0 -->
<div style="max-width:95%; min-height: 100%; margin:0 auto;">
<br><br>
<div id="ttl" class="ttl_css" style="display:none;z-index:1111;"/>
<div id="ttl" class="ttl_css" style="display:none;z-index:1111;"></div>
</div>
<div id="gi" class="gifin" style="display:none;z-index:1110;"></div>
<H3><IMG SRC="//img.new-combats.tech/i/fighttype2.gif" WIDTH=20 HEIGHT=20> Бойцовский
<H3><IMG SRC="//img.new-combats.tech/i/fighttype2.gif" WIDTH=20 HEIGHT=20 alt=""> Бойцовский
Клуб<?php if ($based != 'battle_logs') {
echo ' (Архив поединков)';
} ?> &nbsp; <IMG SRC="//img.new-combats.tech/i/fighttype2.gif" WIDTH=20 HEIGHT=20></H3>
} ?> &nbsp; <IMG SRC="//img.new-combats.tech/i/fighttype2.gif" WIDTH=20 HEIGHT=20 alt=""></H3>
<?= $r; ?>
<br><br><br>
</div>
<script language="JavaScript">
<script>
$('#line_filter').submit(function () {
$('#line_filter_input_submit').trigger('click');
});
@@ -938,4 +907,4 @@ if (isset($btl['id']) && $btl['team_win'] != -1 && isset($_GET['analiz'])) {
}
</script>
</body>
</html>
</html>