Modif mineure

git-svn-id: https://forge.glpi-project.org/svn/example/trunk@24 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
moyooo 2007-05-18 21:14:42 +00:00
parent 2348817b18
commit 1aa2d2b262
2 changed files with 3 additions and 2 deletions

View File

@ -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");

View File

@ -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" :