Main Page | Namespace List | Class Hierarchy | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

impress_bilan.php

Go to the documentation of this file.
00001 <?
00002 /*
00003  *   This file is part of PhpCompta.
00004  *
00005  *   PhpCompta is free software; you can redistribute it and/or modify
00006  *   it under the terms of the GNU General Public License as published by
00007  *   the Free Software Foundation; either version 2 of the License, or
00008  *   (at your option) any later version.
00009  *
00010  *   PhpCompta is distributed in the hope that it will be useful,
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *   GNU General Public License for more details.
00014  *
00015  *   You should have received a copy of the GNU General Public License
00016  *   along with PhpCompta; if not, write to the Free Software
00017  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018 */
00019 /* $Revision: 1.6 $ */
00020 include_once("class_widget.php");
00028 //-----------------------------------------------------
00029 // Show the jrn and date
00030 //-----------------------------------------------------
00031 include_once("postgres.php");
00032 $ret=make_array($cn,"select fr_id,fr_label
00033                  from formdef
00034                  order by fr_label");
00035 //-----------------------------------------------------
00036 // Form
00037 //-----------------------------------------------------
00038 $w=new widget("select");
00039 $w->table=1;
00040 
00041 echo '<div class="u_redcontent">';
00042 echo '<FORM ACTION="bilan.php" METHOD="POST">';
00043 echo '<TABLE>';
00044 
00045 print '<TR>';
00046 // filter on the current year
00047 $filter_year=" where p_exercice='".$User->getExercice()."'";
00048 
00049 $periode_start=make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode $filter_year order by p_id");
00050 $w->label="Depuis";
00051 print $w->IOValue('from_periode',$periode_start);
00052 $w->label=" jusqu'à ";
00053 $periode_end=make_array($cn,"select p_id,to_char(p_end,'DD-MM-YYYY') from parm_periode $filter_year order by p_id");
00054 print $w->IOValue('to_periode',$periode_end);
00055 print "</TR>";
00056 echo '</TABLE>';
00057 print $w->Submit('bt_rtf','Impression');
00058 
00059 echo '</FORM>';
00060 echo '</div>';
00061 ?>