ajout commentaire pour doxygen

This commit is contained in:
opensides 2004-07-15 12:40:07 +00:00
parent 5814583adb
commit de5343eeaa
19 changed files with 2975 additions and 0 deletions

View File

@ -0,0 +1,167 @@
<!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>dolibarr: htdocs/lib/CMailFile.class.php Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Généré par Doxygen 1.3.7 -->
<div class="qindex"><a class="qindex" href="index.html">Page&nbsp;principale</a> | <a class="qindex" href="files.html">Liste&nbsp;des&nbsp;fichiers</a> | <a class="qindex" href="globals.html">Membres&nbsp;de&nbsp;fichier</a></div>
<h1>htdocs/lib/CMailFile.class.php</h1><pre class="fragment"><div>00001 &lt;?php
00002 <span class="comment">/* notes from Dan Potter:</span>
00003 <span class="comment">Sure. I changed a few other things in here too though. One is that I let</span>
00004 <span class="comment">you specify what the destination filename is (i.e., what is shows up as in</span>
00005 <span class="comment">the attachment). This is useful since in a web submission you often can't</span>
00006 <span class="comment">tell what the filename was supposed to be from the submission itself. I</span>
00007 <span class="comment">also added my own version of chunk_split because our production version of</span>
00008 <span class="comment">PHP doesn't have it. You can change that back or whatever though =).</span>
00009 <span class="comment">Finally, I added an extra "\n" before the message text gets added into the</span>
00010 <span class="comment">MIME output because otherwise the message text wasn't showing up.</span>
00011 <span class="comment">/*</span>
00012 <span class="comment">note: someone mentioned a command-line utility called 'mutt' that </span>
00013 <span class="comment">can mail attachments.</span>
00014 <span class="comment">*/</span>
00015 <span class="comment">/* </span>
00016 <span class="comment">If chunk_split works on your system, change the call to my_chunk_split</span>
00017 <span class="comment">to chunk_split </span>
00018 <span class="comment">*/</span>
00019 <span class="comment">/* Note: if you don't have base64_encode on your sytem it will not work */</span>
00020
00021 <span class="comment">/*</span>
00022 <span class="comment"> Éric Seigne &lt;eric.seigne@ryxeo.com&gt; 2004.01.08</span>
00023 <span class="comment"> - ajout de la gestion du Cc</span>
00024 <span class="comment"> - ajout de l'expédition de plusieurs fichiers</span>
00025 <span class="comment"></span>
00026 <span class="comment"> Laurent Destailleur 2004.02.10</span>
00027 <span class="comment"> - Correction d'un disfonctionnement suite à modif précédente sur la gestion</span>
00028 <span class="comment"> des attachements multi-fichiers</span>
00029 <span class="comment">*/</span>
00030
00031 <span class="comment">// simple class that encapsulates mail() with addition of mime file attachment.</span>
00032 <span class="keyword">class </span>CMailFile
00033 {
00034 var $subject;
00035 var $addr_to;
00036 var $addr_cc;
00037 var $text_body;
00038 var $text_encoded;
00039 var $mime_headers;
00040 var $mime_boundary = <span class="stringliteral">"--==================_846811060==_"</span>;
00041 var $smtp_headers;
00042
00043 <span class="comment">// CMail("sujet","email_to","email_from","email_msg",tableau du path de fichiers,tableau de type mime,tableau de noms fichiers,"chaine cc")</span>
00044 function CMailFile($subject,$to,$from,$msg,$filename_list,$mimetype_list,$mimefilename_list,$addr_cc = <span class="stringliteral">""</span>)
00045 {
00046 $this-&gt;subject = $subject;
00047 $this-&gt;addr_to = $to;
00048 $this-&gt;smtp_headers = $this-&gt;write_smtpheaders($from,$addr_cc);
00049 $this-&gt;text_body = $this-&gt;write_body($msg, $filename_list);
00050 <span class="keywordflow">if</span> (count($filename_list)) {
00051 $this-&gt;mime_headers = $this-&gt;write_mimeheaders($filename_list, $mimefilename_list);
00052 $this-&gt;text_encoded = $this-&gt;attach_file($filename_list,$mimetype_list,$mimefilename_list);
00053 }
00054 }
00055
00056 function attach_file($filename_list,$mimetype_list,$mimefilename_list)
00057 {
00058 <span class="keywordflow">for</span> ($i = 0; $i &lt; count($filename_list); $i++) {
00059 $encoded = $this-&gt;encode_file($filename_list[$i]);
00060 <span class="keywordflow">if</span> ($mimefilename_list[$i]) $filename_list[$i] = $mimefilename_list[$i];
00061 $out = $out . <span class="stringliteral">"--"</span> . $this-&gt;mime_boundary . <span class="stringliteral">"\n"</span>;
00062 <span class="keywordflow">if</span> (! $mimetype_list[$i]) { $mimetype_list[$i] = <span class="stringliteral">"application/octet-stream"</span>; }
00063 $out = $out . <span class="stringliteral">"Content-type: "</span> . $mimetype_list[$i] . <span class="stringliteral">"; name=\"$filename_list[$i]\";\n"</span>;
00064 $out = $out . <span class="stringliteral">"Content-Transfer-Encoding: base64\n"</span>;
00065 $out = $out . <span class="stringliteral">"Content-disposition: attachment; filename=\"$filename_list[$i]\"\n\n"</span>;
00066 $out = $out . $encoded . <span class="stringliteral">"\n"</span>;
00067 }
00068 $out = $out . <span class="stringliteral">"--"</span> . $this-&gt;mime_boundary . <span class="stringliteral">"--"</span> . <span class="stringliteral">"\n"</span>;
00069 <span class="keywordflow">return</span> $out;
00070 <span class="comment">// added -- to notify email client attachment is done</span>
00071 }
00072
00073 function encode_file($sourcefile)
00074 {
00075 <span class="comment">// print "&lt;pre&gt; on encode $sourcefile &lt;/pre&gt;\n";</span>
00076 <span class="keywordflow">if</span> (is_readable($sourcefile))
00077 {
00078 $fd = fopen($sourcefile, <span class="stringliteral">"r"</span>);
00079 $contents = fread($fd, filesize($sourcefile));
00080 $encoded = my_chunk_split(base64_encode($contents));
00081 fclose($fd);
00082 }
00083 <span class="keywordflow">return</span> $encoded;
00084 }
00085
00086 function sendfile()
00087 {
00088 $headers .= $this-&gt;smtp_headers . $this-&gt;mime_headers;
00089 $message = $this-&gt;text_body . $this-&gt;text_encoded;
00090 <span class="keywordflow">return</span> mail($this-&gt;addr_to,$this-&gt;subject,stripslashes($message),$headers);
00091 }
00092
00093 function write_body($msgtext, $filename_list)
00094 {
00095 <span class="keywordflow">if</span> (count($filename_list))
00096 {
00097 $out = <span class="stringliteral">"--"</span> . $this-&gt;mime_boundary . <span class="stringliteral">"\n"</span>;
00098 $out = $out . <span class="stringliteral">"Content-Type: text/plain; charset=\"iso8859-15\"\n\n"</span>;
00099 <span class="comment">// $out = $out . "Content-Type: text/plain; charset=\"us-ascii\"\n\n";</span>
00100 }
00101 $out = $out . $msgtext . <span class="stringliteral">"\n"</span>;
00102 <span class="keywordflow">return</span> $out;
00103 }
00104
00105 function write_mimeheaders($filename_list, $mimefilename_list) {
00106 $out = <span class="stringliteral">"MIME-version: 1.0\n"</span>;
00107 $out = $out . <span class="stringliteral">"Content-type: multipart/mixed; "</span>;
00108 $out = $out . <span class="stringliteral">"boundary=\"$this-&gt;mime_boundary\"\n"</span>;
00109 $out = $out . <span class="stringliteral">"Content-transfer-encoding: 7BIT\n"</span>;
00110 <span class="keywordflow">for</span>($i = 0; $i &lt; count($filename_list); $i++) {
00111 <span class="keywordflow">if</span> ($mimefilename_list[$i]) $filename_list[$i] = $mimefilename_list[$i];
00112 $out = $out . <span class="stringliteral">"X-attachments: $filename_list[$i];\n\n"</span>;
00113 }
00114 <span class="keywordflow">return</span> $out;
00115 }
00116
00117 function write_smtpheaders($addr_from,$addr_cc)
00118 {
00119 $out = <span class="stringliteral">"From: $addr_from\n"</span>;
00120 <span class="keywordflow">if</span>($addr_cc != <span class="stringliteral">""</span>)
00121 $out = $out . <span class="stringliteral">"Cc: $addr_cc\n"</span>;
00122 $out = $out . <span class="stringliteral">"Reply-To: $addr_from\n"</span>;
00123 $out = $out . <span class="stringliteral">"X-Mailer: Dolibarr version "</span> . DOL_VERSION .<span class="stringliteral">"\n"</span>;
00124 $out = $out . <span class="stringliteral">"X-Sender: $addr_from\n"</span>;
00125 <span class="keywordflow">return</span> $out;
00126 }
00127 }
00128
00129 <span class="comment">// usage - mimetype example "image/gif"</span>
00130 <span class="comment">// $mailfile = new CMailFile($subject,$sendto,$replyto,$message,$filename,$mimetype);</span>
00131 <span class="comment">// $mailfile-&gt;sendfile();</span>
00132
00133 <span class="comment">// Splits a string by RFC2045 semantics (76 chars per line, end with \r\n).</span>
00134 <span class="comment">// This is not in all PHP versions so I define one here manuall.</span>
00135 function my_chunk_split($str)
00136 {
00137 $stmp = $str;
00138 $len = strlen($stmp);
00139 $out = <span class="stringliteral">""</span>;
00140 <span class="keywordflow">while</span> ($len &gt; 0) {
00141 <span class="keywordflow">if</span> ($len &gt;= 76) {
00142 $out = $out . substr($stmp, 0, 76) . <span class="stringliteral">"\r\n"</span>;
00143 $stmp = substr($stmp, 76);
00144 $len = $len - 76;
00145 }
00146 <span class="keywordflow">else</span> {
00147 $out = $out . $stmp . <span class="stringliteral">"\r\n"</span>;
00148 $stmp = <span class="stringliteral">""</span>; $len = 0;
00149 }
00150 }
00151 <span class="keywordflow">return</span> $out;
00152 }
00153
00154 <span class="comment">// end script</span>
00155 ?&gt;
</div></pre><hr size="1"><address style="align: right;"><small>Généré le Thu Jul 15 14:51:57 2004 pour dolibarr par
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.7 </small></address>
</body>
</html>

