145 |
<th>organizacijska jedinica</th> |
<th>organizacijska jedinica</th> |
146 |
<th>status zahtjeva</th> |
<th>status zahtjeva</th> |
147 |
<th>kontakt osoba</th> |
<th>kontakt osoba</th> |
148 |
|
<td><small>",pg_numrows($result),"</small></td> |
149 |
</tr> |
</tr> |
150 |
"; |
"; |
151 |
|
|
152 |
include("inc/print_bool.inc"); |
include("inc/print_bool.inc"); |
153 |
|
|
154 |
|
|
155 |
for ($k = 0; $k < pg_numrows($result); $k++) { |
for ($k = 0; $k < pg_numrows($result); $k++) { |
156 |
$row=pg_fetch_array($result,$k); |
$row=pg_fetch_array($result,$k); |
157 |
if ($k % 2 != 0) { |
if ($k % 2 != 0) { |
168 |
print "</td><td>$row[ime] $row[prezime]</td> |
print "</td><td>$row[ime] $row[prezime]</td> |
169 |
<td>$row[orgjed]</td><td>"; |
<td>$row[orgjed]</td><td>"; |
170 |
|
|
171 |
$result1 = pg_Exec ($conn, "select datum,opis from status,status_tip where status.status_tip_id=status_tip.id and osoba_id=$row[id]"); |
$result1 = pg_Exec ($conn, "select datum,opis from status,status_tip where status.status_tip_id=status_tip.id and osoba_id=$row[id] order by datum"); |
172 |
for ($l = 0; $l < pg_numrows($result1); $l++) { |
for ($l = 0; $l < pg_numrows($result1); $l++) { |
173 |
$row1=pg_fetch_array($result1,$l); |
$row1=pg_fetch_array($result1,$l); |
174 |
print "<small>$row1[datum]</small> $row1[opis]<br>"; |
print "<small>$row1[datum]</small> $row1[opis]<br>"; |