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 --- admin/adjutant/functions.php | 21 ++++++++++------ admin/index.php | 1 + admin/navigation/functions.php | 56 ++++++++++++++++++++++++++++++++++++++++-- admin/style.css | 8 ++++++ 4 files changed, 77 insertions(+), 9 deletions(-) (limited to 'admin') diff --git a/admin/adjutant/functions.php b/admin/adjutant/functions.php index 261c122..57e9fe8 100644 --- a/admin/adjutant/functions.php +++ b/admin/adjutant/functions.php @@ -66,7 +66,7 @@ } - function editLOAs($status_id = 1){ + function EditLOAs($status_id = 1){ global $db; @@ -116,28 +116,35 @@ $num = 1; function EditStatus($member_id){ global $db; - $form = new BayonetForm($_SERVER['PHP_SELF'], "POST"); + $form = new BayonetForm("", "POST"); if($form->VerifySubmit('processed')){ - + echo "Please wait while your information is being processed..."; + $status_id = $form->request['status']; + $db->query("UPDATE `rudi_unit_members` SET `status_id` = '$status_id' WHERE `member_id` = '$member_id' LIMIT 1"); + PageRedirect(1, "?op=adjutant&edit=loas&member={$member_id}"); return; } $result = $db->Query("SELECT * FROM `rudi_unit_members` JOIN `rudi_ranks` ON rudi_unit_members.rank_id=rudi_ranks.rank_id WHERE `member_id` = '$member_id' LIMIT 1"); $row = $db->FetchRow($result); ?> - +
+
+
RankSoldierStatus
- radioButton('status', 1, true); ?>Active
- radioButton('status', 2); ?>On Leave
- radioButton('status', 3); ?>On Extended Leave + radioButton('status', 1, $row['status_id'] == 1 ? true : false); ?>Active
+ radioButton('status', 2, $row['status_id'] == 2 ? true : false); ?>On Leave
+ radioButton('status', 3, $row['status_id'] == 3 ? true : false); ?>On Extended Leave
submitButton('processed'); ?>
+ __destruct(); } diff --git a/admin/index.php b/admin/index.php index 511418f..8801978 100644 --- a/admin/index.php +++ b/admin/index.php @@ -31,6 +31,7 @@ $db->Connect( $config['sql']['password'] ); $db->Select_db($config['sql']['database']); + //$config['logs']['dir'] = "../logs/"; include 'header.php'; diff --git a/admin/navigation/functions.php b/admin/navigation/functions.php index 2287944..68ab7c3 100644 --- a/admin/navigation/functions.php +++ b/admin/navigation/functions.php @@ -1,3 +1,41 @@ + + + Query("SELECT `nav_id`, `title`, `weight` FROM `bayonet_navigation` ORDER BY `weight`"); $data = $db->Fetch($result); - echo "|0|Home|0|
"; + ?> +
+ + + + + +
News Reel Order
+ + Click and drag on a slide to change the order. Wait for confirmation indicating the changes have been saved. +
+ \ No newline at end of file diff --git a/admin/style.css b/admin/style.css index 281e0b2..686276b 100644 --- a/admin/style.css +++ b/admin/style.css @@ -108,6 +108,7 @@ fieldset { padding:0px; border: 1px solid #a1a1a1; } + /********************************* ** Content Styles ** *********************************/ @@ -132,4 +133,11 @@ fieldset { padding:10px; color:#333333; } + +.left{ + text-align:left; +} +.right{ + text-align:right; +} \ No newline at end of file -- cgit