"; $subs=FetchRows("SELECT id,name".$prefix.",thumb FROM cat_category WHERE sub=".$catid); for($i=0;$i"; } echo "".$thumb_name."".stripslashes($subs[$i]['name'.$prefix]).""; } echo ""; /** * * * display back link t * */ if($category['sub']!=0) { // we have a parent lets display it; $parent=FetchRow("SELECT name FROM cat_category WHERE id=".$category['sub']); echo "".$parent['name'.$prefix]." -> ".$category['name'.$prefix]; } // showing all items in the categroy; $items=FetchRows("SELECT * FROM cat_items WHERE category_id=".$catid); if(sizeof($items)>0) { echo ''; for($i=0;$i"; } ?> '; } else { //echo' Нет товаров в данной категории'; } } elseif(isset($_GET['viewproduct'])) { $id=$_GET['viewproduct']; $id=(int)$id; // now we'll fetch all information about this product; $item=FetchRow("SELECT * FROM cat_items WHERE id=".$id); $query = "SELECT thumbnail_name, `name` FROM cat_images WHERE item_id=".$item['id']." ORDER BY id ASC"; $images = FetchRows($query); $full_name = $images[0]['name']; $img_name = "$systemURL/UserFiles/Image/catalogue/$full_name"; $thumbnail_name = $images[0]["name"]; $thumb_name = ""; ?>



Делаем жизнь лучше. '; $colors=array('156480', 'c1b8ae', 'e05844', '577206', '0354c0', 'a9990f', '796e6e'); $off=0; for($i=0;$i"; $a=$all[$i]; ?>
'; } include ("_blocks/footer.php"); ?>