Code

Last changes .... i hope so ...
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 25 Jan 2006 10:23:37 +0000 (10:23 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 25 Jan 2006 10:23:37 +0000 (10:23 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2580 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_glpiAccount.inc
plugins/admin/systems/class_glpiPrinterAccount.inc
plugins/admin/systems/glpiPrinter.tpl

index a72f7005c957413499578d32658c73b95107ef7f..6e5cb2ccd5773a766c62bb1d7676dc0c17b60d77 100644 (file)
@@ -129,7 +129,7 @@ class glpiAccount extends plugin
       $smarty->assign($attr,array());
       $smarty->assign($attr."ACL"," disabled ");
     }
-    foreach(array("type","FK_glpi_enterprise","os","tech_num","comments","contact_num") as $attr){
+    foreach(array("type","FK_glpi_enterprise","os","tech_num","comments","contact_num","AttachmentsDiv") as $attr){
       $smarty->assign($attr,"");
       $smarty->assign($attr."ACL"," disabled ");
     }
index 5ac4eb1b656b38cb8ecce50e461e4c761ccf02ad..59da4baf45669e3bba068a8ff830f3f5ebe79627 100644 (file)
@@ -138,11 +138,11 @@ class glpiPrinterAccount extends plugin
     /*  Assign smarty defaults 
         To avoid undefined indexes, if there is an error with the glpi db
      */ 
-    foreach(array("PrinterTypeKeys","PrinterTypes","ManufacturerKeys","Manufacturers","Attachments","AttachmentKeys") as $attr){
+    foreach(array("PrinterTypeKeys","PrinterTypes","ManufacturerKeys","Manufacturers","Attachments","AttachmentKeys","CartridgeKeys","Cartridges") as $attr){
       $smarty->assign($attr,array());
       $smarty->assign($attr."ACL"," disabled ");
     }
-    foreach(array("type","FK_glpi_enterprise","tech_num","contact_num","comments","flags_serial","flags_par","flags_usb") as $attr){
+    foreach(array("type","FK_glpi_enterprise","tech_num","contact_num","comments","flags_serial","flags_par","flags_usb","AttachmentsDiv") as $attr){
       $smarty->assign($attr,"");
       $smarty->assign($attr."ACL"," disabled ");
     }
@@ -500,7 +500,7 @@ class glpiPrinterAccount extends plugin
      *  Assign listbox / checkbox .... values to smarty  
      */
     /* Assign smarty defaults */ 
-    foreach(array("PrinterTypes","PrinterTypeKeys","Manufacturers","TechnicalResponsibles","Attachments") as $attr){
+    foreach(array("PrinterTypes","PrinterTypeKeys","Manufacturers","TechnicalResponsibles","Attachments","Cartridges") as $attr){
       $smarty->assign($attr,array());
       $smarty->assign($attr."ACL",chkacl($this->acl,$attr));
     }
index 5295f5392d3966c98b0dc62c71f8b7be4b463c02..f47f88b5c1aa2328d8e02657d690d9fd8d01ebe5 100644 (file)
@@ -90,7 +90,7 @@
                                <tr>
                                        <td>
                                                {$AttachmentsDiv}
-                                               <input name="AddAttachment"     value="{t}Add{/t}" type="submit">       
+                                               <input name="AddAttachment"     value="{t}Add{/t}" type="submit" {$AttachmentsACL}>     
                                        </td>
                                </tr>
                        </table>
                                                <select name="Cartridges[]" {$CartridgesACL} style="height:100px;width:100%;" multiple>
                                                        {html_options values=$CartridgeKeys output=$Cartridges}
                                                </select>
-                                               <input name="AddCartridge"      value="{t}Add{/t}" type="submit"      
-                                               <input name="RemoveCartridge"   value="{t}Remove{/t}" type="submit"   
+                                               <input name="AddCartridge"      value="{t}Add{/t}" type="submit" {$CartridgesACL}>      
+                                               <input name="RemoveCartridge"   value="{t}Remove{/t}" type="submit" {$CartridgesACL}>   
                                        </td>
                                </tr>
                        </table>