\n";
echo "\n";
echo "\n";
if( $lst )echo "\n";
if( $pct ) echo "\n";
if( $titlu ) echo "\n";
echo "\n";
echo "\n";
echo "\n";
echo "\n";
echo "\n";
if( $norez ) echo "\n";
if( $norezl) echo "\n";
if( $gasit ) echo "\n";
if( $gasitl ) echo "\n";
?>
'; if( $lev>4 )$tmp=$lev.'/';
else $tmp='';
for($t=$x0;$t<$x0+3;$t++)
{ $zt=sprintf('%02d',$t);
$zs=sprintf('%02d',$s);
echo' <';
if(($lev<$nmap1 /*and $lev<6*/) or $mod&2)
echo'input type="image"';
else echo'img';
echo' border="0" src="';
echo"/img/$cmap/{$tmp}m0$lev$zs$zt.$tmap\" name=\"l$i";
echo"\" width=\"$xm1\" height=\"$ym1\"> | \n";
$i++;
}
echo'
';
}
?>
|
DRUM
. RO';
else echo "$titlu";
//if($xw>800) echo'  ';
?> |
Marire: / '.($nmap); ?>
=800 or !$minimap) and !($mod&16) and $xw>=800)
{ if( $index&1) //index strazi////////////////////////////INDEX 1
{
echo ' Cautare strazi Titulatura:
Denumirea(nume):
';
if( $xw>800)
{ echo' Prenume (eventual):
Grad / titlu:
';
}
echo'Zoom in:
';
if($dbg&4)
{ echo"\n\n\nx0=$x0, y0=$y0 xm=$xm,ym=$ym xmen=$xmen lat=$xw \n";
//echo"mini=$minimap ";
//echo"lev=$lev nmap1=$nmap1 px=$px py=$py mod=$mod";
echo"rev=$revadr \n\n";
}
//////////////////////////////////////// Zonele Cautate //////////
if( $cauta or $gasit ) echo'';
if( $gasit )
{ $lim=$xw<=800?1:($xw<=1024?3:($xw>=1280?8:6));
if( !($pagp_x===null) )
{ $pag++;
if( $pag*$lim>=$gasit ) $pag=0;
}elseif( !($pagm_x===null) )
{ $pag--;
if( $pag<0 ) $pag=(int)(($gasit-1)/$lim);
}
echo'';
if( $gasit>1 )
{ if( $gasit>$lim ) echo' | ';
}
else echo 'Gasit ! | ';
echo'
';
if( $gasit<30 )
{
$sql ='select strazi.id,strtip.nume as tip,strazi.nume as nume,pren,grd.nume as grad';
$sql.=',x,y,dx,dy,flag,coord,strazi.tip as tip1, strazi.grad as grad1';
$sql.=$sql2;
$sql.=' order by nume, pren, y,x limit ';//mapid ?
if( $pag ) $sql.=($pag*$lim).",$lim";
else $sql.=$lim;
$rez=sql($sql,'',$dbg);
include'/php/draw.php';
$c=0;
while( ($lin=mysql_fetch_array( $rez ) )) //tipc ignorat
{ $x=(float)$lin['x']; $y=(float)$lin['y'];
$dx=$lin['dx']; $dy=$lin['dy'];
$numes1=$lin['nume']; $tips1=$lin['tip1'];
$prens1=$lin['pren']; $grd1=$lin['grad1']; $ids=$lin['id'];
for( $i=$lev; $i<$nmap1; $i++) //scalare
{ $x/=$fk; $y/=$fk;
$dx/=$fk; $dy/=$fk;
}
$x-=300*$x0; $y-=200*$y0;
$x*=$xm1/300; $y*=$ym1/200;//translatare, afisare
$x=(int)$x; $y=(int)$y;
$dx*=$xm1/300; $dy*=$ym1/200;
$dx=(int)$dx+8; $dy=(int)$dy+4;
if( $x<0 ){ $dx+=$x; $x=0;}
if( $y<0 ){ $dy+=$y; $y=0;}
$viz=$dx>0 and $dy>0;
if( $x+$dx > $xm ) $dx=$xm-$x;
if( $y+$dy > $ym ) $dy=$ym-$y;
$viz=$viz and $dx>0 and $dy>0;
$x+=1; $y+=1;
if( $viz=($viz and $dx>8 and $dy>4) )
$idrctg=sprintf('%02d',rectangle($x,$y,$dx,$dy));
echo'
'.($c+$lim*$pag).'
';
echo "{$lin['tip']} {$lin['grad']} {$lin['pren']} {$lin[nume]}";// $ids";
echo" | \n\n";
}
if( $gasitl>$lim )echo'
 
 
|
';
}
// echo "\n";
}elseif( $cauta ) echo'Negasit | ';
if( $cauta or $gasit ) echo' ';
}//index strazi
if( $index&2 ) //index localitati//////////////////////////////////INDEX 2
{ echo' Localitate:
Statut:
Zoom in:
';
//////////////////////////////////////// Zonele Cautate LOCALITATI//////////
if( $cautal or $gasitl ) echo'';
if( $gasitl )
{ $lim=$xw<=800?3:($xw<=1024?8:($xw>=1280?12:9));
if( !($pagp_x===null) )
{ $pag++;
if( $pag*$lim>=$gasitl ) $pag=0;
}elseif( !($pagm_x===null) )
{ $pag--;
if( $pag<0 ) $pag=(int)(($gasitl-1)/$lim);
}
echo'';
if( $gasitl>1 )
{ if( $gasitl>$lim ) echo' | ';
}
else echo 'Gasit ! | ';
echo'
';
if( $gasitl<30 )
{ //$dbg=2;
$sql ='select localitati.id,tip,localitati.nume as nume';
$sql.=',x,y,dx,dy';
$sql.=$sql3;
$sql.=" order by tip,nume, y,x limit ";
if( $pag ) $sql.=($pag*$lim).",$lim";
else $sql.=$lim;
//$dbg=2;
$rez=sql($sql);
if( !$drawflag){ include'/php/draw.php';}
$c=0;
while( ($lin=mysql_fetch_array( $rez ) )) //tipc ignorat
{ $x=(float)$lin['x']; $y=(float)$lin['y'];
$dx=$lin['dx']; $dy=$lin['dy'];
$numel1=$lin['nume']; $tipl1=$lin['tip']; $idl=$lin['id'];
for( $i=$lev; $i<$nmap1; $i++) //scalare
{ $x/=$fk; $y/=$fk;
$dx/=$fk; $dy/=$fk;
}
$x-=300*$x0; $y-=200*$y0;
$x*=$xm1/300; //translatare, afisare
$y*=$ym1/200;
$x=(int)$x; $y=(int)$y;
$dx*=$xm1/300; $dy*=$ym1/200;
$dx=(int)$dx+8; $dy=(int)$dy+4;
if( $x<0 ){ $dx+=$x; $x=0;}
if( $y<0 ){ $dy+=$y; $y=0;}
$viz=$dx>0 and $dy>0;
if( $x+$dx > $xm ) $dx=$xm-$x;
if( $y+$dy > $ym ) $dy=$ym-$y;
$viz=$viz and $dx>0 and $dy>0;
$x++; $y++;
if( $viz=($viz and $dx>8 and $dy>4) )
$idrctg=sprintf('%02d',rectangle($x,$y,$dx,$dy));
echo'
'.($c+$lim*$pag).'
';
switch($lin['tip'])
{ case 1: echo'r.j.';break;
case 2: echo'mun.';break;
case 3: echo'or.';break;
case 4: echo'com.';break;
case 5: echo'sat';
}
echo"{$lin[nume]}";// $idl";
echo" | \n\n";
}
}
// echo "\n";
}elseif( $cautal ) echo'Negasit | ';
if( $cautal or $gasitl ) echo' ';
}//if index localitati
if( $pag ) echo "\n";
}//if index and xw>=800 or !minimap
if($revadr and $mod&2)
{ echo'Introducere coordonate';
}
//echo"fk=$fk x0=$x0,y0=$y0 ";
if( $index&4 and !($cauta or $cautal) and ($xw>800 or !($gasit or $gasitl)) )
{ echo '
';
echo'
|
\n";
echo' |
\n | \n";
echo'\n | ";
}
?>
|