Autofix small errors
This commit is contained in:
+25
-27
@@ -10,8 +10,8 @@ if($user['battle'] != 0) { header('location: fbattle.php'); die(); }
|
||||
|
||||
if(isset($_GET['otdel'])) {
|
||||
$otdel = mysql_real_escape_string((int)$_GET['otdel']);
|
||||
} else {
|
||||
#$otdel = 6;
|
||||
//} else {
|
||||
// #$otdel = 6;
|
||||
}
|
||||
|
||||
|
||||
@@ -75,8 +75,6 @@ if(($_GET['set'] || $_POST['set'])) {
|
||||
}
|
||||
$allcost=$_POST['count']*$dress['point'];
|
||||
mysql_query("INSERT INTO `delo` (`author`, `pers`, `text`, `type`, `date`) VALUES ('0','{$user['id']}','\"".$user['login']."\" купил товар: \"".$dress['name']."\" ".$dresscount."id:(".$dressid.") [0/".$dress['maxdur']."] за ".$allcost." реп. ',1,'".time()."')");
|
||||
} else {
|
||||
|
||||
}
|
||||
}
|
||||
else {
|
||||
@@ -109,9 +107,9 @@ if(($_GET['set'] || $_POST['set'])) {
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
var Hint3Name = '';
|
||||
let Hint3Name = '';
|
||||
|
||||
function closehint3() {
|
||||
function closehint3() {
|
||||
document.all("hint3").style.visibility = "hidden";
|
||||
}
|
||||
|
||||
@@ -121,15 +119,15 @@ function closehint3s() {
|
||||
|
||||
|
||||
function showitemschoice(title, type, script) {
|
||||
var choicehtml = "<form style='display: none;' id='formtarget' action='" + script + "' method=POST><input type='hidden' id='target' name='target' />";
|
||||
choicehtml += "</form><table width='100%' cellspacing='1' cellpadding='0' bgcolor='CCC3AA'>";
|
||||
let choicehtml = "<form style='display: none;' id='formtarget' action='" + script + "' method=POST><input type='hidden' id='target' name='target' />";
|
||||
choicehtml += "</form><table width='100%' cellspacing='1' cellpadding='0' bgcolor='CCC3AA'>";
|
||||
choicehtml += "<tr><td align='center'><b>" + title + "</td>";
|
||||
choicehtml += "<td width='20' align='right' valign='top' style='cursor: pointer' onclick='closehint3s(true);'>";
|
||||
choicehtml += "<big><b>x</td></tr><tr><td colspan='2' id='tditemcontainer'><div id='itemcontainer' style='width: 100%'>";
|
||||
choicehtml += "</div></td></tr></table>";
|
||||
|
||||
var el = document.getElementById("hint3s");
|
||||
el.innerHTML = choicehtml;
|
||||
const el = document.getElementById("hint3s");
|
||||
el.innerHTML = choicehtml;
|
||||
el.style.width = 600 + 'px';
|
||||
el.style.visibility = "visible";
|
||||
el.style.left = 300 + 'px';
|
||||
@@ -139,9 +137,9 @@ function showitemschoice(title, type, script) {
|
||||
}
|
||||
|
||||
function getchoice(type) {
|
||||
var container = document.getElementById("itemcontainer");
|
||||
var request = createrequestobject();
|
||||
if(request) {
|
||||
const container = document.getElementById("itemcontainer");
|
||||
const request = createrequestobject();
|
||||
if(request) {
|
||||
request.open("POST", "itemschoice.php?" + type +"&get=1", true);
|
||||
request.onreadystatechange = function() {
|
||||
if(request.readyState == 4) {
|
||||
@@ -159,8 +157,8 @@ function getchoice(type) {
|
||||
}
|
||||
|
||||
function createrequestobject() {
|
||||
var request;
|
||||
if(window.XMLHttpRequest) {
|
||||
let request;
|
||||
if(window.XMLHttpRequest) {
|
||||
try {
|
||||
request = new XMLHttpRequest();
|
||||
} catch (e) { }
|
||||
@@ -177,10 +175,10 @@ function createrequestobject() {
|
||||
}
|
||||
|
||||
function selecttarget(scrollid) {
|
||||
var targertinput = document.getElementById('target');
|
||||
targertinput.value = scrollid;
|
||||
var targetform = document.getElementById('formtarget');
|
||||
targetform.submit();
|
||||
const targertinput = document.getElementById('target');
|
||||
targertinput.value = scrollid;
|
||||
const targetform = document.getElementById('formtarget');
|
||||
targetform.submit();
|
||||
}
|
||||
|
||||
function rem() {
|
||||
@@ -188,10 +186,10 @@ function rem() {
|
||||
}
|
||||
|
||||
function GoUpdate() {
|
||||
var can = $(".select").is(":checked");
|
||||
var vals = $(".select:checked").attr('id');
|
||||
var hash = '<?= md5($user['login'].'|'.$user['id']);?>';
|
||||
var uid = '<?=$user['id'];?>';
|
||||
const can = $(".select").is(":checked");
|
||||
const vals = $(".select:checked").attr('id');
|
||||
const hash = '<?= md5($user['
|
||||
const uid = '<?=$user['
|
||||
if(!can) {
|
||||
alert('Выберите предмет для повышения!');
|
||||
} else {
|
||||
@@ -212,10 +210,10 @@ function GoUpdate() {
|
||||
}
|
||||
|
||||
function GoDowngrade() {
|
||||
var can = $(".select").is(":checked");
|
||||
var vals = $(".select:checked").attr('id');
|
||||
var hash = '<?= md5($user['login'].'|'.$user['id']);?>';
|
||||
var uid = '<?=$user['id'];?>';
|
||||
const can = $(".select").is(":checked");
|
||||
const vals = $(".select:checked").attr('id');
|
||||
const hash = '<?= md5($user['
|
||||
const uid = '<?=$user['
|
||||
if(!can) {
|
||||
alert('Выберите предмет для повышения!');
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user