/[phpcompta]/phpcompta/html/modify_op.php
ViewVC logotype

Diff of /phpcompta/html/modify_op.php

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

revision 1.11 by sparkyx, Thu Mar 31 21:08:03 2005 UTC revision 1.12 by sparkyx, Thu Mar 31 21:16:35 2005 UTC
# Line 110  if ( isset($_POST['update_record']) ) { Line 110  if ( isset($_POST['update_record']) ) {
110      Commit($cn);      Commit($cn);
111    }    }
112    if ( isset ($_POST['is_paid'] ))    if ( isset ($_POST['is_paid'] ))
113        StartSql($cn);
114         $Res=ExecSql($cn,"update jrn set jr_rapt='paid' where jr_id=".$_POST['jr_id']);         $Res=ExecSql($cn,"update jrn set jr_rapt='paid' where jr_id=".$_POST['jr_id']);
115      if ( isset ($_POST['to_remove'] )) {
116            // Remove old document
117            $ret=ExecSql($cn,"select jr_pj from jrn where jr_id=".$_POST['jr_id']);
118            if (pg_num_rows($ret) != 0) {
119              $r=pg_fetch_array($ret,0);
120              $old_oid=$r['jr_pj'];
121              if (strlen($old_oid) != 0)
122                pg_lo_unlink($cn,$old_oid);
123              ExecSql($cn,"update jrn set jr_pj=null, jr_pj_name=null, ".
124                    "jr_pj_type=null  where jr_id=".$_POST['jr_id']);
125              Commit($cn);
126            }
127    
128      }
129    echo ' <script>    echo ' <script>
130   window.close();   window.close();
131   self.opener.RefreshMe();   self.opener.RefreshMe();

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26