$varname=$param[0]; global ${$varname}; if (${$varname}==$param[1]) $ret=$param[2]; else $ret=$param[3]; return $ret; } function aff_if_session_param($param) { //Nom de la variable a tester, valeur, si =, si <> if ($_SESSION[$param[0]]==$param[1]) $ret=$param[2]; else $ret=$param[3]; return $ret; } function aff_if_logged($param) { if ($_SESSION['id_empr_session']) { $ret = $param[0]; }else { if($param[1]) $ret = $param[1]; else $ret =""; } return $ret; } function aff_if_logged_lang($param) { global $lang; if ($lang==$param[2]) { if ($_SESSION['id_empr_session']) { $ret = $param[0]; }else { if($param[1]) $ret = $param[1]; else $ret =""; } } else $ret=""; return $ret; } function aff_message_lang($param) { global $lang; if ($lang==$param[1]) return $param[0]; else return ""; } function aff_perio_a2z($param) { global $base_path; global $opac_perio_a2z_abc_search,$opac_perio_a2z_max_per_onglet; require_once($base_path."/classes/perio_a2z.class.php"); $a2z=new perio_a2z(0,$opac_perio_a2z_abc_search,$opac_perio_a2z_max_per_onglet); return $perio_a2z=$a2z->get_form(); } function aff_hidden_global_var_form($param) { global $charset; if(empty($param[0])) { $param[0] = 'hidden_global_var_form'; } $action = substr($_SERVER['REQUEST_URI'], strrpos($_SERVER['REQUEST_URI'], '/')+1); $hidden_form = "
"; if(count($_POST)) { foreach ($_POST as $name=>$value) { if(is_string($value)) { $hidden_form .= ""; } } } if(!empty($param[1])) { $hidden_form .= ""; } $hidden_form .= "
"; return $hidden_form; } ?>