00001 <?
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
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
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 }
00089 echo "</div>";
00090 }
00091 ?>
00092 <input type="button" onClick="window.close()" value="Fermer">
00093 <?
00094 html_page_stop();
00095 ?>