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

Diff of /branches/paul/admin/res_drill.phtml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 66 by dpavlin, Fri Dec 5 18:40:01 2003 UTC revision 67 by dpavlin, Thu Mar 18 19:24:54 2004 UTC
# Line 17  printf("<link rel=\"stylesheet\" href=\" Line 17  printf("<link rel=\"stylesheet\" href=\"
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    
# Line 48  if(isset($libsession) && $sess_access_le Line 58  if(isset($libsession) && $sess_access_le
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);
# Line 90  if(isset($libsession) && $sess_access_le Line 100  if(isset($libsession) && $sess_access_le
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"]);
# Line 144  if(isset($libsession) && $sess_access_le Line 154  if(isset($libsession) && $sess_access_le
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"]);
# Line 195  if(isset($libsession) && $sess_access_le Line 205  if(isset($libsession) && $sess_access_le
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"]);

Legend:
Removed from v.66  
changed lines
  Added in v.67

  ViewVC Help
Powered by ViewVC 1.1.26