"; } if (isset($_POST["position"])){ $position = $_POST["position"]; if ($lvl == "visionneuse"){ $start = false; }else{ $start = true; } }else{ $position = 0; $start = true; } $params = array( "mode" => $mode, "user_query" => $user_query, "pert" => $pert, "join" => $join, "clause" => $clause, "clause_bull" => $clause_bull, "clause_bull_num_notice" => $clause_bull_num_notice, "tri" => $tri, "table" => $table, "user_code" => $_SESSION["user_code"], "idautorite" => $idautorite, "id" => $id, "idperio" => $idperio, "search" => $search, "bulletin" => $bulletin, "explnum_id" => $explnum_id, "position" => $position, "start" => $start, "lvl" => $lvl, "explnum" => $explnum, "page" => $myPage ); $visionneuse = new visionneuse("pmb",$visionneuse_path,$lvl,$lang,$params); if($lvl == "" || $lvl == "visionneuse"){ if($opac_visionneuse_alert) { $confirm_alert=false; if ($opac_visionneuse_alert_doctype) { $t_opac_visionneuse_alert_doctype=explode(',',$opac_visionneuse_alert_doctype); $q = 'select typdoc from explnum join notices on explnum_notice=notice_id and explnum_id='.$explnum_id.' '; $q.= 'union '; $q.= 'select typdoc from explnum join bulletins on explnum_bulletin=bulletin_id and explnum_id='.$explnum_id.' join notices on num_notice=notice_id '; $q.= 'union '; $q.= 'select typdoc from explnum join bulletins on explnum_bulletin=bulletin_id and explnum_id='.$explnum_id.' join notices on bulletin_notice=notice_id'; $r = mysql_query($q,$dbh); if (mysql_num_rows($r)) { $typdoc = mysql_result($r,0,0); if (is_array($t_opac_visionneuse_alert_doctype) && in_array($typdoc,$t_opac_visionneuse_alert_doctype)) { $confirm_alert=true; } } } if ($confirm_alert) { print ""; } } print $short_footer; } ?>