'', 'flush' => '', 'fill' => '', 'diffuse' => ''); if (isset($param['action'])) { foreach ($param['action'] as $action) { $liste_actions[$action] = $action; } } if(!isset($param['radio_bannette'])) $param['radio_bannette'] = ''; $requete = "select id_bannette, if(nom_classement is not null,concat('(',nom_classement,') ',nom_bannette),nom_bannette) as nom_bannette, if(proprio_bannette>0,1,0) as ban_priv from bannettes left join classements on num_classement = id_classement where bannette_auto=1 order by 3, 2"; $result = pmb_mysql_query($requete,$dbh); //size select $nb_rows = pmb_mysql_num_rows($result); if (($nb_rows > 0) && ($nb_rows < 10)) { $size_select = $nb_rows; } elseif ($nb_rows == 0) { $size_select = 1; } else { $size_select = 10; } //Choix de la bannette à diffuser $form_task = "
".$this->msg["planificateur_dsi_bannette_all"]."
".$this->msg["planificateur_dsi_bannette_public"]."
".$this->msg["planificateur_dsi_bannette_private"]."
 
".$this->msg["task_dsi_full"]."
".$this->msg["task_dsi_flush"]."
".$this->msg["task_dsi_fill"]."
".$this->msg["task_dsi_diffuse"].""; //
// ".$this->msg["task_dsi_export"]." $form_task .= "
"; return $form_task; } public function make_serialized_task_params() { global $list_bann, $radio_bannette, $action; $t = parent::make_serialized_task_params(); if ($radio_bannette) { $t["radio_bannette"]=$radio_bannette; //liste de bannettes sélectionnées dans le cas où on choisi.. if ($radio_bannette == "4") { if ($list_bann) { foreach ($list_bann as $id_bann) { $t["list_bann"][$id_bann]=stripslashes($id_bann); } } } } if ($action) { foreach ($action as $act) { $t["action"][$act]=$act; } } return serialize($t); } }