* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * $Id$ * $Source$ * *******************************************************************************/ require("./pre.inc.php3"); llxHeader(); $db = new Db(); $bc[0]="bgcolor=\"#90c090\""; $bc[1]="bgcolor=\"#b0e0b0\""; if ($action == 'class') { $author = $GLOBALS["REMOTE_USER"]; $sql = "INSERT INTO llx_bank_class (lineid, fk_categ) VALUES ($rowid, $cat1)"; $result = $db->query($sql); } if ($action == 'update') { $author = $GLOBALS["REMOTE_USER"]; $sql = "update llx_bank set label='$label' where rowid = $rowid;"; $result = $db->query($sql); } if ($action == 'type') { $author = $GLOBALS["REMOTE_USER"]; $sql = "update llx_bank set fk_type='$value' where rowid = $rowid;"; $result = $db->query($sql); } $sql = "SELECT rowid, label FROM llx_bank_categ;"; $result = $db->query($sql); if ($result) { $var=True; $num = $db->num_rows(); $i = 0; $options = ""; while ($i < $num) { $obj = $db->fetch_object($i); $options .= "\n"; $i++; } $db->free(); } print "Edition de la ligne"; print ""; print ""; print ""; print ""; print ""; print ""; print ""; print "\n"; $sql = "SELECT b.rowid,".$db->pdate("b.dateo")." as do, b.amount, b.label, b.rappro, b.num_releve, b.author, b.num_chq, b.fk_type"; $sql .= " FROM llx_bank as b WHERE rowid=$rowid"; $sql .= " ORDER BY dateo ASC"; $result = $db->query($sql); if ($result) { $var=True; $num = $db->num_rows(); $i = 0; $total = 0; while ($i < $num) { $objp = $db->fetch_object( $i); $total = $total + $objp->amount; $var=!$var; print ""; print ""; print ""; print "rowid\">"; print "\n"; print ""; if ($objp->amount < 0) { print "\n"; } else { print "\n"; } print ""; print ""; print ""; print ""; print ""; print ""; print "rowid\">"; print ""; print ""; print ""; print ""; print "rowid\">"; print ''; print ""; print ""; print ""; $i++; } $db->free(); } print "
DateDescriptionDebitCreditReleveAuteur
".strftime("%d %b %Y",$objp->do)."$objp->label".price($objp->amount * -1)."  ".price($objp->amount)."num_releve&ve=1\">$objp->num_releve$objp->author
 "; print $objp->fk_type .' - '; print $objp->num_chq; print "
 "; print " "; print "
 "; print ''; print "
 "; print '
"; print "

Classé dans

"; print ""; print ""; print ""; print "\n"; $sql = "SELECT c.label, c.rowid"; $sql .= " FROM llx_bank_class as a, llx_bank_categ as c WHERE a.lineid=$rowid AND a.fk_categ = c.rowid "; $sql .= " ORDER BY c.label"; $result = $db->query($sql); if ($result) { $var=True; $num = $db->num_rows(); $i = 0; $total = 0; while ($i < $num) { $objp = $db->fetch_object( $i); $var=!$var; print ""; print ""; print ""; print ""; $i++; } $db->free(); } print "
Description
$objp->labelrowid\">voir
"; $db->close(); llxFooter("Dernière modification $Date$ révision $Revision$"); ?>