diff options
author | 3rd Infantry Division <thirdid@3rd-infantry-division.org> | 2011-04-18 16:29:05 -0400 |
---|---|---|
committer | 3rd Infantry Division <thirdid@3rd-infantry-division.org> | 2011-04-18 16:29:05 -0400 |
commit | ea0080efe5a38a470d4f745ca589e923efc35e5c (patch) | |
tree | c6604647d51c0e81168e7dbaba9f73385edc02ee /admin/rudi/views/view.awards.php | |
parent | fa1cde8684c1a481dd251398d1c2faa27d147a43 (diff) | |
parent | 0077cb99704fe863cf731fc5cab792af2ede96c2 (diff) | |
download | bayonetcms-ea0080efe5a38a470d4f745ca589e923efc35e5c.tar.gz |
Merge branch 'master' of ssh://3rd-infantry-division.org/~/git/bayonet
Diffstat (limited to 'admin/rudi/views/view.awards.php')
-rw-r--r-- | admin/rudi/views/view.awards.php | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/admin/rudi/views/view.awards.php b/admin/rudi/views/view.awards.php index b4c912f..3a5729f 100644 --- a/admin/rudi/views/view.awards.php +++ b/admin/rudi/views/view.awards.php @@ -1,40 +1,40 @@ -<?php
- include $basedir.'rudi/includes/functions.awards.php';
- if(isset($_GET['award'])){
- $award_id = $_GET['award'];
- include 'view.awards.edit.php';
- }else if(isset($_GET['add'])){
- include 'view.awards.add.php';
- }else if(isset($_GET['delete'])){
- $award_id = $_GET['delete'];
- include 'view.awards.delete.php';
- }else{
- echo "<h3>Award Classes</h3>";
- $classes = getAwardClasses();
- OpenTable();
- echo "<tr style=\"text-align:center\">";
- foreach($classes as $class){
- echo "<td>".LinkInternal($class['name'],'?op=rudi&show=awards&cid='.$class['class_id'])."</td>";
- }
- echo "</tr>";
- CloseTable();
-
- if(isset($_GET['cid'])){
- $class_id = $_GET['cid'];
- $awards = getAwardsByClass($class_id);
- echo "<h3>Awards</h3>";
- echo LinkInternal('<img src="images/add.png" /> Add New Award','?op=rudi&show=awards&cid={$class_id}&add=true');
- OpenTable();
- foreach($awards as $award){
- echo "<tr><td>".$award['name']."</td>
- <td><a href=\"?op=rudi&show=awards&award={$award['award_id']}\">Edit</a></td>
- <td><a href=\"?op=rudi&show=awards&delete={$award['award_id']}\">Delete</a></td></tr>";
- }
- CloseTable();
- //include 'view.members.profile.php';
- }else if(isset($_GET['aid'])){
- $award_id = $_GET['aid'];
- //include 'view.members.service.php';
- }
- }
+<?php + include $basedir.'rudi/includes/functions.awards.php'; + if(isset($_GET['award'])){ + $award_id = $_GET['award']; + include 'view.awards.edit.php'; + }else if(isset($_GET['add'])){ + include 'view.awards.add.php'; + }else if(isset($_GET['delete'])){ + $award_id = $_GET['delete']; + include 'view.awards.delete.php'; + }else{ + echo "<h3>Award Classes</h3>"; + $classes = getAwardClasses(); + OpenTable(); + echo "<tr style=\"text-align:center\">"; + foreach($classes as $class){ + echo "<td>".LinkInternal($class['name'],'?op=rudi&show=awards&cid='.$class['class_id'])."</td>"; + } + echo "</tr>"; + CloseTable(); + + if(isset($_GET['cid'])){ + $class_id = $_GET['cid']; + $awards = getAwardsByClass($class_id); + echo "<h3>Awards</h3>"; + echo LinkInternal('<img src="images/add.png" /> Add New Award','?op=rudi&show=awards&cid={$class_id}&add=true'); + OpenTable(); + foreach($awards as $award){ + echo "<tr><td>".$award['name']."</td> + <td><a href=\"?op=rudi&show=awards&award={$award['award_id']}\">Edit</a></td> + <td><a href=\"?op=rudi&show=awards&delete={$award['award_id']}\">Delete</a></td></tr>"; + } + CloseTable(); + //include 'view.members.profile.php'; + }else if(isset($_GET['aid'])){ + $award_id = $_GET['aid']; + //include 'view.members.service.php'; + } + } ?>
\ No newline at end of file |