Rapport d'activité 2020


Warning: Use of undefined constant recherchedoc - assumed 'recherchedoc' (this will throw an Error in a future version of PHP) in /home/cdcf/public_html/common/docutheque.php on line 4

Notice: Undefined index: recherchedoc in /home/cdcf/public_html/common/docutheque.php on line 4

Warning: Use of undefined constant recherchedoc - assumed 'recherchedoc' (this will throw an Error in a future version of PHP) in /home/cdcf/public_html/common/docutheque.php on line 5

Notice: Undefined index: recherchedoc in /home/cdcf/public_html/common/docutheque.php on line 5

Warning: Use of undefined constant rubriques - assumed 'rubriques' (this will throw an Error in a future version of PHP) in /home/cdcf/public_html/common/docutheque.php on line 8

Notice: Undefined index: rubriques in /home/cdcf/public_html/common/docutheque.php on line 8

Warning: Use of undefined constant type_document - assumed 'type_document' (this will throw an Error in a future version of PHP) in /home/cdcf/public_html/common/docutheque.php on line 10

Notice: Undefined index: type_document in /home/cdcf/public_html/common/docutheque.php on line 10

Warning: Use of undefined constant date - assumed 'date' (this will throw an Error in a future version of PHP) in /home/cdcf/public_html/common/docutheque.php on line 11

Notice: Undefined index: date in /home/cdcf/public_html/common/docutheque.php on line 11

Warning: Use of undefined constant recherchedoc - assumed 'recherchedoc' (this will throw an Error in a future version of PHP) in /home/cdcf/public_html/common/docutheque.php on line 19

Warning: Use of undefined constant rubriques - assumed 'rubriques' (this will throw an Error in a future version of PHP) in /home/cdcf/public_html/common/docutheque.php on line 50

Warning: Use of undefined constant rubriques - assumed 'rubriques' (this will throw an Error in a future version of PHP) in /home/cdcf/public_html/common/docutheque.php on line 60

