// $xsa,$ysa,$xsb,$ysb,$xda,$yda, $xdb,$xydb echo "
"; $ancho= 400; $alto = 400; //$x=$x-$ancho/2; //$y=$y-$alto/2; //if ($x == 0) $x=400; //if ($y == 0) $y=400; // Funciones de busqueda en la base de datos y recuperacion de valores if ($search != "" ) { include "connect_db.php"; $result=@mysql_db_query("map", "SELECT * from map where string like '%$search%'"); if ($result) { $total_rows = @mysql_num_rows($result); $name = @mysql_result($result,0,string); $x = @mysql_result($result,0,x); $y = @mysql_result($result,0,y); $coments = @mysql_result($result,0,coments); $store=0;$zl=1; } } if (($x==0) AND ($y==0) ) { $x=$xdefault; $y=$ydefault; $store = 1; } if (($search != "") AND ($total_rows ==0)) { //$x=$xdefault; //$y=$ydefault; $store = 0; $name = "No se encontró ninguna entrada"; } $xdefault=$x; $ydefault=$y; if (($search == "" ) OR ($total_rows==0) ) { $x= $xstore+$x*$zl-($ancho/2*$zl); $y= $ystore+$y*$zl-($alto/2*$zl); } if ($store==0) { $xstore=$x; $ystore=$y; } if ($zl < 1) $zl=1; if ($action == "zoomout" ) { $select2 = "selected"; $zl=$zl+1;} if (($action == "zoomin" ) AND ($zl >1)){ $select1 = "selected"; $zl=$zl-1;} if ($action == "pan" ) $select3 = "selected"; if ($ima == "" ) $ima = "SE01.png"; echo ""; ?>