php не должен генерировать таблицу стилей
This commit is contained in:
parent
0c275b9eda
commit
6166f1d420
29
shop.php
29
shop.php
@ -256,6 +256,12 @@ switch ($shopItemTypeNumber) {
|
||||
font-family: Tahoma, sans-serif;
|
||||
font-size: 13px;
|
||||
}
|
||||
table.zebra tr {
|
||||
background-color: #C7C7C7;
|
||||
}
|
||||
table.zebra tr:nth-child(even) {
|
||||
background-color: #D5D5D5;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
function addCountItems(name, txt) {
|
||||
@ -281,32 +287,33 @@ switch ($shopItemTypeNumber) {
|
||||
<body>
|
||||
<h1>Государственный магазин</h1>
|
||||
<a href=# onclick=leave()> ← выйти на Центральную площадь</a>
|
||||
<TABLE border=0 width=100% cellspacing="0" cellpadding="4">
|
||||
<TABLE width=100% cellspacing="0" cellpadding="4">
|
||||
<TR>
|
||||
<TD valign=top align=left>
|
||||
<!--Магазин-->
|
||||
<TABLE border=0 width=100% cellspacing="0" cellpadding="0" bgcolor="#A5A5A5">
|
||||
<TR>
|
||||
<TD align=center>
|
||||
Отдел "<?= $shopItemType ?>"
|
||||
<h3>Отдел "<?= $shopItemType ?>"</h3>
|
||||
</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>
|
||||
<TABLE BORDER=0 WIDTH=100% CELLSPACING="1" CELLPADDING="2" BGCOLOR="#A5A5A5">
|
||||
<TABLE class="zebra" WIDTH=100% CELLSPACING="1" CELLPADDING="2" BGCOLOR="#A5A5A5">
|
||||
<?php
|
||||
if ($_REQUEST['sale']) {
|
||||
$sale = filter_input(INPUT_REQUEST,'sale');
|
||||
if ($sale) {
|
||||
// Выбираем всё потому что эту выборку потом использует showitem();
|
||||
$data = db::c()->query('SELECT * FROM `inventory` WHERE `owner` = ?i AND `dressed` = 0 AND `setsale` = 0 AND `cost` > 0 AND `present` = "?s" AND `tradesale` = 0 AND `podzem` = 0 ORDER BY `update` DESC', $user['id'], null);
|
||||
while ($row = $data->fetch_assoc()) {
|
||||
$row['count'] = 1;
|
||||
if ($i == 0) {
|
||||
$i = 1;
|
||||
$color = '#C7C7C7';
|
||||
} else {
|
||||
$i = 0;
|
||||
$color = '#D5D5D5';
|
||||
}
|
||||
// if ($i == 0) {
|
||||
// $i = 1;
|
||||
// $color = '#C7C7C7';
|
||||
// } else {
|
||||
// $i = 0;
|
||||
// $color = '#D5D5D5';
|
||||
// }
|
||||
|
||||
$price = $row['cost'] * 1;
|
||||
if ($data['koll']) {
|
||||
|
Loading…
Reference in New Issue
Block a user