aboutsummaryrefslogtreecommitdiff
path: root/admin/rudi/views/view.awards.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/rudi/views/view.awards.php')
-rw-r--r--admin/rudi/views/view.awards.php34
1 files changed, 34 insertions, 0 deletions
diff --git a/admin/rudi/views/view.awards.php b/admin/rudi/views/view.awards.php
new file mode 100644
index 0000000..2455018
--- /dev/null
+++ b/admin/rudi/views/view.awards.php
@@ -0,0 +1,34 @@
+<?php
+ include $basedir.'rudi/includes/functions.awards.php';
+ if(isset($_GET['award'])){
+ $award_id = $_GET['award'];
+ include 'view.awards.edit.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>";
+ 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