mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-06-28 06:58:43 +02:00
Modif mineure
git-svn-id: https://forge.glpi-project.org/svn/example/trunk@24 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
@ -43,8 +43,6 @@ if ($_SESSION["glpiactiveprofile"]["interface"] == "central"){
|
||||
helpHeader("TITRE", $_SERVER['PHP_SELF']);
|
||||
}
|
||||
|
||||
$NEEDED_ITEMS=array("search","printer","contract","infocom");
|
||||
|
||||
checkRight("computer","r");
|
||||
|
||||
commonHeader($LANG["title"][8],$_SERVER['PHP_SELF'],"plugin","example");
|
||||
|
@ -106,7 +106,9 @@ function plugin_example_getSearchOption(){
|
||||
global $LANGEXAMPLE;
|
||||
$sopt=array();
|
||||
|
||||
// Part header
|
||||
$sopt[PLUGIN_EXAMPLE_TYPE]['common']="Header Needed";
|
||||
|
||||
$sopt[PLUGIN_EXAMPLE_TYPE][1]['table']='glpi_plugin_example';
|
||||
$sopt[PLUGIN_EXAMPLE_TYPE][1]['field']='name';
|
||||
$sopt[PLUGIN_EXAMPLE_TYPE][1]['linkfield']='name';
|
||||
@ -120,6 +122,7 @@ function plugin_example_getSearchOption(){
|
||||
return $sopt;
|
||||
}
|
||||
|
||||
|
||||
function plugin_example_addLeftJoin($type,$ref_table,$new_table,$linkfield){
|
||||
switch ($new_table){
|
||||
case "glpi_droprodown_plugin_example" :
|
||||
|
Reference in New Issue
Block a user