public/wordpress/wp-content/plugins/login-sidebar-widget/includes/class_form.php
/* 
		parameters 
		1. name default is blank
		2. id default is blank
		3. value default is blank
		4. class default is blank
		5. onclick default is blank
		6. onchange default is blank
		7. onkeyup default is blank
		8. rows default is blank
		9. cols default is blank
		10. required ( false, true ) default is false
		11. placeholder default is blank
		12. style default is blank
		13. echo ( true, false ) default is true 
		14. extra default is blank
		*/
parameters
1. name default is blank
2. id default is blank
3. value default is blank
4. class default is blank
5. onclick default is blank
6. onchange default is blank
7. onkeyup default is blank
8. rows default is blank
9. cols default is blank
10. required ( false, true ) default is false
11. placeholder default is blank
12. style default is blank
13. echo ( true, false ) default is true
14. extra default is blank
parameters 1 . name default is blank 2 . id default is blank 3 . value default is blank 4 . class default is blank 5 . onclick default is blank 6 . onchange default is blank 7 . onkeyup default is blank 8 . rows default is blank 9 . cols default is blank 10 . required ( false true ) default is false 11 . placeholder default is blank 12 . style default is blank 13 . echo ( true false ) default is true 14 . extra default is blank
public static function form_textarea( $name = "", $id = "", $value = "", $class = "", $onclick ="", $onchange = "", $onkeyup = "", $rows = "", $cols = "", $required = false, $placeholder = "", $style = "", $echo = true, $extra = "" ){
			$field = '<textarea name="'.$name.'" '.($id==''?'':'id="'.$id.'"').' '.($class==''?'':'class="'.$class.'"').' '.($onclick==''?'':'onClick="'.$onclick.'"').' '.($onchange==''?'':'onChange="'.$onchange.'"').' '.($onkeyup==''?'':'onKeyUp="'.$onkeyup.'"').' '.($rows==''?'':'rows="'.$rows.'"').' '.($cols==''?'':'cols="'.$cols.'"').' '.($required==false?'':'required="required"').' '.($placeholder==''?'':'placeholder="'.$placeholder.'"').' '.($style==''?'':'style="'.$style.'"').' '.$extra.'>'.$value.'</textarea>';
			if($echo){
				echo $field;
			} else {
				return $field;
			}
		}
public static function form_textarea ( $ name = " " , $ id = " " , $ value = " " , $ class = " " , $ onclick = " " , $ onchange = " " , $ onkeyup = " " , $ rows = " " , $ cols = " " , $ required = false , $ placeholder = " " , $ style = " " , $ echo = true , $ extra = " " ) { $ field = '<textarea name="' . $ name . '" ' . ( $ id == '' ? '' : 'id="' . $ id . '"' ) . ' ' . ( $ class == '' ? '' : 'class="' . $ class . '"' ) . ' ' . ( $ onclick == '' ? '' : 'onClick="' . $ onclick . '"' ) . ' ' . ( $ onchange == '' ? '' : 'onChange="' . $ onchange . '"' ) . ' ' . ( $ onkeyup == '' ? '' : 'onKeyUp="' . $ onkeyup . '"' ) . ' ' . ( $ rows == '' ? '' : 'rows="' . $ rows . '"' ) . ' ' . ( $ cols == '' ? '' : 'cols="' . $ cols . '"' ) . ' ' . ( $ required == false ? '' : 'required="required"' ) . ' ' . ( $ placeholder == '' ? '' : 'placeholder="' . $ placeholder . '"' ) . ' ' . ( $ style == '' ? '' : 'style="' . $ style . '"' ) . ' ' . $ extra . '>' . $ value . '</textarea>' ; if ( $ echo ) { echo $ field ; } else { return $ field ; } }
parameters
1. name default is blank
2. id default is blank
3. value default is blank
4. class default is blank
5. onclick default is blank
6. onchange default is blank
7. onkeyup default is blank
8. rows default is blank
9. cols default is blank
10. required ( false, true ) default is false
11. placeholder default is blank
12. style default is blank
13. echo ( true, false ) default is true
14. extra default is blank
parameters 1 . name default is blank 2 . id default is blank 3 . value default is blank 4 . class default is blank 5 . onclick default is blank 6 . onchange default is blank 7 . onkeyup default is blank 8 . rows default is blank 9 . cols default is blank 10 . required ( false true ) default is false 11 . placeholder default is blank 12 . style default is blank 13 . echo ( true false ) default is true 14 . extra default is blank