From 6c42f30a0424cbf1c1af63f21d7f5074a4653c7a Mon Sep 17 00:00:00 2001 From: jhunkeler Date: Wed, 23 Dec 2009 01:58:08 +0000 Subject: (OC) tried fixing the insert in NewAdmin(), no luck git-svn-id: http://svn.3rd-infantry-division.org/testing/branches/Bayonet CMS v2@394 c5b2fb0a-d05d-0410-98c8-828840a80ff6 --- blocks/mini_calendar/functions.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'blocks/mini_calendar/functions.php') diff --git a/blocks/mini_calendar/functions.php b/blocks/mini_calendar/functions.php index 3291e6b..0dee840 100644 --- a/blocks/mini_calendar/functions.php +++ b/blocks/mini_calendar/functions.php @@ -252,7 +252,7 @@ $isEvent=false; global $db; - $result = $db->Query("SELECT title,color FROM `bayonet_events` WHERE `date` = '$sqlDate' ORDER BY `date` DESC"); + $result = $db->Query("SELECT title,color,date,time FROM `bayonet_events` WHERE `date` = '$sqlDate' ORDER BY `date` DESC"); while(($row = $db->Fetch($result))!=false) { $isEvent = true; @@ -301,7 +301,8 @@ if(count($todaysEvents)>0){ echo "

Today's Events

"; foreach($todaysEvents as $event){ - echo "   {$event['title']}
"; + $time = date("g:i a", strtotime($event['date']." ".$event['time'])); + echo "   {$event['title']} @ {$time}
"; } } } -- cgit