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

Diff of /phpcompta/html/form.php

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

revision 1.10 by sparkyx, Tue Mar 8 13:30:50 2005 UTC revision 1.11 by sparkyx, Wed Jun 22 20:28:07 2005 UTC
# Line 21  Line 21 
21  /* $Revision$ */  /* $Revision$ */
22    
23  include_once ("ac_common.php");  include_once ("ac_common.php");
24    include_once ("user_menu.php");
25    
26  html_page_start($_SESSION['use_theme']);  html_page_start($_SESSION['use_theme']);
27    
28  if ( ! isset ( $_SESSION['g_dossier'] ) ) {  if ( ! isset ( $_SESSION['g_dossier'] ) ) {
# Line 37  $User->Check(); Line 39  $User->Check();
39  include_once("form_inc.php");  include_once("form_inc.php");
40    
41  include_once ("user_menu.php");  include_once ("user_menu.php");
42  ShowMenuCompta($_SESSION['$g_dossier']);  ShowMenuCompta($_SESSION['g_dossier']);
43  include ("check_priv.php");  include ("check_priv.php");
44    
 ShowMenuComptaRight($_SESSION['g_dossier'],$User->admin);  
   
   
45  $cn=DbConnect($_SESSION['g_dossier']);  $cn=DbConnect($_SESSION['g_dossier']);
46  if ( $User->CheckAction($cn,FORM)==0){  if ( $User->CheckAction($cn,FORM)==0){
47    /* Cannot Access */    /* Cannot Access */
48    NoAccess();    NoAccess();
49   }   }
50    echo ShowMenuAdvanced("form.php");
51    if ( isset ($_POST["record"] )) {
52      echo '<DIV class="ccontent">';
53      AddForm($cn,$HTTP_POST_VARS);
54      echo "</DIV>";
55    }
56    
57  ShowMenuComptaForm($_SESSION['g_dossier']);  ShowMenuComptaForm($_SESSION['g_dossier']);
58    
# Line 87  if ( isset ($_POST["update"]) ) { Line 92  if ( isset ($_POST["update"]) ) {
92    UpdateForm($cn,$HTTP_POST_VARS);    UpdateForm($cn,$HTTP_POST_VARS);
93    echo "</DIV>";    echo "</DIV>";
94  }  }
 if ( isset ($_POST["record"] )) {  
   echo '<DIV class="ccontent">';  
   AddForm($cn,$HTTP_POST_VARS);  
   echo "</DIV>";  
 }  
95    
96  //echo '<DIV CLASS="ccontent">';  //echo '<DIV CLASS="ccontent">';
97    

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

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