tag */ public function getfield($field){ $attributes = $field['@attributes']; $html = ''; if(!empty($attributes['value'])){ $attributes['value'] = (int)$attributes['value']; }else{ $attributes['value'] = 0; } $html .= '
'; $html.=' $value) { if (in_array($attribute, array('id', 'class', 'name', 'value', 'size')) and isset($value)) { $html .= ' ' . $attribute . '="' . $value . '"'; } } } $html .= ' />'; $html .= '
'; $html .= '
'; return $html; } }