From: <pre...@us...> - 2002-08-19 02:55:58
|
Update of /cvsroot/mantisbt/mantisbt In directory usw-pr-cvs1:/tmp/cvs-serv19348 Modified Files: core_helper_API.php Log Message: Added check_selected() function for handling SELECTED list boxes Index: core_helper_API.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/core_helper_API.php,v retrieving revision 1.61 retrieving revision 1.62 diff -u -d -r1.61 -r1.62 --- core_helper_API.php 19 Aug 2002 02:05:13 -0000 1.61 +++ core_helper_API.php 19 Aug 2002 02:55:55 -0000 1.62 @@ -480,4 +480,10 @@ } } # -------------------- -?> + function check_selected( $p_var, $p_val ) { + if ( $p_var == $p_val ) { + echo 'selected="selected"'; + } + } + # -------------------- +?> \ No newline at end of file |