Update of /cvsroot/mantisbt/mantisbt In directory usw-pr-cvs1:/tmp/cvs-serv20851 Modified Files: core_date_API.php core_print_API.php print_all_bug_page.php report_bug_advanced_page.php view_all_inc.php Log Message: changed SELECTED to selected=selected for XTHML compliance Index: core_date_API.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/core_date_API.php,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- core_date_API.php 15 Aug 2002 20:35:02 -0000 1.8 +++ core_date_API.php 19 Aug 2002 03:01:58 -0000 1.9 @@ -18,7 +18,7 @@ for ($i=1; $i<=12; $i++) { $month_name = date( 'F', mktime(0,0,0,$i,1,2000) ); if ( $i == $p_month ) { - PRINT "<option value=\"$i\" SELECTED>$month_name</option>"; + PRINT "<option value=\"$i\" selected=\"selected\">$month_name</option>"; } else { PRINT "<option value=\"$i\">$month_name</option>"; } @@ -28,7 +28,7 @@ function print_day_option_list( $p_day=0 ) { for ($i=1; $i<=31; $i++) { if ( $i == $p_day ) { - PRINT "<option value=\"$i\" SELECTED> $i </option>"; + PRINT "<option value=\"$i\" selected=\"selected\"> $i </option>"; } else { PRINT "<option value=\"$i\"> $i </option>"; } @@ -40,7 +40,7 @@ for ($i=$current_year; $i>1999; $i--) { if ( $i == $p_year ) { - PRINT "<option value=\"$i\" SELECTED> $i </option>"; + PRINT "<option value=\"$i\" selected=\"selected\"> $i </option>"; } else { PRINT "<option value=\"$i\"> $i </option>"; } Index: core_print_API.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/core_print_API.php,v retrieving revision 1.87 retrieving revision 1.88 diff -u -d -r1.87 -r1.88 --- core_print_API.php 15 Aug 2002 20:35:02 -0000 1.87 +++ core_print_API.php 19 Aug 2002 03:01:58 -0000 1.88 @@ -222,7 +222,7 @@ $v_id = $val[1]; $v_username = $val[0]; if ( $v_id == $p_user_id ) { - PRINT "<option value=\"$v_id\" SELECTED>$v_username</option>"; + PRINT "<option value=\"$v_id\" selected=\"selected\">$v_username</option>"; } else { PRINT "<option value=\"$v_id\">$v_username</option>"; } @@ -294,7 +294,7 @@ for ($i=0;$i<$entry_count;$i++) { $t_s = str_replace( '\'', '', $t_arr[$i] ); if ( $p_item == $t_s ) { - PRINT "<option value=\"$t_s\" SELECTED>$t_s</option>"; + PRINT "<option value=\"$t_s\" selected=\"selected\">$t_s</option>"; } else { PRINT "<option value=\"$t_s\">$t_s</option>"; @@ -399,7 +399,7 @@ $v_id = $val[1]; $v_username = $val[0]; if ( $v_id == $p_user_id ) { - PRINT "<option value=\"$v_id\" SELECTED>$v_username</option>"; + PRINT "<option value=\"$v_id\" selected=\"selected\">$v_username</option>"; } else { PRINT "<option value=\"$v_id\">$v_username</option>"; } @@ -440,7 +440,7 @@ $row = db_fetch_array( $result ); extract( $row, EXTR_PREFIX_ALL, 'v' ); if ( $p_project_id == $v_id ) { - PRINT "<option value=\"$v_id\" SELECTED>$v_name</option>"; + PRINT "<option value=\"$v_id\" selected=\"selected\">$v_name</option>"; } else { PRINT "<option value=\"$v_id\">$v_name</option>"; } @@ -477,7 +477,7 @@ $v_os_build = string_display( $v_os_build ); if ( $v_id == $v_default_profile ) { - PRINT "<option value=\"$v_id\" SELECTED>$v_platform $v_os $v_os_build</option>"; + PRINT "<option value=\"$v_id\" selected=\"selected\">$v_platform $v_os $v_os_build</option>"; } else { PRINT "<option value=\"$v_id\">$v_platform $v_os $v_os_build</option>"; } @@ -507,7 +507,7 @@ extract( $row, EXTR_PREFIX_ALL, 'v' ); if ( $v_id == $p_id ) { - PRINT "<option value=\"$v_id\" SELECTED>$v_name</option>"; + PRINT "<option value=\"$v_id\" selected=\"selected\">$v_name</option>"; } else { PRINT "<option value=\"$v_id\">$v_name</option>"; } @@ -537,7 +537,7 @@ foreach( $cat_arr as $t_category ) { if ( $t_category == $p_category ) { - PRINT "<option value=\"$t_category\" SELECTED>$t_category</option>"; + PRINT "<option value=\"$t_category\" selected=\"selected\">$t_category</option>"; } else { PRINT "<option value=\"$t_category\">$t_category</option>"; } @@ -580,7 +580,7 @@ foreach( $cat_arr as $t_category ) { if ( $t_category == $p_category ) { - PRINT "<option value=\"$t_category\" SELECTED>$t_category</option>"; + PRINT "<option value=\"$t_category\" selected=\"selected\">$t_category</option>"; } else { PRINT "<option value=\"$t_category\">$t_category</option>"; } @@ -610,7 +610,7 @@ $row = db_fetch_array( $result ); $t_category = $row['category']; if ( $t_category == $p_category ) { - PRINT "<option value=\"$t_category\" SELECTED>$t_category</option>"; + PRINT "<option value=\"$t_category\" selected=\"selected\">$t_category</option>"; } else { PRINT "<option value=\"$t_category\">$t_category</option>"; } @@ -630,7 +630,7 @@ $row = db_fetch_array( $result ); $t_version = $row['version']; if ( $t_version == $p_version ) { - PRINT "<option value=\"$t_version\" SELECTED>$t_version</option>"; + PRINT "<option value=\"$t_version\" selected=\"selected\">$t_version</option>"; } else { PRINT "<option value=\"$t_version\">$t_version</option>"; } @@ -645,7 +645,7 @@ # custom attributes if ($g_customize_attributes) { - # to be deleted when moving to manage_project_page.php + # to be deleted when moving to manage_project_page.php $f_project_id = '0000000'; # custom attributes insertion @@ -657,7 +657,7 @@ $t_elem = explode_enum_arr( $t_arr[$i] ); $t_elem2 = get_enum_element( $p_enum_name, $t_elem[0] ); if ( $t_elem[0] == $p_val ) { - PRINT "<option value=\"$t_elem[0]\" SELECTED>$t_elem2</option>"; + PRINT "<option value=\"$t_elem[0]\" selected=\"selected\">$t_elem2</option>"; } else { PRINT "<option value=\"$t_elem[0]\">$t_elem2</option>"; } @@ -680,7 +680,7 @@ $t_access_level = get_enum_element( 'access_levels', $t_elem[0] ); if ( $p_val == $t_elem[0] ) { - PRINT "<option value=\"$t_elem[0]\" SELECTED>$t_access_level</option>"; + PRINT "<option value=\"$t_elem[0]\" selected=\"selected\">$t_access_level</option>"; } else { PRINT "<option value=\"$t_elem[0]\">$t_access_level</option>"; } @@ -694,7 +694,7 @@ $enum_count = count( $t_arr ); for ($i=0;$i<$enum_count;$i++) { if ( $t_arr[$i] == $p_language ) { - PRINT "<option value=\"$t_arr[$i]\" SELECTED>$t_arr[$i]</option>"; + PRINT "<option value=\"$t_arr[$i]\" selected=\"selected\">$t_arr[$i]</option>"; } else { PRINT "<option value=\"$t_arr[$i]\">$t_arr[$i]</option>"; } @@ -1002,11 +1002,11 @@ $t_dir = 'DESC'; } else { $t_dir = 'ASC'; - } + } } else { # Otherwise always start with ASCending $t_dir = 'ASC'; } - + PRINT '<a href="'.$p_page.'?f_sort='.$p_field.'&f_dir='.$t_dir.'&f_save=1&f_hide='.$p_hide.'">'.$p_string.'</a>'; } # -------------------- @@ -1016,11 +1016,11 @@ $t_dir = 'DESC'; } else { $t_dir = 'ASC'; - } + } } else { # Otherwise always start with ASCending $t_dir = 'ASC'; } - + PRINT '<a href="'.$p_page.'?f_sort='.$p_field.'&f_dir='.$t_dir.'">'.$p_string.'</a>'; } # -------------------- Index: print_all_bug_page.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/print_all_bug_page.php,v retrieving revision 1.27 retrieving revision 1.28 diff -u -d -r1.27 -r1.28 --- print_all_bug_page.php 19 Aug 2002 02:06:43 -0000 1.27 +++ print_all_bug_page.php 19 Aug 2002 03:01:58 -0000 1.28 @@ -237,7 +237,7 @@ <td> <select name="f_assign_id"> <option value="any"><?php echo $s_any ?></option> - <option value="none" <?php if ( 'none' == $f_assign_id ) echo 'SELECTED' ?>><?php echo $s_none ?></option> + <option value="none" <?php check_selected( $f_assign_id, 'none' ); ?>><?php echo $s_none ?></option> <option value="any"></option> <?php print_assign_to_option_list( $f_assign_id ) ?> </select> Index: report_bug_advanced_page.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/report_bug_advanced_page.php,v retrieving revision 1.19 retrieving revision 1.20 diff -u -d -r1.19 -r1.20 --- report_bug_advanced_page.php 15 Aug 2002 20:35:03 -0000 1.19 +++ report_bug_advanced_page.php 19 Aug 2002 03:01:58 -0000 1.20 @@ -181,7 +181,7 @@ </td> <td> <select name="f_assign_id"> - <option value="0000000" SELECTED></option> + <option value="0000000" selected="selected"></option> <?php print_assign_to_option_list( $f_assign_id ) ?> </select> </td> Index: view_all_inc.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/view_all_inc.php,v retrieving revision 1.78 retrieving revision 1.79 diff -u -d -r1.78 -r1.79 --- view_all_inc.php 5 Jul 2002 09:43:00 -0000 1.78 +++ view_all_inc.php 19 Aug 2002 03:01:58 -0000 1.79 @@ -43,9 +43,9 @@ <td> <select name="f_assign_id"> <option value="any"><?php echo $s_any ?></option> - <option value="none" <?php if ( 'none' == $f_assign_id ) echo "SELECTED" ?>><?php echo $s_none ?></option> + <option value="none" <?php check_selected( $f_assign_id, 'none' ); ?>><?php echo $s_none ?></option> <option value="any"></option> - <?php print_assign_to_option_list( $f_assign_id ) ?> + <?php #print_assign_to_option_list( $f_assign_id ) ?> </select> </td> <td> @@ -127,7 +127,6 @@ </td> </tr> </table> - <?php $col_count = 7; if ( access_level_check_greater_or_equal( $g_bug_move_access_level ) ) { @@ -160,9 +159,9 @@ <?php if ($g_project_cookie_val!='0000000') { if ( access_level_check_greater_or_equal( UPDATER ) ) { ?> <td class="center" width="5%"> - + </td> -<?php } +<?php } }?> <td class="right"> [ @@ -230,11 +229,12 @@ </td> </tr> +<?php mark_time( 'begin loop' ); ?> <?php for($i=0; $i < $row_count; $i++) { # prefix bug data with v_ $row = db_fetch_array($result); - + extract( $row, EXTR_PREFIX_ALL, 'v' ); $v_summary = string_display( $v_summary ); @@ -263,20 +263,20 @@ <?php if ( access_level_check_greater_or_equal( $g_bug_move_access_level ) ) { ?> <td bgcolor="<?php echo $status_color ?>"> <?php $t_transf="$v_id".','."$v_bug_text_id"; ?> - <input type="checkbox" name="f_bug_arr[]" value="<?php echo $t_transf ?>"> + <input type="checkbox" name="f_bug_arr[]" value="<?php echo $t_transf ?>"> </td> <?php } ?> - <?php # the pencil shortcut + <?php # the pencil shortcut #only for a per project basis if ($g_project_cookie_val!='0000000') { if ( access_level_check_greater_or_equal( UPDATER ) ) { ?> <td bgcolor="<?php echo $status_color ?>"> <?php print " <input type=\"image\" name=\"update_$v_id\" src=\"images/update.png\" width=\"11\" height=\"11\">"; ?> </td> - <?php } + <?php } }?> - + <td class="center" bgcolor="<?php echo $status_color ?>"> <?php if ( ON == $g_show_priority_text ) { @@ -306,7 +306,7 @@ ?> </td> <td class="center" bgcolor="<?php echo $status_color ?>"> - <?php + <?php # type project name if viewing 'all projects' if (( ON == $g_show_bug_project_links )&&( '0000000' == $g_project_cookie_val )) { echo '<small>['; @@ -342,7 +342,7 @@ ?> </td> <td class="left" bgcolor="<?php echo $status_color ?>"> - <?php + <?php PRINT $v_summary; if ( PRIVATE == $v_view_state ) { PRINT " [$s_private]"; @@ -357,7 +357,7 @@ <?php if ( access_level_check_greater_or_equal( $g_bug_move_access_level ) ) { ?> <tr> <td colspan="9"> - + <!-- <select name="f_project_id"> <?php print_project_option_list() ?> @@ -367,10 +367,11 @@ <select name="f_action"> <?php print_all_bug_action_option_list() ?> </select> - <input type="submit" value="<?php echo 'OK'; ?>" > + <input type="submit" value="<?php echo 'OK'; ?>" > </td> </tr> <?php } ?> +<?php mark_time( 'end loop' ); ?> </table> <?php # Show NEXT and PREV links as needed ?> |