'.$args['title'].''; echo $html; } public static function formOpen($args) { $class = empty($args['class']) ? '' : ' '.$args['class']; $id = empty($args['id']) ? '' : 'id="'.$args['id'].'"'; $html = '
'; echo $html; } public static function formClose() { $html = '
'; echo $html; } // label, name, value, tip public static function formInputText($args) { $id = 'js'.$args['name']; $type = isset($args['type']) ? $args['type'] : 'text'; $class = empty($args['class']) ? '' : 'class="'.$args['class'].'"'; $placeholder = empty($args['placeholder']) ? '' : 'placeholder="'.$args['placeholder'].'"'; $disabled = empty($args['disabled']) ? '' : 'disabled'; $html = '
'; if(!empty($args['label'])) { $html .= ''; } $html .= '
'; $html .= ''; if(!empty($args['tip'])) { $html .= '

'.$args['tip'].'

'; } $html .= '
'; $html .= '
'; echo $html; } public static function formInputPassword($args) { $args['type'] = 'password'; self::formInputText($args); } public static function formTextarea($args) { $id = 'js'.$args['name']; $type = isset($args['type']) ? $args['type'] : 'text'; $class = empty($args['class']) ? '' : 'class="'.$args['class'].'"'; $placeholder = empty($args['placeholder']) ? '' : 'placeholder="'.$args['placeholder'].'"'; $rows = empty($args['rows']) ? '' : 'rows="'.$args['rows'].'"'; $html = '
'; if(!empty($args['label'])) { $html .= ''; } $html .= '
'; $html .= ''; if(!empty($args['tip'])) { $html .= '

'.$args['tip'].'

'; } $html .= '
'; $html .= '
'; echo $html; } public static function formSelect($args) { $id = 'js'.$args['name']; $type = isset($args['type']) ? $args['type'] : 'text'; $class = empty($args['class']) ? '' : 'class="'.$args['class'].'"'; $html = '
'; $html .= ''; $html .= '
'; $html .= ''; $html .= '

'.$args['tip'].'

'; $html .= '
'; $html .= '
'; echo $html; } public static function formInputHidden($args) { $id = 'js'.$args['name']; $html = ''; echo $html; } public static function legend($args) { $class = empty($args['class']) ? '' : 'class="'.$args['class'].'"'; $html = ''.$args['value'].''; echo $html; } public static function formButtonSubmit($args) { $html = ''; } public static function uploader() { global $L; $html = '
'.$L->g('Upload Image').'
'.$L->g('Drag and drop or click here').'
0%
'; $html .= ''; $html .= '
'; $html .= ' '; echo $html; } public static function profileUploader($username) { global $L; $html = '
0%
'.$L->g('Upload Image').'
'.$L->g('Drag and drop or click here').'
'; $html .= ' '; echo $html; } }