17 |
printf("</HEAD>\n"); |
printf("</HEAD>\n"); |
18 |
|
|
19 |
|
|
20 |
|
// Default access settings |
21 |
|
$sess_time_human = ""; |
22 |
|
$sess_staff_account = ""; |
23 |
|
$sess_staff_id = 0; |
24 |
|
$sess_access_level = 0; |
25 |
|
$sess_access = ""; |
26 |
|
$sess_last_name = ""; |
27 |
|
$sess_first_name = ""; |
28 |
|
|
29 |
|
|
30 |
// Page header |
// Page header |
31 |
require_once ($GLOBAL_ADMIN_HEADER); |
require_once ($GLOBAL_ADMIN_HEADER); |
32 |
|
|
58 |
$resource_id = (int) $resource_id; |
$resource_id = (int) $resource_id; |
59 |
|
|
60 |
// Check to see if resource exists |
// Check to see if resource exists |
61 |
$exists = existsRow($con, "resource", "resource_id", $resource_id); |
$exists = existsRow("resource", "resource_id", $resource_id); |
62 |
|
|
63 |
// If resource exists |
// If resource exists |
64 |
if ($exists > 0) { |
if ($exists > 0) { |
65 |
|
|
66 |
// Fetch the resource title |
// Fetch the resource title |
67 |
$title = lookupField($con, "resource", "resource_id", $resource_id, "title"); |
$title = lookupField("resource", "resource_id", $resource_id, "title"); |
68 |
|
|
69 |
printf("<center>\n"); |
printf("<center>\n"); |
70 |
printf("<h3>Resource Title '%s' (#%d) used on the following:</h3>", $title, $resource_id); |
printf("<h3>Resource Title '%s' (#%d) used on the following:</h3>", $title, $resource_id); |
100 |
// Initialize counter |
// Initialize counter |
101 |
$rowcount = 0; |
$rowcount = 0; |
102 |
|
|
103 |
$rs = mysql_query($sql, $con); |
$rs = mysql_tryquery($sql); |
104 |
|
|
105 |
// Cycle through the result set |
// Cycle through the result set |
106 |
while ( $row = mysql_fetch_array ( $rs ) ) { |
while ( $row = mysql_fetch_array ($rs, MYSQL_ASSOC)) { |
107 |
$subject = Trim($row["subject"]); |
$subject = Trim($row["subject"]); |
108 |
$subject_id = Trim($row["subject_id"]); |
$subject_id = Trim($row["subject_id"]); |
109 |
$infotype = Trim($row["infotype"]); |
$infotype = Trim($row["infotype"]); |
154 |
// Initialize counter |
// Initialize counter |
155 |
$rowcount = 0; |
$rowcount = 0; |
156 |
|
|
157 |
$rs = mysql_query($sql, $con); |
$rs = mysql_tryquery($sql); |
158 |
|
|
159 |
// Cycle through the result set |
// Cycle through the result set |
160 |
while ( $row = mysql_fetch_array ( $rs ) ) { |
while ( $row = mysql_fetch_array ($rs, MYSQL_ASSOC)) { |
161 |
|
|
162 |
$page_id = Trim($row["page_id"]); |
$page_id = Trim($row["page_id"]); |
163 |
$course_concat = Trim($row["course_concat"]); |
$course_concat = Trim($row["course_concat"]); |
205 |
// Initialize counter |
// Initialize counter |
206 |
$rowcount = 0; |
$rowcount = 0; |
207 |
|
|
208 |
$rs = mysql_query($sql, $con); |
$rs = mysql_tryquery($sql); |
209 |
|
|
210 |
// Cycle through the result set |
// Cycle through the result set |
211 |
while ( $row = mysql_fetch_array ( $rs ) ) { |
while ( $row = mysql_fetch_array ($rs, MYSQL_ASSOC)) { |
212 |
|
|
213 |
$page_id = Trim($row["page_id"]); |
$page_id = Trim($row["page_id"]); |
214 |
$page_title = Trim($row["page_title"]); |
$page_title = Trim($row["page_title"]); |