/** * 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\"> \n"; } else { $output .= "> "; } $output .= "</td><td id=col_" . $this->name . " bgcolor=" . $this->value . " width=\"25\"> </td><td width=\"300\"> </td></tr></table>\n"; $output .= WUIObject::std_footer(); echo $output; return $this->columns; }
/** * 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() { echo WUIObject::std_header(); LinkButton::draw(); echo WUIObject::std_footer(); return $this->columns; }
/** * 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; }
/** * 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; }
/** * standard constuctor * @param string the name of the Input, used in the html name property * @param string Text that will be placed on the button and will be submitted. * @param string name of the icon to use. the icon must be in theme-folder/icons and be named like si_NAME.gif * @param string sets the styles, which will be used for drawing * @param string $type type of input. Allowed are submit|button|reset * @param string $action JS action, that is to be performed, when button is clicked * @param string Name of the form, the button is in. * @param integer $cells Cellspan of the element in Table. */ function LinkIconButton($name, $value, $icon, $style, $type = "button", $action = "", $formname = "form1", $cells = 1) { WUIObject::WUIObject($name, "", $value, $style, $cells); $this->action = $action; $this->type = $type; $this->formname = $formname; $this->icon = $icon; }
/** * Write HTML for the WUI-Object. * */ function draw() { $output = "<td colspan=\"$this->columns\" class=\"" . $this->style . "\" valign=\"top\" align=\"right\">"; $output .= '<a href="' . $this->href . '" target="' . $this->target . '" style="align:right;" class="' . $this->style . '">' . $this->text . '>></a>'; $output .= WUIObject::std_footer(); echo $output; return $this->columns; }
/** * 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=\"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; }
/** * standard constructor * @param string Name of the Hidden Field * @param string Value of the Hidden Field. */ function SingleHidden($name, $value, $form="form1") { global $hidden_fields; $this->form = $form; if (!isset($hidden_fields)) { $hidden_fields = array(); } WUIObject::WUIObject($name, "", $value, "", 0); }
/** * 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 .= " (YYYY-MM-DD HH:MM)"; $output .= WUIObject::std_footer(); echo $output; return 1; }
/** * standard constuctor * @param string the name of the Input, used in the html name property * @param string Text that will be placed on the button and will be submitted. * @param string sets the styles, which will be used for drawing * @param string $type type of input. Allowed are submit|button|reset * @param string $action JS action, that is to be performed, when button is clicked * @param string Name of the form, the button is in. * @param integer $cells Cellspan of the element in Table. * @param boolean show button active (true, default) or inactive (false) * @param string Tooltip-text to show. */ function LinkButtonInline($name, $value, $style, $type = "button", $action = "", $formname = "form1", $cells = 1, $active = true, $tooltip="") { WUIObject::WUIObject($name, "", $value, $style, $cells); $this->action = $action; $this->type = strtolower($type); $this->formname = $formname; $this->active = $active; $this->tooltip = $tooltip; }
/** * 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; }
/** * 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; }
/** * 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=\"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; }
/** * 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 .= " " . $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.=' '; $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; }
/** * standard constructor * @param string the name of the Label, used internally only. * @param string sets the text that will be displayed * @param integer $cells Cellspan of the element in Table. */ function Subtitle($name, $text, $cells = 2) { WUIObject::WUIObject($name, $text, "", "", $cells); }
/** * standard constuctor * @param string the name of the Input, used in the html name property * @param string Text that will be placed on the button and will be submitted. * @param string sets the styles, which will be used for drawing * @param string $type type of input. Allowed are submit|button|reset * @param string $action JS action, that is to be performed, when button is clicked * @param integer $cells Cellspan of the element in Table. */ function Button($name, $value, $style="", $type = "button", $action = "", $cells = 1) { WUIObject::WUIObject($name, "", $value, $style, $cells); $this->action = $action; $this->type = $type; }
/** * Draw the container */ function draw() { echo WUIObject::std_header(); include $this->extfile; echo WUIObject::std_footer(); }
/** * standard constructor * @param string the name of the Wrapper. Used in id-Attribute * @param mixed DBO or WUI-Object to draw. * @param string sets the styles, which will be used for drawing * @param string Add additional payload to the tag. for styles or so on. * @param integer $cells Cellspan of the element in Table. */ function IDWrapper($name, $obj, $style = "standard", $payload="", $cells = 1) { WUIObject::WUIObject($name, "", "", $style, $cells); $this->obj = $obj; $this->payload = $payload; }
/** * 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; }
/** * standard constructor * @param string the name of the Grid, used internally only. * @param string $style sets the styles, which will be used for drawing * @param integer $cells Cellspan of the element in Table. */ function NXGrid($name, $columns = 2, $style = "standard", $cells = 2) { WUIObject::WUIObject($name, "", "", $style, $cells); $this->cols = $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; }