From 44ef0f47a21cd171574f4948acc90b05969298a3 Mon Sep 17 00:00:00 2001 From: philippe_mingo Date: Sun, 28 Oct 2001 00:36:05 +0000 Subject: [PATCH] Functions for options pages. Must be used if you want to display an option on an option page. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1628 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/options.php | 84 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 functions/options.php diff --git a/functions/options.php b/functions/options.php new file mode 100644 index 00000000..ee50d544 --- /dev/null +++ b/functions/options.php @@ -0,0 +1,84 @@ +$title" . + "\n"; + + } + + function OptionRadio( $title, $name, $data, $default, $show = '', $store = '', $sep = '   ' ) { + + echo "$title"; + foreach( $data as $key => $opt ) { + if ( $store == '' ) { + $vl = $key; + } else{ + $vl = $opt[$store]; + } + if ( $show == '' ) { + $nm = $opt; + } else{ + $nm = $opt[$show]; + } + if ( $nm <> '') { + echo "$nm $sep\n"; + } + } + echo "\n"; + + } + + function OptionText( $title, $name, $value, $size ) { + + echo "$title" . + "" . + "\n"; + + } + + function OptionCheck( $title, $name, $value, $comment ) { + + if ( $value ) + $chk = 'checked'; + echo "$title" . + " $comment" . + "\n"; + + } + +?> \ No newline at end of file -- 2.25.1