Example #1
1
		/**
	  * Draws the layout-element
	  */
		function draw() {
			$output = WUIObject::std_header();

			$output .= "<textarea name=\"$this->name\" id=\"$this->name\" style=\"width:" . $this->iwidth . "px;\" $this->params rows=\"$this->rows\"";

			if ($this->action != "") {
				$output .= " onChange=\"$this->action\"";
			}

			$output .= ">";
			$output .= $this->value;
			$output .= "</textarea>";
			$output .= WUIObject::std_footer();
			echo $output;
			return $this->columns;
		}
		/**
		  * Draws the layout-element
		  */
		function draw() {
			$output = WUIObject::std_header();

			$output .= "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td>";
			$output .= "<input type=\"text\" name=\"$this->name\" value=\"$this->value\" maxlength=\"7\" style=\"width:80px;\"";

			if (!isNetscape()) {
				$output .= " onChange=\"document.all.col_" . $this->name . ".bgColor=document.forms." . $this->formName . "." . $this->name . ".value\">&nbsp;\n";
			} else {
				$output .= ">&nbsp;";
			}

			$output .= "</td><td id=col_" . $this->name . " bgcolor=" . $this->value . " width=\"25\">&nbsp;</td><td width=\"300\">&nbsp;</td></tr></table>\n";
			$output .= WUIObject::std_footer();
			echo $output;
			return $this->columns;
		}
Example #3
1
		/**
		  * Draws the layout-element
		  */
		function draw() {
			$output = WUIObject::std_header();

			$output .= "<select name=\"" . $this->name . "\" id=\"" . $this->name . "\" style=\"width:70px;\">\n";

			for ($i = 0; $i < count($this->values); $i++) {
				if ($this->values[$i] == $this->selectedvalue) {
					$output .= "<option value=\"" . $this->values[$i] . "\" selected>" . $this->values[$i] . "</option>\n";
				} else {
					$output .= "<option value=\"" . $this->values[$i] . "\">" . $this->values[$i] . "</option>\n";
				}
			}

			$output .= "</select>\n";

			$output .= WUIObject::std_footer();
			echo $output;
			return 1;
		}
		/**
		  * Draw the container 
		  */
		function draw() {
			echo WUIObject::std_header();
			echo $this->container;
			echo WUIObject::std_footer();
			return $this->columns;
		}
		/**
		  * Draws the layout-element
		  */
		function draw() {
			global $c_theme;

			$output = WUIObject::std_header();

			$output .= "<div align=\"left\" id=\"iconselect\" style=\"position:static; width:" . $this->width . "; height:" . $this->height . "; z-index:1; overflow: auto; border: 1px solid #999999; padding:2px;\">\n";
			$output .= "<table width=\"100%\" border=\"0\" class=\"iconselect_table\" cellspacing=\"10\" cellpadding=\"0\">\n";

			for ($i = 0; $i < count($this->value); $i++) {
				$sel = "";

				if ($this->value[$i]["value"] == $this->selectedValue) {
					$sel = " checked";
				}

				if ($this->value[$i]["icon"] == "")
					$this->value[$i]["icon"] = "default.png";

				$output .= "<tr><td valign=\"middle\" class=\"iconselect_table\">";
				$output .= "<input type=\"radio\" name=\"" . $this->name . "\" value=\"" . $this->value[$i][1] . "\"" . $sel . ">";
				$output .= "</td><td>";
				$output .= "<img src=\"" . $this->value[$i]["iconpath"] . $this->value[$i]["icon"] . "\" border=\"0\">";
				$output .= "</td><td valign=\"top\">";
				$output .= "<span style='font-size:12px;font-weight:strong;'>" . $this->value[$i]["name"] . "</span><br><span style='font-size:11px;color:#666;'>" . $this->value[$i]["description"] . "</span>";
				$output .= "</td></tr>\n";
			}

			$output .= "</table>\n";
			$output .= "</div>\n";

			$output .= WUIObject::std_footer();
			echo $output;
			return $this->columns;
		}
	/**
	 * Write HTML for the WUI-Object.
	 *
	 */
	function draw() {
		$output = WUIObject::std_header();
		$output.='<img src="'.$this->text.'" border="0" width="'.$this->width.'" height="'.$this->height.'" alt="'.$this->height.'">';
		$output .= WUIObject::std_footer();
		echo $output;
		return $this->columns;
	}
Example #7
0
		/**
		 * Write HTML for the WUI-Object.
		 */
		function draw() {
			$output = WUIObject::std_header();
			$output .= drawSpacer($this->width, $this->height);
			$output .= WUIObject::std_footer();
			echo $output;
			return $this->columns;
		}
		/**
		  * Draws the layout-element
		  */
		function draw() {
			echo WUIObject::std_header();

			LinkButton::draw();
			echo WUIObject::std_footer();
			return $this->columns;
		}
Example #9
0
		/**
		  * Draws the layout-element
		  */
		function draw() {
			$output = WUIObject::std_header();

			$output .= "<input type=\"file\" name=\"$this->name\" id=\"$this->name\"  accept=\"$this->allow\" style=\"width:" . $this->iwidth . "px;\" enctype=\"multipart/form-data\" ".$this->additionalAttribute.">";
			$output .= WUIObject::std_footer();
			echo $output;
			return $this->columns;
		}
