r188: Checking in the initial files for custom bug fields
[bugdar.git] / admin / fields.php
1 <?php
2 /*=====================================================================*\
3 || ################################################################### ||
4 || # BugStrike [#]version[#]
5 || # --------------------------------------------------------------- # ||
6 || # Copyright ©2002-[#]year[#] by Iris Studios, Inc. All Rights Reserved. # ||
7 || # This file may not be reproduced in any way without permission. # ||
8 || # --------------------------------------------------------------- # ||
9 || # User License Agreement at http://www.iris-studios.com/license/ # ||
10 || ################################################################### ||
11 \*=====================================================================*/
12
13 require_once('./global.php');
14
15 if (!can_perform('canadminfields'))
16 {
17 admin_login();
18 }
19
20 // ###################################################################
21
22 if (empty($_REQUEST['do']))
23 {
24 $_REQUEST['do'] = 'modify';
25 }
26
27 // ###################################################################
28
29 if ($_REQUEST['do'] == 'kill')
30 {
31 // run code to remove item in database
32 }
33
34 // ###################################################################
35
36 if ($_REQUEST['do'] == 'delete')
37 {
38 // display delete confirmation message
39 }
40
41 // ###################################################################
42
43 if ($_POST['do'] == 'insert')
44 {
45 // run code to insert new item into database
46 }
47
48 // ###################################################################
49
50 if ($_REQUEST['do'] == 'add')
51 {
52 // display form to add new item
53 }
54
55 // ###################################################################
56
57 if ($_POST['do'] == 'update')
58 {
59 // run code to update item in database
60 }
61
62 // ###################################################################
63
64 if ($_REQUEST['do'] == 'edit')
65 {
66 // display form to edit item
67 }
68
69 // ###################################################################
70
71 if ($_REQUEST['do'] == 'modify')
72 {
73 // show default branch for this script
74 }
75
76 /*=====================================================================*\
77 || ###################################################################
78 || # $HeadURL$
79 || # $Id$
80 || ###################################################################
81 \*=====================================================================*/
82 ?>