2 |
|
|
3 |
include("inc/head.inc"); |
include("inc/head.inc"); |
4 |
include("inc/prava.inc"); |
include("inc/prava.inc"); |
5 |
|
include("inc/checkbox.inc"); |
6 |
|
|
7 |
if (! isset($from)) { |
if (! isset($from)) { |
8 |
$from=0; |
$from=0; |
9 |
|
$podesavanje="on"; $umrezavanje="on"; |
10 |
} |
} |
11 |
|
|
12 |
if (! isset($kontakt_osoba_id) || ! intval($kontakt_osoba_id)!=0) { |
if (! isset($kontakt_osoba_id) || ! intval($kontakt_osoba_id)!=0) { |
40 |
echo ">$text</option>"; |
echo ">$text</option>"; |
41 |
} |
} |
42 |
|
|
|
function checkbox($name,$current) { |
|
|
echo "<input type=\"checkbox\" name=\"$name\""; |
|
|
if (isset($current)) { |
|
|
echo " checked"; |
|
|
} |
|
|
echo ">"; |
|
|
} |
|
43 |
|
|
44 |
if (! isset($sql_upit)) { $sql_upit="novi_na_vrh"; } |
if (! isset($sql_upit)) { $sql_upit="novi_na_vrh"; } |
45 |
|
|
140 |
<th>organizacijska jedinica</th> |
<th>organizacijska jedinica</th> |
141 |
<th>status zahtjeva</th> |
<th>status zahtjeva</th> |
142 |
<th>kontakt osoba</th> |
<th>kontakt osoba</th> |
143 |
|
<td><small>",pg_numrows($result),"</small></td> |
144 |
</tr> |
</tr> |
145 |
"; |
"; |
146 |
|
|
147 |
include("inc/print_bool.inc"); |
include("inc/print_bool2.inc"); |
148 |
|
|
149 |
|
|
150 |
for ($k = 0; $k < pg_numrows($result); $k++) { |
for ($k = 0; $k < pg_numrows($result); $k++) { |
151 |
$row=pg_fetch_array($result,$k); |
$row=pg_fetch_array($result,$k); |
163 |
print "</td><td>$row[ime] $row[prezime]</td> |
print "</td><td>$row[ime] $row[prezime]</td> |
164 |
<td>$row[orgjed]</td><td>"; |
<td>$row[orgjed]</td><td>"; |
165 |
|
|
166 |
$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"); |
167 |
for ($l = 0; $l < pg_numrows($result1); $l++) { |
for ($l = 0; $l < pg_numrows($result1); $l++) { |
168 |
$row1=pg_fetch_array($result1,$l); |
$row1=pg_fetch_array($result1,$l); |
169 |
print "<small>$row1[datum]</small> $row1[opis]<br>"; |
print "<small>$row1[datum]</small> $row1[opis]<br>"; |