Code

updatedimport
[gosa.git] / gosa-plugins / goto / addons / goto / class_gotomasses.inc
index 31652669931c59a6ee24460dd0d9f3b5fd42bcf9..ce00d1e933577301547fc7a029cfb9ad56295512 100644 (file)
@@ -123,6 +123,19 @@ class gotomasses extends plugin
     }
 
 
+    /************
+     * Import CSV file  
+     ************/
+    
+    if($s_action == "import_file"){
+      $this->dialog = new goto_import_file($this->config,$this);
+    }
+  
+    if(isset($_POST['import_abort'])){
+      $this->dialog = FALSE;
+    }
+
+
     /************
      * Handle Priority modifications  
      ************/
@@ -331,6 +344,7 @@ class gotomasses extends plugin
     }
     if($this->acl_is_removeable()){
       $s.= "..|---|\n";
+      $s.= "..|<img src='images/lists/import.png' alt='' border='0' class='center'>&nbsp;"._("Import")."|import_file\n";
       $s.= "..|<img src='images/lists/trash.png' alt='' border='0' class='center'>&nbsp;"._("Remove")."|remove_multiple\n";
     }
     if(preg_match("/w/",$this->getacl(""))){
@@ -417,7 +431,7 @@ class gotomasses extends plugin
        */  
       if(TRUE){
         $action .= "<input type='image' src='images/fai_hook.png' name='log_view_".$key."' 
-          class='center' title='"._("View logs")."' alt='"._("Log view")."'>&nbsp;";
+          class='center' title='"._("View logs")."' alt='"._("View logs")."'>&nbsp;";
       }
 
       /* If PAUSED or WAITING add edit action