Строительные услуги|".$massiv[$_GET['rub']]['name'].""; $topname = $massiv[$_GET['rub']]['name']; // Добавляем стили для ShadowBox $add_css = ''; $add_js = ' '; include $_SERVER['DOCUMENT_ROOT'] . '/manage/head.php'; $myBaseClass->includeCenterAdvertising($_GET['rub']); print "
"; if(isset($massiv[$_GET['rub']][$_SESSION['idregion']]) && $massiv[$_GET['rub']][$_SESSION['idregion']] != 0) { print ""; $myBaseClass->connectToBase(); $zapros = "SELECT * FROM `baza` WHERE `data` > '".time()."' and `proekt`='us' and `rubrika`='".$_GET['rub']."' and `block`!='1'"; if($_SESSION['idregion'] != "any") $zapros .= " and `region`='".$_SESSION['idregion']."'"; $zapros .= " ORDER BY `id` DESC limit $h,6"; $t = 2; $gm = 0; // $res = mysql_query($zapros); while($row = mysql_fetch_array($res)) { $t++; if(!empty($row['lat'])) { $letter = $alphabet[$gm]; $letter2 = $alphabet[$gm].". "; $google_map_link .= "&markers=color:red|label:".$letter."|".$row['lat'].",".$row['lng']; $gm++; } else { $letter = ""; $letter2 = ""; } $info = "".$letter2.$row['name']."\n"; if($row['tel']) $info .= "
Тел:   ".$row['tel']."
\n"; if($row['email']) $info .= "
E-mail:   отправить сообщение
\n"; if($row['site']) $info .= "\n"; $info .= "".$row['text']."\n"; //'&markers=color:red|label:'+letter+'|'+point.y+','+point.x; if ($t%2) $info = "
  $info
\n\n"; else $info = "
  $info
\n\n"; $result .= $info; //print $info; } if(strlen($google_map_link) > 0) print "\"\""; @print $result; $myBaseClass->disconnectBase(); } else { if($_SESSION['idregion'] != 'any') print 'Данной услугу в регионе '.$_SESSION['regionname'].' ни одна компания не осуществляет.

Если вас интересуют только цены попробуйте сменить регион на Любой регион'; else print 'Данной услугу ни одна компания не осуществляет.'; } # # # if($massiv[$_GET['rub']][$_SESSION['idregion']] > 6) { print "\n

"; $mir = ceil($massiv[$_GET['rub']][$_SESSION['idregion']]/6); if($_GET['lim']>7) print "← Первая\n"; for($back = $_GET['lim'] - 6; $back <= $_GET['lim'] + 6; $back++) { if(($back >= 1)&&($back <= $mir)) { if($_GET['lim']==$back) print "".$_GET['lim']."\n"; else print "$back\n"; } } if($_GET['lim']+6<=$mir) print "Последняя →\n"; print "
"; } # # # print "


"; include $_SERVER['DOCUMENT_ROOT'] . '/manage/uslugi/files/default_right.php'; $myBaseClass->includeRightAdvertising($_GET['rub']); print "



"; include $_SERVER['DOCUMENT_ROOT'] . '/manage/bottom.php'; } //============================================================== ВЫБОРКА ДЛЯ ПЕЧАТИ ========================================= function print_basework() { global $myBaseClass; $alphabet = array("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"); $google_map_link = ""; $result = ""; $top = "Оптовые компании"; include $_SERVER['DOCUMENT_ROOT'] . '/manage/light_head.php'; print "

  Распечатать   |   Открыть карту
"; if (!isset($_GET['lim'])) { $_GET['lim'] = 1; $h = 0; } else { $_GET['lim']--; $h = $_GET['lim']*6; $_GET['lim']++; } $zapros = "SELECT * FROM `baza` WHERE `data` > '".time()."' and `proekt`='us' and `rubrika`='".$_GET['rub']."' and `block`!='1'"; if($_SESSION['idregion'] != "any") $zapros .= " and `region`='".$_SESSION['idregion']."'"; $zapros .= " limit $h,6"; $gm = 0; $t = 2; $myBaseClass->connectToBase(); $res = mysql_query($zapros); while($row = mysql_fetch_array($res)) { $t++; if(!empty($row['lat'])) { $letter = $alphabet[$gm]; $letter2 = $alphabet[$gm].". "; $google_map_link .= "&markers=color:red|label:".$letter."|".$row['lat'].",".$row['lng']; $gm++; } else { $letter = ""; $letter2 = ""; } $info = "".$letter2.$row['name']."\n"; if($row['tel']) $info .= "
Тел:   ".$row['tel']."
\n"; if($row['email']) $info .= "
E-mail:   ".$row['email']."
\n"; if($row['site']) $info .= "
Web:   ".$row['site']."
\n"; $info .= "".$row['text']."\n"; if ($t%2) $info = "
  $info
\n\n"; else $info = "
  $info
\n\n"; $result .= $info; } if(strlen($google_map_link) > 0) print "
"; print $result; print "
"; $myBaseClass->disconnectBase(); } ?>