/[libdata]/branches/paul/admin/info_structure.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/info_structure.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 56  if(isset($libsession) && $sess_access_le Line 66  if(isset($libsession) && $sess_access_le
66                  mastersubject                  mastersubject
67                  FROM mastersubject                  FROM mastersubject
68                  ORDER BY mastersubject";                  ORDER BY mastersubject";
69            $rs = mysql_tryquery($sql);
         $rs = mysql_query($sql, $con);  
70    
71          // Initialize counter          // Initialize counter
72          $rowcount = 0;          $rowcount = 0;
73    
74          // Cycle through the result set          // Cycle through the result set
75          while ( $row = mysql_fetch_array ( $rs ) ) {          while ( $row = mysql_fetch_array ($rs, MYSQL_ASSOC)) {
76                  $mastersubject_id = Trim($row["mastersubject_id"]);                  $mastersubject_id = Trim($row["mastersubject_id"]);
77                  $mastersubject = Trim($row["mastersubject"]);                            $mastersubject = Trim($row["mastersubject"]);          
78    
# Line 89  if(isset($libsession) && $sess_access_le Line 98  if(isset($libsession) && $sess_access_le
98                          . $mastersubject_id                          . $mastersubject_id
99                          . " ORDER BY m.masterinfotype, i.infotype";                          . " ORDER BY m.masterinfotype, i.infotype";
100                                                    
101                  $sub_rs = mysql_query($sub_sql, $con);                  $sub_rs = mysql_tryquery($sub_sql);
102                  $sub_rowcount = 0;                  $sub_rowcount = 0;
103    
104                  // Cycle through the result set                  // Cycle through the result set
105                  while ( $sub_row = mysql_fetch_array ( $sub_rs ) ) {                  while ( $sub_row = mysql_fetch_array ($sub_rs, MYSQL_ASSOC)) {
106                          $masterinfotype = Trim($sub_row["masterinfotype"]);                          $masterinfotype = Trim($sub_row["masterinfotype"]);
107                          $infotype = Trim($sub_row["infotype"]);                          $infotype = Trim($sub_row["infotype"]);
108                                    

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

  ViewVC Help
Powered by ViewVC 1.1.26