/[libdata]/branches/paul/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

Contents of /branches/paul/admin/staff_list.phtml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 67 - (show annotations)
Thu Mar 18 19:24:54 2004 UTC (20 years, 1 month ago) by dpavlin
File size: 2504 byte(s)
updated to libdata 2.00

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 // Default access settings
22 $sess_time_human = "";
23 $sess_staff_account = "";
24 $sess_staff_id = 0;
25 $sess_access_level = 0;
26 $sess_access = "";
27 $sess_last_name = "";
28 $sess_first_name = "";
29
30
31 // Page header display
32 require_once ($GLOBAL_ADMIN_HEADER);
33
34
35 // Collect access information
36 if (isset($libsession)) {
37
38 // Fetch session information
39 $sessionClass = new sessionClass("", $libsession, "", "");
40 $accessClass = new accessClass($sessionClass);
41
42 // Load user session variables
43 $sess_time_human = $sessionClass->time_human;
44 $sess_staff_account = $sessionClass->staff_account;
45 $sess_access_level = $accessClass->access_level;
46 $sess_access = $accessClass->access;
47 $sess_last_name = $accessClass->last_name;
48 $sess_first_name = $accessClass->first_name;
49 }
50
51
52 // cookie must be set
53 if(isset($libsession) && $sess_access_level >= 100) {
54
55 // Draw page heading
56 printf("<center><h3>Manage Staff List</h3>\n");
57
58 printf("<form method = \"POST\" action = \"operation.phtml\">\n");
59
60 // The buttons
61 printf("<BR>\n");
62 printf("<input type = \"Hidden\" name = \"table\" value = \"staff\">");
63 printf("<input type = \"Submit\" name = \"operation\" value = \"New\" > ");
64 printf("<input type = \"Submit\" name = \"operation\" value = \"Edit\"> ");
65 printf("<input type = \"Submit\" name = \"operation\" value = \"Delete\" >");
66 printf("<br><br>\n");
67
68
69 // Draw a radio-button pick table
70 selectStaff();
71
72 // The buttons
73 printf("<BR>\n");
74 printf("<input type = \"Hidden\" name = \"table\" value = \"staff\">");
75 printf("<input type = \"Submit\" name = \"operation\" value = \"New\" > ");
76 printf("<input type = \"Submit\" name = \"operation\" value = \"Edit\"> ");
77 printf("<input type = \"Submit\" name = \"operation\" value = \"Delete\" >");
78 printf("</form>");
79
80 // Link to return to admin console
81 adminReturn($sess_access_level);
82
83
84 } // logged in
85
86 // No access
87 else require_once ($GLOBAL_NO_ACCESS);
88
89 // Page footer
90 require_once ($GLOBAL_ADMIN_FOOTER);
91 ?>
92
93 </body>
94 </html>

  ViewVC Help
Powered by ViewVC 1.1.26