";
if($pageid == $services_menu[$row][0]) { $menutype = "menuitem menuitem_hi" ; } else { $menutype = "menuitem"; }
$pageurl = 'desktops.php';
$pagedesc = 'Desktops';
if ($services_menu[$row][0]<>"home") { $marker = '«'; }
echo "
";
$mode = $_GET['mode'];
$productid = $_GET['prod'];
require('db.php');
// get section detail
$sresult = mysql_query("SELECT * FROM sections where secid='$section'");
while ($row = mysql_fetch_array($sresult)){
$secdesc = $row['secdesc'];
$secname = $row['secname'];
}
if ($mode=='detail')
{
$result = mysql_query("SELECT * FROM products where prid='$productid'");
while ($row = mysql_fetch_array($result)){
$product = $row['prid'];
$productname = $row['prname'];
$image = $row['primgloc2'];
$logsize = $row['prlogsize'];
$sapprice = $row['prsaprice'];
$width = $row['prwidth'];
$length = $row['prlength'];
$windows = $row['prwindows'];
$description = $row['prdesc'];
$area = $row['prarea'];
$ridgeheight = $row['prridge'];
}
echo "
";
echo "$productname |
";
echo "«« back to $secname list |
";
echo " | ";
echo "$description Self Assembly Price £ $sapprice | ";
echo "
";
echo "
";
echo "| Dimensions | $width m x $length m |
";
echo "| Log Size | $logsize mm |
";
echo "| Doors & Windows | $windows |
";
echo "| Area | $area m |
";
echo "| Ridge Height | $ridgeheight cm |
";
echo "
";
echo "
Features
\n";
echo "
\n";
echo "
\n\n";
$cellno = 0;
$results = mysql_query("SELECT * from productfeatures, features where pfprid = '$product' and pffeid = feid");
while ($rows = mysql_fetch_array($results)){
$feimgloc = $rows['feimgloc'];
$fedesc = $rows['fedesc'];
if($cellno=='5')
{
echo "
\n\n";
$cellno = 0;
}
$cellno++;
echo "\n";
if ($feimgloc<>'') {
echo "  ";
}
echo "";
echo " $fedesc ";
echo " | \n";
}
echo "
";
echo "
";
echo "
For more information about this product or to discuss your specific requirements please contact us.
";
} else {
echo "
$secname
";
echo "
$secdesc
";
echo "
Our range includes:
";
echo "
";
$result = mysql_query("SELECT * FROM products where prsecid='$section'");
while ($row = mysql_fetch_array($result)){
$product = $row['prid'];
$productname = $row['prname'];
$image = $row['primgloc'];
$logsize = $row['prlogsize'];
$sapprice = $row['prsaprice'];
$width = $row['prwidth'];
$length = $row['prlength'];
$windows = $row['prwindows'];
echo "| " . $productname . " " . $width . "m x " . $length . " m |
";
echo "";
echo " | ";$mode = $_GET['detail'];
echo "" . $logsize . " mm log";
echo $windows . "";
echo "Self Assembly Price: £" . $sapprice . " | ";
echo "View details | ";
echo "
";
echo "| |
";
}
echo "
";
}
?>