Code

Update for glpi stuff
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 4 Jan 2006 13:53:52 +0000 (13:53 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 4 Jan 2006 13:53:52 +0000 (13:53 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2406 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_glpiAccount.inc
plugins/admin/systems/class_glpiManufacturer.inc
plugins/admin/systems/glpi.tpl

index 6d7813e8c6205277e6265ee023f6fa6327f387a7..71306352ca3e6386314129ad3b307abb0295caa8 100644 (file)
@@ -159,6 +159,43 @@ class glpiAccount extends plugin
       $this->cur_dialog = new glpiDeviceManagement($this->config,$this->dn,$this->usedDevices);
     }
 
+
+
+
+    /* Attachment pool was closed with use
+     */
+    if(isset($_POST['UseAttachment'])){
+      if(count($this->cur_dialog->check())){
+        foreach($this->cur_dialog->check() as $msg){
+          print_red($msg);
+        }
+      }else{
+        /****/
+        echo "blabla attaching something ..... ";
+
+      }
+    }
+   
+    /* Attachment pool was closed with abort
+     */ 
+    if(isset($_POST['AbortAttachment'])){
+      $this->cur_dialog = false;
+      $this->edit_type = false; 
+    }
+
+    /* Open Attachment pool to add/edit Attachments
+     */
+    if(isset($_POST['AddAttachment'])){
+      $this->cur_dialog = new glpiAttachmentPool($this->config,$this->dn);
+      $this->dialog = true;
+    }
+    
+    /* Remove Attachment fro this tab 
+     */
+    if(isset($_POST['RemoveAttachment'])){
+        
+    }
+
     /* We have selected some devices and pressed use button 
      */
     if(isset($_POST['SelectDeviceSave'])){
index a29a601c751f9fa6e62ec4d7e31b338700d8ee39..eaaaaa94185ce06c67a40fba3494b9e1783bdd3e 100644 (file)
@@ -36,6 +36,7 @@ class glpiManufacturer extends plugin
 
   function execute()
   {
+    plugin::execute();
     $smarty  = get_smarty();
     $display = "";
 
index 08e43a690af165f9cf1be5e0c23a104e91212f42..cf2b27221d16685f2f56e6ecd7a95f12fb3bf859 100644 (file)
@@ -91,7 +91,9 @@
                                                <select name="Attachments" {$AttachmentsACL} style="height:120px;width:100%;" multiple>
                                                        {html_options values=$Attachments output=$Attachments}
                                                </select>
-                                               <input name="AddDevice" value="{t}Edit{/t}" type="submit">      
+                                               test
+                                               <input name="AddAttachment"     value="{t}Add{/t}" type="submit">       
+                                               <input name="RemoveAttachment"  value="{t}Remove{/t}" type="submit">    
                                        </td>
                                </tr>
                        </table>