88 |
$result = pg_Exec ($conn, "select status.id as status_id,datum,opis,ime,prezime,status_tip_id as st |
$result = pg_Exec ($conn, "select status.id as status_id,datum,opis,ime,prezime,status_tip_id as st |
89 |
from status,kontakt_osobe,status_tip |
from status,kontakt_osobe,status_tip |
90 |
where kontakt_osoba_id=kontakt_osobe.id and status_tip_id=status_tip.id |
where kontakt_osoba_id=kontakt_osobe.id and status_tip_id=status_tip.id |
91 |
and osoba_id=$id order by datum"); |
and status.osoba_id=$id order by datum"); |
92 |
|
|
93 |
$statusi=""; |
$statusi=""; |
94 |
|
|
164 |
} |
} |
165 |
|
|
166 |
$statusi.="<td><select name=status_tip_id>"; |
$statusi.="<td><select name=status_tip_id>"; |
167 |
|
$min_status=5; |
168 |
|
if ($prava==$pr_admin) $min_status=3; |
169 |
|
|
170 |
$result = pg_Exec ($conn, "select id,opis |
$result = pg_Exec ($conn, "select id,opis |
171 |
from status_tip |
from status_tip |
172 |
where id >= 5 |
where id >= $min_status |
173 |
"); |
"); |
174 |
|
|
175 |
$num_prava=0; |
$num_prava=0; |