switch($category)
{
case 0:
$title="Floor Tiles | Ceramic Tiles";
$metadescription="providing floor tiles in South Africa. Unique floor tiles and accessories";
$metakeywords="tile sales, ceramic tiles, tiling, flooring, tiling, fitter, fitting, tile, marble, granite";
$etext="UC Tiles provides floor tiles in South Africa. Our floor covering is unique and the floor tiles are designed to catch the eyes of anyone walking on";
$etext.="them. Special care needs to be taken on the floor when it is covered with tiles such as ours.";
$ealt="floor tiles";
$image="pics/floorhead.jpg";
break;
case 1:
$title="Wall Tiles | Tile Fitting";
$metadescription="providing wall tiles in South Africa. Unique wall tiles with paterns and images on them";
$metakeywords="tile sales, ceramic tiles, tiling, flooring, tiling, fitter, fitting, tile, marble, granite";
$etext="We are the proud suppliers of wall tiles in South Africa. All the tiles to fit on your wall are unique in design and our wall tiles comes to you as";
$etext.="part of South African interior decor products";
$ealt="wall tiles";
$image="pics/wallhead.jpg";
break;
case 2:
$title="Tile Accessories | Tile Cleaning";
$metadescription="providing tile accessories in South Africa";
$metakeywords="tile accessories south africa";
$etext="UC Tiles provides tile accessories in South Africa. All accessories for your tiles can be obtained here, including abrasives, cement and";
$etext.="whatever else you might need.";
$ealt="tile accessories";
$image="pics/acchead.jpg";
break;
}
?>
Ceramic TIles | Tile Cleaning | Affordable Tiles
All prices are VAT inclusive.
switch($cat)
{
case 0:
$title="Floor Tiles";
$title2="Floor Tile";
break;
case 1:
$title="Wall Tiles";
$title2="Wall Tile";
break;
case 2:
$title="Accessories";
$title2="Accessory";
break;
}
print "A tile in a category which is on special is represented in green.
";
$conn=pg_connect("dbname=uctiles user=sqluser password=iadmin");
$sql="select * from products where category=$category order by price";
$result=pg_exec($conn,$sql);
if (pg_numrows($result) > 0)
{
$line=0;
//clear the cache for the file_exists function
clearstatcache();
print "
";
while ($line < pg_numrows($result))
{
$display=pg_fetch_array($result,$line);
$rec=$display[record];
//check if tile has a gallery
$sql="select * from images where tileid=$rec";
$galleryres=pg_exec($conn,$sql);
if (pg_numrows($galleryres) > 0)
{
$gallery="true";
}
else
{
$gallery="false";
}
$grade_id=$display[grade];
if ($grade_id !="")
{
if ($grade_id=="1")
$grade="1st Grade";
if ($grade_id=="2")
$grade="2nd Grade";
if ($grade_id=="3")
$grade="Commercial Grade";
}
else
$grade="";
if ($display[toptile]=="Y")
$fontcolor="green";
else
$fontcolor="black";
$mprice=$display[mprice];
$bname=$display[bname];
$texture=$display[texture];
$finish=$display[finish];
if ($texture==0){$texture="None";}
if ($texture==5){$texture="Rough";}
if ($finish==0){$finish="Matt Finish";}
if ($finish==5){$finish="Shiny Finish";}
//work out the value of the image field using the value of the code
$pos = strpos($display[code]," ");
if ($pos === false)
$image=$display[code];
else
$image=substr($display[code],0,$pos);
$file="/home/httpd/html/u/uctiles/morepics/" . $image . "_1.jpg";
if (file_exists($file))
{
print "