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 |
|
|