

Public Member Functions | |
| open ($src=null, $attr=array()) | |
| aias of form::open() | |
| start ($src=null, $attr=array()) | |
| Opens a Form tag e.g. | |
| startMultipart ($src=null, $attr=array()) | |
| Open a Multipart Form (Form for File Uploads) You can also Specify additional attributes for the Tag throught an associatiove array as the second and Optional Argument. | |
| end () | |
| Closes an already opened form tag e.g. | |
| close () | |
| alias of form::end() | |
| textbox ($name, $value=null, $attr=array()) | |
| Write's a Text Box e.g. | |
| hidden ($name, $value=null, $attr=array()) | |
| Write's a Hidden Field e.g. | |
| file ($name, $value=null, $attr=array()) | |
| Write's a file selection Box e.g. | |
| password ($name, $value=null, $attr=array()) | |
| Write's a Password Box e.g. | |
| select ($name, $list, $selected_value=null, $attr=array()) | |
| Write's a select Box (dropdown List) e.g. | |
| checkbox ($name, $value=null, $mode=false, $attr=array()) | |
| Write's a CheckBox e.g. | |
| radio ($name, $value=null, $mode=false, $attr=array()) | |
| Write's a Radio e.g. | |
| submit ($name= 'submit', $value="submit", $attr=array()) | |
| write's a Submit Button e.g. | |
....
Definition at line 286 of file dict.php.
| form::open | ( | $ | src = null, |
|
| $ | attr = array() | |||
| ) |
aias of form::open()
| $src | string | |
| $attr | array |
Definition at line 294 of file dict.php.
References start().
00294 { 00295 return form::start($src, $attr); 00296 }

| form::start | ( | $ | src = null, |
|
| $ | attr = array() | |||
| ) |
Opens a Form tag e.g.
Write's <form method="GET/POST" action="blaBla"> You can also Specify additional attributes for the Tag throught an associatiove array as the second and Optional Argument
| $src | string Optinal | |
| $attr | array Optinal |
Definition at line 306 of file dict.php.
References getCurrentUrl(), and merge_attr().
Referenced by open().
00306 { 00307 if(is_null($src))$src = getCurrentUrl(); 00308 if(@!isset($attr['method'])){$attr['method'] = 'post';} 00309 return ('<form action="'.$src.'" '.merge_attr($attr).'>'.endl); 00310 }

| form::startMultipart | ( | $ | src = null, |
|
| $ | attr = array() | |||
| ) |
Open a Multipart Form (Form for File Uploads) You can also Specify additional attributes for the Tag throught an associatiove array as the second and Optional Argument.
| $src | string Optinal | |
| $attr | array Optinal |
Definition at line 319 of file dict.php.
References getCurrentUrl(), and merge_attr().
00319 { 00320 if(is_null($src))$src = getCurrentUrl(); 00321 if(@!isset($attr['method'])){$attr['method'] = 'post';} 00322 return ('<form enctype="multipart/form-data" action="'.$src.'" '.merge_attr($attr).'>'.endl); 00323 }

| form::end | ( | ) |
| form::close | ( | ) |
| form::textbox | ( | $ | name, | |
| $ | value = null, |
|||
| $ | attr = array() | |||
| ) |
Write's a Text Box e.g.
<input name="foo" type="text" value="Bar"> You can also Specify additional attributes for the Tag throught an associatiove array as the 3d and Optional Argument
| $name | string | |
| $value | string Optinal | |
| $attr | array Optinal |
Definition at line 351 of file dict.php.
References merge_attr(), and perror().
00351 { 00352 if(!is_array($attr))perror('form::textbox() $attr must be an array'); 00353 if(is_array($value)){$temp = $attr;$attr = $value;$value = $temp;} 00354 if(!is_null($value))$attr['value'] = $value; 00355 return '<input type="text" name="'.$name.'" '.merge_attr($attr).'/>'; 00356 }

| form::hidden | ( | $ | name, | |
| $ | value = null, |
|||
| $ | attr = array() | |||
| ) |
Write's a Hidden Field e.g.
<input name="foo" type="hidden" value="Bar"> You can also Specify additional attributes for the Tag throught an associatiove array as the 3d and Optional Argument
| $name | string | |
| $value | string Optinal | |
| $attr | array Optinal |
Definition at line 367 of file dict.php.
References merge_attr(), and perror().
00367 { 00368 if(!is_array($attr))perror('form::hidden() $attr must be an array'); 00369 if(is_array($value)){$temp = $attr;$attr = $value;$value = $temp;} 00370 if(!is_null($value))$attr['value'] = $value; 00371 return '<input type="hidden" name="'.$name.'" '.merge_attr($attr).'/>'; 00372 }

