X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=plugins%2Fadmin%2Fsystems%2Fclass_glpiDeviceManagement.inc;h=e8fe8b56e8b073ad7154594740ee08313baf12dd;hb=49866d5f3a99b5675b11310ffba4c2e50d967eb7;hp=48062f056e62c9f8727c2a218151976026b51655;hpb=25b7f24a9db591f8ca28f32b0a62f80aa804d6e7;p=gosa.git diff --git a/plugins/admin/systems/class_glpiDeviceManagement.inc b/plugins/admin/systems/class_glpiDeviceManagement.inc index 48062f056..e8fe8b56e 100644 --- a/plugins/admin/systems/class_glpiDeviceManagement.inc +++ b/plugins/admin/systems/class_glpiDeviceManagement.inc @@ -2,11 +2,6 @@ class glpiDeviceManagement extends plugin { - /* CLI vars */ - var $cli_summary= "Manage server basic objects"; - var $cli_description= "Some longer text\nfor help"; - var $cli_parameters= array("eins" => "Eins ist toll", "zwei" => "Zwei ist noch besser"); - /* attribute list for save action */ var $ignore_account= TRUE; var $attributes= array(); @@ -114,7 +109,7 @@ class glpiDeviceManagement extends plugin }elseif(isset($tmp['designation'])){ $smarty->assign("warning", sprintf(_("You're about to delete the glpi device '%s'."), $tmp['designation'])); }else{ - print_a(_("Can't detect object name.")); + print_red(_("Can't detect object name.")); } return($smarty->fetch(get_template_path('remove_glpi.tpl', TRUE))); @@ -184,8 +179,8 @@ class glpiDeviceManagement extends plugin $divlist->SetEntriesPerPage(0); $divlist->SetHeader(array( array("string" => " ", "attach" => "style='text-align:center;width:20px;'"), - array("string" => _("devices")." / "._("Departments"), "attach" => "style=''"), - array("string" => _("Use"), "attach" => "style='width:60px;border-right:0px;text-align:right;'" ))); + array("string" => _("devices"), "attach" => "style=''"), + array("string" => _("Actions"), "attach" => "style='width:60px;border-right:0px;text-align:right;'" ))); $edit = "%s"; $editdel = ""._("Edit").""; @@ -208,7 +203,7 @@ class glpiDeviceManagement extends plugin } /* Dawn databse struckture ....*/ - if(empty($user['comment'])) { + if(empty($user['comment']) && isset($user['comments'])) { $user['comment'] = $user['comments']; } @@ -224,29 +219,29 @@ class glpiDeviceManagement extends plugin "  ". "  ". + src='images/mainboard.png' title='"._("New mainbord")."' alt='"._("MB")."' name='new_moboard'> ". "  ". + src='images/processor.png' title='"._("New processor")."' alt='"._("P")."' name='new_processor'> ". "  ". + src='images/server.png' title='"._("New case")."' alt='"._("C")."' name='new_case'> ". "  ". + src='images/net_hardware.png' title='"._("New network interface")."' alt='"._("NI")."' name='new_iface'> ". "  ". + src='images/memory.png' title='"._("New ram")."' alt='"._("R")."' name='new_ram'> ". "  ". + src='images/fai_partitionTable.png' title='"._("New hard disk")."' alt='"._("HDD")."' name='new_hdd'> ". "  ". + src='images/drives.png' title='"._("New drive")."' alt='"._("D")."' name='new_drive'> ". "  ". + src='images/hardware.png' title='"._("New controller")."' alt='"._("CS")."' name='new_control'> ". "  ". + src='images/gfx_hardware.png' title='"._("New graphics card")."' alt='"._("GC")."' name='new_gfxcard'> ". "  ". + src='images/snd_hardware.png' title='"._("New sound card")."' alt='"._("SC")."' name='new_sndcard'> ". "  ". + src='images/power.png' title='"._("New power supply")."' alt='"._("PS")."' name='new_power'> ". "  ". + src='images/fai_template.png' title='"._("New misc device")."' alt='"._("OC")."' name='new_pci'> ". ""; $filter= $_SESSION['glpiDeviceRegex']; @@ -255,8 +250,8 @@ class glpiDeviceManagement extends plugin $smarty->assign("search_image", get_template_path('images/search.png')); $smarty->assign("searchu_image", get_template_path('images/search_user.png')); $smarty->assign("tree_image", get_template_path('images/tree.png')); - $smarty->assign("infoimage", get_template_path('images/info.png')); - $smarty->assign("launchimage", get_template_path('images/launch.png')); + $smarty->assign("infoimage", get_template_path('images/info_small.png')); + $smarty->assign("launchimage", get_template_path('images/small_filter.png')); $smarty->assign("apply", apply_filter()); $smarty->assign("alphabet", generate_alphabet()); $smarty->assign("device_regex", $filter['device_regex']); @@ -335,7 +330,8 @@ class glpiDeviceManagement extends plugin */ function check($attr) { - $message = array(); + /* Call common method to give check the hook */ + $message= plugin::check(); if(isset($attr['designation'])){ $str2 = "designation";