[Commits] r653 - trunk/webinterface/core

new-commit at lists.openvcp.org new-commit at lists.openvcp.org
Fri Feb 20 14:55:29 UTC 2009


Author: cryptronic
Date: 2009-02-20 14:55:29 +0000 (Fri, 20 Feb 2009)
New Revision: 653

Modified:
   trunk/webinterface/core/GUI.php
Log:
enhancement


Modified: trunk/webinterface/core/GUI.php
===================================================================
--- trunk/webinterface/core/GUI.php	2009-02-20 14:54:26 UTC (rev 652)
+++ trunk/webinterface/core/GUI.php	2009-02-20 14:55:29 UTC (rev 653)
@@ -717,7 +717,7 @@
 	 * @param string $function
 	 * @return bool
 	 */
-	public function formAddInputElement($element, $type, $name, $value = "", $params = array(), $id = "", $class = "", $function = "")
+	public function formAddInputElement($element, $type, $name, $value = "", $params = array(), $id = "", $class = "", $function = "", $disabled = false)
 	{
 		$inputbox = "<input type=\"" . $type . "\" name=\"" . $name . "\" ";
 		if($params != null)
@@ -734,6 +734,9 @@
 		$inputbox .= " class=\"" . $class . "\"";
 		if($function != "")
 		$inputbox .= " " . $function;
+		if($disabled) {
+			$inputbox .= " disabled";
+		}
 		$inputbox .= ">{eId" . $element . "}\n";
 		$this->contentData = str_replace("{eId" . $element . "}", $inputbox, $this->contentData);
 		return true;



More information about the Commits mailing list