| form::file | ( | $ | name, | |
| $ | value = null, |
|||
| $ | attr = array() | |||
| ) |
Write's a file selection Box e.g.
<input name="foo" type="file" value="Bar"> You can also Specify additional attributes for the Tag throught an associatiove array as the 3d and Optional Argument
| $name | string | |
| $value | string Optinal | |
| $attr | array Optinal |
Definition at line 383 of file dict.php.
References merge_attr(), and perror().
00383 { 00384 if(!is_array($attr))perror('form::file() $attr must be an array'); 00385 if(is_array($value)){$temp = $attr;$attr = $value;$value = $temp;} 00386 if(!is_null($value))$attr['value'] = $value; 00387 return '<input type="file" name="'.$name.'" '.merge_attr($attr).'/>'; 00388 }

| form::password | ( | $ | name, | |
| $ | value = null, |
|||
| $ | attr = array() | |||
| ) |
Write's a Password Box e.g.
<input name="foo" type="password" value="Bar"> You can also Specify additional attributes for the Tag throught an associatiove array as the 3d and Optional Argument
| $name | string | |
| $value | string Optinal | |
| $attr | array Optinal |
Definition at line 399 of file dict.php.
References merge_attr(), and perror().
00399 { 00400 if(!is_array($attr))perror('form::password() $attr must be an array'); 00401 if(is_array($value)){$temp = $attr;$attr = $value;$value = $temp;} 00402 if(!is_null($value))$attr['value'] = $value; 00403 return '<input type="password" name="'.$name.'" '.merge_attr($attr).'/>'; 00404 }

| form::select | ( | $ | name, | |
| $ | list, | |||
| $ | selected_value = null, |
|||
| $ | attr = array() | |||
| ) |
Write's a select Box (dropdown List) e.g.
<input name="foo" type="text" value="Bar"> If you specify a Selected Value that value will be selected By default You can also Specify additional attributes for the Tag throught an associatiove array as the 3d and Optional Argument
| $name | string | |
| $selected_value | string Optinal | |
| $attr | array Optinal |
Definition at line 416 of file dict.php.
References $val, merge_attr(), and perror().
00416 { 00417 if(!is_array($attr))perror('$attr must be an array'); 00418 if(!is_array($list))perror('$list must be an array'); 00419 if(is_array($selected_value)){$temp = $attr;$attr = $selected_value;$selected_value = $temp;} 00420 $ret = '<select name="'.$name.'"'.merge_attr($attr).'>'; 00421 foreach($list as $key => $val){ 00422 $ret .= '<option value="'.$key.'"'; 00423 if($key == $selected_value){$ret .= ' selected ';} 00424 $ret .= ">$val</option>"; 00425 } 00426 return $ret .'</select>'; 00427 }

| form::checkbox | ( | $ | name, | |
| $ | value = null, |
|||
| $ | mode = false, |
|||
| $ | attr = array() | |||
| ) |
Write's a CheckBox e.g.
<input name="foo" type="checkbox" value="Bar"> if you specify the third argument as True it will be Checked You can also Specify additional attributes for the Tag throught an associatiove array as the 3rd and Optional Argument
| $name | string | |
| $value | string Optinal | |
| $checked | boolean Optinal | |
| $attr | array Optinal |
Definition at line 440 of file dict.php.
References merge_attr(), and perror().
00440 { 00441 if(!is_array($attr))perror('$attr must be an array'); 00442 if(is_array($value)){$temp = $attr;$attr = $value;$value = $temp;} 00443 if(!is_null($value))$attr['value'] = $value; 00444 if($mode)$attr['checked'] = 'checked'; 00445 return '<input type="checkbox" name="'.$name.'"'.merge_attr($attr).'>'; 00446 }

| form::radio | ( | $ | name, | |
| $ | value = null, |
|||
| $ | mode = false, |
|||
| $ | attr = array() | |||
| ) |
Write's a Radio e.g.
<input name="foo" type="checkbox" value="Bar"> if you specify the third argument as True it will be Checked You can also Specify additional attributes for the Tag throught an associatiove array as the 3rd and Optional Argument
| $name | string | |
| $value | string Optinal | |
| $checked | boolean Optinal | |
| $attr | array Optinal |
Definition at line 459 of file dict.php.
References merge_attr(), and perror().
00459 { 00460 if(!is_array($attr))perror('$attr must be an array'); 00461 if(is_array($value)){$temp = $attr;$attr = $value;$value = $temp;} 00462 if(!is_null($value))$attr['value'] = $value; 00463 if($mode)$attr['checked'] = 'checked'; 00464 return '<input type="radio" name="'.$name.'"'.merge_attr($attr).'>'; 00465 }

| form::submit | ( | $ | name = 'submit', |
|
| $ | value = "submit", |
|||
| $ | attr = array() | |||
| ) |
write's a Submit Button e.g.
Write's <input type="submit" name="submit" value="submit"> You can also Specify additional attributes for the Tag throught an associatiove array as the second and Optional Argument
| $name | string Optinal | |
| $src | string Optinal | |
| $attr | array Optinal |
Definition at line 476 of file dict.php.
References merge_attr().
00476 { 00477 return '<input type="submit" name="'.$name.'" value="'.$value.'" '.merge_attr($attr).'/>'; 00478 }

1.5.6