/[libdata]/trunk/admin/staff_list.phtml
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /trunk/admin/staff_list.phtml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (hide annotations)
Fri Dec 5 18:34:18 2003 UTC (20 years, 4 months ago) by dpavlin
File size: 2322 byte(s)
Initial revision

1 dpavlin 1 <?php
2     // Load globals
3     require_once ("global_vars.php");
4    
5     // Includes
6     require_once ($GLOBAL_ADMIN_INC."sessionClass.php");
7     require_once ($GLOBAL_ADMIN_INC."accessClass.php");
8     require_once ($GLOBAL_ADMIN_INC."db_connect.php");
9     require_once ($GLOBAL_ADMIN_INC."forms.php");
10     require_once ($GLOBAL_ADMIN_INC."app_controls.php");
11    
12    
13     // HTML header
14     printf("<HTML>\n");
15     printf("<HEAD>\n");
16     printf("<title>Manage Staff</title>\n");
17     printf("<link rel=\"stylesheet\" href=\"%s\" type=\"text/css\">\n", $GLOBAL_ADMIN_CSS);
18     printf("</HEAD>\n");
19    
20    
21     // Page header display
22     require_once ($GLOBAL_ADMIN_HEADER);
23    
24    
25     // Collect access information
26     if (isset($libsession)) {
27    
28     // Fetch session information
29     $sessionClass = new sessionClass("", $libsession, "", "");
30     $accessClass = new accessClass($sessionClass);
31    
32     // Load user session variables
33     $sess_time_human = $sessionClass->time_human;
34     $sess_staff_account = $sessionClass->staff_account;
35     $sess_access_level = $accessClass->access_level;
36     $sess_access = $accessClass->access;
37     $sess_last_name = $accessClass->last_name;
38     $sess_first_name = $accessClass->first_name;
39     }
40    
41    
42     // cookie must be set
43     if(isset($libsession) && $sess_access_level >= 100) {
44    
45     // Draw page heading
46     printf("<center><h3>Manage Staff List</h3>\n");
47    
48     printf("<form method = \"POST\" action = \"operation.phtml\">\n");
49    
50     // The buttons
51     printf("<BR>\n");
52     printf("<input type = \"Hidden\" name = \"table\" value = \"staff\">");
53     printf("<input type = \"Submit\" name = \"operation\" value = \"New\" > ");
54     printf("<input type = \"Submit\" name = \"operation\" value = \"Edit\"> ");
55     printf("<input type = \"Submit\" name = \"operation\" value = \"Delete\" >");
56     printf("<br><br>\n");
57    
58    
59     // Draw a radio-button pick table
60     selectStaff($con);
61    
62     // The buttons
63     printf("<BR>\n");
64     printf("<input type = \"Hidden\" name = \"table\" value = \"staff\">");
65     printf("<input type = \"Submit\" name = \"operation\" value = \"New\" > ");
66     printf("<input type = \"Submit\" name = \"operation\" value = \"Edit\"> ");
67     printf("<input type = \"Submit\" name = \"operation\" value = \"Delete\" >");
68     printf("</form>");
69    
70     // Link to return to admin console
71     adminReturn($sess_access_level);
72    
73    
74     } // logged in
75    
76     // No access
77     else require_once ($GLOBAL_NO_ACCESS);
78    
79     // Page footer
80     require_once ($GLOBAL_ADMIN_FOOTER);
81     ?>
82    
83     </body>
84     </html>

  ViewVC Help
Powered by ViewVC 1.1.26