Index: meta_inc.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/meta_inc.php,v retrieving revision 1.18 diff -u -r1.18 meta_inc.php --- meta_inc.php 19 May 2005 00:25:52 -0000 1.18 +++ meta_inc.php 12 Jun 2005 06:41:30 -0000 @@ -9,6 +9,7 @@ # $Id: meta_inc.php,v 1.18 2005/05/19 00:25:52 thraxisp Exp $ # -------------------------------------------------------- + require_once( 'core.php' ); global $g_allow_browser_cache; if ( ! isset( $g_allow_browser_cache ) ) { ?> @@ -18,3 +19,116 @@ + + + + + + + + + Index: core/date_api.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/core/date_api.php,v retrieving revision 1.7 diff -u -r1.7 date_api.php --- core/date_api.php 26 Feb 2005 01:00:39 -0000 1.7 +++ core/date_api.php 12 Jun 2005 06:41:30 -0000 @@ -92,6 +92,7 @@ # -------------------- function print_date_selection_set( $p_name, $p_format, $p_date=0, $p_default_disable=false, $p_allow_blank=false, $p_year_start=0, $p_year_end=0) { + $t_chars = preg_split('//', $p_format, -1, PREG_SPLIT_NO_EMPTY) ; if ( $p_date != 0 ) { $t_date = preg_split('/-/', date( 'Y-m-d', $p_date), -1, PREG_SPLIT_NO_EMPTY) ; @@ -107,33 +108,53 @@ if ( $p_allow_blank == true ) { $t_blank_line = "" ; } - + $t_month_id = $p_name . "_month"; + $t_day_id = $p_name . "_day"; + $t_year_id = $p_name . "_year"; foreach( $t_chars as $t_char ) { if (strcmp( $t_char, "M") == 0) { - echo "" ; echo $t_blank_line ; print_month_option_list( $t_date[1] ) ; echo "\n" ; } if (strcmp( $t_char, "m") == 0) { - echo "" ; echo $t_blank_line ; print_numeric_month_option_list( $t_date[1] ) ; echo "\n" ; } if (strcasecmp( $t_char, "D") == 0) { - echo "" ; echo $t_blank_line ; print_day_option_list( $t_date[2] ) ; echo "\n" ; } if (strcasecmp( $t_char, "Y") == 0) { - echo "" ; echo $t_blank_line ; print_year_range_option_list( $t_date[0], $p_year_start, $p_year_end ) ; echo "\n" ; } } + + # Include jscalendar if configured + if ( config_get('date_use_calendar') == ON) { + $t_calendar_title = lang_get('calendar_title'); + $t_cal_name = $p_name . "_calendar"; + $t_cal_object_name = $t_cal_name . "_object"; + + # Can't disable/enable buttons + #echo " \n"; + + # + echo ""; + echo "\"$t_calendar_title\" \n"; + } } ?> Index: core/filter_api.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/core/filter_api.php,v retrieving revision 1.116 diff -u -r1.116 filter_api.php --- core/filter_api.php 7 Jun 2005 19:49:53 -0000 1.116 +++ core/filter_api.php 12 Jun 2005 06:41:30 -0000 @@ -2716,21 +2716,39 @@ $t_chars = preg_split( '//', config_get( 'short_date_format' ), -1, PREG_SPLIT_NO_EMPTY ); foreach( $t_chars as $t_char ) { if ( strcasecmp( $t_char, "M" ) == 0 ) { - print ""; print_month_option_list( $t_filter['start_month'] ); print "\n"; } if ( strcasecmp( $t_char, "D" ) == 0 ) { - print ""; print_day_option_list( $t_filter['start_day'] ); print "\n"; } if ( strcasecmp( $t_char, "Y" ) == 0 ) { - print ""; print_year_option_list( $t_filter['start_year'] ); print "\n"; } } + + # Include jscalendar if configured + if ( config_get('date_use_calendar') == ON) { + $t_calendar_title = lang_get('calendar_title'); + $t_cal_name = "start_date_calendar"; + $t_cal_object_name = $t_cal_name . "_object"; + + # Can't disable/enable buttons + #echo " \n"; + + # + echo ""; + echo "\"$t_calendar_title\" \n"; + } + ?> @@ -2744,21 +2762,39 @@ $t_chars = preg_split( '//', config_get( 'short_date_format' ), -1, PREG_SPLIT_NO_EMPTY ); foreach( $t_chars as $t_char ) { if ( strcasecmp( $t_char, "M" ) == 0 ) { - print ""; print_month_option_list( $t_filter['end_month'] ); print "\n"; } if ( strcasecmp( $t_char, "D" ) == 0 ) { - print ""; print_day_option_list( $t_filter['end_day'] ); print "\n"; } if ( strcasecmp( $t_char, "Y" ) == 0 ) { - print ""; print_year_option_list( $t_filter['end_year'] ); print "\n"; } } + + # Include jscalendar if configured + if ( config_get('date_use_calendar') == ON) { + $t_calendar_title = lang_get('calendar_title'); + $t_cal_name = "end_date_calendar"; + $t_cal_object_name = $t_cal_name . "_object"; + + # Can't disable/enable buttons + #echo " \n"; + + # + echo ""; + echo "\"$t_calendar_title\" \n"; + } + ?>