/[informatika.old]/html/osoba.php
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /html/osoba.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by dpavlin, Wed Jun 28 07:28:34 2000 UTC revision 1.6 by dpavlin, Wed Jun 28 11:57:55 2000 UTC
# Line 170  Line 170 
170                                    
171                                    
172                  }                  }
173                    $result=pg_Exec($conn,"insert into promjene_osobe
174                            select * from osobe where id=$id");
175                    $promjene_osobe_oid=pg_getlastoid($result);
176                  $sql="update osobe set                  $sql="update osobe set
177                          ime='$ime',prezime='$prezime',zap_plive='$zap_plive',                          ime='$ime',prezime='$prezime',zap_plive='$zap_plive',
178                          sifra='$sifra', org_jed_id=$org_jed_id,                          sifra='$sifra', org_jed_id=$org_jed_id,
# Line 187  Line 190 
190                  if ($result) {                  if ($result) {
191                          $warn.="<p>Podaci su promjenjeni...";                          $warn.="<p>Podaci su promjenjeni...";
192                          $result=pg_Exec($conn,"insert into status (osoba_id,kontakt_osoba_id,datum,status_tip_id) values ($id,$kontakt_osoba_id,'now'::datetime,2)");                          $result=pg_Exec($conn,"insert into status (osoba_id,kontakt_osoba_id,datum,status_tip_id) values ($id,$kontakt_osoba_id,'now'::datetime,2)");
193                            $status_oid=pg_getlastoid($result);
194                            $result=pg_Exec($conn,"select id from status where oid=$status_oid");
195                            $row=pg_fetch_array($result,0);
196                            $result=pg_Exec($conn,"update promjene_osobe set status_id=$row[id] where oid=$promjene_osobe_oid");
197    
198                  } else {                  } else {
199                          $warn.="<p>Greška kod mijenjanja podataka";                          $warn.="<p>Greška kod mijenjanja podataka";

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.26