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.delete.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.delete.php')
-rw-r--r-- | admin/rudi/views/view.awards.delete.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/admin/rudi/views/view.awards.delete.php b/admin/rudi/views/view.awards.delete.php new file mode 100644 index 0000000..6fde068 --- /dev/null +++ b/admin/rudi/views/view.awards.delete.php @@ -0,0 +1,29 @@ +<?php + global $db; + + $result = $db->Query("SELECT `name`, `class_id` FROM `rudi_awards` WHERE `award_id` = '$award_id' LIMIT 1"); + $award = $db->FetchRow($result); + $form = new BayonetForm("", "POST"); + + if(isset($_POST['proceed'])) + { + echo "Award '{$award['name']}', was deleted."; + $db->Query("DELETE FROM `rudi_awards` WHERE `award_id` = '$award_id' LIMIT 1"); + PageRedirect(2, "?op=rudi&show=awards&cid={$award['class_id']}"); + return; + } + if(isset($_POST['cancel'])) + { + echo "User cancelled deletion of award: '{$award['name']}'"; + PageRedirect(2, "?op=rudi&show=awards&cid={$award['class_id']}"); + return; + } + + OpenTable(); +?> + <th>Are you <u>SURE</u> you want to delete the award titled: '<?php echo $award['name'];?>'?<br />All users who have recieved this award will lose it off their records (not yet at least).</th> + <tr><th><button name="proceed">Yes</button> <button name="cancel">No</button></th></tr> +<?php + CloseTable(); + $form->__destruct(); +?>
\ No newline at end of file |