From 1c139d5df1d36c9f25a383572f9282722cee8fb2 Mon Sep 17 00:00:00 2001 From: Sean Burke Date: Fri, 22 Feb 2013 11:23:24 -0800 Subject: [PATCH 1/2] Fixed bug that did not allow stats to display --- event.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/event.php b/event.php index d96e2ba..7316aa7 100644 --- a/event.php +++ b/event.php @@ -199,11 +199,8 @@ $bottom_stats = $majors_stat->display(); - if($scan['eid'] != 0) - { $box_stat = new Box('Statistics', $bottom_stats); $stat_display = '
'.$box_stat->display("full"); - } $content = $box->display().$stat_display; $page->setContent($content); From 5daddcb63f4c505b6cea2aace9aa3cd7cfbc96e6 Mon Sep 17 00:00:00 2001 From: Sean Burke Date: Fri, 22 Feb 2013 11:23:49 -0800 Subject: [PATCH 2/2] added event info to scanning page --- scan.php | 48 ++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 44 insertions(+), 4 deletions(-) diff --git a/scan.php b/scan.php index c7230cc..a5bc89c 100644 --- a/scan.php +++ b/scan.php @@ -121,12 +121,12 @@ '; } } - +$total_count = $page->DB->countOf('scans', 'eid = "'.$_GET['eid'].'"'); $bottom .= '
- ' + ' .$event_menu->display().'
@@ -134,8 +134,48 @@ $("#eid").change(function () { $("#select_event").submit(); }); - -
+ '; + if($scan['eid'] != 0) + { + + $bottom .= '
+ +
+ '.date('l, M d, Y',strtotime($event->date)).' +
+
+
+ +
+ '.date('g:i a',strtotime($event->time)).' +
+
+
+ +
+ '.$event->host.' +
+
+
+ +
+ '.$event->prize.' +
+
+
+ +
+ '.$event->description.' +
+
+
+ +
+ '.$total_count.' +
+
'; + } + $bottom .= '