[geeklog-cvs] geeklog-1.3/public_html lib-common.php,1.271,1.272

dhaun at geeklog.net dhaun at geeklog.net
Tue Jan 6 10:24:52 EST 2004


Update of /usr/cvs/geeklog/geeklog-1.3/public_html
In directory geeklog_prod:/tmp/cvs-serv17488

Modified Files:
	lib-common.php 
Log Message:
Changed COM_getMonthFormOptions() to display the name of the month, and COM_getYearFormOptions() offer the previous year, too.


Index: lib-common.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/lib-common.php,v
retrieving revision 1.271
retrieving revision 1.272
diff -C2 -d -r1.271 -r1.272
*** lib-common.php	2 Jan 2004 22:06:22 -0000	1.271
--- lib-common.php	6 Jan 2004 15:24:49 -0000	1.272
***************
*** 4530,4533 ****
--- 4530,4535 ----
  function COM_getMonthFormOptions( $selected = '' )
  {
+     global $LANG30;
+ 
      $month_options = '';
  
***************
*** 4547,4554 ****
          if( $i == $selected )
          {
!             $month_options .= 'selected="SELECTED"';
          }
  
!         $month_options .= '>' . $mval . '</option>';
      }
  
--- 4549,4556 ----
          if( $i == $selected )
          {
!             $month_options .= 'selected="selected"';
          }
  
!         $month_options .= '>' . $LANG30[$mval + 12] . '</option>';
      }
  
***************
*** 4586,4590 ****
          if( $i == $selected )
          {
!             $day_options .= 'selected="SELECTED"';
          }
  
--- 4588,4592 ----
          if( $i == $selected )
          {
!             $day_options .= 'selected="selected"';
          }
  
***************
*** 4623,4627 ****
      }
  
!     for( $i = $start_year; $i <= $cur_year + 5; $i++ )
      {
          $year_options .= '<option value="' . $i . '" ';
--- 4625,4629 ----
      }
  
!     for( $i = $start_year - 1; $i <= $cur_year + 5; $i++ )
      {
          $year_options .= '<option value="' . $i . '" ';
***************
*** 4629,4633 ****
          if( $i == $selected )
          {
!             $year_options .= 'selected="SELECTED"';
          }
  
--- 4631,4635 ----
          if( $i == $selected )
          {
!             $year_options .= 'selected="selected"';
          }
  
***************
*** 4670,4674 ****
              if( $selected == 12 )
              {
!                 $hour_options .= 'selected="SELECTED"';
              }
  
--- 4672,4676 ----
              if( $selected == 12 )
              {
!                 $hour_options .= 'selected="selected"';
              }
  
***************
*** 4680,4684 ****
          if( $selected == $i )
          {
!             $hour_options .= 'selected="SELECTED"';
          }
  
--- 4682,4686 ----
          if( $selected == $i )
          {
!             $hour_options .= 'selected="selected"';
          }
  
***************
*** 4719,4723 ****
          if( $selected == $i )
          {
!             $minute_options .= 'selected="SELECTED"';
          }
  
--- 4721,4725 ----
          if( $selected == $i )
          {
!             $minute_options .= 'selected="selected"';
          }
  





More information about the geeklog-cvs mailing list