Чистка устаревшего.
This commit is contained in:
parent
fdcc2eed4e
commit
83cdb3e24c
58
main.php
58
main.php
@ -240,6 +240,9 @@ function dressitem($id)
|
|||||||
case 23:
|
case 23:
|
||||||
$slot1 = 'plaw';
|
$slot1 = 'plaw';
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
$slot1 = '';
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($item['type'] == 5) {
|
if ($item['type'] == 5) {
|
||||||
@ -465,7 +468,7 @@ function showpersinv($id)
|
|||||||
<TR>
|
<TR>
|
||||||
<TD><?php
|
<TD><?php
|
||||||
if ($user['bron'] > 0 || $user['rybax'] > 0 || $user['plaw'] > 0) {
|
if ($user['bron'] > 0 || $user['rybax'] > 0 || $user['plaw'] > 0) {
|
||||||
$d = $n = [];
|
$d = $n = 0;
|
||||||
if ($user['plaw']) {
|
if ($user['plaw']) {
|
||||||
$d = $user['plaw'];
|
$d = $user['plaw'];
|
||||||
$n = 23;
|
$n = 23;
|
||||||
@ -859,13 +862,13 @@ if (input::get('edit')) {
|
|||||||
errkom = 'Такой комплект уже существует<br>';
|
errkom = 'Такой комплект уже существует<br>';
|
||||||
com = coma
|
com = coma
|
||||||
}
|
}
|
||||||
document.all("hint3").innerHTML = '<table width=100% cellspacing=1 cellpadding=0 bgcolor=CCC3AA><tr><td align=center><B>' + title + '</td><td width=20 align=right valign=top style="cursor: pointer" onclick="closehint3();"><BIG><B>x</td></tr><tr><td colspan=2>' +
|
document.getElementById("hint3").innerHTML = '<table width=100% cellspacing=1 cellpadding=0 bgcolor=CCC3AA><tr><td align=center><B>' + title + '</td><td width=20 align=right valign=top style="cursor: pointer" onclick="closehint3();"><BIG><B>x</td></tr><tr><td colspan=2>' +
|
||||||
'<form action="' + script + '" method=POST><table width=100% cellspacing=0 cellpadding=2 bgcolor=FFF6DD><tr><INPUT TYPE=hidden name=sd4 value="6"><td colspan=2><font color=red>' +
|
'<form action="' + script + '" method=POST><table width=100% cellspacing=0 cellpadding=2 bgcolor=FFF6DD><tr><INPUT TYPE=hidden name=sd4 value="6"><td colspan=2><font color=red>' +
|
||||||
errkom + '</font>введите название предмета</TD></TR><TR><TD width=50% align=right><INPUT TYPE=text NAME="' + name + '" value="' + com + '"></TD><TD width=50%><INPUT TYPE="submit" value=" »» "></TD></TR></TABLE></FORM></td></tr></table>';
|
errkom + '</font>введите название предмета</TD></TR><TR><TD width=50% align=right><INPUT TYPE=text NAME="' + name + '" value="' + com + '"></TD><TD width=50%><INPUT TYPE="submit" value=" »» "></TD></TR></TABLE></FORM></td></tr></table>';
|
||||||
document.all("hint3").style.visibility = "visible";
|
document.getElementById("hint3").style.visibility = "visible";
|
||||||
document.all("hint3").style.left = 100;
|
document.getElementById("hint3").style.left = '100';
|
||||||
document.all("hint3").style.top = 100;
|
document.getElementById("hint3").style.top = '100';
|
||||||
document.all(name).focus();
|
document.getElementById(name).focus();
|
||||||
Hint3Name = name;
|
Hint3Name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -895,13 +898,13 @@ if (input::get('edit')) {
|
|||||||
|
|
||||||
switch (ajaxModule) {
|
switch (ajaxModule) {
|
||||||
case'mZeInventory':
|
case'mZeInventory':
|
||||||
$('#mZeInventory').html('<div align="center" style="padding:10px;background-color:#d4d2d2;color:grey;"><b>Загрузка...</b></div>');
|
$('#mZeInventory').html('<div align="center" style="padding:10px;background-color:#d4d2d2;color:grey;"><b>Загрузка...</b></div>');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: $(this).attr('href') + '&mZeAjax=' + ajaxModule,
|
url: $(this).attr('href') + '&mZeAjax=' + ajaxModule,
|
||||||
cache: false,
|
cache: false,
|
||||||
dataType: 'html',
|
dataType: 'html',
|
||||||
success: function (html) {
|
success: function (html) {
|
||||||
$('#mZeInventory').html(html);
|
$('#mZeInventory').html(html);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
@ -1367,32 +1370,31 @@ if (input::get('edit')) {
|
|||||||
|
|
||||||
// Заголовок, название скрипта, имя поля с логином
|
// Заголовок, название скрипта, имя поля с логином
|
||||||
function findlogin(title, script, name) {
|
function findlogin(title, script, name) {
|
||||||
document.all("hint3").innerHTML = '<table width=100% cellspacing=1 cellpadding=0 bgcolor=CCC3AA><tr><td align=center><B>' + title + '</td><td width=20 align=right valign=top style="cursor: pointer" onclick="closehint3();"><BIG><B>x</td></tr><tr><td colspan=2>' +
|
document.getElementById("hint3").innerHTML = '<table width=100% cellspacing=1 cellpadding=0 bgcolor=CCC3AA><tr><td align=center><B>' + title + '</td><td width=20 align=right valign=top style="cursor: pointer" onclick="closehint3();"><BIG><B>x</td></tr><tr><td colspan=2>' +
|
||||||
'<form action="' + script + '" method=POST><table width=100% cellspacing=0 cellpadding=2 bgcolor=FFF6DD><tr><INPUT TYPE=hidden name=sd4 value="6"><td colspan=2>' +
|
'<form action="' + script + '" method=POST><table width=100% cellspacing=0 cellpadding=2 bgcolor=FFF6DD><tr><INPUT TYPE=hidden name=sd4 value="6"><td colspan=2>' +
|
||||||
'Укажите логин персонажа:<small><BR>(можно щелкнуть по логину в чате)</TD></TR><TR><TD width=50% align=right><INPUT TYPE=text NAME="' + name + '"></TD><TD width=50%><INPUT TYPE="submit" value=" »» "></TD></TR></TABLE></FORM></td></tr></table>';
|
'Укажите логин персонажа:<small><BR>(можно щелкнуть по логину в чате)</TD></TR><TR><TD width=50% align=right><INPUT TYPE=text NAME="' + name + '"></TD><TD width=50%><INPUT TYPE="submit" value=" »» "></TD></TR></TABLE></FORM></td></tr></table>';
|
||||||
document.all("hint3").style.visibility = "visible";
|
document.getElementById("hint3").style.visibility = "visible";
|
||||||
document.all("hint3").style.left = 100;
|
document.getElementById("hint3").style.left = '100';
|
||||||
document.all("hint3").style.top = 100;
|
document.getElementById("hint3").style.top = '100';
|
||||||
document.all(name).focus();
|
document.getElementById(name).focus();
|
||||||
Hint3Name = name;
|
Hint3Name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Заголовок, название скрипта, имя поля с шмоткой
|
// Заголовок, название скрипта, имя поля с шмоткой
|
||||||
function okno(title, script, name, coma) {
|
function okno(title, script, name) {
|
||||||
var errkom = '';
|
var errkom = '';
|
||||||
//if (coma!='') errkom='Нельзя использовать символы: /\:*?"<>|<br>';
|
document.getElementById("hint3").innerHTML = '<table width=100% cellspacing=1 cellpadding=0 bgcolor=CCC3AA><tr><td align=center><B>' + title + '</td><td width=20 align=right valign=top style="cursor: pointer" onclick="closehint3();"><BIG><B>x</td></tr><tr><td colspan=2>' +
|
||||||
document.all("hint3").innerHTML = '<table width=100% cellspacing=1 cellpadding=0 bgcolor=CCC3AA><tr><td align=center><B>' + title + '</td><td width=20 align=right valign=top style="cursor: pointer" onclick="closehint3();"><BIG><B>x</td></tr><tr><td colspan=2>' +
|
|
||||||
'<form action="' + script + '" method=POST><table width=100% cellspacing=0 cellpadding=2 bgcolor=FFF6DD><tr><INPUT TYPE=hidden name=sd4 value="6"><td colspan=2><font color=red>' +
|
'<form action="' + script + '" method=POST><table width=100% cellspacing=0 cellpadding=2 bgcolor=FFF6DD><tr><INPUT TYPE=hidden name=sd4 value="6"><td colspan=2><font color=red>' +
|
||||||
errkom + '</font>введите название предмета</TD></TR><TR><TD width=50% align=right><INPUT TYPE=text NAME="' + name + '"></TD><TD width=50%><INPUT TYPE="submit" value=" »» "></TD></TR></TABLE></FORM></td></tr></table>';
|
errkom + '</font>введите название предмета</TD></TR><TR><TD width=50% align=right><INPUT TYPE=text NAME="' + name + '"></TD><TD width=50%><INPUT TYPE="submit" value=" »» "></TD></TR></TABLE></FORM></td></tr></table>';
|
||||||
document.all("hint3").style.visibility = "visible";
|
document.getElementById("hint3").style.visibility = "visible";
|
||||||
document.all("hint3").style.left = 100;
|
document.getElementById("hint3").style.left = '100';
|
||||||
document.all("hint3").style.top = 100;
|
document.getElementById("hint3").style.top = '100';
|
||||||
document.all(name).focus();
|
document.getElementById(name).focus();
|
||||||
Hint3Name = name;
|
Hint3Name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
function closehint3() {
|
function closehint3() {
|
||||||
document.all("hint3").style.visibility = "hidden";
|
document.getElementById("hint3").style.visibility = "hidden";
|
||||||
Hint3Name = '';
|
Hint3Name = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1436,13 +1438,13 @@ if (input::get('edit')) {
|
|||||||
<div class="hint-text">Сейчас в игре: <strong><?= $online->getNumRows() ?></strong> чел.</div>
|
<div class="hint-text">Сейчас в игре: <strong><?= $online->getNumRows() ?></strong> чел.</div>
|
||||||
<button onclick="gotohref('zayavka.php')">Поединки</button><br>
|
<button onclick="gotohref('zayavka.php')">Поединки</button><br>
|
||||||
<button onclick="gotohref('main.php?edit=1')">Инвентарь</button><br>
|
<button onclick="gotohref('main.php?edit=1')">Инвентарь</button><br>
|
||||||
<button onclick="gotohref'module_quest.php')">Активные задания</button><br>
|
<button onclick="gotohref('module_quest.php')">Активные задания</button><br>
|
||||||
<?php if ($user['room'] === 20): ?>
|
<?php if ($user['room'] === 20): ?>
|
||||||
<button onclick="gotohref('main.php?goto=arena')">Войти внутрь</button><br>
|
<button onclick="gotohref('main.php?goto=arena')">Войти внутрь</button><br>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<button onclick="gotohref('main.php?goto=plo')">Выйти на улицу</button><br>
|
<button onclick="gotohref('main.php?goto=plo')">Выйти на улицу</button><br>
|
||||||
<?php endif;?>
|
<?php endif;?>
|
||||||
<button onclick="gotohref(\'main.php\')">Обновить страницу</button>
|
<button onclick="gotohref('main.php')">Обновить страницу</button>
|
||||||
</TD>
|
</TD>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user