View File

@ -0,0 +1,218 @@
H1 {
text-align: center;
font-family: Geneva, Arial, Helvetica, sans-serif;
}
H2 {
font-family: Geneva, Arial, Helvetica, sans-serif;
}
CAPTION { font-weight: bold }
DIV.qindex {
width: 100%;
background-color: #eeeeff;
border: 1px solid #B0B0B0;
text-align: center;
margin: 2px;
padding: 2px;
line-height: 120%;
}
A.qindex {
text-decoration: none;
font-weight: bold;
color: #1A419D;
padding: 2px;
}
A.qindex:visited {
text-decoration: none;
font-weight: bold;
color: #1A419D
padding: 2px;
}
A.qindex:hover {
text-decoration: none;
background-color: #ddddff;
padding: 2px;
}
A.qindexHL {
text-decoration: none;
font-weight: bold;
background-color: #6666cc;
color: #ffffff;
padding: 2px 6px;
border: 1px double #9295C2;
}
A.qindexHL:hover {
text-decoration: none;
background-color: #6666cc;
color: #ffffff;
padding: 2px 6px;
}
A.qindexHL:visited { text-decoration: none; background-color: #6666cc; color: #ffffff }
A.el { text-decoration: none; font-weight: bold }
A.elRef { font-weight: bold }
A.code { text-decoration: none; font-weight: normal; color: #1A419D}
A.codeRef { font-weight: normal; color: #1A419D}
A:hover { text-decoration: none; background-color: #f2f2ff }
DL.el { margin-left: -1cm }
PRE.fragment {
border: 1px solid #CCCCCC;
background-color: #f5f5f5;
margin-top: 4px;
margin-bottom: 4px;
margin-left: 2px;
margin-right: 8px;
padding-left: 6px;
padding-right: 6px;
padding-top: 4px;
padding-bottom: 4px;
}
DIV.fragment {
border: 1px solid #CCCCCC;
background-color: #f5f5f5;
padding: 6px;
}
DIV.ah { background-color: black; font-weight: bold; color: #ffffff; margin-bottom: 3px; margin-top: 3px }
TD.md { background-color: #F4F4FB; font-weight: bold; }
TD.mdname1 { background-color: #F4F4FB; font-weight: bold; color: #602020; }
TD.mdname { background-color: #F4F4FB; font-weight: bold; color: #602020; width: 600px; }
DIV.groupHeader {
margin-left: 16px;
margin-top: 12px;
margin-bottom: 6px;
font-weight: bold;
font-family: Geneva, Arial, Helvetica, sans-serif;
}
DIV.groupText { margin-left: 16px; font-style: italic; font-size: smaller }
BODY {
background: white;
color: black;
margin-right: 20px;
margin-left: 20px;
}
TD.indexkey {
background-color: #eeeeff;
font-weight: bold;
padding-right : 10px;
padding-top : 2px;
padding-left : 10px;
padding-bottom : 2px;
margin-left : 0px;
margin-right : 0px;
margin-top : 2px;
margin-bottom : 2px;
border: 1px solid #CCCCCC;
}
TD.indexvalue {
background-color: #eeeeff;
font-style: italic;
padding-right : 10px;
padding-top : 2px;
padding-left : 10px;
padding-bottom : 2px;
margin-left : 0px;
margin-right : 0px;
margin-top : 2px;
margin-bottom : 2px;
border: 1px solid #CCCCCC;
}
TR.memlist {
background-color: #f0f0f0;
}
P.formulaDsp { text-align: center; }
IMG.formulaDsp { }
IMG.formulaInl { vertical-align: middle; }
SPAN.keyword { color: #008000 }
SPAN.keywordtype { color: #604020 }
SPAN.keywordflow { color: #e08000 }
SPAN.comment { color: #800000 }
SPAN.preprocessor { color: #806020 }
SPAN.stringliteral { color: #002080 }
SPAN.charliteral { color: #008080 }
.mdTable {
border: 1px solid #868686;
background-color: #F4F4FB;
}
.mdRow {
padding: 8px 10px;
}
.mdescLeft {
font-size: smaller;
font-style: italic;
background-color: #FAFAFA;
padding-left: 8px;
border-top: 1px none #E0E0E0;
border-right: 1px none #E0E0E0;
border-bottom: 1px none #E0E0E0;
border-left: 1px none #E0E0E0;
margin: 0px;
}
.mdescRight {
font-size: smaller;
font-style: italic;
background-color: #FAFAFA;
padding-left: 4px;
border-top: 1px none #E0E0E0;
border-right: 1px none #E0E0E0;
border-bottom: 1px none #E0E0E0;
border-left: 1px none #E0E0E0;
margin: 0px;
padding-bottom: 0px;
padding-right: 8px;
}
.memItemLeft {
padding: 1px 0px 0px 8px;
margin: 4px;
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
border-top-style: solid;
border-top-color: #E0E0E0;
border-right-color: #E0E0E0;
border-bottom-color: #E0E0E0;
border-left-color: #E0E0E0;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
background-color: #FAFAFA;
font-family: Geneva, Arial, Helvetica, sans-serif;
font-size: 12px;
}
.memItemRight {
padding: 1px 0px 0px 8px;
margin: 4px;
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
border-top-style: solid;
border-top-color: #E0E0E0;
border-right-color: #E0E0E0;
border-bottom-color: #E0E0E0;
border-left-color: #E0E0E0;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
background-color: #FAFAFA;
font-family: Geneva, Arial, Helvetica, sans-serif;
font-size: 13px;
}
.search { color: #003399;
font-weight: bold;
}
FORM.search {
margin-bottom: 0px;
margin-top: 0px;
}
INPUT.search { font-size: 75%;
color: #000080;
font-weight: normal;
background-color: #eeeeff;
}
TD.tiny { font-size: 75%;
}
a {
color: #252E78;
}
a:visited {
color: #3D2185;
}

View File

@ -0,0 +1,21 @@
<!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>dolibarr: File Index</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Généré par Doxygen 1.3.7 -->
<div class="qindex"><a class="qindex" href="index.html">Page&nbsp;principale</a> | <a class="qindexHL" href="files.html">Liste&nbsp;des&nbsp;fichiers</a> | <a class="qindex" href="globals.html">Membres&nbsp;de&nbsp;fichier</a></div>
<h1>dolibarr Liste des fichiers</h1>Liste de tous les fichiers documentés avec une brève description:<table>
<tr><td class="indexkey">htdocs/lib/<b>CMailFile.class.php</b> <a href="CMailFile_8class_8php-source.html">[code]</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey">htdocs/lib/<b>functions.inc.php</b> <a href="functions_8inc_8php-source.html">[code]</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey">htdocs/lib/<a class="el" href="ldap_8lib_8php.html">ldap.lib.php</a> <a href="ldap_8lib_8php-source.html">[code]</a></td><td class="indexvalue">Librairie contenant les fonctions pour accèder au serveur ldap </td></tr>
<tr><td class="indexkey">htdocs/lib/<a class="el" href="mysql_8lib_8php.html">mysql.lib.php</a> <a href="mysql_8lib_8php-source.html">[code]</a></td><td class="indexvalue">Classes permettant de gérér la database de dolibarr </td></tr>
<tr><td class="indexkey">htdocs/lib/<a class="el" href="price_8lib_8php.html">price.lib.php</a> <a href="price_8lib_8php-source.html">[code]</a></td><td class="indexvalue">Librairie contenant les fonctions pour calculer un prix </td></tr>
<tr><td class="indexkey">htdocs/lib/<a class="el" href="thermometer_8php.html">thermometer.php</a> <a href="thermometer_8php-source.html">[code]</a></td><td class="indexvalue">Classe permettant d'afficher un thermometre </td></tr>
<tr><td class="indexkey">htdocs/lib/<a class="el" href="webcal_8class_8php.html">webcal.class.php</a> <a href="webcal_8class_8php-source.html">[code]</a></td><td class="indexvalue">Classe permettant d'acceder a la database webcalendar </td></tr>
</table>
<hr size="1"><address style="align: right;"><small>Généré le Thu Jul 15 14:51:57 2004 pour dolibarr par
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.7 </small></address>
</body>
</html>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,25 @@
<!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>dolibarr: File Member Index</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Généré par Doxygen 1.3.7 -->
<div class="qindex"><a class="qindex" href="index.html">Page&nbsp;principale</a> | <a class="qindex" href="files.html">Liste&nbsp;des&nbsp;fichiers</a> | <a class="qindexHL" href="globals.html">Membres&nbsp;de&nbsp;fichier</a></div>
<div class="qindex"><a class="qindexHL" href="globals.html">Tout</a> | <a class="qindex" href="globals_func.html">Fonctions</a></div>
<p>
Liste de tous les membres de fichier documentés avec liens vers la documentation:<ul>
<li>calcul_price()
: <a class="el" href="price_8lib_8php.html#a0">price.lib.php</a><li>dolibarr_ldap_bind()
: <a class="el" href="ldap_8lib_8php.html#a1">ldap.lib.php</a><li>dolibarr_ldap_connect()
: <a class="el" href="ldap_8lib_8php.html#a0">ldap.lib.php</a><li>dolibarr_ldap_getversion()
: <a class="el" href="ldap_8lib_8php.html#a3">ldap.lib.php</a><li>dolibarr_ldap_setversion()
: <a class="el" href="ldap_8lib_8php.html#a4">ldap.lib.php</a><li>dolibarr_ldap_unacc()
: <a class="el" href="ldap_8lib_8php.html#a5">ldap.lib.php</a><li>dolibarr_ldap_unbind()
: <a class="el" href="ldap_8lib_8php.html#a2">ldap.lib.php</a><li>moneyMeter()
: <a class="el" href="thermometer_8php.html#a0">thermometer.php</a></ul>
<hr size="1"><address style="align: right;"><small>Généré le Thu Jul 15 14:51:57 2004 pour dolibarr par
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.7 </small></address>
</body>
</html>

View File

@ -0,0 +1,25 @@
<!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>dolibarr: File Member Index</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Généré par Doxygen 1.3.7 -->
<div class="qindex"><a class="qindex" href="index.html">Page&nbsp;principale</a> | <a class="qindex" href="files.html">Liste&nbsp;des&nbsp;fichiers</a> | <a class="qindexHL" href="globals.html">Membres&nbsp;de&nbsp;fichier</a></div>
<div class="qindex"><a class="qindex" href="globals.html">Tout</a> | <a class="qindexHL" href="globals_func.html">Fonctions</a></div>
<p>
<ul>
<li>calcul_price()
: <a class="el" href="price_8lib_8php.html#a0">price.lib.php</a><li>dolibarr_ldap_bind()
: <a class="el" href="ldap_8lib_8php.html#a1">ldap.lib.php</a><li>dolibarr_ldap_connect()
: <a class="el" href="ldap_8lib_8php.html#a0">ldap.lib.php</a><li>dolibarr_ldap_getversion()
: <a class="el" href="ldap_8lib_8php.html#a3">ldap.lib.php</a><li>dolibarr_ldap_setversion()
: <a class="el" href="ldap_8lib_8php.html#a4">ldap.lib.php</a><li>dolibarr_ldap_unacc()
: <a class="el" href="ldap_8lib_8php.html#a5">ldap.lib.php</a><li>dolibarr_ldap_unbind()
: <a class="el" href="ldap_8lib_8php.html#a2">ldap.lib.php</a><li>moneyMeter()
: <a class="el" href="thermometer_8php.html#a0">thermometer.php</a></ul>
<hr size="1"><address style="align: right;"><small>Généré le Thu Jul 15 14:51:57 2004 pour dolibarr par
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.7 </small></address>
</body>
</html>

View File

@ -0,0 +1,22 @@
digraph G
{
edge [fontname="Helvetica",fontsize=10,labelfontname="Helvetica",labelfontsize=10];
node [fontname="Helvetica",fontsize=10,shape=record];
Node9 [shape="box",label="Inherited",fontsize=10,height=0.2,width=0.4,fontname="Helvetica",color="black",style="filled" fontcolor="white"];
Node10 -> Node9 [dir=back,color="midnightblue",fontsize=10,style="solid",fontname="Helvetica"];
Node10 [shape="box",label="PublicBase",fontsize=10,height=0.2,width=0.4,fontname="Helvetica",color="black",URL="$classPublicBase.html"];
Node11 -> Node10 [dir=back,color="midnightblue",fontsize=10,style="solid",fontname="Helvetica"];
Node11 [shape="box",label="Truncated",fontsize=10,height=0.2,width=0.4,fontname="Helvetica",color="red",URL="$classTruncated.html"];
Node13 -> Node9 [dir=back,color="darkgreen",fontsize=10,style="solid",fontname="Helvetica"];
Node13 [shape="box",label="ProtectedBase",fontsize=10,height=0.2,width=0.4,fontname="Helvetica",color="black",URL="$classProtectedBase.html"];
Node14 -> Node9 [dir=back,color="firebrick4",fontsize=10,style="solid",fontname="Helvetica"];
Node14 [shape="box",label="PrivateBase",fontsize=10,height=0.2,width=0.4,fontname="Helvetica",color="black",URL="$classPrivateBase.html"];
Node15 -> Node9 [dir=back,color="midnightblue",fontsize=10,style="solid",fontname="Helvetica"];
Node15 [shape="box",label="Undocumented",fontsize=10,height=0.2,width=0.4,fontname="Helvetica",color="grey75"];
Node16 -> Node9 [dir=back,color="midnightblue",fontsize=10,style="solid",fontname="Helvetica"];
Node16 [shape="box",label="Templ< int >",fontsize=10,height=0.2,width=0.4,fontname="Helvetica",color="black",URL="$classTempl.html"];
Node17 -> Node16 [dir=back,color="orange",fontsize=10,style="dashed",label="< int >",fontname="Helvetica"];
Node17 [shape="box",label="Templ< T >",fontsize=10,height=0.2,width=0.4,fontname="Helvetica",color="black",URL="$classTempl.html"];
Node18 -> Node9 [dir=back,color="darkorchid3",fontsize=10,style="dashed",label="m_usedClass",fontname="Helvetica"];
Node18 [shape="box",label="Used",fontsize=10,height=0.2,width=0.4,fontname="Helvetica",color="black",URL="$classUsed.html"];
}

View File

@ -0,0 +1,73 @@
<!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>dolibarr: Graph Legend</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Généré par Doxygen 1.3.7 -->
<div class="qindex"><a class="qindex" href="index.html">Page&nbsp;principale</a> | <a class="qindex" href="files.html">Liste&nbsp;des&nbsp;fichiers</a> | <a class="qindex" href="globals.html">Membres&nbsp;de&nbsp;fichier</a></div>
<h1>Légende du graphe</h1>Cette page explique comment interpréter les graphes générés par doxygen.<p>
Considérez l'exemple suivant: <pre><div class="fragment"><span class="comment">/*! Classe invisible à cause d'une troncature */</span>
<span class="keyword">class </span>Invisible { };
<span class="comment"></span>
<span class="comment">/*! Classe tronquée, la relation d'héritage est masquée */</span>
<span class="keyword">class </span>Truncated : <span class="keyword">public</span> Invisible { };
<span class="comment"></span>
<span class="comment">/*! Classe non documentée avec des commentaires Doxygen */</span>
<span class="keyword">class </span>Undocumented { };
<span class="comment"></span>
<span class="comment">/*! Classe dérivée par héritage public */</span>
<span class="keyword">class </span>PublicBase : <span class="keyword">public</span> Truncated { };
<span class="comment"></span>
<span class="comment">/*! Un modèle de classe */</span>
<span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keyword">class </span>Templ { };
<span class="comment"></span>
<span class="comment">/*! Classe dérivée par héritage protégé */</span>
<span class="keyword">class </span>ProtectedBase { };
<span class="comment"></span>
<span class="comment">/*! Classe dérivée par héritage privé */</span>
<span class="keyword">class </span>PrivateBase { };
<span class="comment"></span>
<span class="comment">/*! Classe utilisée par la classe dérivée */</span>
<span class="keyword">class </span>Used { };
<span class="comment"></span>
<span class="comment">/*! Super-classe qui hérite de plusieurs autres classes */</span>
<span class="keyword">class </span>Inherited : <span class="keyword">public</span> PublicBase,
<span class="keyword">protected</span> ProtectedBase,
<span class="keyword">private</span> PrivateBase,
<span class="keyword">public</span> Undocumented
<span class="keyword">public</span> Templ&lt;int&gt;
{
<span class="keyword">private</span>:
Used *m_usedClass;
};
</div></pre>Si la valeur 240 est attribuée au tag <code>MAX_DOT_GRAPH_HEIGHT</code> du fichier de configuration, cela génèrera le graphe suivant:&lt;p&gt;<center><div align="center">
<img src="graph_legend.png" alt="graph_legend.png" alt>
</div>
</center> <p>
Les rectangles du graphe ci-dessus ont la signification suivante: <ul>
<li>
Un rectangle plein noir représente la structure ou la classe pour laquelle le graphe est généré. </li>
<li>
Un rectangle avec un bord noir indique une classe ou une structure documentée. </li>
<li>
Un rectangle avec un bord gris indique une classe ou une structure non documentée. </li>
<li>
Un rectangle avec un bord rouge indique une structure ou une classe documentée pour laquelle des relations d'héritage ou de collaboration manquent. Un graphe est tronqué s'il n'entre pas dans les limites spécifiées.</li>
</ul>
Les flèches ont la signification suivante: <ul>
<li>
Une flèche bleu foncé est utilisée pour visualiser une relation d'héritage public entre deux classes. </li>
<li>
Une flèche vert foncé est utilisée pour une relation d'héritage protégé. </li>
<li>
Une flèche rouge foncé est utilisée pour une relation d'héritage privé. </li>
<li>
Une flèche violette en pointillés est utilisée si une classe est contenue ou utilisée par une autre classe. La flèche est étiquetée avec la ou les variable(s) qui permettent d'accéder à la classe ou structure pointée. </li>
<li>
Une flèche verte en pointillés indique une relation entre une classe instanciée et le modèle de classe utilisé. La flèche est étiquetée avec les paramètres de modèle de la classe instanciée. </li>
</ul>
<hr size="1"><address style="align: right;"><small>Généré le Thu Jul 15 14:51:58 2004 pour dolibarr par
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.7 </small></address>
</body>
</html>

View File

@ -0,0 +1,14 @@
<!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>dolibarr: Page principale</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Généré par Doxygen 1.3.7 -->
<div class="qindex"><a class="qindexHL" href="index.html">Page&nbsp;principale</a> | <a class="qindex" href="files.html">Liste&nbsp;des&nbsp;fichiers</a> | <a class="qindex" href="globals.html">Membres&nbsp;de&nbsp;fichier</a></div>
<h1>dolibarr Documentation</h1>
<p>
<h3 align="center">1.2.0 </h3><hr size="1"><address style="align: right;"><small>Généré le Thu Jul 15 14:51:57 2004 pour dolibarr par
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.7 </small></address>
</body>
</html>

View File

@ -0,0 +1,90 @@
<!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>dolibarr: htdocs/lib/ldap.lib.php Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Généré par Doxygen 1.3.7 -->
<div class="qindex"><a class="qindex" href="index.html">Page&nbsp;principale</a> | <a class="qindex" href="files.html">Liste&nbsp;des&nbsp;fichiers</a> | <a class="qindex" href="globals.html">Membres&nbsp;de&nbsp;fichier</a></div>
<h1>htdocs/lib/ldap.lib.php</h1><a href="ldap_8lib_8php.html">Aller à la documentation de ce fichier.</a><pre class="fragment"><div>00001 &lt;?PHP
00002 <span class="comment">/* Copyright (C) 2004 Rodolphe Quiedeville &lt;rodolphe@quiedeville.org&gt;</span>
00003 <span class="comment"> * Copyright (C) 2004 Benoit Mortier &lt;benoit.mortier@opensides.be&gt;</span>
00004 <span class="comment"> *</span>
00005 <span class="comment"> * This program is free software; you can redistribute it and/or modify</span>
00006 <span class="comment"> * it under the terms of the GNU General Public License as published by</span>
00007 <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span>
00008 <span class="comment"> * (at your option) any later version.</span>
00009 <span class="comment"> *</span>
00010 <span class="comment"> * This program is distributed in the hope that it will be useful,</span>
00011 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
00012 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span>
00013 <span class="comment"> * GNU General Public License for more details.</span>
00014 <span class="comment"> *</span>
00015 <span class="comment"> * You should have received a copy of the GNU General Public License</span>
00016 <span class="comment"> * along with this program; if not, write to the Free Software</span>
00017 <span class="comment"> * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.</span>
00018 <span class="comment"> * or see http://www.gnu.org/</span>
00019 <span class="comment"> *</span>
00020 <span class="comment"> * $Id$</span>
00021 <span class="comment"> * $Source$</span>
00022 <span class="comment"> *</span>
00023 <span class="comment"> */</span>
00024
<a name="l00040"></a><a class="code" href="ldap_8lib_8php.html#a0">00040</a> function <a class="code" href="ldap_8lib_8php.html#a0">dolibarr_ldap_connect</a>()
00041 {
00042 $ldapconnect = ldap_connect(LDAP_SERVER_HOST);
00043
00044 <span class="keywordflow">return</span> $ldapconnect;
00045 }
00046
<a name="l00054"></a><a class="code" href="ldap_8lib_8php.html#a1">00054</a> function <a class="code" href="ldap_8lib_8php.html#a1">dolibarr_ldap_bind</a>($ds)
00055 {
00056 <span class="keywordflow">if</span> (defined(<span class="stringliteral">"LDAP_SERVER_PASS"</span>) &amp;&amp; LDAP_SERVER_DN &amp;&amp; LDAP_SERVER_PASS)
00057 {
00058 $ldapbind = ldap_bind($ds, LDAP_SERVER_DN, LDAP_SERVER_PASS);
00059 }
00060
00061 <span class="keywordflow">return</span> $ldapbind;
00062 }
00063
<a name="l00070"></a><a class="code" href="ldap_8lib_8php.html#a2">00070</a> function <a class="code" href="ldap_8lib_8php.html#a2">dolibarr_ldap_unbind</a>($ds)
00071 {
00072
00073 $ldapunbind = ldap_unbind($ds);
00074
00075 <span class="keywordflow">return</span> $ldapunbind;
00076 }
00077
<a name="l00084"></a><a class="code" href="ldap_8lib_8php.html#a3">00084</a> function <a class="code" href="ldap_8lib_8php.html#a3">dolibarr_ldap_getversion</a>($ds)
00085 {
00086 $version = 0;
00087
00088 ldap_get_option($ds, LDAP_OPT_PROTOCOL_VERSION, $version);
00089
00090 <span class="keywordflow">return</span> $version;
00091 }
00092
<a name="l00101"></a><a class="code" href="ldap_8lib_8php.html#a4">00101</a> function <a class="code" href="ldap_8lib_8php.html#a4">dolibarr_ldap_setversion</a>($ds,$version)
00102 {
00103 $ldapsetversion = ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, $version);
00104
00105 <span class="keywordflow">return</span> $ldapsetversion;
00106 }
00107
<a name="l00114"></a><a class="code" href="ldap_8lib_8php.html#a5">00114</a> function <a class="code" href="ldap_8lib_8php.html#a5">dolibarr_ldap_unacc</a>($str)
00115 {
00116 $stu = ereg_replace(<span class="stringliteral">"é"</span>,<span class="stringliteral">"e"</span>,$str);
00117 $stu = ereg_replace(<span class="stringliteral">"è"</span>,<span class="stringliteral">"e"</span>,$stu);
00118 $stu = ereg_replace(<span class="stringliteral">"ê"</span>,<span class="stringliteral">"e"</span>,$stu);
00119 $stu = ereg_replace(<span class="stringliteral">"à"</span>,<span class="stringliteral">"a"</span>,$stu);
00120 $stu = ereg_replace(<span class="stringliteral">"ç"</span>,<span class="stringliteral">"c"</span>,$stu);
00121 $stu = ereg_replace(<span class="stringliteral">"ï"</span>,<span class="stringliteral">"i"</span>,$stu);
00122 $stu = ereg_replace(<span class="stringliteral">"ä"</span>,<span class="stringliteral">"a"</span>,$stu);
00123 <span class="keywordflow">return</span> $stu;
00124 }
00125
00126 ?&gt;
</div></pre><hr size="1"><address style="align: right;"><small>Généré le Thu Jul 15 14:51:57 2004 pour dolibarr par
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.7 </small></address>
</body>
</html>

View File

@ -0,0 +1,280 @@
<!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>dolibarr: ldap.lib.php File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Généré par Doxygen 1.3.7 -->
<div class="qindex"><a class="qindex" href="index.html">Page&nbsp;principale</a> | <a class="qindex" href="files.html">Liste&nbsp;des&nbsp;fichiers</a> | <a class="qindex" href="globals.html">Membres&nbsp;de&nbsp;fichier</a></div>
<h1>Référence du fichier htdocs/lib/ldap.lib.php</h1>Librairie contenant les fonctions pour accèder au serveur ldap.
<a href="#_details">Plus de détails...</a>
<p>
<p>
<a href="ldap_8lib_8php-source.html">Aller au code source de ce fichier.</a><table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<tr><td colspan=2><br><h2>Fonctions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="ldap_8lib_8php.html#a0">dolibarr_ldap_connect</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">ouverture d'une connection vers le serveur ldap. <a href="#a0"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="ldap_8lib_8php.html#a1">dolibarr_ldap_bind</a> ($ds)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">bind au serveur ldap. <a href="#a1"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="ldap_8lib_8php.html#a2">dolibarr_ldap_unbind</a> ($ds)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">unbind du serveur ldap. <a href="#a2"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="ldap_8lib_8php.html#a3">dolibarr_ldap_getversion</a> ($ds)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">verification de la version du serveur ldap. <a href="#a3"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="ldap_8lib_8php.html#a4">dolibarr_ldap_setversion</a> ($ds, $version)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">changement de la version du serveur ldap. <a href="#a4"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="ldap_8lib_8php.html#a5">dolibarr_ldap_unacc</a> ($str)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">permet d'enlever les accents d'une chaine. <a href="#a5"></a><br><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Description détaillée</h2>
Librairie contenant les fonctions pour accèder au serveur ldap.
<p>
<dl compact><dt><b>Auteur:</b></dt><dd>Rodolphe Quiedeville. <p>
Benoit Mortier. </dd></dl>
<dl compact><dt><b>Version:</b></dt><dd>1.2.</dd></dl>
Ensemble des fonctions permettant d'accèder à un serveur ldap.
<p>
Définition dans le fichier <a class="el" href="ldap_8lib_8php-source.html">ldap.lib.php</a>.<hr><h2>Documentation des fonctions</h2>
<a class="anchor" name="a1" doxytag="ldap.lib.php::dolibarr_ldap_bind" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> dolibarr_ldap_bind </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>ds</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>
bind au serveur ldap.
<p>
<dl compact><dt><b>Paramètres:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>ds</em>&nbsp;</td><td></td></tr>
</table>
</dl>
<dl compact><dt><b>Renvoie:</b></dt><dd>bool </dd></dl>
<p>
Définition à la ligne <a class="el" href="ldap_8lib_8php-source.html#l00054">54</a> du fichier <a class="el" href="ldap_8lib_8php-source.html">ldap.lib.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a0" doxytag="ldap.lib.php::dolibarr_ldap_connect" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> dolibarr_ldap_connect </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>
ouverture d'une connection vers le serveur ldap.
<p>
<dl compact><dt><b>Renvoie:</b></dt><dd>resource </dd></dl>
<p>
Définition à la ligne <a class="el" href="ldap_8lib_8php-source.html#l00040">40</a> du fichier <a class="el" href="ldap_8lib_8php-source.html">ldap.lib.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a3" doxytag="ldap.lib.php::dolibarr_ldap_getversion" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> dolibarr_ldap_getversion </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>ds</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>
verification de la version du serveur ldap.
<p>
<dl compact><dt><b>Paramètres:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>ds</em>&nbsp;</td><td></td></tr>
</table>
</dl>
<dl compact><dt><b>Renvoie:</b></dt><dd>version </dd></dl>
<p>
Définition à la ligne <a class="el" href="ldap_8lib_8php-source.html#l00084">84</a> du fichier <a class="el" href="ldap_8lib_8php-source.html">ldap.lib.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a4" doxytag="ldap.lib.php::dolibarr_ldap_setversion" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> dolibarr_ldap_setversion </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname" nowrap> <em>ds</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>version</em></td>
</tr>
<tr>
<td></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>
changement de la version du serveur ldap.
<p>
<dl compact><dt><b>Paramètres:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>ds</em>&nbsp;</td><td></td></tr>
<tr><td></td><td valign=top><em>version</em>&nbsp;</td><td></td></tr>
</table>
</dl>
<dl compact><dt><b>Renvoie:</b></dt><dd>version </dd></dl>
<p>
Définition à la ligne <a class="el" href="ldap_8lib_8php-source.html#l00101">101</a> du fichier <a class="el" href="ldap_8lib_8php-source.html">ldap.lib.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a5" doxytag="ldap.lib.php::dolibarr_ldap_unacc" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> dolibarr_ldap_unacc </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>str</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>
permet d'enlever les accents d'une chaine.
<p>
<dl compact><dt><b>Paramètres:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>str</em>&nbsp;</td><td></td></tr>
</table>
</dl>
<dl compact><dt><b>Renvoie:</b></dt><dd>string </dd></dl>
<p>
Définition à la ligne <a class="el" href="ldap_8lib_8php-source.html#l00114">114</a> du fichier <a class="el" href="ldap_8lib_8php-source.html">ldap.lib.php</a>. </td>
</tr>
</table>
<a class="anchor" name="a2" doxytag="ldap.lib.php::dolibarr_ldap_unbind" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> dolibarr_ldap_unbind </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>ds</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>
unbind du serveur ldap.
<p>
<dl compact><dt><b>Paramètres:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>ds</em>&nbsp;</td><td></td></tr>
</table>
</dl>
<dl compact><dt><b>Renvoie:</b></dt><dd>bool </dd></dl>
<p>
Définition à la ligne <a class="el" href="ldap_8lib_8php-source.html#l00070">70</a> du fichier <a class="el" href="ldap_8lib_8php-source.html">ldap.lib.php</a>. </td>
</tr>
</table>
<hr size="1"><address style="align: right;"><small>Généré le Thu Jul 15 14:51:57 2004 pour dolibarr par
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.7 </small></address>
</body>
</html>

View File

@ -0,0 +1,298 @@
<!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>dolibarr: htdocs/lib/mysql.lib.php Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Généré par Doxygen 1.3.7 -->
<div class="qindex"><a class="qindex" href="index.html">Page&nbsp;principale</a> | <a class="qindex" href="files.html">Liste&nbsp;des&nbsp;fichiers</a> | <a class="qindex" href="globals.html">Membres&nbsp;de&nbsp;fichier</a></div>
<h1>htdocs/lib/mysql.lib.php</h1><a href="mysql_8lib_8php.html">Aller à la documentation de ce fichier.</a><pre class="fragment"><div>00001 &lt;?PHP
00002 <span class="comment">/* Copyright (C) 2001 Fabien Seisen &lt;seisen@linuxfr.org&gt;</span>
00003 <span class="comment"> * Copyright (C) 2002-2004 Rodolphe Quiedeville &lt;rodolphe@quiedeville.org&gt;</span>
00004 <span class="comment"> * Copyright (C) 2004 Laurent Destailleur &lt;eldy@users.sourceforge.net&gt;</span>
00005 <span class="comment"> *</span>
00006 <span class="comment"> * $Id$</span>
00007 <span class="comment"> * $Source$</span>
00008 <span class="comment"> *</span>
00009 <span class="comment"> * This program is free software; you can redistribute it and/or modify</span>
00010 <span class="comment"> * it under the terms of the GNU General Public License as published by</span>
00011 <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span>
00012 <span class="comment"> * (at your option) any later version.</span>
00013 <span class="comment"> *</span>
00014 <span class="comment"> * This program is distributed in the hope that it will be useful,</span>
00015 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
00016 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span>
00017 <span class="comment"> * GNU General Public License for more details.</span>
00018 <span class="comment"> *</span>
00019 <span class="comment"> * You should have received a copy of the GNU General Public License</span>
00020 <span class="comment"> * along with this program; if not, write to the Free Software</span>
00021 <span class="comment"> * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.</span>
00022 <span class="comment"> *</span>
00023 <span class="comment"> */</span>
00024
00035 <span class="keyword">class </span>DoliDb {
00036 var $db, $results, $ok, $connected, $database_selected;
00037
00038 <span class="comment">// Constantes pour code erreurs</span>
00039 var $ERROR_DUPLICATE=1062;
00040 var $ERROR_TABLEEXISTS=1050;
00041
00051 Function DoliDb($type = 'mysql', $host = '', $user = '', $pass = '', $name = '')
00052
00053 <span class="comment">// Se connecte au serveur et éventuellement à une base (si spécifié)</span>
00054 <span class="comment">// Renvoie 1 en cas de succès, 0 sinon</span>
00055
00056 {
00057 global $conf;
00058
00059 <span class="keywordflow">if</span> ($host == '')
00060 {
00061 $host = $conf-&gt;db-&gt;host;
00062 }
00063
00064 <span class="keywordflow">if</span> ($user == '')
00065 {
00066 $user = $conf-&gt;db-&gt;user;
00067 }
00068
00069 <span class="keywordflow">if</span> ($pass == '')
00070 {
00071 $pass = $conf-&gt;db-&gt;pass;
00072 }
00073
00074 <span class="keywordflow">if</span> ($name == '')
00075 {
00076 $name = $conf-&gt;db-&gt;name;
00077 }
00078
00079 <span class="comment">//print "Name DB: $host,$user,$pass,$name&lt;br&gt;";</span>
00080
00081 <span class="comment">// Essai connexion serveur</span>
00082
00083 $this-&gt;db = $this-&gt;connect($host, $user, $pass);
00084
00085 <span class="keywordflow">if</span> ($this-&gt;db)
00086 {
00087 $this-&gt;connected = 1;
00088 $this-&gt;ok = 1;
00089 }
00090 <span class="keywordflow">else</span>
00091 {
00092 $this-&gt;connected = 0;
00093 $this-&gt;ok = 0;
00094 }
00095
00096 <span class="comment">// Si connexion serveur ok et si connexion base demandée, on essaie connexion base</span>
00097
00098 <span class="keywordflow">if</span> ($this-&gt;connected &amp;&amp; $name)
00099 {
00100
00101 <span class="keywordflow">if</span> ($this-&gt;select_db($name) == 1)
00102 {
00103 $this-&gt;database_selected = 1;
00104 $this-&gt;ok = 1;
00105 }
00106 <span class="keywordflow">else</span>
00107 {
00108 $this-&gt;database_selected = 0;
00109 $this-&gt;ok = 0;
00110 }
00111
00112 }
00113 <span class="keywordflow">else</span>
00114 {
00115 <span class="comment">// Pas de selection de base demandée, mais tout est ok</span>
00116
00117 $this-&gt;database_selected = 0;
00118 $this-&gt;ok = 1;
00119 }
00120
00121 <span class="keywordflow">return</span> $this-&gt;ok;
00122 }
00123
00130 Function select_db($database)
00131 {
00132 <span class="keywordflow">return</span> mysql_select_db($database, $this-&gt;db);
00133 }
00134
00143 Function connect($host, $login, $passwd)
00144 {
00145 $this-&gt;db = @mysql_connect($host, $login, $passwd);
00146 <span class="comment">//print "Resultat fonction connect: ".$this-&gt;db;</span>
00147 <span class="keywordflow">return</span> $this-&gt;db;
00148 }
00149
00156 Function create_db($database)
00157 {
00158 <span class="keywordflow">if</span> (mysql_create_db ($database, $this-&gt;db))
00159 {
00160 <span class="keywordflow">return</span> 1;
00161 }
00162 <span class="keywordflow">else</span>
00163 {
00164 <span class="keywordflow">return</span> 0;
00165 }
00166 }
00167
00173 Function clone()
00174 {
00175 $db2 = <span class="keyword">new</span> DoliDb(<span class="stringliteral">""</span>, <span class="stringliteral">""</span>, <span class="stringliteral">""</span>, <span class="stringliteral">""</span>, <span class="stringliteral">""</span>);
00176 $db2-&gt;db = $this-&gt;db;
00177 <span class="keywordflow">return</span> $db2;
00178 }
00179
00188 Function pconnect($host, $login, $passwd)
00189 {
00190 $this-&gt;db = mysql_pconnect($host, $login, $passwd);
00191 <span class="keywordflow">return</span> $this-&gt;db;
00192 }
00193
00199 Function close()
00200 {
00201 <span class="keywordflow">return</span> mysql_close($this-&gt;db);
00202 }
00203
00210 Function begin($<span class="keywordflow">do</span>=1)
00211 {
00212 <span class="keywordflow">if</span> ($do)
00213 {
00214 <span class="keywordflow">return</span> $this-&gt;query(<span class="stringliteral">"BEGIN"</span>);
00215 }
00216 <span class="keywordflow">else</span>
00217 {
00218 <span class="keywordflow">return</span> 1;
00219 }
00220 }
00221
00228 Function commit($<span class="keywordflow">do</span>=1)
00229 {
00230 <span class="keywordflow">if</span> ($do)
00231 {
00232 <span class="keywordflow">return</span> $this-&gt;query(<span class="stringliteral">"COMMIT"</span>);
00233 }
00234 <span class="keywordflow">else</span>
00235 {
00236 <span class="keywordflow">return</span> 1;
00237 }
00238 }
00239
00246 Function rollback($<span class="keywordflow">do</span>=1)
00247 {
00248 <span class="keywordflow">if</span> ($do)
00249 {
00250 <span class="keywordflow">return</span> $this-&gt;query(<span class="stringliteral">"ROLLBACK"</span>);
00251 }
00252 <span class="keywordflow">else</span>
00253 {
00254 <span class="keywordflow">return</span> 1;
00255 }
00256 }
00257
00266 Function query($query, $limit=<span class="stringliteral">""</span>, $offset=<span class="stringliteral">""</span>)
00267 {
00268 $query = trim($query);
00269 <span class="comment">//print "&lt;p&gt;$query&lt;/p&gt;\n";</span>
00270 $this-&gt;results = mysql_query($query, $this-&gt;db);
00271 <span class="keywordflow">return</span> $this-&gt;results;
00272 }
00273
00280 Function list_tables($database)
00281 {
00282 $this-&gt;results = mysql_list_tables($database, $this-&gt;db);
00283 <span class="keywordflow">return</span> $this-&gt;results;
00284 }
00285
00293 Function result($nb, $fieldname)
00294 {
00295 <span class="keywordflow">return</span> mysql_result($this-&gt;results, $nb, $fieldname);
00296 }
00297
00303 Function free()
00304 {
00305 <span class="keywordflow">return</span> mysql_free_result($this-&gt;results);
00306 }
00307
00313 Function fetch_object()
00314 {
00315 <span class="keywordflow">return</span> mysql_fetch_object($this-&gt;results);
00316 }
00317
00325 Function plimit($limit=0,$offset=0)
00326 {
00327 <span class="keywordflow">if</span> ($offset &gt; 0)
00328 {
00329 <span class="keywordflow">return</span> <span class="stringliteral">" LIMIT $offset,$limit "</span>;
00330 }
00331 <span class="keywordflow">else</span>
00332 {
00333 <span class="keywordflow">return</span> <span class="stringliteral">" LIMIT $limit "</span>;
00334 }
00335 }
00336
00337
00338 Function pdate($fname)
00339 {
00340 <span class="keywordflow">return</span> <span class="stringliteral">"unix_timestamp($fname)"</span>;
00341 }
00342
00349 Function idate($fname)
00350 {
00351 <span class="keywordflow">return</span> strftime(<span class="stringliteral">"%Y%m%d%H%M%S"</span>,$fname);
00352 }
00353
00359 Function fetch_array()
00360 {
00361 <span class="keywordflow">return</span> mysql_fetch_array($this-&gt;results);
00362 }
00363
00369 Function fetch_row()
00370 {
00371 <span class="keywordflow">return</span> mysql_fetch_row($this-&gt;results);
00372 }
00373
00381 Function fetch_field()
00382 {
00383 <span class="keywordflow">return</span> mysql_fetch_field($this-&gt;results);
00384 }
00385
00386
00392 Function num_rows()
00393 {
00394 <span class="keywordflow">return</span> mysql_num_rows($this-&gt;results);
00395 }
00396
00402 Function num_fields()
00403 {
00404 <span class="keywordflow">return</span> mysql_num_fields($this-&gt;results);
00405 }
00406
00412 Function error()
00413 {
00414 <span class="keywordflow">return</span> mysql_error($this-&gt;db);
00415 }
00416
00422 Function errno()
00423 {
00424 <span class="comment">// $ERROR_DUPLICATE=1062;</span>
00425 <span class="comment">// $ERROR_TABLEEXISTS=1050;</span>
00426
00427 <span class="keywordflow">return</span> mysql_errno($this-&gt;db);
00428 }
00429
00435 Function last_insert_id()
00436 {
00437 <span class="keywordflow">return</span> mysql_insert_id();
00438 }
00439
00445 Function affected_rows()
00446 {
00447 <span class="keywordflow">return</span> mysql_affected_rows();
00448 }
00449
00450 }
00451
00452 ?&gt;
</div></pre><hr size="1"><address style="align: right;"><small>Généré le Thu Jul 15 14:51:57 2004 pour dolibarr par
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.7 </small></address>
</body>
</html>

View File

@ -0,0 +1,29 @@
<!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>dolibarr: mysql.lib.php File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Généré par Doxygen 1.3.7 -->
<div class="qindex"><a class="qindex" href="index.html">Page&nbsp;principale</a> | <a class="qindex" href="files.html">Liste&nbsp;des&nbsp;fichiers</a> | <a class="qindex" href="globals.html">Membres&nbsp;de&nbsp;fichier</a></div>
<h1>Référence du fichier htdocs/lib/mysql.lib.php</h1>Classes permettant de gérér la database de dolibarr.
<a href="#_details">Plus de détails...</a>
<p>
<p>
<a href="mysql_8lib_8php-source.html">Aller au code source de ce fichier.</a><table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
</table>
<hr><a name="_details"></a><h2>Description détaillée</h2>
Classes permettant de gérér la database de dolibarr.
<p>
<dl compact><dt><b>Auteur:</b></dt><dd>Fabien Seisen <p>
Rodolphe Quiedeville. <p>
Laurent Destailleur. </dd></dl>
<dl compact><dt><b>Version:</b></dt><dd>1.2.</dd></dl>
Ensemble des fonctions permettant de gérer la database de dolibarr.
<p>
Définition dans le fichier <a class="el" href="mysql_8lib_8php-source.html">mysql.lib.php</a>.<hr size="1"><address style="align: right;"><small>Généré le Thu Jul 15 14:51:57 2004 pour dolibarr par
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.7 </small></address>
</body>
</html>

View File

@ -0,0 +1,100 @@
<!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>dolibarr: htdocs/lib/price.lib.php Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Généré par Doxygen 1.3.7 -->
<div class="qindex"><a class="qindex" href="index.html">Page&nbsp;principale</a> | <a class="qindex" href="files.html">Liste&nbsp;des&nbsp;fichiers</a> | <a class="qindex" href="globals.html">Membres&nbsp;de&nbsp;fichier</a></div>
<h1>htdocs/lib/price.lib.php</h1><a href="price_8lib_8php.html">Aller à la documentation de ce fichier.</a><pre class="fragment"><div>00001 &lt;?PHP
00002 <span class="comment">/* Copyright (C) 2002-2003 Rodolphe Quiedeville &lt;rodolphe@quiedeville.org&gt;</span>
00003 <span class="comment"> *</span>
00004 <span class="comment"> * This program is free software; you can redistribute it and/or modify</span>
00005 <span class="comment"> * it under the terms of the GNU General Public License as published by</span>
00006 <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span>
00007 <span class="comment"> * (at your option) any later version.</span>
00008 <span class="comment"> *</span>
00009 <span class="comment"> * This program is distributed in the hope that it will be useful,</span>
00010 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
00011 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span>
00012 <span class="comment"> * GNU General Public License for more details.</span>
00013 <span class="comment"> *</span>
00014 <span class="comment"> * You should have received a copy of the GNU General Public License</span>
00015 <span class="comment"> * along with this program; if not, write to the Free Software</span>
00016 <span class="comment"> * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.</span>
00017 <span class="comment"> *</span>
00018 <span class="comment"> * $Id$</span>
00019 <span class="comment"> * $Source$</span>
00020 <span class="comment"> *</span>
00021 <span class="comment"> */</span>
00022
<a name="l00038"></a><a class="code" href="price_8lib_8php.html#a0">00038</a> function <a class="code" href="price_8lib_8php.html#a0">calcul_price</a>($products, $remise_percent)
00039 {
00040 $total_ht = 0;
00041 $amount_ht = 0;
00042 $tva = array();
00043 $total_tva = 0;
00044 $total_remise = 0;
00045
00046 $num = <span class="keyword">sizeof</span>($products);
00047 $i = 0;
00048
00049 <span class="keywordflow">while</span> ($i &lt; $num)
00050 {
00051 $prod_price = $products[$i][0];
00052 $prod_qty = $products[$i][1];
00053 $prod_txtva = $products[$i][2];
00054
00055 $lprice = $prod_qty * $prod_price;
00056
00057 $amount_ht = $amount_ht + $lprice;
00058
00059 <span class="keywordflow">if</span> ($remise_percent &gt; 0)
00060 {
00061 $lremise = ($lprice * $remise_percent / 100);
00062 $lprice = $lprice - $lremise;
00063 $total_remise = $total_remise + $lremise;
00064 }
00065
00066 $total_ht = $total_ht + $lprice;
00067
00068 $ligne_tva = ($lprice * ($prod_txtva / 100));
00069
00070 $tva[$prod_txtva] = $tva[$prod_txtva] + $ligne_tva;
00071 $i++;
00072 }
00073
00074 <span class="comment">/*</span>
00075 <span class="comment"> * Sommes et arrondis</span>
00076 <span class="comment"> */</span>
00077 $j=0;
00078 $result[5] = array();
00079
00080 foreach ($tva as $key =&gt; $value)
00081 {
00082 $tva[$key] = round($tva[$key], 2);
00083 $total_tva = $total_tva + $tva[$key];
00084 $result[5][$key] = $tva[$key];
00085 $j++;
00086 }
00087
00088 $total_ht = round($total_ht, 2);
00089 $total_tva = round($total_tva, 2);
00090
00091 $total_ttc = $total_ht + $total_tva;
00092
00093 <span class="comment">/*</span>
00094 <span class="comment"> *</span>
00095 <span class="comment"> */</span>
00096 $result[0] = $total_ht;
00097 $result[1] = $total_tva;
00098 $result[2] = $total_ttc;
00099 $result[3] = $total_remise;
00100 $result[4] = $amount_ht;
00101
00102 <span class="keywordflow">return</span> $result;
00103 }
</div></pre><hr size="1"><address style="align: right;"><small>Généré le Thu Jul 15 14:51:57 2004 pour dolibarr par
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.7 </small></address>
</body>
</html>

View File

@ -0,0 +1,80 @@
<!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>dolibarr: price.lib.php File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Généré par Doxygen 1.3.7 -->
<div class="qindex"><a class="qindex" href="index.html">Page&nbsp;principale</a> | <a class="qindex" href="files.html">Liste&nbsp;des&nbsp;fichiers</a> | <a class="qindex" href="globals.html">Membres&nbsp;de&nbsp;fichier</a></div>
<h1>Référence du fichier htdocs/lib/price.lib.php</h1>librairie contenant les fonctions pour calculer un prix.
<a href="#_details">Plus de détails...</a>
<p>
<p>
<a href="price_8lib_8php-source.html">Aller au code source de ce fichier.</a><table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<tr><td colspan=2><br><h2>Fonctions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="price_8lib_8php.html#a0">calcul_price</a> ($products, $remise_percent)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">permet de calculer un prix. <a href="#a0"></a><br><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Description détaillée</h2>
librairie contenant les fonctions pour calculer un prix.
<p>
<dl compact><dt><b>Auteur:</b></dt><dd>Rodolphe Quiedeville. </dd></dl>
<dl compact><dt><b>Version:</b></dt><dd>1.2.</dd></dl>
Ensemble des fonctions permettant de calculer un prix.
<p>
Définition dans le fichier <a class="el" href="price_8lib_8php-source.html">price.lib.php</a>.<hr><h2>Documentation des fonctions</h2>
<a class="anchor" name="a0" doxytag="price.lib.php::calcul_price" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> calcul_price </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname" nowrap> <em>products</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>remise_percent</em></td>
</tr>
<tr>
<td></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>
permet de calculer un prix.
<p>
<dl compact><dt><b>Paramètres:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>products</em>&nbsp;</td><td></td></tr>
<tr><td></td><td valign=top><em>remise_percent</em>&nbsp;</td><td></td></tr>
</table>
</dl>
<dl compact><dt><b>Renvoie:</b></dt><dd>result </dd></dl>
<p>
Définition à la ligne <a class="el" href="price_8lib_8php-source.html#l00038">38</a> du fichier <a class="el" href="price_8lib_8php-source.html">price.lib.php</a>. </td>
</tr>
</table>
<hr size="1"><address style="align: right;"><small>Généré le Thu Jul 15 14:51:57 2004 pour dolibarr par
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.7 </small></address>
</body>
</html>

View File

@ -0,0 +1,193 @@
<!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>dolibarr: htdocs/lib/thermometer.php Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Généré par Doxygen 1.3.7 -->
<div class="qindex"><a class="qindex" href="index.html">Page&nbsp;principale</a> | <a class="qindex" href="files.html">Liste&nbsp;des&nbsp;fichiers</a> | <a class="qindex" href="globals.html">Membres&nbsp;de&nbsp;fichier</a></div>
<h1>htdocs/lib/thermometer.php</h1><a href="thermometer_8php.html">Aller à la documentation de ce fichier.</a><pre class="fragment"><div>00001 &lt;?php
00002 <span class="comment">/* Copyright (C) 2002 "stichting Blender Foundation, Timothy Kanters"</span>
00003 <span class="comment"> * Copyright (C) 2002 Rodolphe Quiedeville &lt;rodolphe@quiedeville.org&gt;</span>
00004 <span class="comment"> *</span>
00005 <span class="comment"> * This program is free software; you can redistribute it and/or modify</span>
00006 <span class="comment"> * it under the terms of the GNU General Public License as published by</span>
00007 <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span>
00008 <span class="comment"> * (at your option) any later version.</span>
00009 <span class="comment"> *</span>
00010 <span class="comment"> * This program is distributed in the hope that it will be useful,</span>
00011 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
00012 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span>
00013 <span class="comment"> * GNU General Public License for more details.</span>
00014 <span class="comment"> *</span>
00015 <span class="comment"> * You should have received a copy of the GNU General Public License</span>
00016 <span class="comment"> * along with this program; if not, write to the Free Software</span>
00017 <span class="comment"> * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.</span>
00018 <span class="comment"> *</span>
00019 <span class="comment"> * $Id$</span>
00020 <span class="comment"> * $Source$</span>
00021 <span class="comment"> *</span>
00022 <span class="comment"> */</span>
00023
<a name="l00042"></a><a class="code" href="thermometer_8php.html#a0">00042</a> function <a class="code" href="thermometer_8php.html#a0">moneyMeter</a>($actualValue=0, $pendingValue=0, $intentValue=0)
00043
00044 <span class="comment">/*</span>
00045 <span class="comment"> This function returns the html for the moneymeter.</span>
00046 <span class="comment"> cachedValue: amount of actual money</span>
00047 <span class="comment"> pendingValue: amount of money of pending memberships</span>
00048 <span class="comment"> intentValue: amount of intended money (that's without the amount of actual money)</span>
00049 <span class="comment"> */</span>
00050 {
00051
00052 <span class="comment">// variables</span>
00053 $height=<span class="stringliteral">"200"</span>;
00054 $maximumValue=125000;
00055
00056 $imageDir = <span class="stringliteral">"http://eucd.info/images/"</span>;
00057
00058 $imageTop = $imageDir . <span class="stringliteral">"therm_top.png"</span>;
00059 $imageMiddleActual = $imageDir . <span class="stringliteral">"therm_actual.png"</span>;
00060 $imageMiddlePending = $imageDir . <span class="stringliteral">"therm_pending.png"</span>;
00061 $imageMiddleIntent = $imageDir . <span class="stringliteral">"therm_intent.png"</span>;
00062 $imageMiddleGoal = $imageDir . <span class="stringliteral">"therm_goal.png"</span>;
00063 $imageIndex = $imageDir . <span class="stringliteral">"therm_index.png"</span>;
00064 $imageBottom = $imageDir . <span class="stringliteral">"therm_bottom.png"</span>;
00065 $imageColorActual = $imageDir . <span class="stringliteral">"therm_color_actual.png"</span>;
00066 $imageColorPending = $imageDir . <span class="stringliteral">"therm_color_pending.png"</span>;
00067 $imageColorIntent = $imageDir . <span class="stringliteral">"therm_color_intent.png"</span>;
00068
00069 $htmlThermTop = '
00070 &lt;!-- Thermometer Begin --&gt;
00071 &lt;table cellpadding=<span class="stringliteral">"0"</span> cellspacing=<span class="stringliteral">"4"</span> border=<span class="stringliteral">"0"</span>&gt;
00072 &lt;tr&gt;&lt;td&gt;
00073 &lt;table cellpadding=<span class="stringliteral">"0"</span> cellspacing=<span class="stringliteral">"0"</span> border=<span class="stringliteral">"0"</span>&gt;
00074 &lt;tr&gt;
00075 &lt;td colspan=<span class="stringliteral">"2"</span>&gt;&lt;img src=<span class="stringliteral">"' . $imageTop . '"</span> width=<span class="stringliteral">"58"</span> height=<span class="stringliteral">"6"</span> border=<span class="stringliteral">"0"</span>&gt;&lt;/td&gt;
00076 &lt;/tr&gt;
00077 &lt;tr&gt;
00078 &lt;td&gt;
00079 &lt;table cellpadding=<span class="stringliteral">"0"</span> cellspacing=<span class="stringliteral">"0"</span> border=<span class="stringliteral">"0"</span>&gt;';
00080
00081 $htmlSection = '
00082 &lt;tr&gt;&lt;td&gt;&lt;img src=<span class="stringliteral">"{image}"</span> width=<span class="stringliteral">"26"</span> height=<span class="stringliteral">"{height}"</span> border=<span class="stringliteral">"0"</span>&gt;&lt;/td&gt;&lt;/tr&gt;';
00083
00084 $htmlThermbottom = '
00085 &lt;/table&gt;
00086 &lt;/td&gt;
00087 &lt;td&gt;&lt;img src=<span class="stringliteral">"' . $imageIndex . '"</span> width=<span class="stringliteral">"32"</span> height=<span class="stringliteral">"200"</span> border=<span class="stringliteral">"0"</span>&gt;&lt;/td&gt;
00088 &lt;/tr&gt;
00089 &lt;tr&gt;
00090 &lt;td colspan=<span class="stringliteral">"2"</span>&gt;&lt;img src=<span class="stringliteral">"' . $imageBottom . '"</span> width=<span class="stringliteral">"58"</span> height=<span class="stringliteral">"32"</span> border=<span class="stringliteral">"0"</span>&gt;&lt;/td&gt;
00091 &lt;/tr&gt;
00092 &lt;/table&gt;
00093 &lt;/td&gt;
00094 &lt;/tr&gt;&lt;/table&gt;';
00095
00096 <span class="comment">// legenda</span>
00097
00098 $legendaActual = <span class="stringliteral">"&amp;euro; "</span> . round($actualValue);
00099 $legendaPending = <span class="stringliteral">"&amp;euro; "</span> . round($pendingValue);
00100 $legendaIntent = <span class="stringliteral">"&amp;euro; "</span> . round($intentValue);
00101 $legendaTotal = <span class="stringliteral">"&amp;euro; "</span> . round($actualValue + $pendingValue + $intentValue);
00102 $htmlLegenda = '
00103
00104 &lt;table cellpadding=<span class="stringliteral">"0"</span> cellspacing=<span class="stringliteral">"0"</span> border=<span class="stringliteral">"0"</span>&gt;
00105 &lt;tr&gt;&lt;td&gt;&lt;img src=<span class="stringliteral">"' . $imageColorActual . '"</span> width=<span class="stringliteral">"9"</span> height=<span class="stringliteral">"9"</span>&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;&lt;font size=<span class="stringliteral">"1"</span> face=<span class="stringliteral">"Verdana, Arial, Helvetica, sans-serif"</span>&gt;&lt;b&gt;Payé:&lt;br /&gt;' . $legendaActual . '&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
00106 &lt;tr&gt;&lt;td&gt;&lt;img src=<span class="stringliteral">"' . $imageColorPending . '"</span> width=<span class="stringliteral">"9"</span> height=<span class="stringliteral">"9"</span>&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;&lt;font size=<span class="stringliteral">"1"</span> face=<span class="stringliteral">"Verdana, Arial, Helvetica, sans-serif"</span>&gt;En attente:&lt;br /&gt;' . $legendaPending . '&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
00107 &lt;tr&gt;&lt;td&gt;&lt;img src=<span class="stringliteral">"' . $imageColorIntent . '"</span> width=<span class="stringliteral">"9"</span> height=<span class="stringliteral">"9"</span>&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;&lt;font size=<span class="stringliteral">"1"</span> face=<span class="stringliteral">"Verdana, Arial, Helvetica, sans-serif"</span>&gt;Promesses:&lt;br /&gt;' . $legendaIntent . '&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
00108 &lt;tr&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;&lt;font size=<span class="stringliteral">"1"</span> face=<span class="stringliteral">"Verdana, Arial, Helvetica, sans-serif"</span>&gt;Total:&lt;br /&gt;' . $legendaTotal . '&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
00109 &lt;/table&gt;
00110
00111 &lt;!-- Thermometer End --&gt;';
00112
00113 <span class="comment">// check and edit some values</span>
00114
00115 $error = 0;
00116 <span class="keywordflow">if</span> ( $maximumValue &lt;= 0 || $height &lt;= 0 || $actualValue &lt; 0 || $pendingValue &lt; 0 || $intentValue &lt; 0)
00117 {
00118 <span class="keywordflow">return</span> <span class="stringliteral">"The money meter could not be processed&lt;br&gt;\n"</span>;
00119 }
00120 <span class="keywordflow">if</span> ( $actualValue &gt; $maximumValue )
00121 {
00122 $actualValue = $maximumValue;
00123 $pendingValue = 0;
00124 $intentValue = 0;
00125 }
00126 <span class="keywordflow">else</span>
00127 {
00128 <span class="keywordflow">if</span> ( ($actualValue + $pendingValue) &gt; $maximumValue )
00129 {
00130 $pendingValue = $maximumValue - $actualValue;
00131 $intentValue = 0;
00132 }
00133 <span class="keywordflow">else</span>
00134 {
00135 <span class="keywordflow">if</span> ( ($actualValue + $pendingValue + $intentValue) &gt; $maximumValue )
00136 {
00137 $intentValue = $maximumValue - $actualValue - $pendingValue;
00138 }
00139 }
00140 }
00141
00142 <span class="comment">// start writing the html (from bottom to top)</span>
00143
00144 <span class="comment">// bottom </span>
00145 $thermometer = $htmlThermbottom;
00146
00147 <span class="comment">// actual</span>
00148 $sectionHeight = round(($actualValue / $maximumValue) * $height);
00149 $totalHeight = $totalHeight + $sectionHeight;
00150 <span class="keywordflow">if</span> ( $sectionHeight &gt; 0 )
00151 {
00152 $section = $htmlSection;
00153 $section = str_replace(<span class="stringliteral">"{image}"</span>, $imageMiddleActual, $section);
00154 $section = str_replace(<span class="stringliteral">"{height}"</span>, $sectionHeight, $section);
00155 $thermometer = $section . $thermometer;
00156 }
00157
00158 <span class="comment">// pending</span>
00159 $sectionHeight = round(($pendingValue / $maximumValue) * $height);
00160 $totalHeight = $totalHeight + $sectionHeight;
00161 <span class="keywordflow">if</span> ( $sectionHeight &gt; 0 )
00162 {
00163 $section = $htmlSection;
00164 $section = str_replace(<span class="stringliteral">"{image}"</span>, $imageMiddlePending, $section);
00165 $section = str_replace(<span class="stringliteral">"{height}"</span>, $sectionHeight, $section);
00166 $thermometer = $section . $thermometer;
00167 }
00168
00169 <span class="comment">// intent</span>
00170 $sectionHeight = round(($intentValue / $maximumValue) * $height);
00171 $totalHeight = $totalHeight + $sectionHeight;
00172 <span class="keywordflow">if</span> ( $sectionHeight &gt; 0 )
00173 {
00174 $section = $htmlSection;
00175 $section = str_replace(<span class="stringliteral">"{image}"</span>, $imageMiddleIntent, $section);
00176 $section = str_replace(<span class="stringliteral">"{height}"</span>, $sectionHeight, $section);
00177 $thermometer = $section . $thermometer;
00178 }
00179
00180 <span class="comment">// goal </span>
00181 $sectionHeight = $height- $totalHeight;
00182 <span class="keywordflow">if</span> ( $sectionHeight &gt; 0 )
00183 {
00184 $section = $htmlSection;
00185 $section = str_replace(<span class="stringliteral">"{image}"</span>, $imageMiddleGoal, $section);
00186 $section = str_replace(<span class="stringliteral">"{height}"</span>, $sectionHeight, $section);
00187 $thermometer = $section . $thermometer;
00188 }
00189
00190 <span class="comment">// top</span>
00191 $thermometer = $htmlThermTop . $thermometer;
00192
00193 <span class="keywordflow">return</span> $thermometer . $htmlLegenda;
00194 }
00195
00196 ?&gt;
00197
00198
00199
</div></pre><hr size="1"><address style="align: right;"><small>Généré le Thu Jul 15 14:51:57 2004 pour dolibarr par
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.7 </small></address>
</body>
</html>

View File

@ -0,0 +1,88 @@
<!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>dolibarr: thermometer.php File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Généré par Doxygen 1.3.7 -->
<div class="qindex"><a class="qindex" href="index.html">Page&nbsp;principale</a> | <a class="qindex" href="files.html">Liste&nbsp;des&nbsp;fichiers</a> | <a class="qindex" href="globals.html">Membres&nbsp;de&nbsp;fichier</a></div>
<h1>Référence du fichier htdocs/lib/thermometer.php</h1>Classe permettant d'afficher un thermometre.
<a href="#_details">Plus de détails...</a>
<p>
<p>
<a href="thermometer_8php-source.html">Aller au code source de ce fichier.</a><table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<tr><td colspan=2><br><h2>Fonctions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="thermometer_8php.html#a0">moneyMeter</a> ($actualValue=0, $pendingValue=0, $intentValue=0)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">permet d'afficher un thermometre monetaire. <a href="#a0"></a><br><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Description détaillée</h2>
Classe permettant d'afficher un thermometre.
<p>
<dl compact><dt><b>Auteur:</b></dt><dd>Rodolphe Quiedeville. <p>
Timothy Kanters. </dd></dl>
<dl compact><dt><b>Version:</b></dt><dd>1.2.</dd></dl>
Ensemble des fonctions permettant d'afficher un thermometre monetaire.
<p>
Définition dans le fichier <a class="el" href="thermometer_8php-source.html">thermometer.php</a>.<hr><h2>Documentation des fonctions</h2>
<a class="anchor" name="a0" doxytag="thermometer.php::moneyMeter" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> moneyMeter </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">$&nbsp;</td>
<td class="mdname" nowrap> <em>actualValue</em> = <code>0</code>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>pendingValue</em> = <code>0</code>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>$&nbsp;</td>
<td class="mdname" nowrap> <em>intentValue</em> = <code>0</code></td>
</tr>
<tr>
<td></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>
permet d'afficher un thermometre monetaire.
<p>
<dl compact><dt><b>Paramètres:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>actualValue</em>&nbsp;</td><td></td></tr>
<tr><td></td><td valign=top><em>pendingValue</em>&nbsp;</td><td></td></tr>
<tr><td></td><td valign=top><em>intentValue</em>&nbsp;</td><td></td></tr>
</table>
</dl>
<dl compact><dt><b>Renvoie:</b></dt><dd>thermometer htmlLegenda </dd></dl>
<p>
Définition à la ligne <a class="el" href="thermometer_8php-source.html#l00042">42</a> du fichier <a class="el" href="thermometer_8php-source.html">thermometer.php</a>. </td>
</tr>
</table>
<hr size="1"><address style="align: right;"><small>Généré le Thu Jul 15 14:51:57 2004 pour dolibarr par
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.7 </small></address>
</body>
</html>

View File

@ -0,0 +1,114 @@
<!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>dolibarr: htdocs/lib/webcal.class.php Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Généré par Doxygen 1.3.7 -->
<div class="qindex"><a class="qindex" href="index.html">Page&nbsp;principale</a> | <a class="qindex" href="files.html">Liste&nbsp;des&nbsp;fichiers</a> | <a class="qindex" href="globals.html">Membres&nbsp;de&nbsp;fichier</a></div>
<h1>htdocs/lib/webcal.class.php</h1><a href="webcal_8class_8php.html">Aller à la documentation de ce fichier.</a><pre class="fragment"><div>00001 &lt;?PHP
00002 <span class="comment">/* Copyright (C) 2002-2003 Rodolphe Quiedeville &lt;rodolphe@quiedeville.org&gt;</span>
00003 <span class="comment"> *</span>
00004 <span class="comment"> * This program is free software; you can redistribute it and/or modify</span>
00005 <span class="comment"> * it under the terms of the GNU General Public License as published by</span>
00006 <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span>
00007 <span class="comment"> * (at your option) any later version.</span>
00008 <span class="comment"> *</span>
00009 <span class="comment"> * This program is distributed in the hope that it will be useful,</span>
00010 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
00011 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span>
00012 <span class="comment"> * GNU General Public License for more details.</span>
00013 <span class="comment"> *</span>
00014 <span class="comment"> * You should have received a copy of the GNU General Public License</span>
00015 <span class="comment"> * along with this program; if not, write to the Free Software</span>
00016 <span class="comment"> * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.</span>
00017 <span class="comment"> *</span>
00018 <span class="comment"> * $Id$</span>
00019 <span class="comment"> * $Source$</span>
00020 <span class="comment"> *</span>
00021 <span class="comment"> */</span>
00022
00031 <span class="keyword">class </span>Webcal {
00032 var $localdb;
00033 var $heure = -1;
00034 var $duree = 0;
00035
00040 function Webcal()
00041 {
00042 global $conf;
00043
00044 $this-&gt;localdb = <span class="keyword">new</span> Db($conf-&gt;webcal-&gt;db-&gt;type,
00045 $conf-&gt;webcal-&gt;db-&gt;host,
00046 $conf-&gt;webcal-&gt;db-&gt;user,
00047 $conf-&gt;webcal-&gt;db-&gt;pass,
00048 $conf-&gt;webcal-&gt;db-&gt;name);
00049 }
00050
00059 function add($user, $date, $texte, $desc)
00060 {
00061
00062 $id = $this-&gt;get_next_id();
00063
00064 $cal_id = $id;
00065 $cal_create_by = $user-&gt;webcal_login;
00066 $cal_date = strftime('%Y%m%d', $date);
00067 $cal_time = $this-&gt;heure;
00068 $cal_mod_date = strftime('%Y%m%d', time());
00069 $cal_mod_time = strftime('%H%M', time());
00070 $cal_duration = $this-&gt;duree;
00071 $cal_priority = 2;
00072 $cal_type = <span class="stringliteral">"E"</span>;
00073 $cal_access = <span class="stringliteral">"P"</span>;
00074 $cal_name = $texte;
00075 $cal_description = $desc;
00076
00077 $sql = <span class="stringliteral">"INSERT INTO webcal_entry (cal_id, cal_create_by,cal_date,cal_time,cal_mod_date,</span>
00078 <span class="stringliteral"> cal_mod_time,cal_duration,cal_priority,cal_type, cal_access, cal_name,cal_description)"</span>;
00079
00080 $sql .= <span class="stringliteral">" VALUES ($cal_id, '$cal_create_by', $cal_date, $cal_time,$cal_mod_date, $cal_mod_time,</span>
00081 <span class="stringliteral"> $cal_duration,$cal_priority,'$cal_type', '$cal_access', '$cal_name','$cal_description')"</span>;
00082
00083 <span class="keywordflow">if</span> ( $this-&gt;localdb-&gt;query($sql) )
00084 {
00085
00086 $sql = <span class="stringliteral">"INSERT INTO webcal_entry_user (cal_id, cal_login, cal_status)"</span>;
00087 $sql .= <span class="stringliteral">" VALUES ($cal_id, '$cal_create_by', 'A')"</span>;
00088
00089 <span class="keywordflow">if</span> ( $this-&gt;localdb-&gt;query($sql) )
00090 {
00091
00092 }
00093 <span class="keywordflow">else</span>
00094 {
00095 $error = $this-&gt;localdb-&gt;error() . '&lt;br&gt;' .$sql;
00096 }
00097 }
00098 <span class="keywordflow">else</span>
00099 {
00100 $error = $this-&gt;localdb-&gt;error() . '&lt;br&gt;' .$sql;
00101 }
00102
00103 $this-&gt;localdb-&gt;close();
00104 }
00105
00112 function get_next_id()
00113 {
00114
00115 $sql = <span class="stringliteral">"SELECT max(cal_id) FROM webcal_entry"</span>;
00116
00117 <span class="keywordflow">if</span> ($this-&gt;localdb-&gt;query($sql))
00118 {
00119 $id = $this-&gt;localdb-&gt;result(0, 0) + 1;
00120 <span class="keywordflow">return</span> $id;
00121 }
00122 <span class="keywordflow">else</span>
00123 {
00124 print $this-&gt;localdb-&gt;error();
00125 }
00126 }
00127 }
00128 ?&gt;
</div></pre><hr size="1"><address style="align: right;"><small>Généré le Thu Jul 15 14:51:57 2004 pour dolibarr par
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.7 </small></address>
</body>
</html>

View File

@ -0,0 +1,27 @@
<!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>dolibarr: webcal.class.php File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Généré par Doxygen 1.3.7 -->
<div class="qindex"><a class="qindex" href="index.html">Page&nbsp;principale</a> | <a class="qindex" href="files.html">Liste&nbsp;des&nbsp;fichiers</a> | <a class="qindex" href="globals.html">Membres&nbsp;de&nbsp;fichier</a></div>
<h1>Référence du fichier htdocs/lib/webcal.class.php</h1>Classe permettant d'acceder a la database webcalendar.
<a href="#_details">Plus de détails...</a>
<p>
<p>
<a href="webcal_8class_8php-source.html">Aller au code source de ce fichier.</a><table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
</table>
<hr><a name="_details"></a><h2>Description détaillée</h2>
Classe permettant d'acceder a la database webcalendar.
<p>
<dl compact><dt><b>Auteur:</b></dt><dd>Rodolphe Quiedeville. </dd></dl>
<dl compact><dt><b>Version:</b></dt><dd>1.2.</dd></dl>
Ensemble des fonctions permettant d'acceder a la database webcalendar.
<p>
Définition dans le fichier <a class="el" href="webcal_8class_8php-source.html">webcal.class.php</a>.<hr size="1"><address style="align: right;"><small>Généré le Thu Jul 15 14:51:57 2004 pour dolibarr par
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.7 </small></address>
</body>
</html>