'.$bljak; $href_0=str_replace('%0A','',$_SERVER['REQUEST_URI']); header("HTTP/1.1 301 Moved Permanently"); header("Location: ".SRV."/personalcase.endorphone.com.ua".$href_0); } $devn=$_GET[devn]; if($devn) { $devn=explode('-',$devn); $devN=$devn[2]; } if(!$devN) $devN=1; //echo $devnn; $AA=null; $BB=null; $y=0; /*--------------------------------BRENDU---------------------------------*/ /*$sql_cat = "select folder,name from catalog_brend where arh!=1 order by sort"; if ($_COOKIE[valid_user]=='true') { $sql_cat = "select folder,name from catalog_brend order by sort"; } $result_cat = mysql_query($sql_cat); while ($inter_cat = mysql_fetch_array($result_cat)) { $AA[$y]='Чехлы для '.$inter_cat[name]; $BB[$y]='http://endorphone.com.ua/'.$inter_cat[folder].'-case'; $y++; }*/ /*--------------------------------DEVAICU---------------------------------*/ /*$sql_cat = "select categoryID,folder,name_tovar from catalog_categ where arh!=1 and parent=0 order by sort"; if ($_COOKIE[valid_user]=='true') { $sql_cat = "select categoryID,folder,name_tovar from catalog_categ where parent=0 order by sort"; } $result_cat = mysql_query($sql_cat); while ($inter_cat = mysql_fetch_array($result_cat)) { $sql = "select name,folder,brendID,production,UnVisCat,deviceID from catalog_device order by sort"; $result = mysql_query($sql); while ($inter = mysql_fetch_array($result)) { $name = $inter[name]; $sql_bort = "select id from catalog_device_intime where deviceID=$inter[deviceID] and categoryID=$inter_cat[categoryID]"; $result_bort = mysql_query($sql_bort); $inter_bort = mysql_num_rows($result_bort); //echo count($production); $name_br=''; $sql_br = "select name,folder from catalog_brend where brendID=$inter[brendID]"; $result_br = mysql_query($sql_br); $inter_br = mysql_fetch_array($result_br); if($inter_br[name] and $inter[brendID]!=1) $name_br=$inter_br[name].' '; if($inter_bort>0) { $AA[$y]=$inter_cat[name_tovar].' для '.$name_br.$name; $BB[$y]='http://endorphone.com.ua/'.$inter_br[folder].'-'.$inter[folder].'-'.$inter_cat[folder]; $y++; } } }*/ /*--------------------------------KATEGORII---------------------------------*/ /*$sql_cat = "select categoryID,folder,name_tovar,name from catalog_categ where arh!=1 and parent=0 and (categoryID=16 or categoryID=39 or categoryID=40) order by sort"; $result_cat = mysql_query($sql_cat); while ($inter_cat = mysql_fetch_array($result_cat)) { $AA[$y]=$inter_cat[name]; $BB[$y]='http://endorphone.com.ua/'.$inter_cat[folder]; $y++; $AA[$y]='Новинки '.$inter_cat[name]; $BB[$y]='http://endorphone.com.ua/'.$inter_cat[folder].'/new'; $y++; $catTEST=$inter_cat[categoryID]; if($inter_cat[categoryID]==16 or $inter_cat[categoryID]==39 or $inter_cat[categoryID]==40) $inter_cat[categoryID]=10; $sql_catpar = "select categoryID,folder,name_tovar,name from catalog_categ where arh!=1 and parent=$inter_cat[categoryID] order by sort"; $result_catpar = mysql_query($sql_catpar); while ($inter_catpar = mysql_fetch_array($result_catpar)) { $sqlzz = "select * from `catalog_categ_meta` where categoryID=$catTEST and categP=$inter_catpar[categoryID]"; $resultzz = mysql_query($sqlzz); $interzz = mysql_fetch_array($resultzz); $interzz[title]=str_replace(' в интернет-магазине Endorphone','',$interzz[title]); $AA[$y]=$interzz[title]; $BB[$y]='http://endorphone.com.ua/'.$inter_cat[folder].'/'.$inter_catpar[folder]; $y++; } }*/ /*--------------------------------KONFIG---------------------------------*/ /*$AA[$y]='Чехол со своим фото'; $BB[$y]='http://endorphone.com.ua/conf/'; $y++; $sql = "select name,folder,brendID,production,UnVisCat from catalog_device where arh!=1 order by sort"; $result = mysql_query($sql); while ($inter = mysql_fetch_array($result)) { $name = $inter[name]; $UnVisCat=explode('|||',$inter[UnVisCat]); $production=explode('|||',$inter[production]); //echo count($production); $name_br=''; $sql_br = "select name,folder from catalog_brend where brendID=$inter[brendID]"; $result_br = mysql_query($sql_br); $inter_br = mysql_fetch_array($result_br); if($inter_br[name] and $inter[brendID]!=1) $name_br=$inter_br[name].' '; $sql_cat = "select categoryID,folder,name_tovar from catalog_categ where arh!=1 and parent=0 and categoryID!=10 and categoryID!=1 order by sort"; $result_cat = mysql_query($sql_cat); while ($inter_cat = mysql_fetch_array($result_cat)) { $chehol=0; for($i=0;$i Карта сайта<? if($devN>1) echo ' '.$devN?> '; } elseif($devN>1 and $devN1) echo ''; if($vv==1) echo ''; $vv=$devN+1; echo ''; } elseif($devN==ceil(count($AA)/150)) { $vv=$devN-1; if($vv>1) echo ''; if($vv==1) echo ''; } ?>
'.$AA[$i].'
'; } ?>