$style){ if ($key != $style_name){ foreach ($style[1][1] as $item){ $array[] = $item; } foreach ($style[1][3] as $item){ $array[] = $item; } foreach ($style[1][2] as $item){ $array[] = $item; } foreach ($style[1][4] as $item){ $array[] = $item; } foreach ($style[1][5] as $item){ $array[] = $item; } foreach ($style[0][1] as $item){ $array[] = $item; } foreach ($style[0][3] as $item){ $array[] = $item; } foreach ($style[0][2] as $item){ $array[] = $item; } foreach ($style[0][4] as $item){ $array[] = $item; } foreach ($style[0][5] as $item){ $array[] = $item; } } } return $array; } if (!strpos($_SERVER['HTTP_REFERER'], 'products')){ setcookie('filter', false); setcookie('qs', ''); setcookie('scroll_position', 0); setcookie("productId", 0); setcookie("pageNum", 0); unset($_COOKIE['filter']); unset($_COOKIE['qs']); unset($_COOKIE['pageNum']); unset($_COOKIE['productId']); } $isScroll = false; if ($productId = intval($_GET['id'])){ if ($pageNum = intval($_GET['page'])){ setcookie("productId", $productId, time() + 3600 * 24 * 2); setcookie("pageNum", $pageNum, time() + 3600 * 24 * 2); } } else { if ($productId = intval($_COOKIE['productId'])){ if (!intval($_GET['g'])){ header('Location: '.$_SERVER['SCRIPT_NAME'].'?g=1#p'.$productId); exit(); } else { $isScroll = true; $pageNum = intval($_COOKIE['pageNum']); } } } include_once('../Gallery.class'); require_once('../config.php'); // always use ? category if(empty($_GET['category'])) $_GET['category'] = 6; // 1 - ID of root gallery $g = new Gallery(5); $cat = new Gallery($_GET['category']); $designTypeRes = mysql_query('select * from design_type ORDER BY name ASC'); if(mysql_errno()) die(mysql_error()); $stylesRes = mysql_query(' select DISTINCT style from Image WHERE Hidden = 0 AND CategoryId = '.$_GET['category'].' ORDER BY style ASC ' ); if(mysql_errno()) die(mysql_error()); $fiberYarnRes = mysql_query('select * from fiber_yarn ORDER BY name ASC'); if(mysql_errno()) die(mysql_error()); $rugItemRes = mysql_query('select * from rug_item ORDER BY name ASC'); if(mysql_errno()) die(mysql_error()); $colorRes = mysql_query('select * from color ORDER BY name ASC'); if(mysql_errno()) die(mysql_error()); $yearRes = mysql_query('select year from `Image`WHERE year is not null GROUP BY `year` ORDER BY `year` DESC'); if(mysql_errno()) die(mysql_error()); if ($_GET['filter'] == 'clear'){ setcookie('filter', false); setcookie('qs', ''); setcookie('scroll_position', 0); setcookie("productId", 0); setcookie("pageNum", 0); unset($_COOKIE['filter']); unset($_COOKIE['qs']); unset($_COOKIE['pageNum']); unset($_COOKIE['productId']); } //print_r($maxYear); if ($filter = $_GET['f']){ setcookie('filter', serialize($filter)); setcookie('qs', $_SERVER['QUERY_STRING']); setcookie('scroll_position', 0); } else { if ($_COOKIE['filter']){ $filter = unserialize($_COOKIE['filter']); $_GET['f'] = $filter; $_SERVER['QUERY_STRING'] = $_COOKIE['qs']; } } include ("../head.php"); include ("../top_ad.php"); ?>
Product search
Select ONE or more of the below fields, then click search
Style name:    
Design Type: Collection/fiber type: Predominant color: Item type: Collection group: By keyword:
   
 name() ?> 

  */?> name()?>*/?> description()?>

imageCount())){?>

NO MATCHES FOUND

$cat, "images" => $cat->images($imageCount)))?>

  imageCount() > 12){?>
title()." ) OR ID = (SELECT MIN(ID) FROM Image WHERE Title > ".$image->title().")) "); */ $result_nav_count = mysql_fetch_assoc($cat->imageCount()); unset($_GET['page']); $result_nav = $cat->images(1000000); $arr_img = array(); $img_cur = 0; while($record = mysql_fetch_assoc($result_nav)){ $arr_img[] = array('ID' => $record['ID'],'Title' =>trim(strip_tags($record['Title'])) ); if ($_GET['id'] == $record['ID']){ $img_cur ++; } if ($img_cur > 1){ break; } else { if ($img_cur){ $img_cur ++; } } } $img_cur--; //print_r($arr_img); // $arr_img[$_GET['id']]; $next = end($arr_img); if ($next['ID'] && $_GET['id'] != $next['ID']){ prev($arr_img); } $prev = prev($arr_img); //print_r($prev); if ($prev['ID']){ echo 'Prev - '.trim(strip_tags($prev['Title'])).'      '; } if ($next['ID'] && $_GET['id'] != $next['ID']){ echo 'Next - '.trim(strip_tags($next['Title'])).'

'; } ?>
style() != trim(strip_tags($image->title()))){?>style().' '.$image->style_additional_text() ?> - title()?>
record['collection_name']) ){ ?> Collection: record['collection_name']?>
description()?>
year()){?> Collection group: year()?> (see other items from this collection group)


width() >= 468): ?>
size()?> border="0"/> url2()){?>

description2()?>


width(); $max = 468; $images = $image->subimages(); $HrefTpl = ''; echo ''; while($img = $image->fetch($images)): $width += $img['width']; if($width >= $max){ // new line $width = $img['width']; echo '
'; echo ''; }elseif($width > $img['width']){ // no new line $width + 10; echo ''; } $img_big['url'] = preg_replace ('/([0-9]+)(\.[a-z]+)$/', "$1big$2", $img['url']); $img_big['file'] = preg_replace ('/^.*\/(sub[0-9]+)(\.[a-z]+)$/', IMG_DIR."/$1big$2", $img['url']); if (is_file ($img_big['file'])) { $img_big['size'] = getimagesize ($img_big['file']); $href = str_replace (array('{URL}', '{JS}'), array ('#', "window.open('{$img_big['url']}', 'bigphoto', 'status=yes,menubar=no,resizable=yes,width={$img_big['size'][0]},height={$img_big['size'][1]}'); return false;"), $HrefTpl); } else $href=null; ?>
/>';?>
title(), "Woven Jewels")){ echo "
This image was achieved by joining the 12' wide broadloom together with the 27\" runner/border
"; } ?>
May we also suggest...

'; echo "
"; $r_items = array(); while($record = mysql_fetch_assoc($result)){ $r_items[] = $record; } //be careful, this fucking func don't support unlimited count of items in rug_items table, iam not gonna fix it, whos care, i really think this web site is becoming a hell gate. hello from kss. $r_items = sortByStyleColorType($r_items, $image->record['style'], $image->record['color_id']); //debug //echo '!!!';print_r($r_items);echo '!!!'; $i == 0; echo ""; foreach ($r_items as $record){ if ($i == 0) echo ""; $i++; if ($i == 5) $i = 0; //echo ''.(trim(strip_tags($record['style'])) == trim(strip_tags($record['Title'])) ? '' : $record['style'].' '.$record['style_additional_text'].' - ').trim(strip_tags($record['Title'])).'
'; } echo "
"; ?>
"; } } ?>


view ($_GET['category'], $_GET['id']); ?> Actual colors may not match these pictures
Product search
Select ONE or more of the below fields, then click search
Style name:    
Design Type: Collection/fiber type: Predominant color: Item type: Collection group: By keyword: