From a0701d581dfa39113c1af68637118d99d5a0822a Mon Sep 17 00:00:00 2001 From: jhunkeler Date: Wed, 27 Jan 2010 02:52:17 +0000 Subject: 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 --- modules/admin/admin_functions.php | 17 +++++++++-------- modules/admin/index.php | 8 ++++---- modules/admin/operation.php | 4 ++-- modules/rudi/views/view.drills.php | 29 +++++++++++++++++++++++++---- 4 files changed, 40 insertions(+), 18 deletions(-) (limited to 'modules') diff --git a/modules/admin/admin_functions.php b/modules/admin/admin_functions.php index 30a40d0..6c2b394 100644 --- a/modules/admin/admin_functions.php +++ b/modules/admin/admin_functions.php @@ -16,7 +16,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ - + /* if(!defined("ADMIN_FILE")) { die("Access denied."); @@ -86,7 +86,7 @@ function logout() session_unset(); session_destroy(); } - +*/ /** * CompileAdmin() * @@ -99,9 +99,10 @@ function logout() * @param mixed $body * @return */ + /* function CompileAdmin($head,$body) { - /*if we were not passed arrays, then say goodbye*/ + /*if we were not passed arrays, then say goodbye if(!is_array($head) || !is_array($body)) { echo "must be array\n"; @@ -123,7 +124,7 @@ function CompileAdmin($head,$body) echo "\n"; } -/** + * OpenTable() * * The administration OpenTable() function requires an argument to define @@ -132,20 +133,20 @@ function CompileAdmin($head,$body) * * @param mixed $title * @return - */ + function OpenTable_Ex($title) { echo "
{$title}
"; } -/** + * CloseTable() * * @return - */ + function CloseTable_Ex() { echo "
"; } - + */ ?> \ No newline at end of file diff --git a/modules/admin/index.php b/modules/admin/index.php index 4dd4539..fc379ea 100644 --- a/modules/admin/index.php +++ b/modules/admin/index.php @@ -16,7 +16,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ - + /* if(!defined("MODULE_FILE")) { die("Access denied."); @@ -30,12 +30,12 @@ logout(); } -/* if(login()) + if(login()) { //this is so dirty... sigh. if(is_loggedin()) { - */ ?> + ?> @@ -66,7 +66,7 @@
- . */ - + /* if(!defined("ADMIN_FILE")) { die("Access denied."); @@ -49,5 +49,5 @@ else } - +*/ ?> \ No newline at end of file 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(); ?> - +
Drills
+
+ @@ -53,7 +58,7 @@ function Rating($val) - + manifest->members as $member): ?> @@ -67,7 +72,7 @@ function Rating($val) - +
NewsSoldier Performance Rating Initiative RatingEarly ExcusalExcusal Excusal Reason
    excusal ? "Yes" : "No"); ?> excusal_reason; ?> evalData($member->excusal_reason); ?> 
@@ -93,9 +98,25 @@ function Rating($val) - +
+ +
Statistics
+
+getMemberAttendanceFull()); +require_once 'view.drills.statistics.php'; +?> +
+ + + +manifest); ?> -- cgit