<?php // +-------------------------------------------------+ // © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net) // +-------------------------------------------------+ // $Id: main.inc.php,v 1.1 2009-03-25 13:15:48 ngantier Exp $ if (stristr($_SERVER['REQUEST_URI'], ".inc.php")) { die("no access"); } // page de switch recherche notice // inclusions principales require_once "{$class_path}/search_perso.class.php"; $search_p = new search_perso($id); switch ($sub) { case "form": // affichage du formulaire de recherche perso, en création ou en modification => $id) print $search_p->do_form(); break; case "save": // sauvegarde issu du formulaire $search_p->update_from_form(); print $search_p->do_list(); break; case "delete": // effacement d'une recherche personalisée, issu du formulaire $search_p->delete(); print $search_p->do_list(); break; default: // affiche liste des recherches personalisée print $search_p->do_list();
$_SESSION["session_history"][$_SESSION["CURRENT"]]["QUERY"]["POST"] = $_POST; $_SESSION["session_history"][$_SESSION["CURRENT"]]["QUERY"]["GET"] = $_GET; $_SESSION["session_history"][$_SESSION["CURRENT"]]["QUERY"]["GET"]["sub"] = ""; $_SESSION["session_history"][$_SESSION["CURRENT"]]["QUERY"]["POST"]["sub"] = ""; $_SESSION["session_history"][$_SESSION["CURRENT"]]["QUERY"]["HUMAN_QUERY"] = $sc->make_human_query(); $_SESSION["session_history"][$_SESSION["CURRENT"]]["QUERY"]["HUMAN_TITLE"] = $msg["search_extended"]; $_POST["page"] = 0; $page = 0; } $sc->show_results("./catalog.php?categ=search&mode=6&sub=launch", "./catalog.php?categ=search&mode=6", true, '', true); if ($_SESSION["CURRENT"] !== false) { $_SESSION["session_history"][$_SESSION["CURRENT"]]["NOTI"]["URI"] = "./catalog.php?categ=search&mode=6&sub=launch"; $_SESSION["session_history"][$_SESSION["CURRENT"]]["NOTI"]["POST"] = $_POST; $_SESSION["session_history"][$_SESSION["CURRENT"]]["NOTI"]["GET"] = $_GET; $_SESSION["session_history"][$_SESSION["CURRENT"]]["NOTI"]["PAGE"] = $page + 1; $_SESSION["session_history"][$_SESSION["CURRENT"]]["NOTI"]["HUMAN_QUERY"] = $sc->make_human_query(); $_SESSION["session_history"][$_SESSION["CURRENT"]]["NOTI"]["SEARCH_TYPE"] = "extended"; $_SESSION["session_history"][$_SESSION["CURRENT"]]["NOTI"]["TEXT_QUERY"] = ""; } if ($pmb_map_activate) { $sc->check_emprises(); } break; default: print $sc->show_form("./catalog.php?categ=search&mode=6", "./catalog.php?categ=search&mode=6&sub=launch"); if ($pmb_extended_search_dnd_interface) { $search_perso = new search_perso(); print '<div id="search_perso" style="display:none">' . $search_perso->get_forms_list() . '</div>'; } break; }