This commit is contained in:
lopar 2019-06-21 01:27:55 +03:00
parent 081f704592
commit d6e8e92b2b

View File

@ -92,7 +92,7 @@ if (isset($_POST['kr']) && ($_POST['kolv'] > 0)) {
if ($klan['glava'] == $sok['id']) { if ($klan['glava'] == $sok['id']) {
$st = "<font color=#008080><b>Глава клана</b></font>"; $st = "<font color=#008080><b>Глава клана</b></font>";
} }
if ($sok) { echo $_POST['option']; if ($sok) { echo $_POST['action'];
if ($_POST['save']) { if ($_POST['save']) {
if ($_POST['vin'] == 'on') { if ($_POST['vin'] == 'on') {
$polno[$sok['id']][0] = 1; $polno[$sok['id']][0] = 1;
@ -257,7 +257,7 @@ if (isset($_POST['kr']) && ($_POST['kolv'] > 0)) {
} }
function use(option) { function use(option) {
document.getElementById(option).innerHTML = "<form method='post'><input placeholder='Имя персонажа' name='login'><button name='"+option+"' type='submit'>Ок</button></form>"; document.getElementById(option).innerHTML = "<form method='post'><input placeholder='Имя персонажа' name='login'><button name='action' value='"+option+"' type='submit'>Ок</button></form>";
} }
</script> </script>
</body> </body>