<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link href="/google_yandex/karta/css/default.css" rel="stylesheet">
<script type="text/javascript" src="/google_yandex/karta/js/raphael.js"></script>
<script type="text/javascript" src="/google_yandex/karta/js/paths.js"></script>
<script type="text/javascript" src="/google_yandex/karta/js/init.js"></script>
</head>
<body>
<div class="product__list">
<div class="well-box ">Выберите область</div>
<div class="karta">
<div id="map"></div>
</div></div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link href="/google_yandex/karta/css/default.css" rel="stylesheet">
<script type="text/javascript" src="/google_yandex/karta/js/raphael.js"></script>
<script type="text/javascript" src="/google_yandex/karta/js/paths.js"></script>
<script type="text/javascript" src="/google_yandex/karta/js/init.js"></script>
</head>
<body>
<div class="product__list">
<div class="well-box ">Выберите область</div>
<div class="karta">
<div id="map"></div>
</div>
</body>
</html>
<div class="product__list">
<div class="well-box ">Выберите область</div>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link href="/google_yandex/karta/css/default.css" rel="stylesheet">
<script type="text/javascript" src="/google_yandex/karta/js/raphael.js"></script>
<script type="text/javascript" src="/google_yandex/karta/js/paths.js"></script>
<script type="text/javascript" src="/google_yandex/karta/js/init.js"></script>
</head>
<body>
<div class="karta">
<div id="map"></div>
</div>
</body>
</html>
</div>
// NEW
$aImageId = mysql_query ("SELECT id FROM foto WHERE id = '".$row_Recordset1['id']."'");
$iImageCount = mysql_num_rows($aImageId);
$sVideo = ($row_Recordset1['video_host'] == 'youtu.be' || $row_Recordset1['video_host']=='youtube.com')
? '<div class="sumvid"></div>'
: '';
// NEW
echo '<a href="'.$bp.'items/'.$row_Recordset1['zag_url'].'_'.$row_Recordset1['id'].'">';
if($_GET['vy'])
echo '<div class="imagetab">' . $sVideo . '<img class="video_tab_img" src="https://i.ytimg.com/vi/'.$row_Recordset1['video_item'].'/0.jpg"></div>';
else {
if($row_Recordset1['small'])
// NEW
echo '<div class="imagetab"><div class="sum">'. $iImageCount .'</div>' . $sVideo . '<img class="img_last_new_big" src="'.$bp.$row_Recordset1['small'].'"></div>';
// NEW
elseif ($row_Recordset1['video_host'] == 'youtu.be' || $row_Recordset1['video_host']=='youtube.com')
echo '<img class="video_tab_img" src="https://i.ytimg.com/vi/'.$row_Recordset1['video_item'].'/0.jpg">';
else echo '<img src="'.$bp.'icon/nophoto_big.png" alt="Картинка" title="Фото">'; }
?>
<div class="idv_foto">
<?
echo '<div id="car'.$row_Recordset1['id'].'">';
if (!$_SESSION['cart'] || !in_array($row_Recordset1['id'], $_SESSION['cart']))
echo '<a class="idv_foto_img " onclick="send_cart('.$row_Recordset1['id'].', 1, \''.$absolut_path.'\')" ><img border=0 src="'.$absolut_path.'/icon/favor_off.png" title="Добавить в блокнот"></a>';
elseif($_SESSION['cart'] && in_array($row_Recordset1['id'], $_SESSION['cart']))
echo '<a class="idv_foto_img " onclick="send_cart('.$row_Recordset1['id'].', 1, \''.$absolut_path.'\')" ><img border=0 src="'.$absolut_path.'/icon/favor_on.png" title="Удалить из блокнота"></a>';
echo '</div>';
echo '</div>';
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
$titt=explode("<hr>", $row_Recordset1['opis']);
if($titt[1])
$tit='title="'.obrez(str_replace("\n"," ", $titt[1]), 200).'"'; else $tit='';
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
echo '<a class="vip_zag" '.$tit.' href="'.$bp.'items/'.$row_Recordset1['zag_url'].'_'.$row_Recordset1['id'].'" >'.$row_Recordset1['zag'].'</a>';
if($row_Recordset1['f_cena_'])
{
if(in_array($row_Recordset1['id_catalog'], $array_usd))
echo '<br>'._font($row_Recordset1['f_cena_'],1).' $';
else
echo '<br><font class="price">'._font($row_Recordset1['f_cena_'],1).''.$rru['cena_valuta'].'</font>';
if($row_Recordset1['suff'])
echo ' '.$row_Recordset1['suff'];
}
if($row_Recordset1['razdel'] && !$con_razdel) echo '<br><span class="color_text">'.$row_Recordset1['razdel'].'</span>';
if($row_Recordset1['pols']==1)
echo '<br><span class="color_text">Частное лицо</span>';
if($row_Recordset1['pols']==2)
echo '<br><span class="color_text">Компания</span>';
if($row_Recordset1['id_gorod']==$id_region)
{
if($row_Recordset1['rayon'])
echo '<br><font class="gorod_tab_img"><span class="color_text">'.$row_Recordset1['rayon'].'</span>';
}
elseif (!($arr_rayon && in_array($id_region, $arr_rayon)) && $row_Recordset1['gorod'])
echo '<div class="gorod_tab_img"><span class="color_text">'.$row_Recordset1['gorod'].'</div>';
$(".example1").fancybox({
padding : 10,
margin : 0,
scrolling : 'no', // 'auto', 'yes' or 'no'
'width' : 1280,
'height' : 1024,
'autoScale' : false,
'transitionIn' : 'none',
'transitionOut' : 'none',
'type' : 'iframe',
onComplete: function(){
$("body").css({'overflow-y':'hidden'});
},
onClosed: function(){
$("body").css({'overflow-y':'visible'});
}
});