/[libdata]/trunk/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

Diff of /trunk/subject.phtml

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

revision 41 by dpavlin, Fri Dec 5 18:34:18 2003 UTC revision 42 by dpavlin, Thu Mar 4 22:43:50 2004 UTC
# Line 24  require_once ("header.phtml"); Line 24  require_once ("header.phtml");
24    
25  $sql = "SELECT subject, description FROM subject WHERE subject_id = "  $sql = "SELECT subject, description FROM subject WHERE subject_id = "
26          . $subject_id;          . $subject_id;
27  $rs = mysql_query($sql, $con);  $rs = xx_query($sql, $con);
28  $row = mysql_fetch_array ($rs);  $row = xx_fetch_array ($rs);
29  $subject = $row["subject"];  $subject = $row["subject"];
30  $description = $row["description"];      $description = $row["description"];    
31    
# Line 64  $sql = "SELECT Line 64  $sql = "SELECT
64          rsi.resource_id = r.resource_id          rsi.resource_id = r.resource_id
65          ORDER BY m.masterinfotype, i.infotype, r.title";          ORDER BY m.masterinfotype, i.infotype, r.title";
66    
67  $rs = mysql_query($sql, $con);  $rs = xx_query($sql, $con);
68    
69  // printf("sql was: %s<BR><BR>", $sql);  // printf("sql was: %s<BR><BR>", $sql);
70    
71  while ($row = mysql_fetch_array ($rs)) {  while ($row = xx_fetch_array ($rs)) {
72    
73          // Fetch information types for this subject          // Fetch information types for this subject
74          $masterinfotype = $row["masterinfotype"];          $masterinfotype = $row["masterinfotype"];
# Line 94  while ($row = mysql_fetch_array ($rs)) { Line 94  while ($row = mysql_fetch_array ($rs)) {
94    
95          // Link to ALEPH          // Link to ALEPH
96          if (strlen($cat_num) > 0)          if (strlen($cat_num) > 0)
97          printf("<BR><a href=\"yourlibrarycatalog.here.edu\">Check Catalog</a>", $cat_num);          printf("<BR><a href=\"libdata.knjiznice.ffzg.hr\">Check Catalog</a>", $cat_num);
98    
99          printf("<BR><a href = \"resource.phtml?subject_id=%s&resource_id=%s\">[Detail]</a><BR><BR>", $subject_id, $resource_id);          printf("<BR><a href = \"resource.phtml?subject_id=%s&resource_id=%s\">[Detail]</a><BR><BR>", $subject_id, $resource_id);
100    

Legend:
Removed from v.41  
changed lines
  Added in v.42

  ViewVC Help
Powered by ViewVC 1.1.26