mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-07-01 16:18:41 +02:00
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:
@ -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();
|
||||
?>
|
||||
|
Reference in New Issue
Block a user