Code

list base image migration for gosa-plugins
[gosa.git] / gosa-plugins / glpi / admin / systems / services / glpi / class_glpiDeviceManagement.inc
index b4581f123841ffcc72dffb074d085cb96433f9b7..df7cc6b3e9142f4a257cd208c4e414dfab242658 100644 (file)
@@ -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();
@@ -110,9 +105,9 @@ class glpiDeviceManagement extends plugin
       $this->delete = $tmp;
 
       if(isset($tmp['name'])){
-        $smarty->assign("warning", sprintf(_("You're about to delete the glpi device '%s'."), $tmp['name']));
+        $smarty->assign("warning",msgPool::deleteInfo($tmp['name'],_("glpi device")));
       }elseif(isset($tmp['designation'])){
-        $smarty->assign("warning", sprintf(_("You're about to delete the glpi device '%s'."), $tmp['designation']));
+        $smarty->assign("warning",msgPool::deleteInfo($tmp['designation'],_("glpi device")));
       }else{
         print_red(_("Can't detect object name."));
       }
@@ -190,7 +185,7 @@ class glpiDeviceManagement extends plugin
 
     $edit = "<a href='?plug=".$_GET['plug']."&amp;act=edit_device&amp;id=%s'>%s</a>";
     $editdel = "<a href='?plug=".$_GET['plug']."&amp;act=edit_device&amp;id=%s'><img src='images/edit.png' alt='"._("Edit")."' border=0></a>";
-    $editdel.= "<a href='?plug=".$_GET['plug']."&amp;act=del_device&amp;id=%s'><img src='images/edittrash.png' alt='"._("Delete")."' border=0></a>";
+    $editdel.= "<a href='?plug=".$_GET['plug']."&amp;act=del_device&amp;id=%s'><img src='images/lists/trash.png' alt='"._("Delete")."' border=0></a>";
     
     $useDevice = "<input type='hidden' name='wasOnPage_%s' value='%s'><input type='checkbox' value='%s' name='useDevice_%s' %USE%>";
 
@@ -257,7 +252,7 @@ class glpiDeviceManagement extends plugin
     $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_small.png'));
-    $smarty->assign("launchimage", get_template_path('images/small_filter.png'));
+    $smarty->assign("launchimage", get_template_path('images/lists/action.png'));
     $smarty->assign("apply", apply_filter());
     $smarty->assign("alphabet", generate_alphabet());
     $smarty->assign("device_regex", $filter['device_regex']);