summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c37e7c5)
raw | patch | inline | side by side (parent: c37e7c5)
author | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 31 May 2005 12:36:02 +0000 (12:36 +0000) | ||
committer | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 31 May 2005 12:36:02 +0000 (12:36 +0000) |
12 files changed:
diff --git a/plugins/admin/systems/class_componentGeneric.inc b/plugins/admin/systems/class_componentGeneric.inc
index 4c850812879a4e54194c56de1bca65ee42ddda26..139444563bd4fcddf36b9c266d0833a5a5c4e155 100644 (file)
}
$smarty->assign("base_select", $this->base);
+ /* Show Asterisk for required attribute ipHostNumber and macAddress */
+ $smarty->assign("staticAddress", "<font class=\"must\">*</font>");
+
/* Show main page */
$smarty->assign("netconfig", dirname(__FILE__)."/network.tpl");
return($smarty->fetch (get_template_path('component.tpl', TRUE)));
diff --git a/plugins/admin/systems/class_phoneGeneric.inc b/plugins/admin/systems/class_phoneGeneric.inc
index 2e788e1cf57f99b718fd9250aa9e555f0ebb1aed..417b6b31cf3dd36209ac27cf8baaccd0813ca454 100644 (file)
$smarty->assign("$attr", $this->$attr);
}
$smarty->assign("base_select", $this->base);
-
+
+ /* Show Asterisk for required attribute ipHostNumber and macAddress */
+ $smarty->assign("staticAddress", "<font class=\"must\">*</font>");
+
/* Show main page */
$smarty->assign("netconfig", dirname(__FILE__)."/network.tpl");
return($smarty->fetch (get_template_path('phone.tpl', TRUE)));
diff --git a/plugins/admin/systems/class_printGeneric.inc b/plugins/admin/systems/class_printGeneric.inc
index c816cc23489838c5fefd84be915953b839b7db4f..b662fae88daaea38180fda7b590809da99779fce 100644 (file)
}
$smarty->assign("base_select", $this->base);
+ /* Don't show Asterisk for non-required attribute ipHostNumber and macAddress */
+ $smarty->assign("staticAddress", "");
+
/* Show main page */
$smarty->assign("netconfig", dirname(__FILE__)."/network.tpl");
return($smarty->fetch (get_template_path('printer.tpl', TRUE)));
index c6e38f25c6f61e48043b02a36c2f6a06f2fa1b70..12612a580b17d6b71fdf25c6c0382a520db21e7b 100644 (file)
$smarty->assign("$attr"."ACL", chkacl($this->acl, $attr));
}
+ /* Don't show Asterisk for non-required attribute ipHostNumber and macAddress */
+ $smarty->assign("staticAddress", "");
+
/* Classes... */
foreach ($this->additionaloc as $oc => $dummy){
if (isset($this->objectclasses[$oc])){
diff --git a/plugins/admin/systems/class_servGeneric.inc b/plugins/admin/systems/class_servGeneric.inc
index c081b412ae90c7cb550eb7adf27f6355312cb04d..12c1c309dc3be2ddb7b9c2333fd92a30ec828883 100644 (file)
$smarty->assign($attr."ACL", chkacl($this->acl, $attr));
$smarty->assign("$attr", $this->$attr);
}
+ $smarty->assign("staticAddress", "");
$smarty->assign("base_select", $this->base);
/* Assign status */
diff --git a/plugins/admin/systems/class_servService.inc b/plugins/admin/systems/class_servService.inc
index bff759aab738c52162301483a1c710e13edc71b1..3c6fae64c4c4db91ef6e2dddc6b1cc7be17b9330 100644 (file)
$smarty= get_smarty();
+ $smarty->assign("staticAddress", "");
+
/*
Handling for Nfs Export Entries
*/
diff --git a/plugins/admin/systems/class_terminalGeneric.inc b/plugins/admin/systems/class_terminalGeneric.inc
index 99b11ba7efa0612b9913dd9b1166f92958774826..e639e1636edd26b1e43af4aaeaaf694b8c976e2a 100644 (file)
/* Fill templating stuff */
$smarty= get_smarty();
$smarty->assign("cn", $this->cn);
+ $smarty->assign("staticAddress", "");
$smarty->assign("bases", $this->config->idepartments);
diff --git a/plugins/admin/systems/class_terminalInfo.inc b/plugins/admin/systems/class_terminalInfo.inc
index 4b41bfbfdfd8603d1f49b7255881e2f0c0a5ca13..46eb02226924d55c889c327a69fd475dcd188b4d 100644 (file)
$smarty= get_smarty();
$display= "";
+ $smarty->assign("staticAddress", "");
+
/* Check if terminal is online */
$query= "fping -q -r 1 -t 500 ".$this->cn;
exec ($query, $dummy, $retval);
diff --git a/plugins/admin/systems/class_terminalService.inc b/plugins/admin/systems/class_terminalService.inc
index 0d5b0b8518da7b18cf4381e4a5fbbc61778a30f4..d04d110a099f8f33985d83ceff19a795f1d8044d 100644 (file)
$smarty->assign($val, $this->$val);
$smarty->assign($val."ACL", chkacl($this->acl, $val));
}
+ $smarty->assign("staticAddress", "");
/* Checkboxes */
foreach(array("gotoLpdEnable", "gotoScannerEnable") as $val){
diff --git a/plugins/admin/systems/class_winGeneric.inc b/plugins/admin/systems/class_winGeneric.inc
index 82b5a25c9fe92876db53931c8b5b820a45f5e590..a9533636a93d81bf65561a76478afe137a540ae8 100644 (file)
$smarty->assign("$attr", $this->$attr);
}
+ /* Show Asterisk for required attribute ipHostNumber and macAddress */
+ $smarty->assign("staticAddress", "<font class=\"must\">*</font>");
$smarty->assign("base_select", $this->base);
diff --git a/plugins/admin/systems/class_workstationGeneric.inc b/plugins/admin/systems/class_workstationGeneric.inc
index cf9c8b9d25ac26ee51719b540bf142aff3472b7e..1a82a1ae0eed1a97b969a3fbce78eb4ef2fdbc8b 100644 (file)
$smarty= get_smarty();
$smarty->assign("cn", $this->cn);
$smarty->assign("bases", $this->config->idepartments);
-
+ $smarty->assign("staticAddress", "");
+
/* Check if workstation is online */
$query= "fping -q -r 1 -t 500 ".$this->cn;
exec ($query, $dummy, $retval);
index 4700d7b5f7379a8a803e7ea95e0224745c65a9eb..93b3cb9b6cb2edf9fe487250b120a1409bf1d734 100644 (file)
<td>
<table>
<tr>
- <td>{t}IP-address{/t}</td>
+ <td>{t}IP-address{/t}{$staticAddress}</td>
<td><input name="ipHostNumber" size=25 maxlength=80 value="{$ipHostNumber}"></td>
</tr>
</table>
<td>
<table>
<tr>
- <td>{t}MAC-address{/t}</td>
+ <td>{t}MAC-address{/t}{$staticAddress}</td>
<td><input name="macAddress" size=25 maxlength=80 value="{$macAddress}"></td>
</tr>
</table>