altocompta/doc/developper/html/ac__common_8php.html
2006-06-22 22:33:32 +00:00

813 lines
40 KiB
HTML
Raw Blame History

<!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/include/ac_common.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_000006.html">include</a></div>
<h1>ac_common.php File Reference</h1>common utilities for a lot of procedure, classe <a href="#_details">More...</a>
<p>
<p>
<a href="ac__common_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>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ac__common_8php.html#a0">echo_error</a> ($p_log)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">log error into the /tmp/phpcompta_error.log it doesn't work on windows <a href="#a0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ac__common_8php.html#a1">cmpDate</a> ($p_date, $p_date_oth)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compare 2 dates. <a href="#a1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ac__common_8php.html#a2">isNumber</a> ($p_int)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ac__common_8php.html#a3">isDate</a> ($p_date)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Verifie qu'une date est bien format<61> en d.m.y et est valable. <a href="#a3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ac__common_8php.html#a4">formatDate</a> ($p_date)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">call cmpDate <a href="#a4"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ac__common_8php.html#a5">html_page_start</a> ($p_theme=&quot;&quot;, $p_script=&quot;&quot;, $p_script2=&quot;&quot;)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Default page header for each page. <a href="#a5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ac__common_8php.html#a6">html_page_stop</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">end tag <a href="#a6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ac__common_8php.html#a7">html_button_logout</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Button logout. <a href="#a7"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ac__common_8php.html#a8">NoAccess</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Echo no access and stop. <a href="#a8"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ac__common_8php.html#a9">FormatString</a> ($p_string)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Fix the problem with the quote char for the database. <a href="#a9"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ac__common_8php.html#a10">ShowItem</a> ($p_array, $p_dir='V', $class=&quot;mtitle&quot;, $class_ref=&quot;mtitle&quot;, $default=&quot;&quot;, $p_extra=&quot;&quot;)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">store the string which print <a href="#a10"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ac__common_8php.html#a11">echo_warning</a> ($p_string)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">warns <a href="#a11"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ac__common_8php.html#a12">make_array</a> ($p_cn, $p_sql, $p_null=0)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">make a array with the sql <a href="#a12"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ac__common_8php.html#a13">getPeriodeName</a> ($p_cn, $p_id, $pos='p_start')</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Show the periode which found thanks its id. <a href="#a13"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ac__common_8php.html#a14">getPeriodeFromMonth</a> ($p_cn, $p_date)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the period corresponding to the date. <a href="#a14"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ac__common_8php.html#a15">getPeriodeFromDate</a> ($p_cn, $p_date)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the period corresponding to the date. <a href="#a15"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
common utilities for a lot of procedure, classe
<p>
<p>
Definition in file <a class="el" href="ac__common_8php-source.html">ac_common.php</a>.<hr><h2>Function Documentation</h2>
<a class="anchor" name="a1"></a><!-- doxytag: member="ac_common.php::cmpDate" ref="a1" args="($p_date, $p_date_oth)" --><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">cmpDate </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname" nowrap> <em>p_date</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_date_oth</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Compare 2 dates.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>date</em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>date2</em>&nbsp;</td><td></td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd><ul>
<li>== 0 les dates sont identiques</li><li>&gt; 0 date1 &gt; date2</li><li>&lt; 0 date1 &lt; date2</li></ul>
</dd></dl>
<p>
Definition at line <a class="el" href="ac__common_8php-source.html#l00053">53</a> of file <a class="el" href="ac__common_8php-source.html">ac_common.php</a>.
<p>
References <a class="el" href="ac__common_8php-source.html#l00097">isDate()</a>.
<p>
Referenced by <a class="el" href="jrn_8php-source.html#l00834">VerifData()</a>, and <a class="el" href="user__common_8php-source.html#l00653">VerifyOperationDate()</a>. </td>
</tr>
</table>
<a class="anchor" name="a0"></a><!-- doxytag: member="ac_common.php::echo_error" ref="a0" args="($p_log)" --><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">echo_error </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>p_log</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
log error into the /tmp/phpcompta_error.log it doesn't work on windows
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>log</em>&nbsp;</td><td>message</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>nothing</dd></dl>
<p>
Definition at line <a class="el" href="ac__common_8php-source.html#l00036">36</a> of file <a class="el" href="ac__common_8php-source.html">ac_common.php</a>.
<p>
References <a class="el" href="debug_8php-source.html#l00034">echo_debug()</a>.
<p>
Referenced by <a class="el" href="fiche__inc_8php-source.html#l00038">AddFiche()</a>, <a class="el" href="form__inc_8php-source.html#l00267">AddForm()</a>, <a class="el" href="fiche__inc_8php-source.html#l00758">AddModele()</a>, <a class="el" href="user__common_8php-source.html#l00730">DeleteRapt()</a>, <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</a>, <a class="el" href="user__form__ach_8php-source.html#l00251">form_verify_input()</a>, <a class="el" href="user__form__ach_8php-source.html#l00044">FormAchInput()</a>, <a class="el" href="ac__common_8php-source.html#l00207">FormatString()</a>, <a class="el" href="user__form__ods_8php-source.html#l00045">FormODS()</a>, <a class="el" href="user__form__ven_8php-source.html#l00043">FormVenInput()</a>, <a class="el" href="user__form__ven_8php-source.html#l00425">FormVenteView()</a>, <a class="el" href="fiche__inc_8php-source.html#l01054">GetFicheJrn()</a>, <a class="el" href="ac__common_8php-source.html#l00314">getPeriodeName()</a>, <a class="el" href="user__common_8php-source.html#l00210">GetTvaPoste()</a>, <a class="el" href="impress__inc_8php-source.html#l00095">Imp()</a>, <a class="el" href="user__common_8php-source.html#l00699">InsertRapt()</a>, <a class="el" href="user__common_8php-source.html#l00834">isValid()</a>, <a class="el" href="user__form__fin_8php-source.html#l00349">RecordFin()</a>, <a class="el" href="fiche__inc_8php-source.html#l00935">Remove()</a>, <a class="el" href="class__invoice_8php-source.html#l00050">Invoice::Save()</a>, <a class="el" href="class__document__modele_8php-source.html#l00103">Document_modele::Save()</a>, <a class="el" href="postgres_8php-source.html#l00368">save_upload_document()</a>, <a class="el" href="class__fiche_8php-source.html#l00633">fiche::update()</a>, <a class="el" href="fiche__inc_8php-source.html#l00526">UpdateFiche()</a>, <a class="el" href="jrn_8php-source.html#l00282">UpdateJrn()</a>, <a class="el" href="fiche__inc_8php-source.html#l00866">UpdateModele()</a>, <a class="el" href="jrn_8php-source.html#l00834">VerifData()</a>, and <a class="el" href="user__common_8php-source.html#l00653">VerifyOperationDate()</a>. </td>
</tr>
</table>
<a class="anchor" name="a11"></a><!-- doxytag: member="ac_common.php::echo_warning" ref="a11" args="($p_string)" --><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">echo_warning </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>p_string</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
warns
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>:</em>&nbsp;</td><td><ul>
<li>string gen :</li><li>none </li></ul>
</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>:<ul>
<li>none</li></ul>
</dd></dl>
<p>
Definition at line <a class="el" href="ac__common_8php-source.html#l00268">268</a> of file <a class="el" href="ac__common_8php-source.html">ac_common.php</a>.
<p>
Referenced by <a class="el" href="fiche__inc_8php-source.html#l01054">GetFicheJrn()</a>, and <a class="el" href="fiche__inc_8php-source.html#l01511">IsFicheOfJrn()</a>. </td>
</tr>
</table>
<a class="anchor" name="a4"></a><!-- doxytag: member="ac_common.php::formatDate" ref="a4" args="($p_date)" --><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">formatDate </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>p_date</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
call cmpDate
<p>
<dl compact><dt><b>Returns:</b></dt><dd>the date or the quoted string null</dd></dl>
<p>
Definition at line <a class="el" href="ac__common_8php-source.html#l00119">119</a> of file <a class="el" href="ac__common_8php-source.html">ac_common.php</a>.
<p>
References <a class="el" href="ac__common_8php-source.html#l00097">isDate()</a>. </td>
</tr>
</table>
<a class="anchor" name="a9"></a><!-- doxytag: member="ac_common.php::FormatString" ref="a9" args="($p_string)" --><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">FormatString </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>p_string</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Fix the problem with the quote char for the database.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>$p_string</em>&nbsp;</td><td></td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>a string which won't let strange char for the database</dd></dl>
<p>
Definition at line <a class="el" href="ac__common_8php-source.html#l00207">207</a> of file <a class="el" href="ac__common_8php-source.html">ac_common.php</a>.
<p>
References <a class="el" href="ac__common_8php-source.html#l00036">echo_error()</a>.
<p>
Referenced by <a class="el" href="fiche__inc_8php-source.html#l00038">AddFiche()</a>, <a class="el" href="form__inc_8php-source.html#l00267">AddForm()</a>, <a class="el" href="fiche__inc_8php-source.html#l00758">AddModele()</a>, <a class="el" href="class__action_8php-source.html#l00151">action::Confirm()</a>, <a class="el" href="class__fiche_8php-source.html#l00289">fiche::CountByDef()</a>, <a class="el" href="class__action_8php-source.html#l00085">action::Display()</a>, <a class="el" href="class__fiche_8php-source.html#l00167">fiche::GetByQCode()</a>, <a class="el" href="class__fiche_8php-source.html#l00533">fiche::insert()</a>, <a class="el" href="user__common_8php-source.html#l00287">InsertJrn()</a>, <a class="el" href="user__common_8php-source.html#l00321">ListJrn()</a>, <a class="el" href="user__form__fin_8php-source.html#l00349">RecordFin()</a>, <a class="el" href="user__form__ven_8php-source.html#l00630">RecordInvoice()</a>, <a class="el" href="user__form__ach_8php-source.html#l00627">RecordSell()</a>, <a class="el" href="fiche__inc_8php-source.html#l00935">Remove()</a>, <a class="el" href="class__parm__code_8php-source.html#l00076">parm_code::Save()</a>, <a class="el" href="class__document__modele_8php-source.html#l00103">Document_modele::Save()</a>, <a class="el" href="class__action_8php-source.html#l00241">action::SaveStage2()</a>, <a class="el" href="class__customer_8php-source.html#l00195">Customer::Summary()</a>, <a class="el" href="class__contact_8php-source.html#l00050">contact::Summary()</a>, <a class="el" href="class__fiche_8php-source.html#l00633">fiche::update()</a>, <a class="el" href="user__common_8php-source.html#l00814">UpdateComment()</a>, <a class="el" href="fiche__inc_8php-source.html#l00526">UpdateFiche()</a>, <a class="el" href="form__inc_8php-source.html#l00208">UpdateForm()</a>, <a class="el" href="class__own_8php-source.html#l00051">Own::UpdateRow()</a>, and <a class="el" href="jrn_8php-source.html#l00583">ViewJrn()</a>. </td>
</tr>
</table>
<a class="anchor" name="a15"></a><!-- doxytag: member="ac_common.php::getPeriodeFromDate" ref="a15" args="($p_cn, $p_date)" --><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">getPeriodeFromDate </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname" nowrap> <em>p_cn</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_date</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Return the period corresponding to the date.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>:</em>&nbsp;</td><td><ul>
<li>p_cn database connection</li></ul>
</td></tr>
</table>
</dl>
<ul>
<li>the date 'DD.MM.YYYY' <dl compact><dt><b>Returns:</b></dt><dd>: parm_periode.p_id</dd></dl>
</li></ul>
<p>
Definition at line <a class="el" href="ac__common_8php-source.html#l00354">354</a> of file <a class="el" href="ac__common_8php-source.html">ac_common.php</a>.
<p>
References <a class="el" href="balance_8php-source.html#l00108">$a</a>, and <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</a>. </td>
</tr>
</table>
<a class="anchor" name="a14"></a><!-- doxytag: member="ac_common.php::getPeriodeFromMonth" ref="a14" args="($p_cn, $p_date)" --><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">getPeriodeFromMonth </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname" nowrap> <em>p_cn</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_date</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Return the period corresponding to the date.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>p_cn</em>&nbsp;</td><td>database connection </td></tr>
<tr><td valign="top"></td><td valign="top"><em>the</em>&nbsp;</td><td>month + year 'MM.YYYY'</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>: parm_periode.p_id</dd></dl>
<p>
Definition at line <a class="el" href="ac__common_8php-source.html#l00334">334</a> of file <a class="el" href="ac__common_8php-source.html">ac_common.php</a>.
<p>
References <a class="el" href="balance_8php-source.html#l00108">$a</a>, and <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</a>.
<p>
Referenced by <a class="el" href="impress__inc_8php-source.html#l00724">ParseFormula()</a>. </td>
</tr>
</table>
<a class="anchor" name="a13"></a><!-- doxytag: member="ac_common.php::getPeriodeName" ref="a13" args="($p_cn, $p_id, $pos='p_start')" --><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">getPeriodeName </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname" nowrap> <em>p_cn</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_id</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>pos</em> = <code>'p_start'</code></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Show the periode which found thanks its id.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>$p_cn</em>&nbsp;</td><td>database connection </td></tr>
<tr><td valign="top"></td><td valign="top"><em>p_id</em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>Start</em>&nbsp;</td><td>or end</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>: string</dd></dl>
<p>
Definition at line <a class="el" href="ac__common_8php-source.html#l00314">314</a> of file <a class="el" href="ac__common_8php-source.html">ac_common.php</a>.
<p>
References <a class="el" href="balance_8php-source.html#l00108">$a</a>, <a class="el" href="class__operation_8php-source.html#l00087">$ret</a>, and <a class="el" href="ac__common_8php-source.html#l00036">echo_error()</a>. </td>
</tr>
</table>
<a class="anchor" name="a7"></a><!-- doxytag: member="ac_common.php::html_button_logout" 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">html_button_logout </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Button logout.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>nothing</dd></dl>
<p>
Definition at line <a class="el" href="ac__common_8php-source.html#l00181">181</a> of file <a class="el" href="ac__common_8php-source.html">ac_common.php</a>.
<p>
Referenced by <a class="el" href="user__menu_8php-source.html#l00132">u_ShowMenu()</a>. </td>
</tr>
</table>
<a class="anchor" name="a5"></a><!-- doxytag: member="ac_common.php::html_page_start" ref="a5" args="($p_theme=&quot;&quot;, $p_script=&quot;&quot;, $p_script2=&quot;&quot;)" --><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">html_page_start </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname" nowrap> <em>p_theme</em> = <code>&quot;&quot;</code>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_script</em> = <code>&quot;&quot;</code>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_script2</em> = <code>&quot;&quot;</code></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Default page header for each page.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>default</em>&nbsp;</td><td>theme </td></tr>
<tr><td valign="top"></td><td valign="top"><em>$p_script</em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>$p_script2</em>&nbsp;</td><td>another js script</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>none</dd></dl>
<p>
Definition at line <a class="el" href="ac__common_8php-source.html#l00132">132</a> of file <a class="el" href="ac__common_8php-source.html">ac_common.php</a>.
<p>
References <a class="el" href="impress__fiche_8php-source.html#l00026">$cn</a>, <a class="el" href="eub__be_8inc_8php-source.html#l00074">$Res</a>, <a class="el" href="pref_8inc_8php-source.html#l00060">$style</a>, <a class="el" href="postgres_8php-source.html#l00072">DbConnect()</a>, and <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</a>. </td>
</tr>
</table>
<a class="anchor" name="a6"></a><!-- doxytag: member="ac_common.php::html_page_stop" 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">html_page_stop </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
end tag
<p>
<p>
Definition at line <a class="el" href="ac__common_8php-source.html#l00169">169</a> of file <a class="el" href="ac__common_8php-source.html">ac_common.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a3"></a><!-- doxytag: member="ac_common.php::isDate" ref="a3" args="($p_date)" --><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">isDate </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>p_date</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Verifie qu'une date est bien format<61> en d.m.y et est valable.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>$p_date</em>&nbsp;</td><td></td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd><ul>
<li>null si la date est invalide ou malformat<61></li></ul>
</dd></dl>
<ul>
<li>$p_date si tout est bon</li></ul>
<p>
Definition at line <a class="el" href="ac__common_8php-source.html#l00097">97</a> of file <a class="el" href="ac__common_8php-source.html">ac_common.php</a>.
<p>
Referenced by <a class="el" href="ac__common_8php-source.html#l00053">cmpDate()</a>, <a class="el" href="class__action_8php-source.html#l00151">action::Confirm()</a>, <a class="el" href="user__form__ach_8php-source.html#l00251">form_verify_input()</a>, <a class="el" href="ac__common_8php-source.html#l00119">formatDate()</a>, <a class="el" href="user__common_8php-source.html#l00321">ListJrn()</a>, <a class="el" href="user__form__fin_8php-source.html#l00349">RecordFin()</a>, <a class="el" href="jrn_8php-source.html#l00834">VerifData()</a>, <a class="el" href="user__common_8php-source.html#l00653">VerifyOperationDate()</a>, and <a class="el" href="jrn_8php-source.html#l00583">ViewJrn()</a>. </td>
</tr>
</table>
<a class="anchor" name="a2"></a><!-- doxytag: member="ac_common.php::isNumber" ref="a2" args="($p_int)" --><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">isNumber </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>p_int</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></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="ac__common_8php-source.html#l00076">76</a> of file <a class="el" href="ac__common_8php-source.html">ac_common.php</a>.
<p>
Referenced by <a class="el" href="fiche__inc_8php-source.html#l00038">AddFiche()</a>, <a class="el" href="fiche__inc_8php-source.html#l00758">AddModele()</a>, <a class="el" href="user__common_8php-source.html#l00068">ComputeTotalVat()</a>, <a class="el" href="user__common_8php-source.html#l00171">ComputeVat()</a>, <a class="el" href="user__common_8php-source.html#l00730">DeleteRapt()</a>, <a class="el" href="user__form__ach_8php-source.html#l00251">form_verify_input()</a>, <a class="el" href="user__form__ach_8php-source.html#l00044">FormAchInput()</a>, <a class="el" href="user__form__ach_8php-source.html#l00453">FormAchView()</a>, <a class="el" href="user__form__ods_8php-source.html#l00045">FormODS()</a>, <a class="el" href="user__form__ven_8php-source.html#l00043">FormVenInput()</a>, <a class="el" href="user__form__ven_8php-source.html#l00425">FormVenteView()</a>, <a class="el" href="class__fiche_8php-source.html#l00533">fiche::insert()</a>, <a class="el" href="user__common_8php-source.html#l00699">InsertRapt()</a>, <a class="el" href="user__form__fin_8php-source.html#l00349">RecordFin()</a>, <a class="el" href="user__form__ven_8php-source.html#l00630">RecordInvoice()</a>, <a class="el" href="user__form__ods_8php-source.html#l00247">RecordODS()</a>, <a class="el" href="user__form__ach_8php-source.html#l00627">RecordSell()</a>, <a class="el" href="fiche__inc_8php-source.html#l00935">Remove()</a>, <a class="el" href="class__document__modele_8php-source.html#l00103">Document_modele::Save()</a>, and <a class="el" href="class__fiche_8php-source.html#l00633">fiche::update()</a>. </td>
</tr>
</table>
<a class="anchor" name="a12"></a><!-- doxytag: member="ac_common.php::make_array" ref="a12" args="($p_cn, $p_sql, $p_null=0)" --><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">make_array </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname" nowrap> <em>p_cn</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_sql</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_null</em> = <code>0</code></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
make a array with the sql
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>$cn</em>&nbsp;</td><td>dbatabase connection </td></tr>
<tr><td valign="top"></td><td valign="top"><em>$sql</em>&nbsp;</td><td>related sql</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>: a double array [value,label]</dd></dl>
<p>
Definition at line <a class="el" href="ac__common_8php-source.html#l00281">281</a> of file <a class="el" href="ac__common_8php-source.html">ac_common.php</a>.
<p>
References <a class="el" href="balance_8php-source.html#l00108">$a</a>, <a class="el" href="balance_8php-source.html#l00113">$i</a>, <a class="el" href="user__action__ach_8php-source.html#l00052">$r</a>, <a class="el" href="cbc__be_8inc_8php-source.html#l00028">$row</a>, <a class="el" href="balance_8php-source.html#l00071">label</a>, and <a class="el" href="client_8inc_8php-source.html#l00117">value</a>.
<p>
Referenced by <a class="el" href="class__action_8php-source.html#l00151">action::Confirm()</a>, <a class="el" href="class__action_8php-source.html#l00085">action::Display()</a>, <a class="el" href="class__document__modele_8php-source.html#l00251">Document_modele::form()</a>, <a class="el" href="user__form__ach_8php-source.html#l00044">FormAchInput()</a>, <a class="el" href="user__form__ven_8php-source.html#l00043">FormVenInput()</a>, <a class="el" href="user__form__ven_8php-source.html#l00425">FormVenteView()</a>, and <a class="el" href="import__inc_8php-source.html#l00174">ShowFormTransfert()</a>. </td>
</tr>
</table>
<a class="anchor" name="a8"></a><!-- doxytag: member="ac_common.php::NoAccess" 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">NoAccess </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Echo no access and stop.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>nothing</dd></dl>
<p>
Definition at line <a class="el" href="ac__common_8php-source.html#l00191">191</a> of file <a class="el" href="ac__common_8php-source.html">ac_common.php</a>.
<p>
References <a class="el" href="balance_8php-source.html#l00033">exit</a>. </td>
</tr>
</table>
<a class="anchor" name="a10"></a><!-- doxytag: member="ac_common.php::ShowItem" ref="a10" args="($p_array, $p_dir='V', $class=&quot;mtitle&quot;, $class_ref=&quot;mtitle&quot;, $default=&quot;&quot;, $p_extra=&quot;&quot;)" --><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">ShowItem </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname" nowrap> <em>p_array</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_dir</em> = <code>'V'</code>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>class</em> = <code>&quot;mtitle&quot;</code>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>class_ref</em> = <code>&quot;mtitle&quot;</code>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>default</em> = <code>&quot;&quot;</code>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>p_extra</em> = <code>&quot;&quot;</code></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
store the string which print
<p>
/*
<p>
Definition at line <a class="el" href="ac__common_8php-source.html#l00227">227</a> of file <a class="el" href="ac__common_8php-source.html">ac_common.php</a>.
<p>
References <a class="el" href="class__operation_8php-source.html#l00087">$ret</a>.
<p>
Referenced by <a class="el" href="user__menu_8php-source.html#l00578">MenuAdmin()</a>, <a class="el" href="user__menu_8php-source.html#l00524">ShowJrn()</a>, <a class="el" href="user__menu_8php-source.html#l00498">ShowMenuAdvanced()</a>, <a class="el" href="user__menu_8php-source.html#l00166">ShowMenuCompta()</a>, <a class="el" href="user__menu_8php-source.html#l00598">ShowMenuDocument()</a>, and <a class="el" href="user__menu_8php-source.html#l00618">ShowMenuParam()</a>. </td>
</tr>
</table>
<hr size="1"><address style="align: right;"><small>Generated on Fri Jun 23 00:28:23 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>