altocompta/doc/developper/html/jrn__add_8php.html

524 lines
20 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>phpcompta: /home/dany/developpement/phpcompta-dev/phpcompta/html/jrn_add.php File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.4 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a></div>
<div class="nav">
<a class="el" href="dir_000000.html">developpement</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_000001.html">phpcompta-dev</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_000002.html">phpcompta</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_000003.html">html</a></div>
<h1>jrn_add.php File Reference</h1>To add a ledger. <a href="#_details">More...</a>
<p>
<p>
<a href="jrn__add_8php-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Variables</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="jrn__add_8php.html#a0">$rep</a> = DbConnect()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="jrn__add_8php.html#a1">$User</a> = new <a class="el" href="classcl__user.html">cl_user</a>($rep)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="jrn__add_8php.html#a2">$cn</a> = DbConnect($_SESSION['g_dossier'])</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="jrn__add_8php.html#a3">exit</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="user__sec_8php.html#a13">else</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="jrn__add_8php.html#a4">$l_deb_max_line</a> = $_POST['p_jrn_deb_max_line']</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="user__sec_8php.html#a13">else</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="jrn__add_8php.html#a5">$l_cred_max_line</a> = $_POST['p_jrn_cred_max_line']</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="jrn__add_8php.html#a6">$p_jrn_name</a> = $_POST[&quot;p_jrn_name&quot;]</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="jrn__add_8php.html#a7">$p_jrn_class_deb</a> = FormatString($_POST[&quot;p_jrn_class_deb&quot;])</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="jrn__add_8php.html#a8">$p_jrn_class_cred</a> = FormatString($_POST[&quot;p_jrn_class_cred&quot;])</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="jrn__add_8php.html#a9">$p_code</a> = sprintf(&quot;%s-%02d&quot;,trim($_POST['p_jrn_type']),NextJrn($cn,$_POST['p_jrn_type']))</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="jrn__add_8php.html#a10">$p_jrn_fiche_deb</a> = &quot;&quot;</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="jrn__add_8php.html#a11">$p_jrn_fiche_cred</a> = &quot;&quot;</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="jrn__add_8php.html#a12">$Sql</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="jrn__add_8php.html#a13">$Res</a> = ExecSql($cn,$Sql)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="jrn__add_8php.html#a14">$sessid</a> = $_REQUEST['PHPSESSID']</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="jrn__add_8php.html#a15">$search</a> = '&lt;INPUT TYPE=&quot;BUTTON&quot; VALUE=&quot;Cherche&quot; OnClick=&quot;SearchPoste(\''.$sessid.&quot;','not')\&quot;&gt;&quot;</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="jrn__add_8php.html#a16">$Max</a> = pg_NumRows($Res)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="jrn__add_8php.html#a17">$num</a> = pg_NumRows($Res)</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
To add a ledger.
<p>
<p>
Definition in file <a class="el" href="jrn__add_8php-source.html">jrn_add.php</a>.<hr><h2>Variable Documentation</h2>
<a class="anchor" name="a2"></a><!-- doxytag: member="jrn_add.php::$cn" ref="a2" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">$cn = DbConnect($_SESSION['g_dossier']) </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="jrn__add_8php-source.html#l00048">48</a> of file <a class="el" href="jrn__add_8php-source.html">jrn_add.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a5"></a><!-- doxytag: member="jrn_add.php::$l_cred_max_line" ref="a5" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="user__sec_8php.html#a13">else</a> $l_cred_max_line = $_POST['p_jrn_cred_max_line'] </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="jrn__add_8php-source.html#l00080">80</a> of file <a class="el" href="jrn__add_8php-source.html">jrn_add.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a4"></a><!-- doxytag: member="jrn_add.php::$l_deb_max_line" ref="a4" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="user__sec_8php.html#a13">else</a> $l_deb_max_line = $_POST['p_jrn_deb_max_line'] </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="jrn__add_8php-source.html#l00074">74</a> of file <a class="el" href="jrn__add_8php-source.html">jrn_add.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a16"></a><!-- doxytag: member="jrn_add.php::$Max" ref="a16" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">$Max = pg_NumRows($Res) </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="jrn__add_8php-source.html#l00167">167</a> of file <a class="el" href="jrn__add_8php-source.html">jrn_add.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a17"></a><!-- doxytag: member="jrn_add.php::$num" ref="a17" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">$num = pg_NumRows($Res) </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="jrn__add_8php-source.html#l00181">181</a> of file <a class="el" href="jrn__add_8php-source.html">jrn_add.php</a>.
<p>
Referenced by <a class="el" href="fiche__inc_8php-source.html#l00038">AddFiche()</a>, <a class="el" href="class_8ezpdf_8php-source.html#l00377">Cezpdf::ezPRVTaddPageNumbers()</a>, <a class="el" href="class_8ezpdf_8php-source.html#l00299">Cezpdf::ezWhatPageNumber()</a>, <a class="el" href="postgres_8php-source.html#l00201">GetDbId()</a>, <a class="el" href="class_8pdf_8php-source.html#l00610">Cpdf::o_fontEncoding()</a>, <a class="el" href="readme_8php-source.html#l00032">Creport::rf()</a>, <a class="el" href="class_8pdf_8php-source.html#l01417">Cpdf::selectFont()</a>, <a class="el" href="jrn_8php-source.html#l00949">SetInternalCode()</a>, and <a class="el" href="user__menu_8php-source.html#l00333">ShowMenuJrn()</a>. </td>
</tr>
</table>
<a class="anchor" name="a9"></a><!-- doxytag: member="jrn_add.php::$p_code" ref="a9" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">$p_code = sprintf(&quot;%s-%02d&quot;,trim($_POST['p_jrn_type']),NextJrn($cn,$_POST['p_jrn_type'])) </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="jrn__add_8php-source.html#l00088">88</a> of file <a class="el" href="jrn__add_8php-source.html">jrn_add.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a8"></a><!-- doxytag: member="jrn_add.php::$p_jrn_class_cred" ref="a8" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">$p_jrn_class_cred = FormatString($_POST[&quot;p_jrn_class_cred&quot;]) </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="jrn__add_8php-source.html#l00086">86</a> of file <a class="el" href="jrn__add_8php-source.html">jrn_add.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a7"></a><!-- doxytag: member="jrn_add.php::$p_jrn_class_deb" ref="a7" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">$p_jrn_class_deb = FormatString($_POST[&quot;p_jrn_class_deb&quot;]) </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="jrn__add_8php-source.html#l00083">83</a> of file <a class="el" href="jrn__add_8php-source.html">jrn_add.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a11"></a><!-- doxytag: member="jrn_add.php::$p_jrn_fiche_cred" ref="a11" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">$p_jrn_fiche_cred = &quot;&quot; </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="jrn__add_8php-source.html#l00090">90</a> of file <a class="el" href="jrn__add_8php-source.html">jrn_add.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a10"></a><!-- doxytag: member="jrn_add.php::$p_jrn_fiche_deb" ref="a10" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">$p_jrn_fiche_deb = &quot;&quot; </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="jrn__add_8php-source.html#l00089">89</a> of file <a class="el" href="jrn__add_8php-source.html">jrn_add.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a6"></a><!-- doxytag: member="jrn_add.php::$p_jrn_name" ref="a6" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">$p_jrn_name = $_POST[&quot;p_jrn_name&quot;] </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="jrn__add_8php-source.html#l00081">81</a> of file <a class="el" href="jrn__add_8php-source.html">jrn_add.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a0"></a><!-- doxytag: member="jrn_add.php::$rep" ref="a0" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">$rep = DbConnect() </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="jrn__add_8php-source.html#l00035">35</a> of file <a class="el" href="jrn__add_8php-source.html">jrn_add.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a13"></a><!-- doxytag: member="jrn_add.php::$Res" ref="a13" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">$Res = ExecSql($cn,$Sql) </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="jrn__add_8php-source.html#l00108">108</a> of file <a class="el" href="jrn__add_8php-source.html">jrn_add.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a15"></a><!-- doxytag: member="jrn_add.php::$search" ref="a15" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">$search = '&lt;INPUT TYPE=&quot;BUTTON&quot; VALUE=&quot;Cherche&quot; OnClick=&quot;SearchPoste(\''.$sessid.&quot;','not')\&quot;&gt;&quot; </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="jrn__add_8php-source.html#l00117">117</a> of file <a class="el" href="jrn__add_8php-source.html">jrn_add.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a14"></a><!-- doxytag: member="jrn_add.php::$sessid" ref="a14" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">$sessid = $_REQUEST['PHPSESSID'] </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="jrn__add_8php-source.html#l00116">116</a> of file <a class="el" href="jrn__add_8php-source.html">jrn_add.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a12"></a><!-- doxytag: member="jrn_add.php::$Sql" ref="a12" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">$Sql </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<b>Initial value:</b><div class="fragment"><pre class="fragment">sprintf(<span class="stringliteral">"insert into jrn_def(jrn_def_name,jrn_def_class_deb,jrn_def_class_cred,jrn_deb_max_line,jrn_cred_max_line,</span>
<span class="stringliteral"> jrn_def_type,jrn_def_fiche_deb,jrn_def_fiche_cred,jrn_def_code) </span>
<span class="stringliteral"> values ('%s','%s','%s',%s,%s,'%s','%s','%s','%s')"</span>,
$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
)
</pre></div>
<p>
Definition at line <a class="el" href="jrn__add_8php-source.html#l00099">99</a> of file <a class="el" href="jrn__add_8php-source.html">jrn_add.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a1"></a><!-- doxytag: member="jrn_add.php::$User" ref="a1" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">$User = new <a class="el" href="classcl__user.html">cl_user</a>($rep) </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="jrn__add_8php-source.html#l00037">37</a> of file <a class="el" href="jrn__add_8php-source.html">jrn_add.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a3"></a><!-- doxytag: member="jrn_add.php::exit" ref="a3" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="user__sec_8php.html#a3">exit</a> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="jrn__add_8php-source.html#l00052">52</a> of file <a class="el" href="jrn__add_8php-source.html">jrn_add.php</a>. </td>
</tr>
</table>
<hr size="1"><address style="align: right;"><small>Generated on Fri Jun 23 00:12:46 2006 for phpcompta by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4 </small></address>
</body>
</html>