/[phpcompta]/phpcompta/html/annulation.php
ViewVC logotype

Diff of /phpcompta/html/annulation.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.33 by sparkyx, Thu Nov 3 15:02:44 2005 UTC revision 1.34 by sparkyx, Thu Nov 3 18:22:15 2005 UTC
# Line 23  include_once ("poste.php"); Line 23  include_once ("poste.php");
23  include_once("preference.php");  include_once("preference.php");
24  include_once("central_inc.php");  include_once("central_inc.php");
25  include_once("user_common.php");  include_once("user_common.php");
 include_once("form_input.php");  
26  include_once("check_priv.php");  include_once("check_priv.php");
27  include_once ("postgres.php");  include_once ("postgres.php");
28  include_once("jrn.php");  include_once("jrn.php");
29    require_once("class_widget.php");
30  /* Admin. Dossier */  /* Admin. Dossier */
 $rep=DbConnect();  
31  include_once ("class_user.php");  include_once ("class_user.php");
 $User=new cl_user($rep);  
 $User->Check();  
32    
 html_page_start($User->theme,"onLoad='window.focus();'");  
33  if ( ! isset ( $_SESSION['g_dossier'] ) ) {  if ( ! isset ( $_SESSION['g_dossier'] ) ) {
34    echo "You must choose a Dossier ";    echo "You must choose a Dossier ";
35    exit -2;    exit -2;
36  }  }
37    $cn=DbConnect($_SESSION['g_dossier']);
38    $User=new cl_user($cn);
39    $User->Check();
40    
41    html_page_start($User->theme,"onLoad='window.focus();'");
42    
43  if ( isset( $_GET['p_jrn'] )) {  if ( isset( $_GET['p_jrn'] )) {
44    $p_jrn=$_GET['p_jrn'];    $p_jrn=$_GET['p_jrn'];
# Line 52  if ( isset( $_GET['p_jrn'] )) { Line 53  if ( isset( $_GET['p_jrn'] )) {
53    }    }
54    
55    
 $cn=DbConnect($_SESSION['g_dossier']);  
56    
57  list ($l_array,$max_deb,$max_cred)=GetData($cn,$_GET['jrn_op']);  list ($l_array,$max_deb,$max_cred)=GetData($cn,$_GET['jrn_op']);
58  foreach ($l_array as $key=>$element) {  foreach ($l_array as $key=>$element) {
# Line 213  echo '<div align="center"> Opération '.$ Line 213  echo '<div align="center"> Opération '.$
213  <div>  <div>
214  <form action="'.$_SERVER['REQUEST_URI'].'" method="post" >';  <form action="'.$_SERVER['REQUEST_URI'].'" method="post" >';
215    
216  $a=InputType("Date","text", "op_date",$e_op_date,false);  $a=new widget("text");
217    // $a=InputType("Date","text", "op_date",$e_op_date,false);
218  //echo 'Date : '.$e_op_date;  //echo 'Date : '.$e_op_date;
219  echo $a;  $a->SetReadOnly(false);
220    echo $a->IOValue("op_date",$e_op_date,"Date");
221    
222  echo '<div style="border-style:solid;border-width:1pt;">';  echo '<div style="border-style:solid;border-width:1pt;">';
223  $a=InputType("Description:","text_big","comment",$e_comment,false);  //$a=InputType("Description:","text_big","comment",$e_comment,false);
224  echo $a;  $a->size=80;
225    echo $a->IOValue("comment",$e_comment,"Description");
226  echo '</DIV>';  echo '</DIV>';
227    
228  if ( isset ($e_ech) ) {  if ( isset ($e_ech) ) {

Legend:
Removed from v.1.33  
changed lines
  Added in v.1.34

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26