[geeklog-cvs] geeklog-1.3/public_html/admin event.php,1.42,1.43
dhaun at geeklog.net
dhaun at geeklog.net
Tue Jan 6 10:25:24 EST 2004
Update of /usr/cvs/geeklog/geeklog-1.3/public_html/admin
In directory geeklog_prod:/tmp/cvs-serv17521
Modified Files:
event.php
Log Message:
Changed to use COM_getMonthFormOptions() etc.
Index: event.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/admin/event.php,v
retrieving revision 1.42
retrieving revision 1.43
diff -C2 -d -r1.42 -r1.43
*** event.php 12 Sep 2003 11:51:03 -0000 1.42
--- event.php 6 Jan 2004 15:25:22 -0000 1.43
***************
*** 169,279 ****
$event_templates->set_var('endam_selected', 'selected="SELECTED"');
}
! for ($j = 1; $j <= 2; $j++) {
! $month_options = '';
! for ($i = 1; $i <= 12; $i++) {
! if ($i < 10) {
! $mval = '0' . $i;
! } else {
! $mval = $i;
! }
! $month_options .= '<option value="' . $mval . '" ';
! if ($j == 1) {
! if ($i == $start_month) {
! $month_options .= 'selected="SELECTED"';
! }
! } else {
! if ($i == $end_month) {
! $month_options .= 'selected="SELECTED"';
! }
! }
! $month_options .= '>' . $LANG30[$mval+12] . '</option>';
! }
! if ($j == 1) {
! $event_templates->set_var('startmonth_options', $month_options);
! } else {
! $event_templates->set_var('endmonth_options', $month_options);
! }
! $day_options = '';
! for ($i = 1; $i <= 31; $i++) {
! if ($i < 10) {
! $dval = '0' . $i;
! } else {
! $dval = $i;
! }
! $day_options .= '<option value="' . $dval . '" ';
! if ($j == 1) {
! if ($i == $start_day) {
! $day_options .= 'selected="SELECTED"';
! }
! } else {
! if ($i == $end_day) {
! $day_options .= 'selected="SELECTED"';
! }
! }
! $day_options .= '>' . $dval . '</option>';
! }
! if ($j == 1) {
! $event_templates->set_var('startday_options', $day_options);
! } else {
! $event_templates->set_var('endday_options', $day_options);
! }
! $year_options = '';
! $cur_year = date('Y',time());
! for ($i = $cur_year; $i <= $cur_year + 5; $i++) {
! $year_options .= '<option value="' . $i . '" ';
! if ($j == 1) {
! if ($i == $start_year) {
! $year_options .= 'selected="SELECTED"';
! }
! } else {
! if ($i == $end_year) {
! $year_options .= 'selected="SELECTED"';
! }
! }
! $year_options .= '>' . $i . '</option>';
! }
! if ($j == 1) {
! $event_templates->set_var('startyear_options', $year_options);
! } else {
! $event_templates->set_var('endyear_options', $year_options);
! }
! $hour_options = '';
! for ($i = 1; $i <= 11; $i++) {
! if ($i < 10) {
! $hval = '0' . $i;
! } else {
! $hval = $i;
! }
! if ($i == 1 ) {
! $hour_options .= '<option value="12" ';
! if ($j == 1) {
! if ($start_hour == 12) {
! $hour_options .= 'selected="SELECTED"';
! }
! } else {
! if ($end_hour == 12) {
! $hour_options .= 'selected="SELECTED"';
! }
! }
! $hour_options .= '>12</option>';
! }
! $hour_options .= '<option value="' . $hval . '" ';
! if ($j == 1) {
! if ($start_hour == $i) {
! $hour_options .= 'selected="SELECTED"';
! }
! } else {
! if ($end_hour == $i) {
! $hour_options .= 'selected="SELECTED"';
! }
! }
! $hour_options .= '>' . $i . '</option>';
! }
! if ($j == 1) {
! $event_templates->set_var('starthour_options', $hour_options);
! } else {
! $event_templates->set_var('endhour_options', $hour_options);
! }
! }
// Set minute for start time
--- 169,196 ----
$event_templates->set_var('endam_selected', 'selected="SELECTED"');
}
!
! $month_options = COM_getMonthFormOptions ($start_month);
! $event_templates->set_var ('startmonth_options', $month_options);
!
! $month_options = COM_getMonthFormOptions ($end_month);
! $event_templates->set_var ('endmonth_options', $month_options);
!
! $day_options = COM_getDayFormOptions ($start_day);
! $event_templates->set_var ('startday_options', $day_options);
!
! $day_options = COM_getDayFormOptions ($end_day);
! $event_templates->set_var ('endday_options', $day_options);
!
! $year_options = COM_getYearFormOptions ($start_year);
! $event_templates->set_var ('startyear_options', $year_options);
!
! $year_options = COM_getYearFormOptions ($end_year);
! $event_templates->set_var ('endyear_options', $year_options);
!
! $hour_options = COM_getHourFormOptions ($start_hour);
! $event_templates->set_var ('starthour_options', $hour_options);
!
! $hour_options = COM_getHourFormOptions ($end_hour);
! $event_templates->set_var ('endhour_options', $hour_options);
// Set minute for start time
More information about the geeklog-cvs
mailing list