[geeklog-cvs] geeklog-1.3/public_html/admin event.php,1.36,1.37
geeklog-cvs-admin at lists.geeklog.net
geeklog-cvs-admin at lists.geeklog.net
Wed Apr 9 14:43:50 EDT 2003
Update of /usr/cvs/geeklog/geeklog-1.3/public_html/admin
In directory internal.geeklog.net:/tmp/cvs-serv24970/admin
Modified Files:
event.php
Log Message:
Sort event types alphabetically.
Index: event.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/admin/event.php,v
retrieving revision 1.36
retrieving revision 1.37
diff -C2 -d -r1.36 -r1.37
*** event.php 2 Feb 2003 19:46:47 -0000 1.36
--- event.php 9 Apr 2003 18:43:48 -0000 1.37
***************
*** 9,17 ****
// | |
// +---------------------------------------------------------------------------+
! // | Copyright (C) 2000,2001 by the following authors: |
// | |
! // | Authors: Tony Bibbs - tony at tonybibbs.com |
! // | Mark Limburg - mlimburg at users.sourceforge.net |
! // | Jason Wittenburg - jwhitten at securitygeeks.com |
// +---------------------------------------------------------------------------+
// | |
--- 9,17 ----
// | |
// +---------------------------------------------------------------------------+
! // | Copyright (C) 2000-2003 by the following authors: |
// | |
! // | Authors: Tony Bibbs - tony at tonybibbs.com |
! // | Mark Limburg - mlimburg at users.sourceforge.net |
! // | Jason Whittenburg - jwhitten at securitygeeks.com |
// +---------------------------------------------------------------------------+
// | |
***************
*** 113,120 ****
$event_templates->set_var('event_title', stripslashes ($A['title']));
$types = explode(',',$_CONF['event_types']);
for ($i = 1; $i <= count($types); $i++) {
! $catdd .= '<option value="' . current($types) . '" ';
if ($A['event_type'] == current($types)) {
! $catdd .= 'selected="SELECTED"';
}
$catdd .= '>' . current($types) . '</option>';
--- 113,121 ----
$event_templates->set_var('event_title', stripslashes ($A['title']));
$types = explode(',',$_CONF['event_types']);
+ asort ($types);
for ($i = 1; $i <= count($types); $i++) {
! $catdd .= '<option value="' . current($types) . '"';
if ($A['event_type'] == current($types)) {
! $catdd .= ' selected="SELECTED"';
}
$catdd .= '>' . current($types) . '</option>';
More information about the geeklog-cvs
mailing list