|
|
| |
File: c:/www/apache/doc2//form/panemanager_gifimage.inc
PHPLib Form Rewrite 2001/03/01 -
panemanager_gifimage
panemanager_gifimage
Renders GIF image buttons.
|
private class panemanager_gifimage extends panemanger
Renders GIF image buttons.
| Version | $Id: panemanager_gifimage.inc,v 1.2 2000/12/19 12:58:13 uw Exp $ |
|
| |
|
Private Method Summary |
| string |
getButton(string $label, string $value, [ string $name ])Returns a submit button. |
| boolean |
createButton(string $file, string $label, string $value, [ string $name ])Creates a graphical button. |
| void |
getTab( $label, $value, $optional, $noerror)Generates a graphical tab. |
| boolean |
createTab(string $file, string $label, string $value, boolean $optional, boolean $noerror)Creates (renders) a graphical tab. |
| string |
HTMLColor([ mixed $value ])FIXME |
| array |
GDColor([ mixed $value ])Similar to HTMLColor. GDColors must be an array |
|
|
|
Private Method Details |
getButton |
|
private string getButton( string $label, string $value, [ string $name ] )
|
| |
Returns a submit button.
|
| Parameter |
|
|
|
|
|
|
| Returns |
string $html |
| Throws |
form_error |
| See Also |
createButton() |
|
createButton |
|
private boolean createButton( string $file, string $label, string $value, [ string $name ] )
|
| |
Creates a graphical button.
|
| Parameter |
|
|
|
|
|
|
|
| string |
$name |
= >>""<< |
|
= "" |
|
| Returns |
boolean $ok |
| Throws |
form_error |
| See Also |
getButton() |
|
getTab |
|
private void getTab( $label, $value, $optional, $noerror )
|
| |
Generates a graphical tab.
|
| Parameter |
|
|
$label |
|
|
Warning: documentation is missing. |
|
|
|
$value |
|
|
Warning: documentation is missing. |
|
|
|
$optional |
|
|
Warning: documentation is missing. |
|
|
|
$noerror |
|
|
Warning: documentation is missing. |
|
| Returns |
void |
|
createTab |
|
private boolean createTab( string $file, string $label, string $value, boolean $optional, boolean $noerror )
|
| |
Creates (renders) a graphical tab.
|
| Parameter |
|
| string |
$file |
|
|
used to save the tab |
|
|
|
|
|
|
|
|
|
| Returns |
boolean |
| Throws |
form_error |
| See Also |
getTab() |
|
HTMLColor |
|
private string HTMLColor( [ mixed $value ] )
|
| |
FIXME
You're allowed to define colors eigtheras an array of rgb [0-255] values or asan html color (#00ff00). This methodtranslates the color into an html color ifneccessary. If no color is given$this->defaul_color is used.
|
| Parameter |
|
|
| Returns |
string |
| See Also |
GDColor() |
|
GDColor |
|
private array GDColor( [ mixed $value ] )
|
| |
Similar to HTMLColor. GDColors must be an array
|
| Parameter |
|
|
| Returns |
array |
| See Also |
HTMLColor() |
|
|
Private Field Details |
$font |
|
private string $font
>>"/home/www/servers/ulf.dev.netuse.de/fonts/arialbd.ttf"<<
Path to the ttf font.
|
|
$fsize |
|
private integer $fsize
>>11<<
Font size of a tab.
|
|
$cache_dir |
|
private string $cache_dir
>>"$DOCUMENT_ROOT/images/tmp/"<<
Directory used for cached the the images.
|
|
$cache_url |
|
private string $cache_url
>>"images/tmp"<<
URL used in the src attribute of [input typ="image"]
|
|
$flag_button_autosize |
|
private boolean $flag_button_autosize
>>true<<
|
| See Also |
$button_width, $button_height |
|
$button_width |
|
private integer $button_width
>>15<<
Width of a button.
If flag_button_autosize is set,the width of the generate image is the width ofthe label plus button_width.
|
| See Also |
$button_height |
|
$button_height |
|
private integer $button_height
>>9<<
Height of a button.
|
| See Also |
$button_width |
|
$tab_width |
|
private integer $tab_width
>>120<<
Width of a tab.
|
| See Also |
$tab_height |
|
$tab_height |
|
private integer $tab_height
>>18<<
Height of a tab.
|
|
$default_color |
|
private string $default_color
>>""<<
Global default color.
Colors can be defined as an array of rgb values [0-255] or as an htmlcolor (#ffffff).
|
|
$flag_3d |
|
private boolean $flag_3d
>>true<<
Render 3D tabs?
|
|
$tab_bgcolor |
|
private array $tab_bgcolor
>>array (
"error" => "",
"ok" => "",
"default" => ""
)<<
Background color used in the template.
|
|
$tab_color |
|
private array $tab_color
>>array(
"label" => array(
"ok" => array(244, 255, 255),
"error" => array(253, 178, 96),
"optional" => array(244, 255, 255)
),
"bgcolor" => array (
"ok" => "#006699",
"error" => "#006699",
"optional" => "#006699"
),
"3d" => array(
"bright" => array(152, 209, 254),
"dark" => array(0, 0, 0)
)
)<<
Colors used to render the tabs.
|
|
$button_color |
|
private array $button_color
>>array(
"label" => array(244, 255, 255),
"bgcolor" => "#006699",
"3d" => array(
"bright" => array(152, 209, 254),
"dark" => array(0, 0, 0)
)
)<<
Colors used to render a button.
|
|
$tab_border |
|
private integer $tab_border
>>1<<
Border attribute of the tabs.
|
|
|
|
|
|
| PHPDoc 1.0beta |