Blame | Last modification | View Log | RSS feed
<?phpfunction htmlHeader($level, $text, $class = null, $id = null) {$str = '<h' . $level;if ($id) {$str .= ' id="' . $id . '"';}if ($class) {$str .= ' class="' . $class . '"';}$str .= '>';$str .= $text;$str .= '</h' . $level . '>';return $str;}function htmlInput($type, $name = null, $value = null, $id = null, $placeholder = null, $aria_label = null) {$str = '<input type="' . $type . '"';if ($id) {$str .= ' id="' . $id . '"';}if ($name) {$str .= ' name="' . $name . '"';}if ($value) {$str .= ' value="' . $value . '"';}if ($placeholder) {$str .= ' value="' . $placeholder . '"';}if ($aria_label) {$str .= ' value="' . $aria_label . '"';}$str .= ' />';return $str;}