<?php
require'f_profill.php';
require'f_conectare.php';
conectare('localitate membru '.$unume,'localitate-membru'.$x2);
$head[1]='harta cu localitatea membrului '.$unume;
$titlu='Localitate membru '.$unume;
$locatie=$conn->query('SELECT`location`,`locatie2`FROM`membrii`WHERE`id`="'.$la.'"')->fetch_row();
if($locatie[0]!=''&&$locatie[0]!='Alte țări'&&$locatie[1]!='')
{
$locatia=$conn->query('SELECT`latitudine`,`longitudine`,`siruta`,`regiune`,`jud`FROM`localitati`WHERE`judet`="'.$locatie[0].'"&&`nume`="'.$locatie[1].'"')->fetch_row();
$head[3]='<link type="text/css" rel="stylesheet" href="'.$domenii_statice[1].'css_js/harta.css" /><script type="text/javascript" src="//maps.google.com/maps/api/js?sensor=false"></script><script type="text/javascript" src="/img/css_js/harta.js"></script><script type="text/javascript">$(function(){demo.add(function(){$("#map_canvas").gmap({"center":"'.$locatia[0].','.$locatia[1].'","zoom":10,"disableDefaultUI":true,"callback":function(){var self=this;self.addMarker({"position":this.get("map").getCenter()}).click(function(){self.openInfoWindow({"content":"'.$unume.'</br>'.$locatie[0].', '.$locatie[1].'"},this);});}});}).load();});</script>';
$localitate=$div[10].'<a href="/cauta-membrii-dintr-un-judet?go='.rawurlencode($locatie[0]).'"><img src="'.$domenii_statice[1].'judete/'.$locatia[4].'.gif" alt="" />Județ</a> <strong>'.$locatie[0].'</strong><br /><a href="/cauta-membrii-dintr-un-judet?go='.rawurlencode($locatie[0]).'&amp;sor='.rawurlencode($locatie[1]).'">Localitate</a> <strong>'.$locatie[1].'</strong><br />Latitudine <strong>'.$locatia[0].'</strong><br />Longitudine <strong>'.$locatia[1].'</strong><br />Siruta <strong>'.$locatia[2].'</strong><br />Zona <strong>'.$locatia[3].'</strong>'.$div[0].$div[1].'Soarele rasare la ora <strong>'.date_sunrise($_SERVER['REQUEST_TIME'],SUNFUNCS_RET_STRING,$locatia[0],$locatia[1],90+(50/60),2).'</strong> (ora Romaniei)'.$div[0].$div[1].'Soarele apune la ora <strong>'.date_sunset($_SERVER['REQUEST_TIME'],SUNFUNCS_RET_STRING,$locatia[0],$locatia[1],90+(50/60),2).'</strong> (ora Romaniei)'.$div[0].'<div id="map_canvas" class="map rounded"></div>';
}
else
$localitate=$div[7].nume($la).' nu are setată localitatea!'.$div[0];
require'f_sus.php';
echo$div[4].img('locatie.png',1).'Localitate membru '.nume($la).$div[5].$localitate;
require'f_jos.php';