[geeklog-cvs] geeklog-1.3/public_html/admin event.php,1.48,1.49
dhaun at iowaoutdoors.org
dhaun at iowaoutdoors.org
Wed Aug 4 14:44:26 EDT 2004
Update of /var/cvs/geeklog-1.3/public_html/admin
In directory www:/tmp/cvs-serv20768/public_html/admin
Modified Files:
event.php
Log Message:
Carry over the date and time from the calendar when Admins add a new event (bug #132)
Index: event.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/admin/event.php,v
retrieving revision 1.48
retrieving revision 1.49
diff -C2 -d -r1.48 -r1.49
*** event.php 26 Jul 2004 09:57:35 -0000 1.48
--- event.php 4 Aug 2004 18:44:24 -0000 1.49
***************
*** 123,128 ****
}
! if ($A['eid'] == '') {
! $A['eid'] = COM_makesid();
}
--- 123,137 ----
}
! if (empty ($A['eid'])) { // new event
! $A['eid'] = COM_makesid ();
!
! // in case a start date/time has been passed from the calendar,
! // pick it up for the end date/time
! if (empty ($A['dateend'])) {
! $A['dateend'] = $A['datestart'];
! }
! if (empty ($A['timeend'])) {
! $A['timeend'] = $A['timestart'];
! }
}
***************
*** 160,164 ****
$start_day = date('d', $start_stamp);
$start_year = date('Y', $start_stamp);
! $end_month= date('m', $end_stamp);
$end_day = date('d', $end_stamp);
$end_year = date('Y', $end_stamp);
--- 169,173 ----
$start_day = date('d', $start_stamp);
$start_year = date('Y', $start_stamp);
! $end_month = date('m', $end_stamp);
$end_day = date('d', $end_stamp);
$end_year = date('Y', $end_stamp);
***************
*** 627,632 ****
} else if ($mode == 'edit') {
$eid = COM_applyFilter ($http_input_vars['eid']);
! $result = DB_query ("SELECT * FROM {$_TABLES['events']} WHERE eid ='$eid'");
! $A = DB_fetchArray ($result);
$display .= COM_siteHeader ('menu');
$display .= editevent ($mode, $A);
--- 636,647 ----
} else if ($mode == 'edit') {
$eid = COM_applyFilter ($http_input_vars['eid']);
! if (empty ($eid)) {
! $A = array ();
! $A['datestart'] = COM_applyFilter ($http_input_vars['datestart']);
! $A['timestart'] = COM_applyFilter ($http_input_vars['timestart']);
! } else {
! $result = DB_query ("SELECT * FROM {$_TABLES['events']} WHERE eid ='$eid'");
! $A = DB_fetchArray ($result);
! }
$display .= COM_siteHeader ('menu');
$display .= editevent ($mode, $A);
More information about the geeklog-cvs
mailing list