/[phpcompta]/phpcompta/include/user_action_fin.php
ViewVC logotype

Diff of /phpcompta/include/user_action_fin.php

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

revision 1.17 by stanpinte, Mon Mar 21 09:34:22 2005 UTC revision 1.18 by sparkyx, Wed May 4 21:18:20 2005 UTC
# Line 22  echo_debug(__FILE__,__LINE__,"include us Line 22  echo_debug(__FILE__,__LINE__,"include us
22  include_once("form_input.php");  include_once("form_input.php");
23  include_once("class_widget.php");  include_once("class_widget.php");
24    
 // phpinfo();  
25  $cn=DbConnect($_SESSION['g_dossier']);  $cn=DbConnect($_SESSION['g_dossier']);
26    
27  if ( ! isset ($_GET['action']) && ! isset ($_POST["action"]) ) {    if ( ! isset ($_GET['action']) && ! isset ($_POST["action"]) ) {  
# Line 32  include_once ("preference.php"); Line 31  include_once ("preference.php");
31  include_once ("user_common.php");  include_once ("user_common.php");
32    
33  $action=(isset($_GET['action']))?$_GET['action']:$_POST['action'];  $action=(isset($_GET['action']))?$_GET['action']:$_POST['action'];
34    //////////////////////////////////////////////////////////////////////
35  // action = new  // action = new
36    //////////////////////////////////////////////////////////////////////
37  if ( $action == 'new' ) {  if ( $action == 'new' ) {
38    // Check privilege    // Check privilege
39    if ( CheckJrn($_SESSION['g_dossier'],$_SESSION['g_user'],$_SESSION['g_jrn']) != 2 )    {    if ( CheckJrn($_SESSION['g_dossier'],$_SESSION['g_user'],$_SESSION['g_jrn']) != 2 )    {
# Line 134  if ( $action == 'new' ) { Line 134  if ( $action == 'new' ) {
134                    
135    
136  }  }
137    //////////////////////////////////////////////////////////////////////
138    // see jrn
139    //////////////////////////////////////////////////////////////////////
140  if ( $action == 'voir_jrn' ) {  if ( $action == 'voir_jrn' ) {
141    // Check privilege    // Check privilege
142    if ( CheckJrn($_SESSION['g_dossier'],$_SESSION['g_user'],$_SESSION['g_jrn']) < 1 )    {    if ( CheckJrn($_SESSION['g_dossier'],$_SESSION['g_user'],$_SESSION['g_jrn']) < 1 )    {
# Line 164  echo 'Période  '.$w->IOValue("p_periode" Line 167  echo 'Période  '.$w->IOValue("p_periode"
167     echo $list;     echo $list;
168     echo '</div>';     echo '</div>';
169  }  }
170    //////////////////////////////////////////////////////////////////////
171  //Search  // balance
172  if ( $action == 'search' ) {  //////////////////////////////////////////////////////////////////////
173    // Check privilege  if ( $action == 'solde' ) {
174    if ( CheckJrn($_SESSION['g_dossier'],$_SESSION['g_user'],$_SESSION['g_jrn']) < 1 )    {    require_once("poste.php");
175         NoAccess();    // find the bank account
176         exit -1;    $accountSql="select distinct pcm_val,pcm_lib from
177    }              tmp_pcmn
178                where pcm_val like '550%'";
179    // PhpSessid    $ResAccount=ExecSql($cn,$accountSql);
180    $sessid=(isset ($_POST['PHPSESSID']))?$_POST['PHPSESSID']:$_GET['PHPSESSID'];    echo '<div class="u_redcontent">';
181      echo "<table>";
182  // display a search box    for ( $i = 0; $i < pg_NumRows($ResAccount);$i++) {
183    $search_box=u_ShowMenuRecherche($cn,$_SESSION['g_jrn'],$sessid,$HTTP_POST_VARS);      $l=pg_fetch_array($ResAccount,$i);
184    echo '<DIV class="u_redcontent">';      echo "<tr>";
185    echo $search_box;      echo "<TD>".
186    // if nofirst is set then show result        $l['pcm_val'].
187    if ( isset ($_GET['nofirst'] ) )  {        "</TD>".
188      $a=ListJrn($cn,$_SESSION['g_jrn'],"",$HTTP_POST_VARS);        "<TD>".
189      echo $a;        $l['pcm_lib'].
190    }        "</TD>"."<TD>".
191            GetSolde($cn,$l['pcm_val']).
192    echo '</DIV>';        "</TD>"."</TR>";
193  }    }// for
194      echo "</table>";
195      echo "</div>";
196     }
197    //////////////////////////////////////////////////////////////////////
198  include("user_update.php");  include("user_update.php");
199    
200    

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

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