PLugin example for new 0.72 plugin system

git-svn-id: https://forge.glpi-project.org/svn/example/trunk@53 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
moyooo
2008-10-03 14:27:31 +00:00
parent 15e58c206c
commit 36e8444573
4 changed files with 689 additions and 595 deletions

View File

@ -42,14 +42,15 @@ if ($_SESSION["glpiactiveprofile"]["interface"] == "central"){
} else {
helpHeader("TITRE", $_SERVER['PHP_SELF']);
}
$_GET['target']=$_SERVER['PHP_SELF'];
checkRight("computer","r");
checkTypeRight(PLUGIN_EXAMPLE_TYPE,"r");
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"]);
searchForm(PLUGIN_EXAMPLE_TYPE,$_GET);
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"]);
showList(PLUGIN_EXAMPLE_TYPE,$_GET);
commonFooter();
?>