mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-05-04 18:08:42 +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:
parent
2348817b18
commit
1aa2d2b262
@ -43,8 +43,6 @@ if ($_SESSION["glpiactiveprofile"]["interface"] == "central"){
|
|||||||
helpHeader("TITRE", $_SERVER['PHP_SELF']);
|
helpHeader("TITRE", $_SERVER['PHP_SELF']);
|
||||||
}
|
}
|
||||||
|
|
||||||
$NEEDED_ITEMS=array("search","printer","contract","infocom");
|
|
||||||
|
|
||||||
checkRight("computer","r");
|
checkRight("computer","r");
|
||||||
|
|
||||||
commonHeader($LANG["title"][8],$_SERVER['PHP_SELF'],"plugin","example");
|
commonHeader($LANG["title"][8],$_SERVER['PHP_SELF'],"plugin","example");
|
||||||
|
@ -106,7 +106,9 @@ function plugin_example_getSearchOption(){
|
|||||||
global $LANGEXAMPLE;
|
global $LANGEXAMPLE;
|
||||||
$sopt=array();
|
$sopt=array();
|
||||||
|
|
||||||
|
// Part header
|
||||||
$sopt[PLUGIN_EXAMPLE_TYPE]['common']="Header Needed";
|
$sopt[PLUGIN_EXAMPLE_TYPE]['common']="Header Needed";
|
||||||
|
|
||||||
$sopt[PLUGIN_EXAMPLE_TYPE][1]['table']='glpi_plugin_example';
|
$sopt[PLUGIN_EXAMPLE_TYPE][1]['table']='glpi_plugin_example';
|
||||||
$sopt[PLUGIN_EXAMPLE_TYPE][1]['field']='name';
|
$sopt[PLUGIN_EXAMPLE_TYPE][1]['field']='name';
|
||||||
$sopt[PLUGIN_EXAMPLE_TYPE][1]['linkfield']='name';
|
$sopt[PLUGIN_EXAMPLE_TYPE][1]['linkfield']='name';
|
||||||
@ -120,6 +122,7 @@ function plugin_example_getSearchOption(){
|
|||||||
return $sopt;
|
return $sopt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function plugin_example_addLeftJoin($type,$ref_table,$new_table,$linkfield){
|
function plugin_example_addLeftJoin($type,$ref_table,$new_table,$linkfield){
|
||||||
switch ($new_table){
|
switch ($new_table){
|
||||||
case "glpi_droprodown_plugin_example" :
|
case "glpi_droprodown_plugin_example" :
|
||||||
|
Loading…
x
Reference in New Issue
Block a user