New search system

git-svn-id: https://forge.glpi-project.org/svn/example/trunk@23 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
moyooo
2007-05-18 21:01:28 +00:00
parent 9a95a2e27f
commit 2348817b18
5 changed files with 136 additions and 15 deletions

View File

@ -32,23 +32,30 @@
// Purpose of file:
// ----------------------------------------------------------------------
// Non menu entry case
//header("Location:../../central.php");
$NEEDED_ITEMS=array("search");
// Entry menu case
define('GLPI_ROOT', '../..');
include (GLPI_ROOT . "/inc/includes.php");
if ($_SESSION["glpiactiveprofile"]["interface"] == "central")
commonHeader("TITRE", $_SERVER['PHP_SELF'],"plugins","example");
else
helpHeader("TITRE", $_SERVER['PHP_SELF']);
if ($_SESSION["glpiactiveprofile"]["interface"] == "central"){
commonHeader("TITRE", $_SERVER['PHP_SELF'],"plugins","example");
} else {
helpHeader("TITRE", $_SERVER['PHP_SELF']);
}
$NEEDED_ITEMS=array("search","printer","contract","infocom");
echo "This is the plugin index file";
checkRight("computer","r");
echo "Example of dropdown (need to create glpi_dropdown_plugin_example table) ";
dropdownValue('glpi_dropdown_plugin_example','myname',0);
commonHeader($LANG["title"][8],$_SERVER['PHP_SELF'],"plugin","example");
manageGetValuesInSearch(PLUGIN_EXAMPLE_TYPE);
searchForm(PLUGIN_EXAMPLE_TYPE,$_SERVER['PHP_SELF'],$_GET["field"],$_GET["contains"],$_GET["sort"],$_GET["deleted"],$_GET["link"],$_GET["distinct"],$_GET["link2"],$_GET["contains2"],$_GET["field2"],$_GET["type2"]);
showList(PLUGIN_EXAMPLE_TYPE,$_SERVER['PHP_SELF'],$_GET["field"],$_GET["contains"],$_GET["sort"],$_GET["order"],$_GET["start"],$_GET["deleted"],$_GET["link"],$_GET["distinct"],$_GET["link2"],$_GET["contains2"],$_GET["field2"],$_GET["type2"]);
commonFooter();
commonFooter();
?>