styling
This commit is contained in:
parent
ad560090f3
commit
da66143102
@ -104,9 +104,7 @@ if ($get === 'sale') {
|
||||
|
||||
FROM `inventory` LEFT JOIN `magic` ON `magic` = `magic`.`id` WHERE `setsale` = 0 AND `dressed` = 0 AND `present` = "?s" AND `owner` = ?i ORDER BY `update` DESC ', '', $_SESSION['uid']);
|
||||
$classPrintControlName = "marketput";
|
||||
}
|
||||
|
||||
elseif ($get === 'unsale') {
|
||||
} elseif ($get === 'unsale') {
|
||||
$data = db::c()->query('SELECT `inventory`.*,
|
||||
`magic`.`name` AS `magic_name`,
|
||||
`magic`.`chanse` AS `magic_chanse`,
|
||||
@ -119,9 +117,7 @@ elseif ($get === 'unsale') {
|
||||
|
||||
FROM `inventory` LEFT JOIN `magic` ON `magic` = `magic`.`id` WHERE `setsale` > 0 AND `dressed` = 0 AND `owner` = ?i ORDER BY `update` DESC', $_SESSION['uid']);
|
||||
$classPrintControlName = "marketgetback";
|
||||
}
|
||||
|
||||
else if (!empty($_POST['search'])) {
|
||||
} else if (!empty($_POST['search'])) {
|
||||
$data = db::c()->query('SELECT `inventory`.*,
|
||||
`magic`.`name` AS `magic_name`,
|
||||
`magic`.`chanse` AS `magic_chanse`,
|
||||
@ -133,9 +129,7 @@ else if (!empty($_POST['search'])) {
|
||||
0 AS `maxdur`
|
||||
|
||||
FROM `inventory` LEFT JOIN `magic` ON `magic` = `magic`.`id` WHERE `dressed` = 0 AND `inventory`.`name` LIKE "%?S%" AND `setsale` > 0 ORDER BY `setsale` ASC', $_POST['search']);
|
||||
}
|
||||
|
||||
else {
|
||||
} else {
|
||||
$data = db::c()->query('SELECT `inventory`.*,
|
||||
`magic`.`name` AS `magic_name`,
|
||||
`magic`.`chanse` AS `magic_chanse`,
|
||||
@ -170,7 +164,7 @@ while ($row = $data->fetch_assoc()) {
|
||||
<TR>
|
||||
<TD valign=top align=left>
|
||||
<!--Комиссионный Магазин-->
|
||||
<TABLE class="zebra" width=100% cellspacing="0" cellpadding="0">
|
||||
<TABLE class="zebra" width=100% >
|
||||
<TR>
|
||||
<TH>
|
||||
<?php
|
||||
@ -184,24 +178,22 @@ while ($row = $data->fetch_assoc()) {
|
||||
<input name="search"> <input type="submit" value="Искать товар">
|
||||
</form>
|
||||
MARKET;
|
||||
} ?>
|
||||
} ?>
|
||||
</TH>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD><!--Рюкзак-->
|
||||
<TABLE BORDER=0 WIDTH=100% CELLSPACING="1" CELLPADDING="2" BGCOLOR="#A5A5A5">
|
||||
<TABLE WIDTH=100% style="border: 1px solid #000; border-collapse: collapse;">
|
||||
<?php
|
||||
|
||||
foreach ($iteminfo as $ii) {
|
||||
echo "<tr><td style='width: 150px; text-align: center;'>";
|
||||
$ii->printImage();
|
||||
$ii->printControls($classPrintControlName);
|
||||
echo "</td>";
|
||||
echo "<td style='vertical-align: top;'>";
|
||||
$ii->printInfo();
|
||||
echo "</td></tr>";
|
||||
}
|
||||
|
||||
foreach ($iteminfo as $ii) {
|
||||
echo "<tr><td style='width: 150px; text-align: center;'>";
|
||||
$ii->printImage();
|
||||
$ii->printControls($classPrintControlName);
|
||||
echo "</td>";
|
||||
echo "<td style='vertical-align: top;'>";
|
||||
$ii->printInfo();
|
||||
echo "</td></tr>";
|
||||
}
|
||||
?>
|
||||
</TABLE>
|
||||
</TD>
|
||||
@ -213,10 +205,14 @@ MARKET;
|
||||
<b>Масса всех ваших вещей: <?= getItemsMassaInfo() ?>
|
||||
<br>У вас в наличии: <span style="color: darkgreen;"><?= $user['money'] ?></span> кр.</b>
|
||||
<hr>
|
||||
<br><button onclick="hrefToFrame('?show')">Осмотреть товары</button>
|
||||
<br><button onclick="hrefToFrame('?sale')">Сдать вещи в магазин</button>
|
||||
<br><button onclick="hrefToFrame('?unsale')">Забрать вещи из магазина</button>
|
||||
<br><button onclick="hrefToFrame('city.php?cp=1')">Вернуться</button>
|
||||
<br>
|
||||
<button onclick="hrefToFrame('?show')">Осмотреть товары</button>
|
||||
<br>
|
||||
<button onclick="hrefToFrame('?sale')">Сдать вещи в магазин</button>
|
||||
<br>
|
||||
<button onclick="hrefToFrame('?unsale')">Забрать вещи из магазина</button>
|
||||
<br>
|
||||
<button onclick="hrefToFrame('city.php?cp=1')">Вернуться</button>
|
||||
</div>
|
||||
</TD>
|
||||
</TR>
|
||||
|
Loading…
Reference in New Issue
Block a user