/[informatika.old]/html/obavijest.php
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 /html/obavijest.php

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

revision 1.2 by dpavlin, Wed Apr 26 12:21:59 2000 UTC revision 1.3 by dpavlin, Wed May 10 06:26:12 2000 UTC
# Line 67  if (pg_numrows($result) > 0) { Line 67  if (pg_numrows($result) > 0) {
67          print "<p><big>Nema podataka o korisničkom računu</big>";          print "<p><big>Nema podataka o korisničkom računu</big>";
68  }  }
69    
70    $result = pg_Exec ($conn, "select datum,opis,ime,prezime
71            from status,kontakt_osobe,status_tip
72            where kontakt_osoba_id=kontakt_osobe.id and status_tip_id=status_tip.id
73            and osoba_id=$id");
74    
75            print "
76    <h1>Podaci o statusima koriničkog računa</h1>
77    
78    <table>
79    <tr><th>datum</th><th>status</th><th>status postavio/la</th></tr>";
80    
81    $nr = pg_numrows($result);
82    if ($nr > 0) {
83            for ($i=0;$i<$nr; $i++) {
84                    $row=pg_fetch_array($result,$i);
85                    print "<tr><td><small>$row[datum]</small></td><td>$row[opis]</td><td>$row[ime] $row[prezime]</td></tr>";
86            }
87    } else {
88            print "<p><big>Nema podataka o korisničkom računu</big>";
89    }
90    
91    print "</table>";
92    
93  } // isset($id)  } // isset($id)
94    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.26