73 |
# $what="insert-osoba"; |
# $what="insert-osoba"; |
74 |
|
|
75 |
} elseif ($what == "insert-osoba" && check_required()) { |
} elseif ($what == "insert-osoba" && check_required()) { |
76 |
$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' and aktivna=true"); |
77 |
if (pg_numrows($result) > 0 && $zap_plive=="t") { |
if (pg_numrows($result) > 0 && $zap_plive=="t") { |
78 |
$row=pg_fetch_array($result,0); |
$row=pg_fetch_array($result,0); |
79 |
$warn.="<p><big>Vaš podatak nije unešen zbog duple šifre radnika!</big> |
$warn.="<p><big>Vaš podatak nije unešen zbog duple šifre radnika!</big> |