';
}
+ $k++;
print "";
- if ($row[kontakt_osoba_id]==$kontakt_osoba_id) {
+ if ($row[kontakt_osoba_id]==$kontakt_osoba_id || isset($prava) && $prava==$pr_admin) {
print "$row[id]";
} else {
print "$row[id]";
@@ -162,27 +164,30 @@
print " | $row[ime] $row[prezime] |
$row[orgjed] | ";
- $result1 = pg_Exec ($conn, "select datum,opis from status,status_tip where status.status_tip_id=status_tip.id and osoba_id=$row[id]");
- for ($l = 0; $l < pg_numrows($result1); $l++) {
- $row1=pg_fetch_array($result1,$l);
+ $sth1 = $dbh->prepare("select datum,opis from status,status_tip where status.status_tip_id=status_tip.id and osoba_id=$row[id] order by datum");
+ $sth1->execute();
+ while ($row1=$sth1->fetchrow_hash()) {
print "$row1[datum] $row1[opis] ";
}
print " | $row[kontakt_osoba]";
if (isset($shell)) {
- print " shell: ";
- print_bool($row[shell]);
+ print " shell: ".print_bool($row[shell]);
}
if (isset($podesavanje)) {
- print " podešavanje: ";
- print_bool($row[podesavanje]);
+ print " podešavanje: ".print_bool($row[podesavanje]);
}
if (isset($umrezavanje)) {
- print " umrežavanje: ";
- print_bool($row[umrezavanje]);
+ print " umrežavanje: ".print_bool($row[umrezavanje]);
}
- print " |
";
+ print "";
+ print "