aboutsummaryrefslogtreecommitdiff
path: root/modules/rudi/index.php
diff options
context:
space:
mode:
authorjhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6>2009-12-29 15:46:26 -0500
committerjhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6>2009-12-29 15:46:26 -0500
commit4bc1e32a79c0928a079113c51f9cf9fcaf525a63 (patch)
tree00312c30100c6947859324c39d80b7fcafaf92f1 /modules/rudi/index.php
parentad6ba256efd1a65fb1bb3951ae6b17b1593205b7 (diff)
downloadbayonetcms-4bc1e32a79c0928a079113c51f9cf9fcaf525a63.tar.gz
(OC) I cut down the calendar queries to just one which seems to work out a lot better.
git-svn-id: http://svn.3rd-infantry-division.org/testing/branches/Bayonet CMS v2@409 c5b2fb0a-d05d-0410-98c8-828840a80ff6
Diffstat (limited to 'modules/rudi/index.php')
-rw-r--r--modules/rudi/index.php80
1 files changed, 80 insertions, 0 deletions
diff --git a/modules/rudi/index.php b/modules/rudi/index.php
new file mode 100644
index 0000000..79de570
--- /dev/null
+++ b/modules/rudi/index.php
@@ -0,0 +1,80 @@
+<?php
+//include 'header.php';
+//include 'includes/debug.php';
+//include 'includes/sql.class.php';
+include 'includes/common.class.php';
+
+class RUDI_Gateway extends RUDI_Common
+{
+ protected $awards, $ranks, $drills;
+
+ public function __construct()
+ {
+ parent::__construct();
+
+ if(isset($_GET['admin']))
+ {
+ define('BLOCK_RIGHT_DISABLE','block_right_disable');
+ include 'admin/index.php';
+ return;
+ }
+
+ if(isset($_GET['profile']))
+ {
+ $this->Update();
+
+ OpenTable();
+ echo "<tr><th>RUDI</th></tr><tr><td>\n";
+ include 'views/view.profile.php';
+ echo "</td></tr>";
+ CloseTable();
+ return;
+ }
+ elseif(isset($_GET['show']))
+ {
+ OpenTable();
+ echo "<tr><th>RUDI</th></tr><tr><td>\n";
+ switch($_GET['show'])
+ {
+ case 'awards':
+ $this->awards = $this->getAwards();
+ include 'views/view.awards.php';
+ break;
+ case 'ranks':
+ $this->ranks = $this->getRanks();
+ include 'views/view.ranks.php';
+ break;
+ case 'drills':
+ $this->drills = $this->getDrills($_GET['id']);
+ include 'views/view.drills.php';
+ break;
+ }
+ echo "</td></tr>";
+ CloseTable();
+ return;
+ }
+ else
+ {
+ $this->Update(RUDI_PROFILE_SMALL);
+ $stats = $this->getCumulativeStats();
+ decho($stats);
+
+ OpenTable();
+ echo "<tr><th>RUDI</th></tr><tr><td>\n";
+ include 'views/view.current.php';
+ echo "</td></tr>";
+ CloseTable();
+ return;
+ }
+ }
+}
+
+ob_start();
+$rudi = new RUDI_Gateway();
+ob_flush();
+
+//include 'footer.php';
+//decho($test->foo[0]->member_id);
+//$test1 = new Test();
+//$test2 = new Test();
+?> \ No newline at end of file