front page deprecated code remone
This commit is contained in:
parent
d08655b9ed
commit
7794d07c60
@ -253,29 +253,26 @@ switch ($shopCategoryTypeNumber) {
|
||||
<?php
|
||||
}
|
||||
} else {
|
||||
$data = mysql_query("SELECT DISTINCT `img`, `name`, `nalign`,`massa` FROM `inventory` WHERE `dressed`=0 AND `setsale` > 0 AND `present` = '' AND `otdel` = '" . $_GET['otdel'] . "' GROUP BY `img` ORDER by `cost` ASC");
|
||||
while ($row = mysql_fetch_array($data)) {
|
||||
$item_name1 = str_replace("+1", "", $row[1]);
|
||||
$item_name1 = str_replace("+2", "", $item_name1);
|
||||
$item_name1 = str_replace("+3", "", $item_name1);
|
||||
$item_name1 = str_replace("+4", "", $item_name1);
|
||||
$item_name1 = str_replace("+5", "", $item_name1);
|
||||
$item_name = str_replace(" (мф)", "", $item_name1);
|
||||
$item = mysql_fetch_array(mysql_query("SELECT count(`id`), min(duration), min(maxdur), max(duration), max(maxdur), min(setsale), max(setsale) FROM `inventory` WHERE `dressed`=0 AND `setsale` > 0 AND `present` = '' AND name LIKE '" . $item_name . "%';"));
|
||||
|
||||
$data = db::c()->query('SELECT DISTINCT `img`, `name`, `nalign`, `massa` FROM `inventory` WHERE `dressed` = 0 AND `setsale` > 0 AND `present` = "?s" AND `otdel` = "?s" GROUP BY `img` ORDER BY `cost` ASC', '', $_GET['otdel']);
|
||||
$replacements = ['+1','+2','+3','+4','+5',' (мф)'];
|
||||
while ($row = $data->fetch_assoc()) {
|
||||
$item_name = str_replace($replacements, '', $row['name']);
|
||||
$item = db::c()->query('SELECT COUNT(`id`), MIN(`duration`), MIN(`maxdur`), MAX(`duration`), MAX(`maxdur`), MIN(`setsale`), MAX(`setsale`) FROM `inventory` WHERE `dressed` = 0 AND `setsale` > 0 AND `present` = "?s" AND `name` LIKE "?S"', '', $item_name.'%')->fetch_assoc();
|
||||
?>
|
||||
<TR bgcolor=<?= $color ?>>
|
||||
<TD align=center><IMG SRC="i/sh/<?= $row['img'] ?>" ALT=""><BR><A
|
||||
HREF="?&max=<?= $item_name ?>">подробнее</A></TD>
|
||||
<TD valign=top><A HREF="#"><?= $item_name ?></a>
|
||||
<IMG SRC="i/align_<?= $row[2] ?>.gif" WIDTH="12" HEIGHT="15" ALT="">
|
||||
<TR>
|
||||
<TD align=center>
|
||||
<IMG SRC="i/sh/<?= $row['img'] ?>" ALT="">
|
||||
<BR><A HREF="?&max=<?= $item_name ?>">подробнее</A>
|
||||
</TD>
|
||||
<TD valign=top>
|
||||
<?= $item_name ?> <img src="i/align_<?= $row['nalign'] ?>.gif">
|
||||
(Масса: <?= $row['massa'] ?>) <BR>
|
||||
<b>Цена: <?= round($item[5], 2) ?> - <?= round($item[6], 2) ?> кр.</b>
|
||||
<small>(количество: <?= $item[0] ?>)</small>
|
||||
<BR>
|
||||
|
||||
Долговечность: <?= $item[1] ?>-<?= $item[2] ?>/<?= $item[3] ?>
|
||||
-<?= $item[4] ?></FONT><BR>
|
||||
-<?= $item[4] ?><BR>
|
||||
|
||||
</TD>
|
||||
</TR>
|
||||
|
Loading…
Reference in New Issue
Block a user