Example #10
0
		/**
		 * Write HTML for the WUI-Object.
		 *
		 */
		function draw() {
			$output = WUIObject::std_header();

			$output .= $this->text;
			$output .= WUIObject::std_footer();
			echo $output;
			return $this->columns;
		}
		/**
		  * Draws the layout-element
		  */
		function draw() {
			$output = WUIObject::std_header();

			$output .= "<input type=\"text\" name=\"$this->name\" id=\"$this->name\" value=\"$this->value\" maxlength=16 style=\"width:200px;\">";
			$output .= "&nbsp;&nbsp;(YYYY-MM-DD&nbsp;HH:MM)";
			$output .= WUIObject::std_footer();
			echo $output;
			return 1;
		}
	 		/**
		  * Draws the layout-element
		  */
		function draw() {
			$output = WUIObject::std_header();
			$output.= tableStart();
			$output.= $this->drawValues();
			$output.= $this->drawLeftRightButtons();
			$output.= $this->drawSelectedValues();
			$output.= $this->drawUpDownButtons();	
			$output.= tableEnd();
			$output .= WUIObject::std_footer();
			echo $output;
			return $this->columns;
		} 
Example #13
0
		/**
		  * Draws the layout-element
		  */
		function draw() {
			$output = WUIObject::std_header();

			$output .= "<input type=\"radio\" name=\"$this->name\" id=\"$this->name\" value=\"$this->value\"";

			if ($this->checked) {
				$output .= " checked";
			}

			$output .= ">";
			$output .= WUIObject::std_footer();
			echo $output;
			return $this->columns;
		}
Example #14
0
		/**
		  * Draws the layout-element
		  */
		function draw() {
			$output = WUIObject::std_header();

			$output .= "<input type=\"checkbox\" name=\"$this->name\" id=\"$this->name\" value=\"$this->value\"";

			if ($this->checked) {
				$output .= " checked";
			}

			$output .= " ".$this->additionalAttribute.">";
			$output .= WUIObject::std_footer();
			echo $output;
			return $this->columns;
		}
		/**
		  * Draws the layout-element
		  */
		function draw() {
			$output = WUIObject::std_header();

			$output .= "<input type=\"$this->type\"  name=\"$this->name\" id=\"$this->name\" value=\"$this->value\"";

			if ($this->action != "") {
				$output .= " onClick=\"$this->action\"";
			}

			$output .= ">";
			$output .= WUIObject::std_footer();
			echo $output;
			return $this->columns;
		}
Example #16
0
				/**
		  * Draws the layout-element
		  */
		function draw() {
			$output = WUIObject::std_header();

			$output .= "<input type=\"$this->type\" name=\"$this->name\" id=\"$this->name\" value=\"$this->value\" maxlength=$this->size style=\"width:" . ($this->iwidth-60) . "px;\"".$this->additionalParameters." ";

			if ($this->action != "") {
				$output .= " onChange=\"$this->action\"";
			}

			$output .= " $this->params>";
			$output.= '<input style="width:60px;" type="button" name="churl" value="Check" onClick="window.open(document.getElementById(\''.$this->name.'\').value, \'check\', \'\')">';
			$output .= WUIObject::std_footer();
			echo $output;
			return $this->columns;
		}
		/**
		  * Draws the layout-element
		  */
		function draw() {
			$output = WUIObject::std_header();

			$output .= "<input type=\"checkbox\" name=\"$this->name\" id=\"$this->name\" value=\"$this->value\"";

			if ($this->checked) {
				$output .= " checked";
			}
			$output.= $this->payload;

			$output .= ">";
			$output .= "&nbsp;" . $this->text;
			$output .= WUIObject::std_footer();
			echo $output;
			return $this->columns;
		}
		/**
		  * Draws the layout-element
		  */
		function draw() {
			global $c;
			$output = WUIObject::std_header();
			$date = substr($this->value, 0, 10);
			$showDate = str_replace("-", "/", $date);
			$output.="<span style=\"width:90px;\" id=\"".$this->name."div\">".$showDate."</span>";
			$output.="<input type=\"hidden\" id=\"".$this->name."\" name=\"".$this->name."\" value=\"".$date."\"/>";
			$output.='<a href="#" onclick="document.getElementById(\''.$this->name.'\').value=\'\';document.getElementById(\''.$this->name.'div\').innerHTML=\'--------\';return false;">'.drawImage('delete.gif', 12, 12).'</a>';
			$output.='&nbsp;&nbsp;';
			$output.="<image src=\"".$c["docroot"]."ext/jscalendar/img.gif\" id=\"".$this->name."trigger\" style=\"cursor:hand;\">";
			$output.='<script type="text/javascript">';
			$output.='Calendar.setup({displayArea: "'.$this->name.'div",inputField : "'.$this->name.'", button : "'.$this->name.'trigger"});';
			$output.='</script>';			
			$output.=drawSpacer(10,1);
			$output .= WUIObject::std_footer();
			echo $output;
			return $this->columns;
		}
		/**
		  * Draw the container 
		  */
		function draw() {
			echo WUIObject::std_header();

			include $this->extfile;
			echo WUIObject::std_footer();
		}