sitionDesc))), 0, 300)."' />". ""; print "". "". // "". ""; } elseif ($_REQUEST['newsID']) { $newsQT = "SELECT * FROM mh.news AS n ". "WHERE n.newsID = '{$_REQUEST['newsID']}'"; $newsR = mySQL::dbFetch($newsQT); print "". "". ""; print "". "". // "". ""; } print "". "". "{$meta_desc}". "{$title}". "". " ". " ". // "". ""; if ($_SESSION['uID'] == 1 OR $_SESSION['uID'] == 2) { on' href='http://box-fox.ru/gfx/favicon.ico'>"; print "". ""; $onScroll = " onScroll=\"checkScroll(); \""; if ($_SESSION['bID'] == 2) { $randEah = rand(1, 4); //$randEah = 2; print "". ""; } else { print "". ""; } // xmas if ($_SESSION['xMas']) { print "
!
". "
!
"; } print " "; print " "; foreach ($sliderArr1 AS $sliderKey => $sliderFile) { $sliderButton[] = "
"; if ($sliderLink[$sliderKey]) { $sliderImg[] = "{$sliderNamesArr[$sliderKey]}"; } else { $sliderImg[] = "{$sliderNamesArr[$sliderKey]}"; } } print "
" . "
" . "
" . "".implode($sliderImg, "")."" . "
" ION['sort_stock'] == "all") { $_SESSION['sort_stock'] = "in_stock_soon"; } if ($_REQUEST['sort_stock'] == "all") { $_SESSION['sort_stock'] = "all"; } elseif ($_REQUEST['sort_stock'] == "in_stock") { $_SESSION['sort_stock'] = "in_stock"; } elseif ($_REQUEST['sort_stock'] == "in_stock_soon") { $_SESSION['sort_stock'] = "in_stock_soon"; } if ($_SESSION['sort_stock'] == "all") { $style1 = " style='border-bottom: 1px dashed rgba(000,000,205,.7);'"; } elseif ($_SESSION['sort_stock'] == "in_stock") { $style2 = " style='border-bottom: 1px dashed rgba(000,000,205,.7);'"; } elseif ($_SESSION['sort_stock'] == "in_stock_soon") { $style3 = " style='border-bottom: 1px dashed rgba(000,000,205,.7);'"; } // $addrKey = "?"; if ($_REQUEST['hero']) { $addrKey.= "hero={$_REQUEST['hero']}&"; } elseif ($_REQUEST['coll']) { $addrKey.= "coll={$_REQUEST['coll']}&"; } $blStyle UEST['hero'] OR $_REQUEST['coll']) { $sqlWhereType = "AND p.posID = rptl.typePosID "; $sqlAddonOrder = "FIELD(rptl.TypeID, '{$_SESSION['sort_type']}') DESC, rptl.typeID ASC, "; } } if ($_SESSION['sort_price']) { //$sqlFromType = ", mh.ref_pos_types_links AS rptl) "; $sqlFrom = "LEFT JOIN mh.ref_pos_price AS rpp ON rpp.priceID = (". "SELECT rp.priceID ". "FROM mh.ref_pos_price AS rp ". "WHERE rp.pricePosID = p.posID ". "ORDER BY rp.priceID DESC ". "LIMIT 1". ") "; $sqlOrder = "rpp.priceValue ASC, "; } elseif ($_SESSION['sort_pop']) { $sqlSel = ", COUNT(sp.popPosID) AS pCount"; $sqlFrom = "LEFT JOIN mh.stat_popularity AS sp ON p.posID = sp.popPosID "; $sqlGroup = "GROUP BY p.posID "; $sqlOrder = "pCount DESC, "; } elseif ($_SESSION['sort_discount']) { $allQT = "SELECT p.posID ". "FROM mh.ref_pos AS p ". "WHERE p.posSp.posStockOverride, p.posStockDate, p.posVis, p.posStar{$sqlSel} ". "FROM {$fromBasic} ". "{$sqlFromType}". "{$sqlFromPrice}". "{$sqlFrom}". "{$sqlVis}". "{$sqlStock}". "{$sqlWhereType}". "{$sqlGroup}". "ORDER BY p.posStar DESC, ". "{$sqlAddonOrder}{$sqlOrder}". "RAND()"; $selQ = mySQL::dbQuery($selQT); if ($_SESSION['uID'] == 1) { print "".$selQT."
"; } /* if ($_SESSION['uID'] == 1) { mysql_query("set profiling=1"); print "
";
					print mySQL::dbExplain($selQT);
					print "
