extract($HTTP_POST_VARS);
extract($HTTP_GET_VARS);
if(is_array($HTTP_FILE_VARS)) extract($HTTP_FILE_VARS);
global $HTTP_POST_FILES;
include "inc/dbconn.inc";
?>
|
|
Принимаем к оплате кредитные карты:
|
|
|
|
|
|
|
if (@$podbor) {
$i=0;
$Query = "SELECT * FROM shuna";
$q = array();
if (@$shirina!='') { $q[] = "`shirina`='$shirina'"; }
if (@$profil!='') { $q[] = "`profil`= '$profil'"; }
if (@$diametr!='') { $q[] = "`diametr`= '$diametr'"; }
if (@$ship!='') { $q[] = "`ship`= '$ship'"; }
if (@$seson!='') { $q[] = "`seson`= '$seson'"; }
if (@$firma!='') { $q[] = "`firma`= '$firma'"; }
$qq = implode(' AND ', $q);
if ($qq != "") $Query .= " WHERE " . $qq;
$result = mysql_query($Query,$dbcon);
$a = mysql_num_rows($result);
print "По данному запросу найдено " . $a . " результатов
"; ?>
} ?>
if (@$podrobnee) {
$Query = "SELECT * FROM `shuna` WHERE id = '$id'";
$result = mysql_query($Query,$dbcon);
$rows=mysql_fetch_array($result)
?>
|
|
|
|
Модель: =$rows[model]?> |
if(file_exists('shuna/'.$id.'.jpg')) {
echo "";}?> |
Производитель: =$rows[firma]?>
Модель: =$rows[model]?>
Ширина: =$rows[shirina]?>
Профиль: =$rows[profil]?>
Диаметр: =$rows[diametr]?>
Шипы: =($rows[ship] == "1" ? "Есть" : "Нет")?>
Сезон: =($rows[seson]=="winter" ? "Зима" : ($rows[seson]=="summer" ? "Лето" : "Внесезон"))?>
|
=$rows[opisanie]?> |
|
|
|
|
|
} ?>
if (@$name) { ?>
$Query = "SELECT * FROM shuna WHERE seson = '$seson' ORDER BY firma";
$result = mysql_query($Query,$dbcon); ?>
} ?>
Выберите параметры и нажмите "Подобрать"
}?>
|
| |
|
|
|
|
|
|
|
| |