columns = array(); } /** * Header de la liste */ public function get_display_header_list() { global $msg, $charset; $display = " ".htmlentities($msg['dsi_ban_form_nom'],ENT_QUOTES, $charset)."
(".htmlentities($msg['dsi_ban_form_com_public'],ENT_QUOTES, $charset).") ".htmlentities($msg['dsi_ban_date_last_envoi'],ENT_QUOTES, $charset)."
(".htmlentities($msg['dsi_ban_date_last_remp'],ENT_QUOTES, $charset).") ".htmlentities($msg['dsi_ban_nb_notices'],ENT_QUOTES, $charset)." "; return $display; } /** * Liste des objets */ public function get_display_content_list() { global $msg, $charset; global $sub; $display = ''; $id_check_list = ''; foreach ($this->objects as $i=>$object) { $id_check="auto_".$object->id_bannette; if($id_check_list)$id_check_list.='|'; $id_check_list.=$id_check; if ($object->proprio_bannette) $nom_bannette = "".htmlentities($object->nom_bannette,ENT_QUOTES, $charset)."" ; else $nom_bannette = htmlentities($object->nom_bannette,ENT_QUOTES, $charset) ; $td_javascript=" onmouseover=\"this.className='surbrillance'\" onmouseout=\"this.className='".($i % 2 ? 'odd' : 'even')."'\" "; $display .= ""; $display .= " "; $display .= " ".$nom_bannette."
(".htmlentities($object->comment_public,ENT_QUOTES, $charset).") "; $display .= " ".htmlentities($object->aff_date_last_envoi,ENT_QUOTES, $charset).""; if ($object->alert_diff) $display .= "
(".htmlentities($object->aff_date_last_remplissage,ENT_QUOTES, $charset).")"; else $display .= "
(".htmlentities($object->aff_date_last_remplissage,ENT_QUOTES, $charset).")" ; $display .= " ".htmlentities($object->nb_notices,ENT_QUOTES, $charset)." "; $display .= ""; } $display.=""; return $display; } protected function get_title() { global $msg; return "

".($this->filters['auto'] ?$msg['dsi_diff_ban_auto_found'] : $msg['dsi_diff_ban_manu_found'])."

"; } public function get_display_list() { global $msg, $charset; global $base_path; global $current_module; global $sub; $display = $this->get_title(); // // Affichage du formulaire de recherche if($sub == 'auto' || $sub == 'manu') { $display .= $this->get_search_form(); } // Affichage de la human_query // $display .= $this->_get_query_human(); //Récupération du script JS de tris // $display .= $this->get_js_sort_script_sort(); $display .= "

$msg[dsi_dif_act_ban_contenu]

"; //Affichage de la liste des objets $display .= ""; $display .= $this->get_display_header_list(); if(count($this->objects)) { $display .= $this->get_display_content_list(); } else { switch($this->filters['sub']) { case 'auto': $display .= $msg['dsi_no_ban_found']; break; case 'lancer': $display .= $msg['dsi_no_automatic_ban_found_ech']; break; } } $display .= "
"; $display .= $this->pager(); $display .= "
 
"; return $display; } }