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

jrn_add.php File Reference

To add a ledger. More...

Go to the source code of this file.

Variables

 $rep = DbConnect()
 $User = new cl_user($rep)
 $cn = DbConnect($_SESSION['g_dossier'])
 exit
else $l_deb_max_line = $_POST['p_jrn_deb_max_line']
 $p_jrn_name = $_POST["p_jrn_name"]
 $p_jrn_class_deb = FormatString($_POST["p_jrn_class_deb"])
 $p_jrn_class_cred = FormatString($_POST["p_jrn_class_cred"])
 $p_code = sprintf("%s-%02d",trim($_POST['p_jrn_type']),NextJrn($cn,$_POST['p_jrn_type']))
 $p_jrn_fiche_deb = ""
 $p_jrn_fiche_cred = ""
 $l_cred_max_line = $l_deb_max_line
 $Sql
 $Res = ExecSql($cn,$Sql)
 $sessid = $_REQUEST['PHPSESSID']
 $search = '<INPUT TYPE="BUTTON" VALUE="Cherche" OnClick="SearchPoste(\''.$sessid."','not')\">"
 $Max = pg_NumRows($Res)
 $num = pg_NumRows($Res)


Detailed Description

To add a ledger.

Definition in file jrn_add.php.


Variable Documentation

$cn = DbConnect($_SESSION['g_dossier'])
 

Definition at line 48 of file jrn_add.php.

$l_cred_max_line = $l_deb_max_line
 

Definition at line 94 of file jrn_add.php.

else $l_deb_max_line = $_POST['p_jrn_deb_max_line']
 

Definition at line 74 of file jrn_add.php.

$Max = pg_NumRows($Res)
 

Definition at line 158 of file jrn_add.php.

$num = pg_NumRows($Res)
 

Definition at line 172 of file jrn_add.php.

Referenced by AddFiche(), Cezpdf::ezPRVTaddPageNumbers(), Cezpdf::ezWhatPageNumber(), GetDbId(), Cpdf::o_fontEncoding(), Creport::rf(), Cpdf::selectFont(), SetInternalCode(), and ShowMenuJrn().

$p_code = sprintf("%s-%02d",trim($_POST['p_jrn_type']),NextJrn($cn,$_POST['p_jrn_type']))
 

Definition at line 84 of file jrn_add.php.

$p_jrn_class_cred = FormatString($_POST["p_jrn_class_cred"])
 

Definition at line 82 of file jrn_add.php.

$p_jrn_class_deb = FormatString($_POST["p_jrn_class_deb"])
 

Definition at line 79 of file jrn_add.php.

$p_jrn_fiche_cred = ""
 

Definition at line 86 of file jrn_add.php.

$p_jrn_fiche_deb = ""
 

Definition at line 85 of file jrn_add.php.

$p_jrn_name = $_POST["p_jrn_name"]
 

Definition at line 77 of file jrn_add.php.

$rep = DbConnect()
 

Definition at line 35 of file jrn_add.php.

$Res = ExecSql($cn,$Sql)
 

Definition at line 104 of file jrn_add.php.

$search = '<INPUT TYPE="BUTTON" VALUE="Cherche" OnClick="SearchPoste(\''.$sessid."','not')\">"
 

Definition at line 113 of file jrn_add.php.

$sessid = $_REQUEST['PHPSESSID']
 

Definition at line 112 of file jrn_add.php.

$Sql
 

Initial value:

sprintf("insert into jrn_def(jrn_def_name,jrn_def_class_deb,jrn_def_class_cred,jrn_deb_max_line,jrn_cred_max_line,
                  jrn_def_type,jrn_def_fiche_deb,jrn_def_fiche_cred,jrn_def_code) 
                  values ('%s','%s','%s',%s,%s,'%s','%s','%s','%s')",
                 $p_jrn_name,$p_jrn_class_deb,$p_jrn_class_cred,
                 $l_deb_max_line,$l_cred_max_line,$_POST['p_jrn_type'],
                 $p_jrn_fiche_deb,$p_jrn_fiche_cred,
                 $p_code
                 )

Definition at line 95 of file jrn_add.php.

$User = new cl_user($rep)
 

Definition at line 37 of file jrn_add.php.

exit
 

Definition at line 52 of file jrn_add.php.