2 |
|
|
3 |
include("inc/head.inc"); |
include("inc/head.inc"); |
4 |
|
|
5 |
if (! isset($id)) { $id=1; }; |
if (! isset($id)) { |
6 |
|
include("inc/obavjest-forma.inc"); |
7 |
|
} else { |
8 |
|
|
9 |
|
|
10 |
$result = pg_Exec ($conn, " |
$result = pg_Exec ($conn, " |
11 |
select osobe.id as id,ime,prezime,tel,lokacije.naziv as lok,sifra, |
select osobe.id as id,ime,prezime,tel,lokacije.naziv as lok,sifra, |
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) |
94 |
|
|
95 |
|
?> |
96 |
|
|