"; if($this->filters['proprio_bannette']) { $title .= $msg['dsi_bannette_gerer_priv']; } else { $title .= $msg['dsi_bannette_gerer_pub']; } $title .= "\n"; return $title; } protected function get_form_title() { return ''; } protected function init_default_columns() { global $sub; $this->add_column('subscribed', 'dsi_bannette_gerer_abonn'); $this->add_column('name', 'dsi_bannette_gerer_nom_liste'); $this->add_column('aff_date_last_envoi', 'dsi_bannette_gerer_date'); $this->add_column('nb_notices', 'dsi_bannette_gerer_nb_notices'); $this->add_column('periodicite', 'dsi_bannette_gerer_periodicite'); } /** * Affiche la recherche + la liste */ public function get_display_list() { global $msg, $charset; global $base_path; $display = $this->get_title(); //Récupération du script JS de tris $display .= $this->get_js_sort_script_sort(); //Affichage de la liste des objets $display .= ""; $display .= $this->get_display_header_list(); if(count($this->objects)) { $display .= $this->get_display_content_list(); } $display .= "
"; $display .= $this->pager(); $display .= "
 
"; return $display; } protected function get_link_to_bannette($id_bannette, $proprio_bannette) { if($proprio_bannette) { return "./dsi.php?categ=bannettes&sub=abo&id_bannette=".$id_bannette."&suite=modif"; } else { return "./dsi.php?categ=bannettes&sub=pro&id_bannette=".$id_bannette."&suite=acces"; } } protected function get_cell_content($object, $property) { global $charset; $content = ''; switch($property) { case 'subscribed': $content .= "filters['proprio_bannette'] && $object->is_subscribed($this->id_empr) ? "checked='checked'" : ""). " />"; break; case 'name': // Construction de l'affichage de l'info bulle de la requette $requete = "select * from bannette_equation, equations where num_equation = id_equation and num_bannette = ".$object->id_bannette; $resultat = pmb_mysql_query($requete); if (($r = pmb_mysql_fetch_object($resultat))) { $recherche = $r->requete; $equ = new equation ($r->num_equation); if (!isset($search) || !is_object($search)) $search = new search(); $search->unserialize_search($equ->requete); $recherche = $search->make_human_query(); $zoom_comment = ""; $java_comment = " onmouseover=\"z=document.getElementById('zoom_comment" . $object->id_bannette . "'); z.style.display=''; \" onmouseout=\"z=document.getElementById('zoom_comment" . $object->id_bannette . "'); z.style.display='none'; \""; } $content .= "id_bannette, $this->get_link_to_bannette($object->id_bannette, $object->proprio_bannette)) . "\" $java_comment >"; $content .= htmlentities($object->comment_public, ENT_QUOTES, $charset); $content .= ""; $content .= $zoom_comment; // if ($tableau_bannettes[$i]['my_categ']) { // $content .= " / ".$tableau_bannettes[$i]['my_categ']; // } // if ($tableau_bannettes[$i]['my_group']) { // $content .= " / ".$tableau_bannettes[$i]['my_group']; // } // $content .= "".aff_exemplaire($object->{$property}).""; break; default : if (is_object($object) && isset($object->{$property})) { $content .= $object->{$property}; } elseif(method_exists($object, 'get_'.$property)) { $content .= call_user_func_array(array($object, "get_".$property), array()); } break; } return $content; } public function set_id_empr($id_empr) { $this->id_empr = $id_empr+0; } }