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 > Traditional > $crow[CAT_NAME] > $row[NAME] << Back \n";
?>
|
$thisspec = $row[SPECS];
$thisimage = $row[AUTO_IMAGE];
$thisimagelarge = $row[LARGE_IMAGE];
list($width, $height, $type) = getimagesize("images/$thisimagelarge");
$ispecs = getimagesize("images/$thisimagelarge");
if($ispecs[0] <= 675) {
$wwidth = $ispecs[0] + 70;
$wwidth = 520;
} else {
$wwidth = 700;
}
if($ispecs[1] <= 500) {
$wheight = $ispecs[1] + 80;
$wheight = 530;
} else {
$wheight = 525;
}
?>
echo $row[DESCRIPTION]; ?>
echo $row[WIDTH]; ?>"W x echo $row[DEPTH]; ?> "D x echo $row[HEIGHT]; ?>"H echo $row[DIMENSION_COMMENT]; ?>
Species Shown - echo $row[SPECIES_SHOWN]; ?>
Available Species - echo $row[SPECIES_AVAILABLE]; ?>
Finish Shown - echo $row[FINISH_SHOWN]; ?>
Available Finishes - click here
Recommended Mirror - echo $row[MIRROR]; ?>
Custom Sizes Available - echo $row[CUSTOM_SIZES]; ?>
Lead Time - echo $row[LEAD_TIME]; ?>
Specifications - echo "click here"; ?>
Design Gallery - not sure how to do this yet
|
);" style="cursor:hand;">
|
|
|
$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 "  \n";
$idnum ++;
}
?>
|
if($step == "category") {
?>
$cresult = mysql_query("select * from UDT_PROD_CATEGORIES where PRIKEY = '$category'") or die(mysql_error());
$crow = mysql_fetch_array($cresult);
echo "Catalog > Traditional > $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";
}
?>
|
move your curser over the images (thumbnails) below to view item configuration options
click on the image (thumbnail) below to view additional item configuration information |
 |
| Available Configurations
|
|
|
$idnum = "1";
$result = mysql_query("select * from UDT_PRODUCTS where TYPE = '$category' order by SORT_ORDER") or die(mysql_error());
while($row = mysql_fetch_array($result)) {
echo '
';
$idnum ++;
} // end while loop
?>
|
} // end category display
?>
if(!$step) {
?>
Catalog > Traditional << 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";
}
?>
|
move your curser over the images (thumbnails) below to view design options
click on the image (thumbnail) below to view additional design information |
 |
| Available Designs |
|
|
$idnum = "1";
$result = mysql_query("select * from UDT_PROD_CATEGORIES order by SORT_ORDER");
while($row = mysql_fetch_array($result)) {
if($row[PRIKEY] < "10"){
echo '
';
$idnum ++;
}
} // end while loop
?>
|
} // end initial display
?>