aboutsummaryrefslogtreecommitdiff
path: root/modules/rudi
diff options
context:
space:
mode:
authorjhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6>2010-01-26 21:52:17 -0500
committerjhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6>2010-01-26 21:52:17 -0500
commita0701d581dfa39113c1af68637118d99d5a0822a (patch)
tree17858862321c09316dbbeb9038695a8815406e2a /modules/rudi
parent6d28ed7cd510621e571da1d5a20848d58d079f53 (diff)
downloadbayonetcms-a0701d581dfa39113c1af68637118d99d5a0822a.tar.gz
commit just prior to some pure insanity.
implementing theme system git-svn-id: http://svn.3rd-infantry-division.org/testing/branches/Bayonet CMS v2@463 c5b2fb0a-d05d-0410-98c8-828840a80ff6
Diffstat (limited to 'modules/rudi')
-rw-r--r--modules/rudi/views/view.drills.php29
1 files changed, 25 insertions, 4 deletions
diff --git a/modules/rudi/views/view.drills.php b/modules/rudi/views/view.drills.php
index 5fcd18e..aa4b30a 100644
--- a/modules/rudi/views/view.drills.php
+++ b/modules/rudi/views/view.drills.php
@@ -25,9 +25,14 @@ function Rating($val)
return "Bad Value";
}
+//$this->getMemberAttendance();
+
+OpenContent();
?>
-<?php if(isset($_GET['id'])): ?>
+<div class="contentHeading">Drills</div>
+<div class="content">
+<?php if(isset($_GET['id'])): ?>
<table cellspacing="20" class="rudi" align="left" style="width: 100%;">
<tr>
<th class="header">News</th>
@@ -53,7 +58,7 @@ function Rating($val)
<th class="header">Soldier</th>
<th class="header">Performance Rating</th>
<th class="header">Initiative Rating</th>
- <th class="header">Early Excusal</th>
+ <th class="header">Excusal</th>
<th class="header">Excusal Reason</th>
</tr>
<?php foreach($drills->manifest->members as $member): ?>
@@ -67,7 +72,7 @@ function Rating($val)
<td class="rudi"><?php echo $pRating; ?>&nbsp;</td>
<td class="rudi"><?php echo $iRating; ?>&nbsp;</td>
<td class="rudi"><?php echo ($member->excusal ? "Yes" : "No"); ?>&nbsp;</td>
- <td class="rudi"><?php echo $member->excusal_reason; ?>&nbsp;</td>
+ <td class="rudi"><?php echo $this->evalData($member->excusal_reason); ?>&nbsp;</td>
</tr>
<?php endforeach; ?>
</table>
@@ -93,9 +98,25 @@ function Rating($val)
<?php endforeach; ?>
</table>
-
+</div>
<?php
+CloseContent();
+OpenContent();
+?>
+<?php if(isset($_GET['stats']) && $_GET['stats'] == 'true'): ?>
+<div class="contentHeading">Statistics</div>
+<div class="content">
+<?php
+//decho($drills->getMemberAttendanceFull());
+require_once 'view.drills.statistics.php';
+?>
+</div>
+</div>
+<?php endif; ?>
+
+<?php
+CloseContent();
decho('DATA FOR NO ID QUERY');
decho($drills->manifest);
?>