"; if (isset ($idrg)){ if ($idrg==1){ echo "
"; }else{ echo ""; } }else{ echo ""; } echo ""; echo ""; echo ""; echo ""; echo "
"; echo "
"; echo "".$f -> lang("recherche_globale").""; echo ""; //echo ""; echo "  "; echo "

"; $ntab=0; $nbligne=0; foreach($soustableau as $stab) { $nat=$sousnature[$ntab]; if(isset($_GET['obj'])) $obj=$_GET['obj']; else $obj=""; include ("../sql/".$f -> phptype."/".$stab.".inc"); if ($recherche) { $sqlw=""; foreach($champRecherche as $elem) { if (substr($elem,0,1)!='*') { if (!get_magic_quotes_gpc()) { // magic_quotes_gpc = Off $sqlw = $sqlw." ".$elem." like '%".AddSlashes($recherche)."%' or "; }else{ // magic_quotes_gpc = On $sqlw = $sqlw." ".$elem." like '%".$recherche."%' or "; } } } $sqlw=substr($sqlw,0,strlen($sqlw)-3).")"; if ($selection!="") $sqlC="select count(*) from ".$table." ".$selection." and (".$sqlw; else $sqlC="select count(*) from ".$table." where (".$sqlw; } else { //****** if (isset($global_flag)){ if ($global_flag==1){ if ($selection!="") $sqlC="select count(*) from ".$table." ".$selection; else $sqlC="select count(*) from ".$table; } } } if ($recherche) { $nbligne=$f -> db->getOne($sqlC); }else{ if (isset($global_flag)){ if ($global_flag==1){ $nbligne=$f -> db->getOne($sqlC); } } } if ($nbligne>0) { if ($nat=="") $nat="tab"; //*** if (preg_match("/->/",$ent)) { $temp = explode("->",$ent); $temp1=""; foreach($temp as $elem){ $temp1=$temp1.$f -> lang(trim($elem))."->"; } $temp1=substr($temp1,0,strlen($temp1)-2); $ent = str_replace ("->", " \"-\" title=\"->\" /> ", $temp1); }else{ $ent = $f -> lang($ent); } //*** if ($recherche) { echo ""; } else { //****** if (isset($global_flag)){ if ($global_flag==1){ echo "
\"-\" title=\"->\" />  $ent :  $nbligne ".$f -> lang("resultat")." ".$f -> lang("pluriel")."
"; } } } echo "
"; }else{ if ($recherche) { echo " ".$f -> lang("pas_de")." ".$f -> lang("resultat")." ".$f -> lang("pour")." :  ".$stab." 

"; }else{ if (isset($global_flag)){ if ($global_flag==1){ echo "  ".$stab."  0 ".$f -> lang("resultat")."

"; } } } } $ntab++; } echo "
"; echo "
"; echo ""; } ?>