1 |
<? |
<? |
2 |
|
|
3 |
include("inc/head.inc"); |
include("inc/head.inc"); |
4 |
|
include("inc/prava.inc"); |
5 |
|
|
6 |
if (! isset($from)) { |
if (! isset($from)) { |
7 |
$from=0; |
$from=0; |
24 |
<input type=submit value="Posebno označi moje zahtjeve"> |
<input type=submit value="Posebno označi moje zahtjeve"> |
25 |
</form>'; |
</form>'; |
26 |
} else { |
} else { |
27 |
$result = pg_Exec ($conn, "select ime,prezime,passwd from kontakt_osobe where aktivna=true and id=$kontakt_osoba_id"); |
$result = pg_Exec ($conn, "select ime,prezime,passwd,prava from kontakt_osobe where aktivna=true and id=$kontakt_osoba_id"); |
28 |
$row=pg_fetch_array($result,0); |
$row=pg_fetch_array($result,0); |
29 |
print "<small>Trenutno ste prijavljeni kao $row[ime] $row[prezime], ako je to krivo odaberite <a href=\"$PHP_SELF?what=relogin\">ovaj link</a>.</small>"; |
print "<small>Trenutno ste prijavljeni kao $row[ime] $row[prezime], ako je to krivo odaberite <a href=\"$PHP_SELF?what=relogin\">ovaj link</a>.</small>"; |
30 |
|
$prava=$row[prava]; |
31 |
} |
} |
32 |
|
|
33 |
function option($value,$text,$current) { |
function option($value,$text,$current) { |
154 |
print '<tr bgcolor="#f0f0f0">'; |
print '<tr bgcolor="#f0f0f0">'; |
155 |
} |
} |
156 |
print "<td>"; |
print "<td>"; |
157 |
if ($row[kontakt_osoba_id]==$kontakt_osoba_id) { |
if ($row[kontakt_osoba_id]==$kontakt_osoba_id || isset($prava) && $prava==$pr_admin) { |
158 |
print "<a href=\"osoba.php?what=select-osoba&id=$row[id]\">$row[id]</a>"; |
print "<a href=\"osoba.php?what=select-osoba&id=$row[id]\">$row[id]</a>"; |
159 |
} else { |
} else { |
160 |
print "$row[id]"; |
print "$row[id]"; |