tests
This commit is contained in:
+7
-10
@@ -50,7 +50,11 @@ if ($returningItemId) {
|
||||
} else $status = "Предмет не найден на полках магазина!";
|
||||
}
|
||||
|
||||
if (isset($_POST['puttomarket']) AND $puttingItemPrice) echo "<h1>WHOA!</h1>";
|
||||
if (isset($_POST['putToMarket'])) {
|
||||
if ($puttingItemPrice > 0) {
|
||||
$dress = db::c()->query()->fetch_assoc();
|
||||
} else $status = "Хорошая попытка…";
|
||||
}
|
||||
|
||||
if ($_GET['set']) {
|
||||
|
||||
@@ -199,14 +203,6 @@ switch ($shopCategoryTypeNumber) {
|
||||
<link rel=stylesheet href="css/main.css">
|
||||
<script src="js/main.js"></script>
|
||||
<meta charset="utf-8">
|
||||
<SCRIPT LANGUAGE="JavaScript">
|
||||
function sale(name, txt, n, kr) {
|
||||
var s = prompt("Сдать в магазин \"" + txt + "\". Укажите цену:", kr);
|
||||
if ((s != null) && (s !== '')) {
|
||||
location.href = "?sale=" + name + "&kredit=" + s + "&n=" + n;
|
||||
}
|
||||
}
|
||||
</SCRIPT>
|
||||
</HEAD>
|
||||
<body>
|
||||
<div style="float: right;">
|
||||
@@ -253,7 +249,8 @@ switch ($shopCategoryTypeNumber) {
|
||||
|
||||
foreach ($iteminfo as $ii) {
|
||||
echo "<tr><td style='width: 150px; text-align: center;'>";
|
||||
$ii->printImage(); ?>
|
||||
$ii->printImage();
|
||||
$ii->printControls('marketput');?>
|
||||
<form method="post">
|
||||
<input placeholder="Цена" name="cost">
|
||||
<br><input type="submit" name="puttomarket" value="Cдать в магазин">
|
||||
|
||||
Reference in New Issue
Block a user