Notice: Undefined variable: debut in /home/cdcf/public_html/common/docutheque.php on line 75
Table = $table; $this->Chp = $chp; } /*function searchcat($mot){ $tabbuffer = array(); $mot = trim($mot); $mot=strtolower($mot); $mots=split(" ",$mot); $nombre_mots=count($mots); $z=1; $phrase =" (libelles.libelle like'%$mots[0]%'"; while($z<$nombre_mots) { $phrase .=" or libelles.libelle like '%$mots[$z]%'"; $z++; } $phrase .=")"; $ic = 0; $requete = "select rubrique.id as id_rubrique,$this->Table.*,libelles.libelle as libelle from rubrique ,$this->Table,libelles where $phrase and $this->Table.visible=1 and $this->Table.partie=rubrique.id AND rubrique.libelle=libelles.id and libelles.pere='Cat' order by $this->Table.partie,$this->Table.idCat,$this->Table.idScat,$this->Table.idSscat ASC"; //echo $requete; $result=$link->query($requete); while($val = mysqli_fetch_array($result)){ $tabbuffer[$val[$this->Chp]] =$val; $ic++; } $requete = "select rubrique.id as id_rubrique,$this->Table.*,libelles.libelle as libelle from rubrique ,$this->Table,libelles where $phrase and $this->Table.visible=1 and $this->Table.idCat=rubrique.id AND rubrique.libelle=libelles.id and libelles.pere='Cat' order by $this->Table.partie,$this->Table.idCat,$this->Table.idScat,$this->Table.idSscat ASC"; //echo $requete; $result=$link->query($requete); while($val = mysqli_fetch_array($result)){ $tabbuffer[$val[$this->Chp]] =$val; $ic++; } $requete = "select rubrique.id as id_rubrique,$this->Table.*,libelles.libelle as libelle from rubrique ,$this->Table,libelles where $phrase and $this->Table.visible=1 and $this->Table.idScat=rubrique.id AND rubrique.libelle=libelles.id and libelles.pere='Cat' order by $this->Table.partie,$this->Table.idCat,$this->Table.idScat,$this->Table.idSscat ASC"; //echo $requete; $result=$link->query($requete); while($val = mysqli_fetch_array($result)){ $tabbuffer[$val[$this->Chp]] =$val; $ic++; } $requete = "select rubrique.id as id_rubrique,$this->Table.*,libelles.libelle as libelle from rubrique ,$this->Table,libelles where $phrase and $this->Table.visible=1 and $this->Table.idSscat=rubrique.id AND rubrique.libelle=libelles.id and libelles.pere='Cat' order by $this->Table.partie,$this->Table.idCat,$this->Table.idScat,$this->Table.idSscat ASC"; //echo $requete; $result=$link->query($requete); while($val = mysqli_fetch_array($result)){ $tabbuffer[$val[$this->Chp]] =$val; $ic++; } return $tabbuffer; } */ function searchwordinpage($mot,$et_ou, $chp, $esp = 0, $lang=1){ $tabbuffer = array(); $mot = trim($mot); $mot=strtolower($mot); $mots=split(" ",$mot); foreach($mots as $k=>$v){ if($v=="des" || $v=="les" || $v=="nos" || $v=="vos"){ unset($mots[$k]); continue; } $s = substr($v,-1); if($s=='s'){ array_push($mots,substr($v,0,-1)); }else{ if(strlen($v)>2) array_push($mots,$v.'s'); } if(strlen($v)<=2) unset($mots[$k]); } $nombre_mots=count($mots); $z=1; $phrase ="'%"; ($esp == 1) ? $phrase .= " " : $phrase .=""; ($esp == 2) ? $phrase .= " " : $phrase .=""; $phrase .= $mots[0]; ($esp == 1) ? $phrase .= " " : $phrase .=""; $phrase .= "%'"; while($z<$nombre_mots) { if(isset($mots[$z]) && !empty($mots[$z])){ $phrase.=" ".$et_ou." libelles.libelle like '%"; ($esp == 1) ? $phrase .= " " : $phrase .=""; ($esp == 2) ? $phrase .= " " : $phrase .=""; $phrase .= $mots[$z]; ($esp == 1) ? $phrase .= " " : $phrase .=""; $phrase .="%'"; $texte.=" "; if($et_ou=="and"){$texte.="et";}else{$texte.="ou";} } $z++; } $requete="select pages.id as id,pages.*,libelles.libelle from pages,libelles where pages.visible = 1 and libelles.id_langue=1 and pages.$chp=libelles.id and libelles.pere='PAGE' and (libelles.libelle like $phrase)"; //echo $requete.";
"; $result=$link->query($requete); while($val = mysqli_fetch_array($result)){ $tabbuffer['page'.$val[$this->Chp]] =$val; } //$tabbuffer["SPASSOR"]= "2"; //print_r($tabbuffer); return $tabbuffer; } function searchworddoc($mot,$et_ou, $chp,$tab_rubriques="", $esp = 0,$tab_type_document="",$date1="",$date2=""){ $tabbuffer = array(); $mot = trim($mot); $mot=strtolower($mot); $mots=split(" ",$mot); foreach($mots as $k=>$v){ if($v=="des" || $v=="les" || $v=="nos" || $v=="vos"){ unset($mots[$k]); continue; } $s = substr($v,-1); if($s=='s'){ array_push($mots,substr($v,0,-1)); }else{ if(strlen($v)>2) array_push($mots,$v.'s'); } if(strlen($v)<=2) unset($mots[$k]); } $nombre_mots=count($mots); $z=1; $phrase ="'%"; ($esp == 1) ? $phrase .= " " : $phrase .=""; ($esp == 2) ? $phrase .= " " : $phrase .=""; $phrase .=$mots[0]; ($esp == 1) ? $phrase .= " " : $phrase .=""; ($esp == 3) ? $phrase .= " " : $phrase .=""; $phrase .= "%'"; while($z<$nombre_mots) { if(isset($mots[$z]) && !empty($mots[$z])){ $phrase.=" ".$et_ou." d.".$chp." like '%"; ($esp == 1) ? $phrase .= " " : $phrase .=""; ($esp == 2) ? $phrase .= " " : $phrase .=""; $phrase .= $mots[$z]; ($esp == 1) ? $phrase .= " " : $phrase .=""; ($esp == 3) ? $phrase .= " " : $phrase .=""; $phrase .="%'"; $texte.=" "; if($et_ou=="and"){$texte.="et";}else{$texte.="ou";} } $z++; } $link->query("SET LC_TIME_NAMES= 'fr_FR'"); if(isset($date1) && !empty($date1)){ $chars = split('-', $date1); $str_date1=$chars[2]."-".$chars[1]."-".$chars[0]; } if(isset($date2) && !empty($date2)){ $chars = split('-', $date2); $str_date2=$chars[2]."-".$chars[1]."-".$chars[0]; } if(isset($tab_rubriques) && !empty($tab_rubriques)) $str_rub=$tab_rubriques; if(isset($tab_type_document) && !empty($tab_type_document)) $str_type_document=$tab_type_document; $requete="SELECT d.*,DATE_FORMAT(d.date, '%e %M %Y') as print_date from $this->Table d "; if(isset($tab_rubriques) && !empty($tab_rubriques)) $requete .= " INNER JOIN bd_rubrique_document r ON r.id_rubrique IN (".$str_rub.") AND d.id=r.id_document "; if(isset($tab_type_document) && !empty($tab_type_document)) $requete .= " INNER JOIN bd_type_document td ON td.id_type IN (".$str_type_document.") AND d.id=td.id_document "; $requete .=" WHERE d.visible = 1 "; if(isset($mot) && !empty($mot)) $requete .=" and d.$chp like $phrase "; if(isset($str_date1) && !empty($str_date1)) $requete .=" AND d.date >= '".$str_date1."' "; if(isset($str_date2) && !empty($str_date2)) $requete .=" AND d.date <= '".$str_date2."' "; if(isset($mot) && !empty($mot)){ $phrase = str_replace('d'.$this->Chp,'t.tags',$phrase); $requete.=" OR (d.visible = 1 and d.id IN (SELECT t.id_pere FROM tags t "; if(isset($tab_rubriques) && !empty($tab_rubriques)) $requete .= "INNER JOIN bd_rubrique_document r ON r.id_rubrique IN (".$str_rub.") AND t.id_pere=r.id_document"; if(isset($tab_type_document) && !empty($tab_type_document)) $requete .= " INNER JOIN bd_type_document td ON td.id_type IN (".$str_type_document.") AND t.id_pere=td.id_document "; $requete .= " WHERE pere='DOCUTHEQUE' AND t.tags like $phrase "; if(isset($str_date) && !empty($str_date)) $requete .=" AND d.date = '".$str_date."' "; $requete .= " ))"; } $requete .=" ORDER BY d.date DESC"; /*if(isset($tab_rubriques) && !empty($tab_rubriques)){ $str_rub=$tab_rubriques; /*$str_rub=''; foreach($tab_rubriques as $k=>$v){ $str_rub .=$v.','; } $str_rub = substr($str_rub,0,-1);* $requete="select d.*,DATE_FORMAT(d.date, '%e %M %Y') as print_date from $this->Table d,bd_rubrique_document r where d.visible = 1 and r.id_rubrique IN (".$str_rub.") AND d.id=r.id_document and (d.$chp like $phrase) "; $phrase = str_replace('d'.$this->Chp,"t.tags",$phrase); $requete.=" OR (d.id IN (SELECT t.id_pere FROM tags t,bd_rubrique_document r WHERE t.pere='DOCUTHEQUE' AND r.id_rubrique IN (".$str_rub.") AND r.id_document=t.id_pere AND t.tags like $phrase))"; }else{ $requete="select d.*,DATE_FORMAT(d.date, '%e %M %Y') as print_date from $this->Table d where d.visible = 1 and (d.$chp like $phrase) "; $phrase = str_replace('d'.$this->Chp,"t.tags",$phrase); $requete.="OR d.id IN (SELECT t.id_pere FROM tags t WHERE t.pere='DOCUTHEQUE' AND t.tags like $phrase)"; }*/ //echo "searchworddoc :

".$requete."

"; $result=$link->query($requete); while($val = mysqli_fetch_array($result)){ $tabbuffer[$val[$this->Chp]] =$val; } //$tabbuffer["SPASSOR"]= "2"; //print_r($tabbuffer); return $tabbuffer; } function searchword($mot,$et_ou, $chp, $esp = 0){ $tabbuffer = array(); $mot = trim($mot); $mot=strtolower($mot); $mots=split(" ",$mot); foreach($mots as $k=>$v){ if($v=="des" || $v=="les" || $v=="nos" || $v=="vos"){ unset($mots[$k]); continue; } $s = substr($v,-1); if($s=='s'){ array_push($mots,substr($v,0,-1)); }else{ if(strlen($v)>2) array_push($mots,$v.'s'); } if(strlen($v)<=2) unset($mots[$k]); } $nombre_mots=count($mots); $z=1; $phrase ="'%"; ($esp == 1) ? $phrase .= " " : $phrase .=""; ($esp == 2) ? $phrase .= " " : $phrase .=""; $phrase .= $mots[0]; ($esp == 1) ? $phrase .= " " : $phrase .=""; $phrase .= "%'"; while($z<$nombre_mots) { if(isset($mots[$z]) && !empty($mots[$z])){ $phrase.=" ".$et_ou." $chp like '%"; ($esp == 1) ? $phrase .= " " : $phrase .=""; ($esp == 2) ? $phrase .= " " : $phrase .=""; $phrase .= $mots[$z]; ($esp == 1) ? $phrase .= " " : $phrase .=""; $phrase .="%'"; $texte.=" "; if($et_ou=="and"){$texte.="et";}else{$texte.="ou";} } $z++; } $requete="select * from $this->Table where visible = 1 and ($chp like $phrase)"; $result=$link->query($requete); while($val = mysqli_fetch_array($result)){ $tabbuffer[$val[$this->Chp]] =$val; } //$tabbuffer["SPASSOR"]= "2"; //print_r($tabbuffer); return $tabbuffer; } function searchinpage($mot, $chp, $esp = 0, $lang=1){ $tabbuffer = array(); $mot = trim($mot); $mot=strtolower($mot); $phrase ="'%"; ($esp == 1) ? $phrase .= " " : $phrase .=""; $phrase .= $mot; ($esp == 1) ? $phrase .= " " : $phrase .=""; $phrase .= "%'"; $requete="select pages.id as id,pages.*,libelles.libelle from pages,libelles where pages.visible = 1 and libelles.id_langue=1 and pages.$chp=libelles.id and libelles.pere='Page' and libelles.libelle like $phrase"; //echo $requete.";
"; $result=$link->query($requete); while($val = mysqli_fetch_array($result)){ $tabbuffer['page'.$val[$this->Chp]] =$val; } //$tabbuffer["SPASSOR"]= "1"; return $tabbuffer; } function searchdoc($mot, $chp,$tab_rubriques="", $esp = 0,$tab_type_document="",$date1="",$date2="" ){ $tabbuffer = array(); $mot = trim($mot); $mot=strtolower($mot); $phrase ="'%"; ($esp == 1) ? $phrase .= " " : $phrase .=""; $phrase .= $mot; ($esp == 1) ? $phrase .= " " : $phrase .=""; $phrase .= "%'"; if(isset($date1) && !empty($date1)){ $chars = split('-', $date1); $str_date1=$chars[2]."-".$chars[1]."-".$chars[0]; } if(isset($date2) && !empty($date2)){ $chars = split('-', $date2); $str_date2=$chars[2]."-".$chars[1]."-".$chars[0]; } if(isset($tab_rubriques) && !empty($tab_rubriques)) $str_rub=$tab_rubriques; if(isset($tab_type_document) && !empty($tab_type_document)) $str_type_document=$tab_type_document; $requete="SELECT d.*,DATE_FORMAT(d.date, '%e %M %Y') as print_date from $this->Table d "; if(isset($tab_rubriques) && !empty($tab_rubriques)) $requete .= " INNER JOIN bd_rubrique_document r ON r.id_rubrique IN (".$str_rub.") AND d.id=r.id_document "; if(isset($tab_type_document) && !empty($tab_type_document)) $requete .= " INNER JOIN bd_type_document td ON td.id_type IN (".$str_type_document.") AND d.id=td.id_document "; $requete .=" WHERE d.visible = 1 "; if(isset($mot) && !empty($mot)) $requete .=" and d.$chp like $phrase "; if(isset($str_date1) && !empty($str_date1)) $requete .=" AND d.date >= '".$str_date1."' "; if(isset($str_date2) && !empty($str_date2)) $requete .=" AND d.date <= '".$str_date2."' "; if(isset($mot) && !empty($mot)){ $phrase = str_replace('d'.$this->Chp,'t.tags',$phrase); $requete.=" OR (d.visible = 1 and d.id IN (SELECT t.id_pere FROM tags t "; if(isset($tab_rubriques) && !empty($tab_rubriques)) $requete .= "INNER JOIN bd_rubrique_document r ON r.id_rubrique IN (".$str_rub.") AND t.id_pere=r.id_document"; if(isset($tab_type_document) && !empty($tab_type_document)) $requete .= " INNER JOIN bd_type_document td ON td.id_type IN (".$str_type_document.") AND t.id_pere=td.id_document "; $requete .= " WHERE pere='DOCUTHEQUE' AND t.tags like $phrase "; if(isset($str_date) && !empty($str_date)) $requete .=" AND d.date = '".$str_date."' "; $requete .= " ))"; } $requete .=" ORDER BY d.date DESC"; /*if(isset($tab_rubriques) && !empty($tab_rubriques)){ $str_rub=$tab_rubriques; /*$str_rub=''; foreach($tab_rubriques as $k=>$v){ $str_rub .=$v.','; } $str_rub = substr($str_rub,0,-1); $requete="select d.*,DATE_FORMAT(d.date, '%e %M %Y') as print_date from $this->Table d,bd_rubrique_document r where d.visible = 1 and r.id_rubrique IN (".$str_rub.") AND d.id=r.id_document and d.$chp like $phrase "; $phrase = str_replace('d'.$this->Chp,'t.tags',$phrase); $requete.=" OR (id IN (SELECT t.id_pere FROM tags t,bd_rubrique_document r WHERE pere='DOCUTHEQUE' AND r.id_rubrique IN (".$str_rub.") AND t.id_pere=r.id_document AND t.tags like $phrase))"; }else{ $requete="select d.*,DATE_FORMAT(d.date, '%e %M %Y') as print_date from $this->Table d where d.visible = 1 and d.$chp like $phrase "; $phrase = str_replace('d'.$this->Chp,'t.tags',$phrase); $requete.=" OR d.id IN (SELECT t.id_pere FROM tags t WHERE t.pere='DOCUTHEQUE' AND t.tags like $phrase)"; }*/ //echo ""; //echo $requete; $result=$link->query($requete); while($val = mysqli_fetch_array($result)){ $tabbuffer[$val[$this->Chp]] =$val; } //$tabbuffer["SPASSOR"]= "1"; return $tabbuffer; } function search($mot, $chp, $esp = 0 ){ $tabbuffer = array(); $mot = trim($mot); $mot=strtolower($mot); $phrase ="'%"; ($esp == 1) ? $phrase .= " " : $phrase .=""; $phrase .= $mot; ($esp == 1) ? $phrase .= " " : $phrase .=""; $phrase .= "%'"; $requete="select * from $this->Table where visible = 1 and $chp like $phrase"; //echo $requete."
"; $result=$link->query($requete); while($val = mysqli_fetch_array($result)){ $tabbuffer[$val[$this->Chp]] =$val; } //$tabbuffer["SPASSOR"]= "1"; return $tabbuffer; } } ?>searchinpage($recherche,'titre',1); $tabresult8 = $Objsearch->searchinpage($recherche,'titre',1); $tabresult2 = $Objsearch->searchinpage($recherche,'corps',1); $tabresult7 = $Objsearch->searchinpage($recherche,'corps',1); $tabresult3 = $Objsearch->searchwordinpage($recherche,'and','titre',1); $tabresult6 = $Objsearch->searchwordinpage($recherche,'and','titre',1); $tabresult4 = $Objsearch->searchwordinpage($recherche,'and','corps',1); $tabresult5 = $Objsearch->searchwordinpage($recherche,'and','corps',1); $tabresult9 = $Objsearch->searchwordinpage($recherche,'or','titre',1); $tabresult10 = $Objsearch->searchwordinpage($recherche,'or','corps',1); $tabbufferPAGES1 = array_merge($tabresult1,$tabresult2, $tabresult3, $tabresult4, $tabresult5, $tabresult6, $tabresult7, $tabresult8, $tabresult9, $tabresult10); $tabresult1 = $Objsearch->searchinpage(htmlentities($recherche),'titre',1); $tabresult8 = $Objsearch->searchinpage(htmlentities($recherche),'titre',1); $tabresult2 = $Objsearch->searchinpage(htmlentities($recherche),'corps',1); $tabresult7 = $Objsearch->searchinpage(htmlentities($recherche),'corps',1); $tabresult3 = $Objsearch->searchwordinpage(htmlentities($recherche),'and','titre',1); $tabresult6 = $Objsearch->searchwordinpage(htmlentities($recherche),'and','titre',1); $tabresult4 = $Objsearch->searchwordinpage(htmlentities($recherche),'and','corps',1); $tabresult5 = $Objsearch->searchwordinpage(htmlentities($recherche),'and','corps',1); $tabresult9 = $Objsearch->searchwordinpage(htmlentities($recherche),'or','titre',1); $tabresult10 = $Objsearch->searchwordinpage(htmlentities($recherche),'or','corps',1); $tabbufferPAGES2 = array_merge($tabresult1,$tabresult2, $tabresult3, $tabresult4, $tabresult5, $tabresult6, $tabresult7, $tabresult8, $tabresult9, $tabresult10); $tabbufferPAGES = array_merge($tabbufferPAGES1,$tabbufferPAGES2);*/ if((isset($recherche) && !empty($recherche)) || (isset($tab_rubriques) && !empty($tab_rubriques)) || (isset($tab_type_document) && !empty($tab_type_document))){ $Objsearch = new fct_search('bd_document','titre'); $tabresult1 = $Objsearch->searchdoc($recherche,'titre',$tab_rubriques,1,$tab_type_document,$date1,$date2); $tabresult2 = $Objsearch->searchworddoc($recherche,'and','titre',$tab_rubriques,1,$tab_type_document,$date1,$date2); $tabresult3 = $Objsearch->searchworddoc($recherche,'or','titre',$tab_rubriques,1,$tab_type_document,$date1,$date2); $tabresult4 = $Objsearch->searchworddoc($recherche,'and','titre',$tab_rubriques,2,$tab_type_document,$date1,$date2); $tabresult5 = $Objsearch->searchworddoc($recherche,'or','titre',$tab_rubriques,2,$tab_type_document,$date1,$date2); $tabresult6 = $Objsearch->searchworddoc($recherche,'and','titre',$tab_rubriques,3,$tab_type_document,$date1,$date2); $tabresult7 = $Objsearch->searchworddoc($recherche,'or','titre',$tab_rubriques,3,$tab_type_document,$date1,$date2); $tabresult10 = $Objsearch->searchdoc($recherche,'titre',$tab_rubriques,"",$tab_type_document,$date1,$date2); $tabbufferDOC1 = array_merge($tabresult1,$tabresult2, $tabresult3,$tabresult4, $tabresult5,$tabresult6, $tabresult7, $tabresult10); $tabresult1 = $Objsearch->searchdoc(htmlentities($recherche),'titre',$tab_rubriques,1,$tab_type_document,$date1,$date2); $tabresult2 = $Objsearch->searchworddoc(htmlentities($recherche),'and','titre',$tab_rubriques,1,$tab_type_document,$date1,$date2); $tabresult3 = $Objsearch->searchworddoc(htmlentities($recherche),'or','titre',$tab_rubriques,1,$tab_type_document,$date1,$date2); $tabresult4 = $Objsearch->searchworddoc(htmlentities($recherche),'and','titre',$tab_rubriques,2,$tab_type_document,$date1,$date2); $tabresult5 = $Objsearch->searchworddoc(htmlentities($recherche),'or','titre',$tab_rubriques,2,$tab_type_document,$date1,$date2); $tabresult4 = $Objsearch->searchworddoc(htmlentities($recherche),'and','titre',$tab_rubriques,3,$tab_type_document,$date1,$date2); $tabresult5 = $Objsearch->searchworddoc(htmlentities($recherche),'or','titre',$tab_rubriques,3,$tab_type_document,$date1,$date2); $tabresult10 = $Objsearch->searchdoc($recherche,'titre',$tab_rubriques,"",$tab_type_document,$date1,$date2); $tabresult20 = $Objsearch->searchdoc($recherche,'comment',$tab_rubriques,1,$tab_type_document,$date1,$date2); $tabresult30 = $Objsearch->searchdoc($recherche,'comment',$tab_rubriques,"",$tab_type_document,$date1,$date2); $tabbufferDOC2 = array_merge($tabresult1,$tabresult2, $tabresult3,$tabresult4, $tabresult5,$tabresult6, $tabresult7,$tabresult10,$tabresult20,$tabresult30); $tabbufferDOCS = array_merge($tabbufferDOC1,$tabbufferDOC2); /*$Objsearch = new fct_search('tag','tags'); $tabresult1 = $Objsearch->search($recherche,'tag',1); $tabresult2 = $Objsearch->searchword($recherche,'and','tag',2); $tabresult3 = $Objsearch->searchword($recherche,'or','tag',2); $tabbufferTAG1 = array_merge($tabresult1,$tabresult2, $tabresult3); $tabresult1 = $Objsearch->search(htmlentities($recherche),'tag',1); $tabresult2 = $Objsearch->searchword(htmlentities($recherche),'and','tag',2); $tabresult3 = $Objsearch->searchword(htmlentities($recherche),'or','tag',2); $tabbufferTAG2 = array_merge($tabresult1,$tabresult2, $tabresult3); $tabbufferTAGS = array_merge($tabbufferTAG1,$tabbufferTAG2);*/ //print_r($tabcat); $tabresultDOCS = array(); foreach($tabbufferDOCS as $key => $value){ array_push($tabresultDOCS,$value); } $nb_totalDOCS = count($tabresultDOCS); /*$tabresultPAGES = array(); foreach($tabbufferPAGES as $key => $value){ array_push($tabresultPAGES,$value); } $nb_totalPAGES = count($tabresultPAGES);*/ $nb_totalTT = $nb_totalPAGES+$nb_totalDOCS; $tabnb = array(); //$tabnb['PAGES'] = $nb_totalPAGES; $tabnb['DOCS'] = $nb_totalDOCS; } ?>
Notice: Undefined variable: nb_totalDOCS in /home/cdcf/public_html/common/docutheque.php on line 97

Notice: Undefined variable: tabresultPAGES in /home/cdcf/public_html/common/docutheque.php on line 104

Notice: Undefined variable: nb_totalPAGES in /home/cdcf/public_html/common/docutheque.php on line 105

Notice: Undefined variable: tabcatPAGES in /home/cdcf/public_html/common/docutheque.php on line 106

Recherche