openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 17f0eca3390c5fc8da77b5ae5d1230248b34d641
parent dff04cd6478eb2e63e525dc04c85689be0dac916
Author: dankert <devnull@localhost>
Date:   Sun, 17 Apr 2005 00:24:31 +0200

windowOpen() und windowClose()

Diffstat:
functions/theme.inc.php | 39+++++++++++++++++++++++++++------------
1 file changed, 27 insertions(+), 12 deletions(-)

diff --git a/functions/theme.inc.php b/functions/theme.inc.php @@ -10,19 +10,34 @@ function fx( $fx ) } -// -//function html_form_select( $name,$onchange,$value,$default ) -//{ -// $var = array(); -// $var['form_select_name'] = $name; -// $var['form_select_onchange'] = $onchange; -// $var['form_select_value'] = $value; -// $var['form_select_default'] = $default; -// -// output( 'form_select',$var ); -//} - +function windowOpen( $title,$colSpan=2,$icon='',$attr=array() ) +{ + global $image_dir; + if ( !isset($attr['width'])) $attr['width']='90%'; + echo '<center>'; + echo '<table style="margin:20px;" cellspacing="0" cellpadding="0"'; + foreach( $attr as $aName=>$aValue ) + echo " $aName=\"$aValue\""; + echo '>'; + echo '<tr><td colspan="2" rowspan="2">'; + echo '<table class="main" cellspacing="0" width="100%" cellpadding="4">'; + echo '<tr><th colspan="'.intval($colSpan).'">'; + if ( !empty($icon) ) + echo '<img src="'.$image_dir.'icon_'.$icon.IMG_EXT.'" align="left" border="0">'; + echo lang( $title ).'</th></tr>'; +} +function windowClose() +{ + echo '<tr><td>&nbsp;</td></tr>'; + echo '</table>'; + echo '</td><td style="width:5px;height:5px;"></td></tr>'; + echo '<tr><td rowspan="2" style="background-color:grey; width:5px;"></td></tr>'; + echo '<tr><td style="width:5px;height:5px;"></td><td style="background-color:grey; height:5px;"></td></tr>'; + echo '</table>'; + + echo '</center>'; +} ?> \ No newline at end of file