/[libdata]/branches/paul/admin/scribe_start.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 /branches/paul/admin/scribe_start.phtml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 67 - (hide annotations)
Thu Mar 18 19:24:54 2004 UTC (20 years, 2 months ago) by dpavlin
File size: 5807 byte(s)
updated to libdata 2.00

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."app_controls.php");
10    
11 dpavlin 67
12     // Default access settings
13     $sess_time_human = "";
14     $sess_staff_account = "";
15     $sess_staff_id = 0;
16     $sess_access_level = 0;
17     $sess_access = "";
18     $sess_last_name = "";
19     $sess_first_name = "";
20    
21    
22 dpavlin 1 // Collect access information
23     if (isset($libsession)) {
24    
25     // Fetch session information
26     $sessionClass = new sessionClass("", $libsession, "", "");
27     $accessClass = new accessClass($sessionClass);
28    
29     // Load user session variables
30     $sess_time_human = $sessionClass->time_human;
31     $sess_staff_account = $sessionClass->staff_account;
32     $sess_access_level = $accessClass->access_level;
33     $sess_staff_id = $accessClass->staff_id;
34     $sess_access = $accessClass->access;
35     $sess_last_name = $accessClass->last_name;
36     $sess_first_name = $accessClass->first_name;
37     }
38    
39     // Page header
40     require_once ($GLOBAL_ADMIN_INC."scribe_header.phtml");
41    
42     // If the cookie is set and access level is appropriate
43     if(isset($libsession) && $sess_access_level >= 20) {
44    
45     ?>
46    
47    
48     <center>
49    
50    
51    
52     <BR><BR>
53    
54     <table border="1" width="80%" class="backLight"><tr><td>
55     <table width="100%" border = "0" cellpadding="4">
56    
57     <tr>
58     <td colspan="2" class="cellPlain">
59     Design a New CourseLib or PageScribe Page
60     </td>
61     </tr>
62    
63     <tr>
64     <td colspan="2">
65     <form method = "POST" action = "scribe.phtml">
66     <b>New Course/Page Name:</b> <input type = "text" size="50" name = "page_title"><br><br>
67    
68     </td>
69     </tr>
70    
71     <tr>
72     <td width="30%" valign="top">
73     <b>Page Type:</b><br>
74    
75     <?php
76    
77     // Pre-check the appropriate radio button
78     if ($pagetype_id == 3) $checked_courselib = "CHECKED";
79     else $checked_pagescribe = "CHECKED";
80    
81     printf("<input type = \"radio\" value = \"3\" name = \"pagetype_id\" %s>CourseLib page<br>\n", $checked_courselib);
82     printf("<input type = \"radio\" value = \"2\" name = \"pagetype_id\" %s >PageScribe page", $checked_pagescribe);
83     ?>
84     <br><br>
85     </td>
86    
87     <td width="70%" valign="top">
88     <b>Note:</b> CourseLib pages should be associated with an academic course designator,
89     and other course-related fields, so they may be properly mapped. If you intend to
90     make a more general page, please select PageScribe.
91     </td>
92    
93    
94     </tr>
95    
96     <tr>
97     <td colspan = "2" align="center">
98     <input type="hidden" name="style_id" value="2">
99     <input type = "hidden" name = "page_id" value = "0">
100     <input type = "Submit" value = "Submit">
101     </td></form>
102     </tr>
103    
104     </table>
105     </td></tr></table>
106     <br><br>
107     <table width="80%" border="1" class="backLight"><tr><td>
108     <table width="100%" border = "0" cellpadding="4">
109     <tr>
110     <td colspan="2" class="cellPlain">
111     Load a Saved Page
112     </td>
113     </tr>
114    
115     <tr>
116     <td align="right" width="20%">
117    
118     <b>PageScribe pages authorized to edit:</b>
119     </td>
120     <td align="left" width="80%">
121     <form method = "POST" action = "scribe.phtml">
122     <select name = "page_id">
123     <?php
124 dpavlin 67 dropDownAuthPages($sess_access_level, $sess_staff_id);
125 dpavlin 1 ?>
126     </select>
127     <input type = "submit" value = "Load">
128    
129     </td></form>
130     </tr>
131    
132     <tr>
133     <td align="right" width="20%">
134    
135     <b>CourseLib pages authorized to edit:</b>
136     </td>
137     <td align="left" width="80%">
138     <form method = "POST" action = "scribe.phtml">
139     <select name = "page_id">
140     <?php
141 dpavlin 67 dropDownAuthCourses($sess_access_level, $sess_staff_id);
142 dpavlin 1 ?>
143     </select>
144     <input type = "submit" value = "Load">
145    
146     </td></form>
147     </tr>
148    
149    
150     <tr>
151     <td colspan = "2">
152     &nbsp;
153     </td>
154     </tr>
155    
156    
157     <tr>
158     <td width="50%" align="center">
159     <form method="POST" action="page_search.phtml">
160     <input type="Submit" value="Search PageScribe Pages">
161     </form>
162     </td>
163     <td width="50%" align="center">
164     <form method="POST" action="scribe_stats.phtml">
165     <input type="Submit" value="PageScribe Statistics">
166     </form>
167     </td>
168     </tr>
169    
170     </table>
171     </td></tr></table>
172    
173     <br><br>
174     <table width="80%" border="1" class="backLight"><tr><td>
175     <table width="100%" border = "0" cellpadding="4">
176     <tr>
177     <td colspan="2" class="cellPlain">
178     Clone an Existing Page as a New Template
179     </td>
180     </tr>
181    
182     <tr>
183    
184     <td align="right" width="20%">
185    
186     <b>PageScribe pages:</b>
187     </td>
188    
189     <td align="left" width="80%">
190     <form method = "POST" action = "scribe_transaction.phtml">
191     <select name = "page_id">
192     <?php
193 dpavlin 67 dropDownFieldOmit("page", "page_title", "page_id", " WHERE pagetype_id = 2");
194 dpavlin 1 printf("</select>");
195     printf("<input type=\"hidden\" name =\"transaction\" value = \"pageTemplateConfirm\">\n");
196     printf("<input type=\"hidden\" name =\"sess_staff_account\" value = \"%d\">\n", $sess_staff_account);
197     printf("<input type=\"hidden\" name =\"sess_staff_id\" value = \"%d\">\n", $sess_staff_id);
198     ?>
199     <input type = "submit" value = "Clone & Load">
200    
201     </td></form>
202     </tr>
203    
204     <tr>
205    
206     <td align="right" width="20%">
207    
208     <b>CourseLib pages:</b>
209     </td>
210     <td align="left" width="80%">
211     <form method ="POST" action="scribe_transaction.phtml">
212     <select name = "page_id">
213     <?php
214 dpavlin 67 dropDownCourses();
215 dpavlin 1 printf("</select>\n");
216     printf("<input type=\"hidden\" name =\"transaction\" value = \"pageTemplateConfirm\">\n");
217     printf("<input type=\"hidden\" name =\"sess_staff_account\" value = \"%d\">\n", $sess_staff_account);
218     printf("<input type=\"hidden\" name =\"sess_staff_id\" value = \"%d\">\n", $sess_staff_id);
219     ?>
220    
221     <input type = "submit" value = "Clone & Load">
222    
223     </td></form>
224     </tr>
225    
226     </table>
227     </td></tr></table>
228    
229    
230     <br>
231     </center>
232    
233     <?php
234     // Link to return to admin console
235     adminReturn($sess_access_level);
236    
237    
238     } // logged in user
239    
240     // No access
241     else require_once ($GLOBAL_NO_ACCESS);
242    
243    
244     // Page footer
245     require_once ($GLOBAL_ADMIN_FOOTER);
246     ?>
247    
248    
249     </center>
250     </body>
251     </html>

  ViewVC Help
Powered by ViewVC 1.1.26