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

jrn_op_detail.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 // Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
00020 /* $Revision: 1.16 $ */
00025 include_once ("ac_common.php");
00026 include_once ("poste.php");
00027 include_once ("user_common.php");
00028 html_page_start($_SESSION['g_theme']);
00029 if ( ! isset ( $_SESSION['g_dossier'] ) ) {
00030   echo "You must choose a Dossier ";
00031   exit -2;
00032 }
00033 include_once ("postgres.php");
00034 include_once("jrn.php");
00035 /* Admin. Dossier */
00036 $rep=DbConnect();
00037 include_once ("class_user.php");
00038 $User=new cl_user($rep);
00039 $User->Check();
00040 
00041 if ( isset( $_GET['$p_jrn'] )) {
00042   $p_jrn=$_GE['p_jrn'];
00043   $_SESSION[ "p_jrn"]=$p_jrn;
00044 
00045 }
00046 $cn=DbConnect($_SESSION['g_dossier']);
00047 $jrn_op=$_GET['jrn_op'];
00048 list ($l_array,$max_deb,$max_cred)=GetData($cn,$jrn_op);
00049 foreach ($l_array as $key=>$element) {
00050   ${"e_$key"}=$element;
00051   echo_debug('jrn_op_detail.php',__LINE__,"jrn_op_detail.php e_$key =$element");
00052 }
00053 
00054 echo '<div align="center"> Opération </div>';
00055 
00056 echo 'Date : '.$e_op_date;
00057 echo '<div style="border-style:solid;border-width:1pt;">';
00058 echo $e_comment;
00059 echo '</DIV>';
00060 
00061 if ( isset ($e_ech) ) {
00062   echo "<DIV> Echeance $e_ech </DIV>";
00063 }
00064 echo '<div style="background-color:#BFC2D5;">';
00065 
00066 for ( $i = 0; $i < $max_deb;$i++) {
00067   $lib=GetPosteLibelle($_SESSION['g_dossier'],${"e_class_deb$i"}); 
00068   echo ${"e_class_deb$i"}." $lib    "."<B>".${"e_mont_deb$i"}."</B>.<br>";
00069 
00070 }
00071   echo "</div>";
00072   echo '<div style="background-color:#E8F4FF;margin-left:50px;">';
00073 for ( $i = 0; $i < $max_cred;$i++) {
00074   $lib=GetPosteLibelle($_SESSION['g_dossier'],${"e_class_cred$i"});
00075 
00076   echo ${"e_class_cred$i"}."  $lib   "."<B>".${"e_mont_cred$i"}."</B><br>";
00077 }
00078   echo '</div>';
00079 
00080 $a=GetConcerned($cn,$e_jr_id);
00081 
00082 if ( $a != null ) {
00083     echo "operation concernée <br>";
00084     echo '<div style="margin-left:30px;">';
00085   foreach ($a as $key => $element) {
00086 
00087     echo "<A class=\"detail\" HREF=\"jrn_op_detail.php?jrn_op=".GetGrpt($cn,$element)."\"> ".GetInternal($cn,$element)."</A>";
00088   }//for
00089   echo "</div>";
00090 }// if ( $a != null ) {
00091 ?>
00092 <input type="button" onClick="window.close()" value="Fermer">
00093 <?
00094 html_page_stop();
00095 ?>