/* * This file is part of PhpCompta. * * PhpCompta 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. * * PhpCompta 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 PhpCompta; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Revision$ */ // Copyright Author Dany De Bontridder ddebontridder@yahoo.fr //////////////////////////////////////////////////////////////////////////////// // If print is asked // First time in html // after in pdf or cvs //////////////////////////////////////////////////////////////////////////////// if ( isset( $_POST['bt_html'] ) ) { include("jrn.php"); $p_cent=( isset ( $_POST['cent']) )?'on':'off'; // $POST=from_periode, to_periode, jrn_id, cent echo_debug(__FILE__,__LINE__," jrn sql = $sql"); $Jrn=new jrn($cn,$_POST['jrn_id']); $Jrn->GetName(); $Jrn->GetRow( $_POST['from_periode'], $_POST['to_periode'], $p_cent); foreach ($Jrn->row as $op) { $a=new operation ($cn,$op); $a->cent=$p_cent; } } //////////////////////////////////////////////////////////////////////////////// // Show the jrn and date //////////////////////////////////////////////////////////////////////////////// include_once('form_input.php'); include_once("postgres.php"); include_once("class_widget.php"); if ( $User->Admin() ==0) { $ret=make_array($cn,"select jrn_def_id,jrn_def_name from jrn_def join jrn_type on jrn_def_type=jrn_type_id join user_sec_jrn on uj_jrn_id=jrn_def_id where uj_login='$User->id' and uj_priv !='X' "); } else { $ret=make_array("select jrn_def_id,jrn_def_name from jrn_def join jrn_type on jrn_def_type=jrn_type_id"); } // include_once("check_priv.php"); // printf ('