/[libdata]/trunk/admin/select_subject.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/select_subject.phtml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 73 - (hide annotations)
Thu Mar 18 21:27:37 2004 UTC (20 years, 1 month ago) by dpavlin
File size: 2233 byte(s)
sync trunk to HEAD of pear-db (without changes specific to PEAR which will be dropped)

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 dpavlin 73 require_once ("db_connect.php");
9 dpavlin 1 require_once ($GLOBAL_ADMIN_INC."app_controls.php");
10    
11    
12     // HTML header
13     printf("<HTML>\n");
14     printf("<HEAD>\n");
15     printf("<title>Select a Subject</title>\n");
16     printf("<link rel=\"stylesheet\" href=\"%s\" type=\"text/css\">\n", $GLOBAL_ADMIN_CSS);
17     printf("</HEAD>\n");
18    
19    
20     // Page header
21     require_once ($GLOBAL_ADMIN_HEADER);
22    
23    
24     // Collect access information
25     if (isset($libsession)) {
26    
27     // Fetch session information
28     $sessionClass = new sessionClass("", $libsession, "", "");
29     $accessClass = new accessClass($sessionClass);
30    
31     // Load user session variables
32     $sess_time_human = $sessionClass->time_human;
33     $sess_staff_account = $sessionClass->staff_account;
34     $sess_staff_id = $accessClass->staff_id;
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    
43     // If the cookie is set and access level is appropriate
44     if(isset($libsession) && $sess_access_level >= 20) {
45    
46     // Outer table
47     printf("<center>\n");
48     printf("<table width=\"40%%\" border=\"1\" class=\"backLight\">\n");
49     printf("<form method = \"POST\" action = \"subject_builder.phtml\" >\n");
50    
51     // Box header
52     printf("<tr><td class=\"cellPlain\">\n");
53     printf("Subject Builder: Select a Subject");
54     printf("</td></tr>\n");
55    
56     // Drop down box for subject
57     printf("<tr><td><br>\n");
58     printf("<b>Subject:</b> ");
59     printf("<select name = \"subject_id\" >\n");
60     //dropDownFieldOmit($con, "subject", "subject", "subject_id", "WHERE SUBJECT_ID > 1");
61     dropDownAuthSubjects($con, $sess_access_level, $sess_staff_id);
62     printf("</select>\n");
63    
64     // The buttons
65     printf("<br><br><center>\n");
66     printf("<input type = \"Submit\" value = \"Continue\" > ");
67     printf("</form></center>\n");
68    
69     // Close table
70     printf("</td></tr></table>\n");
71    
72     // Link to return to admin console
73     adminReturn($sess_access_level);
74    
75     } // logged in user
76    
77     // No access page
78     else require_once ($GLOBAL_NO_ACCESS);
79    
80     // Page footer
81     require_once ($GLOBAL_ADMIN_FOOTER);
82     ?>
83    
84     </body>
85     </html>

  ViewVC Help
Powered by ViewVC 1.1.26