"; $rs = mysql_query("show profiles"); print "
";
					while($rd = mysql_fetch_object($rs))
					{
						print $rd->Query_ID.' - '.round($rd->Duration,4) * 1000 .' ms - '.$rd->Query.'
'; } print "
"; //mysql_query("set profiling=0"); } */ // print $useOver=\" getID('hero{$selR['heroID']}pic').style.boxShadow='0 0 6px rgba(000,174,239,1)'; \" onMouseOut=\" getID('hero{$selR['heroID']}pic').style.boxShadow='none'; \">{$selR['heroNameRus']} ({$selR['heroNameEng']})
"; } print ""; $selQ = mySQL::dbQuery($selQT); while ($selR = MYSQL_FETCH_ARRAY($selQ, MYSQL_ASSOC)) { print "". "". "". "". ""; $posCount = 0; while ($selR = MYSQL_FETCH_ARRAY($selQ, MYSQL_ASSOC)) { if ($posCount == $posInCol) { $posCount = 1; print ""; } else { $posCount++; } print "". "{$selR['collNameRus']} ({$selR['collNameEng']})
". ""; } print ""; $selQ = mySQL::dbQuery($selQT); while ($selR = MYSQL_FETCH_ARRAY($selQ, MYSQL_ASSOC)) { print "- ". "
". "{$selR['oposQuant']}". // " ". "
". " "; $testArr = glob("gfx/catalog/".sprintf("%06s", $_REQUEST['posID'])."_l_*.jpg"); foreach ($testArr AS $testKey => $testVal) { $testExp = explode("_", $testVal); $testArr1[$testKey] = str_ireplace(".jpg", "", $testExp[2]); } asort($testArr1); $dopImgArr = glob("gfx/catalog/".sprintf("%06s", $_REQUEST['posID'])."_l_*.jpg"); foreach ($testArr1 AS $testKey1 => $testVal1) { $fName = $dopImgArr[$testKey1]; $fNameImg = substr($fName, 3); if (file_exists($fName)) { $fNameXS = str_ireplace("_l", "_xs", $fName); $fNameS = str_ireplace("_l", "_s", $fName); $imgSrcLarge = str_replace("_s", "_l", $fNameImg); $imgSrcSmall = $fNameImg; list($width_orig, $height_orig) = getimagesize($fName); $dopImg.= '
'.$d-> positionNameSimple.'
'; } } /* foreach (glob("gfx/catalog/".sprintf("%06s", $_REQUEST['posID'])."_l_*.jpg") as $fName) { $fNameImg = substr($fName, 3); if (file_exists($fName)) { $fNameXS = str_ireplace("_l", "_xs", $fName); $fNameS = str_ireplace("_l", "_s", $fName); $imgSrcLarge = str_replace("_s", "_l", $fNameImg); $imgSrcSmall = $fNameImg; list($width_orig, $height_orig) = getimagesize($fName); $dopImg.= '
". // "
". "{$d-> positionNameSimple}
". "
". // "
". ($sizesArr AS $sizePos => $sizeVal) { $sizesLinks[] = "{$sizeVal}"; $sizesOptSel = ($sizePos == $_REQUEST['posID']) ? " selected" : "" ; $sizesOpt.= ""; } $d-> posName($_REQUEST['posID']); print "
". "
". "