if($step == "detail") { $result = mysql_query("select * from UDT_PRODUCTS where PRIKEY = '$prodid'"); $row = mysql_fetch_array($result); ?>
|
$cresult = mysql_query("select * from UDT_PROD_CATEGORIES where PRIKEY = '$type'") or die(mysql_error());
$crow = mysql_fetch_array($cresult);
echo " Catalog > Classical > $crow[CAT_NAME] > $row[ITEM_NO] << Back \n";
?>
|
|
$vresult = mysql_query("select * from UDT_PROD_VARIANTS where PRODID = '$row[PRIKEY]' order by SORT_ORDER");
$idnum = "1";
while($vrow = mysql_fetch_array($vresult)) {
if($vrow[AUTO_IMAGE]) {
$thisimage = $vrow[AUTO_IMAGE];
list($width, $height, $type) = getimagesize("images/$thisimage");
$ispecs = getimagesize("images/$thisimage");
if($ispecs[0] <= 675) {
$wwidth = $ispecs[0] + 50;
} else {
$wwidth = 700;
}
if($ispecs[1] <= 500) {
$wheight = $ispecs[1] + 50;
} else {
$wheight = 525;
}
} else {
$thisimage = "na_thumb.jpg";
list($width, $height, $type) = getimagesize("images/$thisimage");
$ispecs = getimagesize("images/$thisimage");
if($ispecs[0] <= 675) {
$wwidth = $ispecs[0] + 50;
} else {
$wwidth = 700;
}
if($ispecs[1] <= 500) {
$wheight = $ispecs[1] + 50;
} else {
$wheight = 525;
}
}
echo "
|
|
$cresult = mysql_query("select * from UDT_PROD_CATEGORIES where PRIKEY = '$category'") or die(mysql_error());
$crow = mysql_fetch_array($cresult);
echo " Catalog > Classical > $crow[CAT_NAME] << Back \n";
?>
$xresult = mysql_query("select * from UDT_PRODUCTS where TYPE = '$category' limit 1");
$xrow = mysql_fetch_array($xresult);
if($xrow[AUTO_IMAGE] && $xrow[AUTO_IMAGE] != "NULL"){
$thisimage = $xrow[AUTO_IMAGE];
} else {
$thisimage = "na_thumb.jpg";
}
?>
| ||||
| ||||
|
Catalog > Classical << Back
$cresult = mysql_query("select * from UDT_PROD_CATEGORIES order by SORT_ORDER");
$crow = mysql_fetch_array($cresult);
if($crow[AUTO_IMAGE] && $crow[AUTO_IMAGE] != "NULL"){
$thisimage = "$crow[AUTO_IMAGE]";
} else {
$thisimage = "na_thumb.jpg";
}
$thisimage = "category_Classical.jpg";
?>
| ||||||
| ||||||