72 |
|
|
73 |
} elseif ($what == "insert-osoba" && check_required()) { |
} elseif ($what == "insert-osoba" && check_required()) { |
74 |
$result=pg_Exec($conn,"select id,ime,prezime from osobe where sifra='$sifra'"); |
$result=pg_Exec($conn,"select id,ime,prezime from osobe where sifra='$sifra'"); |
75 |
if (pg_numrows($result) > 0) { |
if (pg_numrows($result) > 0 && $zap_plive=="t") { |
76 |
$row=pg_fetch_array($result,0); |
$row=pg_fetch_array($result,0); |
77 |
$warn.="<p><big>Vaš podatakak nije unešen zbog duple šifre radnika!</big> |
$warn.="<p><big>Vaš podatakak nije unešen zbog duple šifre radnika!</big> |
78 |
<p>Osoba sa šifrom $sifra već postoji. Prema |
<p>Osoba sa šifrom $sifra već postoji. Prema |