altocompta/doc/developper/html/error_8php.html
2006-07-04 22:26:13 +00:00

100 lines
6.5 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: error.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">include</a></div>
<h1>error.php File Reference</h1>Obsolete ? <a href="#_details">More...</a>
<p>
<p>
<a href="error_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="error_8php.html#a0">AnalyzeError</a> ($p_result)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Following the error code show adialog box. <a href="#a0"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Obsolete ?
<p>
<p>
Definition in file <a class="el" href="error_8php-source.html">error.php</a>.<hr><h2>Function Documentation</h2>
<a class="anchor" name="a0"></a><!-- doxytag: member="error.php::AnalyzeError" ref="a0" args="($p_result)" --><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">AnalyzeError </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>p_result</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>
Following the error code show adialog box.
<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_result</em>&nbsp;</td><td></td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="error_8php-source.html#l00033">33</a> of file <a class="el" href="error_8php-source.html">error.php</a>.<div class="fragment"><pre class="fragment"><a name="l00033"></a>00033 {
<a name="l00034"></a>00034
<a name="l00035"></a>00035 <span class="keywordflow">switch</span>( $p_result) {
<a name="l00036"></a>00036 <span class="keywordflow">case</span> <a class="code" href="constant_8php.html#a29">NOERROR</a>:
<a name="l00037"></a>00037 <span class="keywordflow">break</span>;
<a name="l00038"></a>00038 <span class="keywordflow">case</span> <a class="code" href="constant_8php.html#a30">BADPARM</a>:
<a name="l00039"></a>00039 <span class="keywordflow">break</span>;
<a name="l00040"></a>00040 <span class="keywordflow">case</span> <a class="code" href="constant_8php.html#a31">BADDATE</a>:
<a name="l00041"></a>00041 echo <span class="stringliteral">"&lt;SCRIPT&gt; alert('Invalid Date'); &lt;/SCRIPT&gt;"</span>;
<a name="l00042"></a>00042 <span class="keywordflow">break</span>;
<a name="l00043"></a>00043 <span class="keywordflow">case</span> <a class="code" href="constant_8php.html#a32">NOTPERIODE</a>:
<a name="l00044"></a>00044 echo <span class="stringliteral">"&lt;SCRIPT&gt; alert('Date n\'est pas dans la p<>riode par d<>faut, changez vos pr<70>f<EFBFBD>rences'); &lt;/SCRIPT&gt;"</span>;
<a name="l00045"></a>00045 <span class="keywordflow">break</span>;
<a name="l00046"></a>00046 <span class="keywordflow">case</span> <a class="code" href="constant_8php.html#a33">PERIODCLOSED</a>:
<a name="l00047"></a>00047 echo <span class="stringliteral">"&lt;SCRIPT&gt; alert('La date est dans une p<>riode clotur<75>'); &lt;/SCRIPT&gt;"</span>;
<a name="l00048"></a>00048 <span class="keywordflow">break</span>;
<a name="l00049"></a>00049 <span class="keywordflow">case</span> <a class="code" href="constant_8php.html#a34">INVALID_ECH</a>:
<a name="l00050"></a>00050 echo <span class="stringliteral">"&lt;SCRIPT&gt; alert('Invalid Echeance Date'); &lt;/SCRIPT&gt;"</span>;
<a name="l00051"></a>00051 <span class="keywordflow">break</span>;
<a name="l00052"></a>00052 <span class="keywordflow">case</span> <a class="code" href="constant_8php.html#a35">RAPPT_ALREADY_USED</a>:
<a name="l00053"></a>00053 echo '&lt;SCRIPT&gt;alert(<span class="stringliteral">"Ne peut enregister le rapprochement l\'op<6F>ration '.$p_rapt. "</span> est d<>j<EFBFBD> utilis<69>e\<span class="stringliteral">")&lt;/SCRIPT&gt;"</span>;
<a name="l00054"></a>00054 <span class="keywordflow">break</span>;
<a name="l00055"></a>00055 <span class="keywordflow">case</span> RAPPT_NOT_EXIST:
<a name="l00056"></a>00056 echo '&lt;SCRIPT&gt;alert(<span class="stringliteral">"Ne peut enregister le rapprochement l\'op<6F>ration '.$p_rapt. "</span> n\'existe pas \<span class="stringliteral">")&lt;/SCRIPT&gt;"</span>;
<a name="l00057"></a>00057 <span class="keywordflow">break</span>;
<a name="l00058"></a>00058 <span class="keywordflow">case</span> DIFF_AMOUNT:
<a name="l00059"></a>00059 echo <span class="stringliteral">"&lt;SCRIPT&gt;alert(\"Le Montant au d<>bit n'est pas <20>gal au montant au cr<63>dit\"); &lt;/SCRIPT&gt;"</span>;
<a name="l00060"></a>00060 <span class="keywordflow">break</span>;
<a name="l00061"></a>00061 <span class="keywordflow">case</span> RAPPT_NOMATCH_AMOUNT:
<a name="l00062"></a>00062 echo '&lt;SCRIPT&gt;alert(<span class="stringliteral">"Ne peut enregister le rapprochement l\'op<6F>ration '.$p_rapt. "</span> les montants ne correspondent pas \<span class="stringliteral">")&lt;/SCRIPT&gt;"</span>;
<a name="l00063"></a>00063 <span class="keywordflow">break</span>;
<a name="l00064"></a>00064 }
<a name="l00065"></a>00065 }
</pre></div>
<p>
</td>
</tr>
</table>
</BODY>
</HTML>