summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3c72764)
raw | patch | inline | side by side (parent: 3c72764)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 17 Jan 2006 09:50:08 +0000 (09:50 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 17 Jan 2006 09:50:08 +0000 (09:50 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2498 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_glpiPrinterAccount.inc | patch | blob | history | |
plugins/admin/systems/glpiPrinter.tpl | patch | blob | history |
diff --git a/plugins/admin/systems/class_glpiPrinterAccount.inc b/plugins/admin/systems/class_glpiPrinterAccount.inc
index 1e8aac795b74059abace4b9e453b721857953ac4..ce2cfaca4874e26850baa30ab0cbf3c8172cb32b 100644 (file)
var $usedDevices = array(); // Which devices are currently selected
var $usedAttachments = array(); // Used Attachments
+
/* Contructor
Sets default values and checks if we already have an existing glpi account
*/
plugin::plugin ($config, $dn);
$this->ui= get_userinfo();
+ $this->is_account = false;
+
/* Abort class construction, if no db is defined */
if(!isset($this->config->data['SERVERS']['GLPI'])){
return;
/* Assign smarty defaults
To avoid undefined indexes, if there is an error with the glpi db
*/
- foreach(array("PrinterTypeKeys","PrinterTypes") as $attr){
+ foreach(array("PrinterTypeKeys","PrinterTypes","ManufacturerKeys","Manufacturers","Attachments","AttachmentKeys") as $attr){
$smarty->assign($attr,array());
$smarty->assign($attr."ACL"," disabled ");
}
- foreach(array("type") as $attr){
+ foreach(array("type","FK_glpi_enterprise","tech_num","contact_num","comments","flags_serial","flags_par","flags_usb") as $attr){
$smarty->assign($attr,"");
$smarty->assign($attr."ACL"," disabled ");
}
index 3d8731c256724a07aabfbb64b8a065c9d1755b41..91da06e94bdb155aca7ff482a794eb4758dee55b 100644 (file)
<table summary="" width="100%">
<tr>
<td width="20">
- <input type="checkbox" name="flags_serial" {if $flags_serial=="1"} checked {/if} value="1">
+ <input type="checkbox" name="flags_serial" {if $flags_serial=="1"} checked {/if} value="1" {flags_serialACL}>
</td>
<td>
{t}Serial{/t}
</tr>
<tr>
<td width="20">
- <input type="checkbox" name="flags_par" {if $flags_par=="1"} checked {/if} value="1">
+ <input type="checkbox" name="flags_par" {if $flags_par=="1"} checked {/if} value="1" {flags_parACL}>
</td>
<td>
{t}Parallel{/t}
</tr>
<tr>
<td width="20">
- <input type="checkbox" name="flags_usb" {if $flags_usb=="1"} checked {/if} value="1">
+ <input type="checkbox" name="flags_usb" {if $flags_usb=="1"} checked {/if} value="1" {flags_usbACL}>
</td>
<td>
{t}USB{/t}