$lang='ro'; $lng=1; chdir('..'); include 'vars3.php'; include'/php/sql.php'; include'/php/validate.php'; include'/php/curs.php'; bad($ida,0); bad( $reg,0,1,100 ); $id4=sprintf('%04d',$ida); $tmp="lang/{$lang}/agro/{$id4}.php"; if( file_exists( $tmp ) ) { include( $tmp ); }else die("\n failed to include $tmp\n\n"); echo''; include'meniu.php'; $sql='select nume from agroreg where id='.$areg; $rez=sql($sql,'drum'); $tmp=mysql_fetch_array($rez); $regiune=$tmp['nume']; include"lang/{$lang}/agro/{$id4}.php"; $sql=<< {$lin['nume']} ( {$lin['lnume']} - $regiune )

AAA; if( $sel===null or $sel==-1 ) { if(!$sel) $sel=511;//toate echo <<
{$lin['descriere']}
{$lin['conditii']}
AAA; $sql=<< AAB; $kj++; }//while oferta echo <<
 
Preţuri pentru {$lin['tnume']}: $perioada
AAA; $sq=<<$pr $mn {$l['descriere']} AAC; $kk++; }//while pret //$tmp="mcond{$ido}"; $tmp=$$tmp; echo <<
{$lin['descriere']}
AAA; }//else { bad( $sel,-1,512 ); if( $sel<0 ) echo <<imagini AAA; elseif( !$sel ) { $sel=511; echo <<detalii AAA; }//fi }//fi sel echo"\n\n\n"; if( $sel>0 ) { ///////////////////////////////////////// IMAGINI ///////////////// function fotos($fctg) { global $ida,$id4, $mfctg, $d; $dir="agro/img/{$id4}"; //echo"\n\n\n"; if( !$d ) { ///{$fctg}???1.jpg $d=dir( $dir ); }else $d->rewind(); $f=0; while( false!==($fis=$d->read()) ) { if( ereg("{$fctg}([0-9]{2})1.jpg",$fis,$tmp) ) { $f++; $idf=$tmp[1]; if( $f==1 ) echo "

{$mfctg[$fctg]}
\n";//prima poza echo << AAA; }//fi foto }//while dir if( $f )echo'

'; }//fun fotos $mfctg=array('Exterioare','Dormitoare','Bucatarii','Sufragerii', 'Sali de mese','','Alte interioare','Bai','Terase, Anexe'); $msk=1; for( $i=0; $i<8; $i++) { //echo"\n\n\n"; if( $sel&$msk ) fotos($i); $msk<<=1; } }//fi sel>0 echo<< AAA; ?>