591 lines
28 KiB
HTML
591 lines
28 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: setup.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 Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related Pages</a></div>
|
|
<div class="nav">
|
|
<a class="el" href="dir_000001.html">html</a> » <a class="el" href="dir_000003.html">admin</a></div>
|
|
<h1>setup.php File Reference</h1>This file permit to upgrade a version of phpcompta, it should be used and immediately delete after an upgrade. This file is included in each release for a new upgrade. <a href="#_details">More...</a>
|
|
<p>
|
|
|
|
<p>
|
|
<a href="setup_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"> </td><td class="memItemRight" valign="bottom"><a class="el" href="setup_8php.html#a15">GetVersion</a> ($p_cn)</td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="setup_8php.html#a16">ExecuteScript</a> ($p_cn, $script)</td></tr>
|
|
|
|
<tr><td colspan="2"><br><h2>Variables</h2></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="setup_8php.html#a0">$inc_path</a> = get_include_path()</td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="setup_8php.html#a1">$flag_php</a> = 0</td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="setup_8php.html#a2">$sql</a> = "select lanname from pg_language where lanname='plpgsql'"</td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="setup_8php.html#a3">$Res</a> = CountSql($cn,$sql)</td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="setup_8php.html#a4">$flag</a> = 0</td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="setup_8php.html#a5">$a</a> = DbConnect()</td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="user__sec_8php.html#a13">else</a> <a class="el" href="impress__rapport_8php.html#a8">print</a> Connect to database </td><td class="memItemRight" valign="bottom"><a class="el" href="setup_8php.html#a6">success< br ></a></td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="setup_8php.html#a7">$cn</a> = DbConnect()</td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="setup_8php.html#a8">$Resdossier</a> = ExecSql($cn,"select dos_id, dos_name from ac_dossier")</td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="setup_8php.html#a9">$MaxDossier</a> = pg_NumRows($Resdossier)</td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="setup_8php.html#a10">$db</a> = DbConnect($db_row['dos_id'],'dossier')</td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="setup_8php.html#a11">$Max</a> = pg_NumRows($Res)</td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="setup_8php.html#a12">$Res2</a> = ExecSql($db,'select coalesce(max(jr_grpt_id),1) as l from <a class="el" href="classjrn.html">jrn</a>')</td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="setup_8php.html#a13">$Max2</a> = pg_NumRows($Res2)</td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="setup_8php.html#a14">$M</a> = $Row['l']</td></tr>
|
|
|
|
</table>
|
|
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
|
This file permit to upgrade a version of phpcompta, it should be used and immediately delete after an upgrade. This file is included in each release for a new upgrade.
|
|
<p>
|
|
<dl compact><dt><b><a class="el" href="todo.html#_todo000017">Todo:</a></b></dt><dd>remove the rebuild of mod2 (drop / create) for the next version the mod2 from the version < 2.0 are full of bugs </dd></dl>
|
|
|
|
<p>
|
|
Definition in file <a class="el" href="setup_8php-source.html">setup.php</a>.<hr><h2>Function Documentation</h2>
|
|
<a class="anchor" name="a16"></a><!-- doxytag: member="setup.php::ExecuteScript" ref="a16" args="($p_cn, $script)" --><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">ExecuteScript </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top">$ </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>$ </td>
|
|
<td class="mdname" nowrap> <em>script</em></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md"></td>
|
|
<td class="md">) </td>
|
|
<td class="md" colspan="2"></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="setup_8php-source.html#l00104">104</a> of file <a class="el" href="setup_8php-source.html">setup.php</a>.
|
|
<p>
|
|
References <a class="el" href="bank_8inc_8php-source.html#l00169">$sql</a>, <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</a>, <a class="el" href="balance_8php-source.html#l00036">exit</a>, <a class="el" href="impress__bilan_8php-source.html#l00041">print</a>, and <a class="el" href="postgres_8php-source.html#l00266">Rollback()</a>.<div class="fragment"><pre class="fragment"><a name="l00104"></a>00104 {
|
|
<a name="l00105"></a>00105 $hf=fopen($script,<span class="charliteral">'r'</span>);
|
|
<a name="l00106"></a>00106 <span class="keywordflow">if</span> ( $hf == <span class="keyword">false</span> ) {
|
|
<a name="l00107"></a>00107 echo 'Ne peut ouvrir '.$script;
|
|
<a name="l00108"></a>00108 <a class="code" href="balance_8php.html#a0">exit</a>();
|
|
<a name="l00109"></a>00109 }
|
|
<a name="l00110"></a>00110 <a class="code" href="bank_8inc_8php.html#a20">$sql</a>=<span class="stringliteral">""</span>;
|
|
<a name="l00111"></a>00111 $flag_function=<span class="keyword">false</span>;
|
|
<a name="l00112"></a>00112 <span class="keywordflow">while</span> (!feof($hf)) {
|
|
<a name="l00113"></a>00113 $buffer=fgets($hf);
|
|
<a name="l00114"></a>00114 $buffer=str_replace (<span class="stringliteral">"$"</span>,<span class="stringliteral">"\$"</span>,$buffer);
|
|
<a name="l00115"></a>00115 <a class="code" href="impress__bilan_8php.html#a3">print</a> $buffer.<span class="stringliteral">"<br>"</span>;
|
|
<a name="l00116"></a>00116 <span class="comment">// comment are not execute</span>
|
|
<a name="l00117"></a>00117 <span class="keywordflow">if</span> ( substr($buffer,0,2) == <span class="stringliteral">"--"</span> ) {
|
|
<a name="l00118"></a>00118 <span class="comment">//echo "comment $buffer";</span>
|
|
<a name="l00119"></a>00119 <span class="keywordflow">continue</span>;
|
|
<a name="l00120"></a>00120 }
|
|
<a name="l00121"></a>00121 <span class="comment">// Blank Lines Are Skipped</span>
|
|
<a name="l00122"></a>00122 If ( Strlen($buffer)==0) {
|
|
<a name="l00123"></a>00123 <span class="comment">//echo "Blank $buffer";</span>
|
|
<a name="l00124"></a>00124 Continue;
|
|
<a name="l00125"></a>00125 }
|
|
<a name="l00126"></a>00126 <span class="keywordflow">if</span> ( strpos(strtolower($buffer),<span class="stringliteral">"create function"</span>)===0 ) {
|
|
<a name="l00127"></a>00127 echo <span class="stringliteral">"found a function"</span>;
|
|
<a name="l00128"></a>00128 $flag_function=<span class="keyword">true</span>;
|
|
<a name="l00129"></a>00129 <a class="code" href="bank_8inc_8php.html#a20">$sql</a>=$buffer;
|
|
<a name="l00130"></a>00130 <span class="keywordflow">continue</span>;
|
|
<a name="l00131"></a>00131 }
|
|
<a name="l00132"></a>00132 <span class="keywordflow">if</span> ( strpos(strtolower($buffer),<span class="stringliteral">"create or replace function"</span>)===0 ) {
|
|
<a name="l00133"></a>00133 echo <span class="stringliteral">"found a function"</span>;
|
|
<a name="l00134"></a>00134 $flag_function=<span class="keyword">true</span>;
|
|
<a name="l00135"></a>00135 <a class="code" href="bank_8inc_8php.html#a20">$sql</a>=$buffer;
|
|
<a name="l00136"></a>00136 <span class="keywordflow">continue</span>;
|
|
<a name="l00137"></a>00137 }
|
|
<a name="l00138"></a>00138 <span class="comment">// No semi colon -> multiline command</span>
|
|
<a name="l00139"></a>00139 <span class="keywordflow">if</span> ( $flag_function== <span class="keyword">false</span> && strpos($buffer,<span class="charliteral">';'</span>) == <span class="keyword">false</span> ) {
|
|
<a name="l00140"></a>00140 <a class="code" href="bank_8inc_8php.html#a20">$sql</a>.=$buffer;
|
|
<a name="l00141"></a>00141 <span class="keywordflow">continue</span>;
|
|
<a name="l00142"></a>00142 }
|
|
<a name="l00143"></a>00143 <span class="keywordflow">if</span> ( $flag_function ) {
|
|
<a name="l00144"></a>00144 <span class="keywordflow">if</span> ( strpos(strtolower($buffer), <span class="stringliteral">"language plpgsql"</span>) === <span class="keyword">false</span> &&
|
|
<a name="l00145"></a>00145 strpos(strtolower($buffer), <span class="stringliteral">"language 'plpgsql'"</span>) === <span class="keyword">false</span> ) {
|
|
<a name="l00146"></a>00146 <a class="code" href="bank_8inc_8php.html#a20">$sql</a>.=$buffer;
|
|
<a name="l00147"></a>00147 <span class="keywordflow">continue</span>;
|
|
<a name="l00148"></a>00148 }
|
|
<a name="l00149"></a>00149 } <span class="keywordflow">else</span> {
|
|
<a name="l00150"></a>00150 <span class="comment">// cut the semi colon</span>
|
|
<a name="l00151"></a>00151 $buffer=str_replace (<span class="charliteral">';'</span>,'',$buffer);
|
|
<a name="l00152"></a>00152 }
|
|
<a name="l00153"></a>00153 <a class="code" href="bank_8inc_8php.html#a20">$sql</a>.=$buffer;
|
|
<a name="l00154"></a>00154 <span class="keywordflow">if</span> ( <a class="code" href="postgres_8php.html#a2">ExecSql</a>($p_cn,$sql) == <span class="keyword">false</span> ) {
|
|
<a name="l00155"></a>00155 <a class="code" href="postgres_8php.html#a17">Rollback</a>($p_cn);
|
|
<a name="l00156"></a>00156 <span class="keywordflow">if</span> ( <a class="code" href="constant_8php.html#a2">DEBUG</a>=='<span class="keyword">false</span>' ) ob_end_flush();
|
|
<a name="l00157"></a>00157 <a class="code" href="impress__bilan_8php.html#a3">print</a> <span class="stringliteral">"ERROR : $sql"</span>;
|
|
<a name="l00158"></a>00158 <a class="code" href="balance_8php.html#a0">exit</a>();
|
|
<a name="l00159"></a>00159 }
|
|
<a name="l00160"></a>00160 <a class="code" href="bank_8inc_8php.html#a20">$sql</a>=<span class="stringliteral">""</span>;
|
|
<a name="l00161"></a>00161 $flag_function=<span class="keyword">false</span>;
|
|
<a name="l00162"></a>00162 <a class="code" href="impress__bilan_8php.html#a3">print</a> <span class="stringliteral">"<hr>"</span>;
|
|
<a name="l00163"></a>00163 } <span class="comment">// while (feof)</span>
|
|
<a name="l00164"></a>00164 fclose($hf);
|
|
<a name="l00165"></a>00165 }
|
|
</pre></div>
|
|
<p>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a15"></a><!-- doxytag: member="setup.php::GetVersion" ref="a15" args="($p_cn)" --><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">GetVersion </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top">$ </td>
|
|
<td class="mdname1" valign="top" nowrap> <em>p_cn</em> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="setup_8php-source.html#l00087">87</a> of file <a class="el" href="setup_8php-source.html">setup.php</a>.
|
|
<p>
|
|
References <a class="el" href="balance_8php-source.html#l00113">$a</a>, <a class="el" href="depense_8inc_8php-source.html#l00077">$Res</a>, and <a class="el" href="postgres_8php-source.html#l00099">ExecSql()</a>.<div class="fragment"><pre class="fragment"><a name="l00087"></a>00087 {
|
|
<a name="l00088"></a>00088 <a class="code" href="depense_8inc_8php.html#a4">$Res</a>=<a class="code" href="postgres_8php.html#a2">ExecSql</a>($p_cn,<span class="stringliteral">"select val from version"</span>);
|
|
<a name="l00089"></a>00089 <a class="code" href="balance_8php.html#a10">$a</a>=pg_fetch_array($Res,0);
|
|
<a name="l00090"></a>00090 <span class="keywordflow">return</span> <a class="code" href="balance_8php.html#a10">$a</a>['val'];
|
|
<a name="l00091"></a>00091 }
|
|
</pre></div>
|
|
<p>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<hr><h2>Variable Documentation</h2>
|
|
<a class="anchor" name="a5"></a><!-- doxytag: member="setup.php::$a" 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 = DbConnect() </td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="setup_8php-source.html#l00368">368</a> of file <a class="el" href="setup_8php-source.html">setup.php</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a7"></a><!-- doxytag: member="setup.php::$cn" 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">$cn = DbConnect() </td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="setup_8php-source.html#l00381">381</a> of file <a class="el" href="setup_8php-source.html">setup.php</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a10"></a><!-- doxytag: member="setup.php::$db" 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">$db = DbConnect($db_row['dos_id'],'dossier') </td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="setup_8php-source.html#l00387">387</a> of file <a class="el" href="setup_8php-source.html">setup.php</a>.
|
|
<p>
|
|
Referenced by <a class="el" href="jrn_8php-source.html#l00583">ViewJrn()</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a4"></a><!-- doxytag: member="setup.php::$flag" 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">$flag = 0 </td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="setup_8php-source.html#l00267">267</a> of file <a class="el" href="setup_8php-source.html">setup.php</a>.
|
|
<p>
|
|
Referenced by <a class="el" href="fiche__inc_8php-source.html#l00038">AddFiche()</a>, <a class="el" href="user__common_8php-source.html#l00069">ComputeTotalVat()</a>, <a class="el" href="user__form__fin_8php-source.html#l00146">FormFin()</a>, <a class="el" href="user__form__ods_8php-source.html#l00045">FormODS()</a>, and <a class="el" href="class__fiche_8php-source.html#l00190">fiche::getAttribut()</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a1"></a><!-- doxytag: member="setup.php::$flag_php" 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">$flag_php = 0 </td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="setup_8php-source.html#l00179">179</a> of file <a class="el" href="setup_8php-source.html">setup.php</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a0"></a><!-- doxytag: member="setup.php::$inc_path" 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">$inc_path = get_include_path() </td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="setup_8php-source.html#l00063">63</a> of file <a class="el" href="setup_8php-source.html">setup.php</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a14"></a><!-- doxytag: member="setup.php::$M" 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">$M = $Row['l'] </td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="setup_8php-source.html#l00429">429</a> of file <a class="el" href="setup_8php-source.html">setup.php</a>.
|
|
<p>
|
|
Referenced by <a class="el" href="fiche__inc_8php-source.html#l01390">DisplayDetailModele()</a>, and <a class="el" href="class__balance_8php-source.html#l00053">Balance::GetRow()</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a11"></a><!-- doxytag: member="setup.php::$Max" 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">$Max = pg_NumRows($Res) </td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="setup_8php-source.html#l00395">395</a> of file <a class="el" href="setup_8php-source.html">setup.php</a>.
|
|
<p>
|
|
Referenced by <a class="el" href="fiche__inc_8php-source.html#l00225">EncodeFiche()</a>, <a class="el" href="preference_8php-source.html#l00071">FormPeriode()</a>, <a class="el" href="preference_8php-source.html#l00037">FormPeriodeMult()</a>, <a class="el" href="fiche__inc_8php-source.html#l01115">Get_fiche_def_ref()</a>, <a class="el" href="class__fiche_8php-source.html#l00190">fiche::getAttribut()</a>, <a class="el" href="form__inc_8php-source.html#l00149">GetDataForm()</a>, <a class="el" href="impress__inc_8php-source.html#l00582">GetDataGrpt()</a>, <a class="el" href="impress__inc_8php-source.html#l00308">GetDataJrn()</a>, <a class="el" href="impress__inc_8php-source.html#l00423">GetDataJrnPdf()</a>, <a class="el" href="fiche__inc_8php-source.html#l00895">GetDataModele()</a>, <a class="el" href="impress__inc_8php-source.html#l00267">GetDataPoste()</a>, <a class="el" href="fiche__inc_8php-source.html#l01057">GetFicheJrn()</a>, <a class="el" href="class__user_8php-source.html#l00256">cl_user::GetGlobalPref()</a>, <a class="el" href="jrn_8php-source.html#l00907">GetJrnName()</a>, <a class="el" href="class__jrn_8php-source.html#l00034">jrn::GetName()</a>, <a class="el" href="fiche__inc_8php-source.html#l00462">GetNextFiche()</a>, <a class="el" href="class__rapport_8php-source.html#l00053">rapport::GetRow()</a>, <a class="el" href="class__poste_8php-source.html#l00048">poste::GetRow()</a>, <a class="el" href="class__jrn_8php-source.html#l00065">jrn::GetRow()</a>, <a class="el" href="poste_8php-source.html#l00114">GetSolde()</a>, <a class="el" href="class__poste_8php-source.html#l00119">poste::GetSolde()</a>, <a class="el" href="class__poste_8php-source.html#l00141">poste::GetSoldeDetail()</a>, <a class="el" href="impress__inc_8php-source.html#l00119">ImpHtml()</a>, <a class="el" href="fiche__inc_8php-source.html#l01514">IsFicheOfJrn()</a>, <a class="el" href="user__common_8php-source.html#l00322">ListJrn()</a>, <a class="el" href="user__menu_8php-source.html#l00630">MenuJrn()</a>, <a class="el" href="fiche__new_8php-source.html#l00060">new_fiche()</a>, <a class="el" href="poste_8php-source.html#l00087">PosteForm()</a>, <a class="el" href="preference_8php-source.html#l00185">ShowDevise()</a>, <a class="el" href="postgres_8php-source.html#l00032">ShowDossier()</a>, <a class="el" href="user__menu_8php-source.html#l00683">ShowMenuComptaForm()</a>, <a class="el" href="user__menu_8php-source.html#l00527">ShowMenuFiche()</a>, <a class="el" href="user__menu_8php-source.html#l00213">ShowMenuJrnUser()</a>, <a class="el" href="preference_8php-source.html#l00224">ShowPeriode()</a>, <a class="el" href="import__inc_8php-source.html#l00090">TransferCSV()</a>, and <a class="el" href="fiche__inc_8php-source.html#l00394">ViewFiche()</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a13"></a><!-- doxytag: member="setup.php::$Max2" 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">$Max2 = pg_NumRows($Res2) </td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="setup_8php-source.html#l00425">425</a> of file <a class="el" href="setup_8php-source.html">setup.php</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a9"></a><!-- doxytag: member="setup.php::$MaxDossier" 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">$MaxDossier = pg_NumRows($Resdossier) </td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="setup_8php-source.html#l00383">383</a> of file <a class="el" href="setup_8php-source.html">setup.php</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a3"></a><!-- doxytag: member="setup.php::$Res" 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">$Res = CountSql($cn,$sql) </td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="setup_8php-source.html#l00251">251</a> of file <a class="el" href="setup_8php-source.html">setup.php</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a12"></a><!-- doxytag: member="setup.php::$Res2" 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">$Res2 = ExecSql($db,'select coalesce(max(jr_grpt_id),1) as l from <a class="el" href="classjrn.html">jrn</a>') </td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="setup_8php-source.html#l00424">424</a> of file <a class="el" href="setup_8php-source.html">setup.php</a>.
|
|
<p>
|
|
Referenced by <a class="el" href="central__inc_8php-source.html#l00036">Centralise()</a>, <a class="el" href="check__priv_8php-source.html#l00046">CheckJrn()</a>, <a class="el" href="import__inc_8php-source.html#l00090">TransferCSV()</a>, and <a class="el" href="class__customer_8php-source.html#l00084">Customer::VatListing()</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a8"></a><!-- doxytag: member="setup.php::$Resdossier" 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">$Resdossier = ExecSql($cn,"select dos_id, dos_name from ac_dossier") </td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="setup_8php-source.html#l00382">382</a> of file <a class="el" href="setup_8php-source.html">setup.php</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a2"></a><!-- doxytag: member="setup.php::$sql" 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">$sql = "select lanname from pg_language where lanname='plpgsql'" </td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="setup_8php-source.html#l00250">250</a> of file <a class="el" href="setup_8php-source.html">setup.php</a>. </td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="a6"></a><!-- doxytag: member="setup.php::success< br >" 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"><a class="el" href="user__sec_8php.html#a13">else</a> <a class="el" href="impress__rapport_8php.html#a8">print</a> Connect to database success< br > </td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="setup_8php-source.html#l00376">376</a> of file <a class="el" href="setup_8php-source.html">setup.php</a>. </td>
|
|
</tr>
|
|
</table>
|
|
</BODY>
|
|
</HTML>
|