__construct($title, $enctype, $method, $action, $fields, $id, $readonly);
}
function __construct($title, $enctype, $method, $action, $fields, $id = NULL, $readonly = false){
$this->id = $id;
$this->title = $title;
$this->enctype = $enctype;
$this->fields = $fields;
$this->method = $method;
$this->action = $action;
$this->readonly = $readonly;
}
function display($type = NULL){?>
".$attributes['comment']."\n");
}
switch ($type){
case "text":
$this->_displayText($attributes);
break;
case "password":
$this->_displayPassword($attributes);
break;
case "datetime":
$this->_displayDatetime($attributes);
break;
case "date":
$this->_displayDate($attributes);
break;
case "time":
$this->_displayTime($attributes);
break;
case "hidden":
$this->_displayHidden($attributes);
break;
case "file":
$this->_displayFile($attributes);
break;
case "textarea":
$this->_displayTextarea($attributes);
break;
case "select":
$this->_displaySelect($attributes);
break;
case "radio":
$this->_displayRadio($attributes);
break;
case "checkbox":
$this->_displayCheckbox($attributes);
break;
case "checkbox-list":
$this->_displayCheckboxList($attributes);
break;
case "comment":
$this->_displayComment($attributes);
break;
case "multilist":
$this->_displayMultilist($attributes);
break;
case "submit":
$this->_displaySubmit($attributes);
break;
case "cart_product":
$this->_displayCartProduct($attributes);
break;
}
if (isset($attributes['help'])) {
print("");
if (isset($attributes['value'])){
print($attributes['value']);
}
print("
");
return;
}
print("