263 lines
25 KiB
HTML
263 lines
25 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
|
||
<title>phpcompta: /home/dany/developpement/phpcompta-dev/phpcompta/include/tva.inc.php Source File</title>
|
||
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
||
</head><body>
|
||
<!-- Generated by Doxygen 1.4.4 -->
|
||
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related Pages</a></div>
|
||
<div class="nav">
|
||
<a class="el" href="dir_000000.html">developpement</a> » <a class="el" href="dir_000001.html">phpcompta-dev</a> » <a class="el" href="dir_000002.html">phpcompta</a> » <a class="el" href="dir_000006.html">include</a></div>
|
||
<h1>tva.inc.php</h1><a href="tva_8inc_8php.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <?
|
||
<a name="l00002"></a>00002 <span class="comment">/*</span>
|
||
<a name="l00003"></a>00003 <span class="comment"> * This file is part of PhpCompta.</span>
|
||
<a name="l00004"></a>00004 <span class="comment"> *</span>
|
||
<a name="l00005"></a>00005 <span class="comment"> * PhpCompta is free software; you can redistribute it and/or modify</span>
|
||
<a name="l00006"></a>00006 <span class="comment"> * it under the terms of the GNU General Public License as published by</span>
|
||
<a name="l00007"></a>00007 <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span>
|
||
<a name="l00008"></a>00008 <span class="comment"> * (at your option) any later version.</span>
|
||
<a name="l00009"></a>00009 <span class="comment"> *</span>
|
||
<a name="l00010"></a>00010 <span class="comment"> * PhpCompta is distributed in the hope that it will be useful,</span>
|
||
<a name="l00011"></a>00011 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
|
||
<a name="l00012"></a>00012 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span>
|
||
<a name="l00013"></a>00013 <span class="comment"> * GNU General Public License for more details.</span>
|
||
<a name="l00014"></a>00014 <span class="comment"> *</span>
|
||
<a name="l00015"></a>00015 <span class="comment"> * You should have received a copy of the GNU General Public License</span>
|
||
<a name="l00016"></a>00016 <span class="comment"> * along with PhpCompta; if not, write to the Free Software</span>
|
||
<a name="l00017"></a>00017 <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
|
||
<a name="l00018"></a>00018 <span class="comment">*/</span>
|
||
<a name="l00019"></a>00019 <span class="comment">/* $Revision$ */</span>
|
||
<a name="l00020"></a>00020 <span class="comment">// Copyright Author Dany De Bontridder ddebontridder@yahoo.fr</span>
|
||
<a name="l00025"></a>00025 <span class="comment"></span> <span class="comment">// Confirm remove</span>
|
||
<a name="l00026"></a>00026 <span class="keywordflow">if</span> ( isset ($_POST['confirm_rm']))
|
||
<a name="l00027"></a>00027 {
|
||
<a name="l00028"></a>00028 <a class="code" href="postgres_8php.html#a2">ExecSql</a>($cn,'select tva_delete('.$_POST['tva_id'].<span class="charliteral">')'</span>);
|
||
<a name="l00029"></a>00029 }
|
||
<a name="l00031"></a>00031 <span class="comment">// Record Change</span>
|
||
<a name="l00032"></a>00032 <span class="keywordflow">if</span> ( isset ($_POST['confirm_mod'])
|
||
<a name="l00033"></a>00033 || isset ($_POST['confirm_add']))
|
||
<a name="l00034"></a>00034 {
|
||
<a name="l00035"></a>00035 extract($_POST);
|
||
<a name="l00036"></a><a class="code" href="tva_8inc_8php.html#a0">00036</a> $tva_id=<a class="code" href="ac__common_8php.html#a9">FormatString</a>($tva_id);
|
||
<a name="l00037"></a><a class="code" href="tva_8inc_8php.html#a1">00037</a> $tva_label=<a class="code" href="ac__common_8php.html#a9">FormatString</a>($tva_label);
|
||
<a name="l00038"></a><a class="code" href="tva_8inc_8php.html#a2">00038</a> $tva_rate=<a class="code" href="ac__common_8php.html#a9">FormatString</a>($tva_rate);
|
||
<a name="l00039"></a><a class="code" href="tva_8inc_8php.html#a3">00039</a> $tva_comment=<a class="code" href="ac__common_8php.html#a9">FormatString</a>($tva_comment);
|
||
<a name="l00040"></a><a class="code" href="tva_8inc_8php.html#a4">00040</a> $tva_poste=<a class="code" href="ac__common_8php.html#a9">FormatString</a>($tva_poste);
|
||
<a name="l00041"></a><a class="code" href="tva_8inc_8php.html#a5">00041</a> $err=0; <span class="comment">// Error code</span>
|
||
<a name="l00042"></a>00042 <span class="keywordflow">if</span> ( <a class="code" href="ac__common_8php.html#a2">isNumber</a>($tva_id) == 0 ) {
|
||
<a name="l00043"></a>00043 $err=1;
|
||
<a name="l00044"></a>00044
|
||
<a name="l00045"></a>00045 }
|
||
<a name="l00046"></a>00046 <span class="keywordflow">if</span> ( <a class="code" href="ac__common_8php.html#a2">isNumber</a>($tva_rate) == 0 ) {
|
||
<a name="l00047"></a>00047 $err=2;
|
||
<a name="l00048"></a>00048 }
|
||
<a name="l00049"></a>00049
|
||
<a name="l00050"></a>00050 <span class="keywordflow">if</span> ( $err == 0 )
|
||
<a name="l00051"></a>00051 {
|
||
<a name="l00052"></a>00052 <span class="keywordflow">if</span> ( isset ($_POST['confirm_add']) )
|
||
<a name="l00053"></a>00053 {
|
||
<a name="l00054"></a>00054 $Res=<a class="code" href="postgres_8php.html#a2">ExecSql</a>($cn,
|
||
<a name="l00055"></a>00055 <span class="stringliteral">"select tva_insert($tva_id,'$tva_label',</span>
|
||
<a name="l00056"></a>00056 <span class="stringliteral"> '$tva_rate','$tva_comment','$tva_poste')"</span>);
|
||
<a name="l00057"></a>00057
|
||
<a name="l00058"></a>00058 }
|
||
<a name="l00059"></a>00059 <span class="keywordflow">if</span> ( isset ($_POST['confirm_mod']) )
|
||
<a name="l00060"></a>00060 {
|
||
<a name="l00061"></a>00061 $Res=<a class="code" href="postgres_8php.html#a2">ExecSql</a>($cn,
|
||
<a name="l00062"></a>00062 <span class="stringliteral">"select tva_modify($tva_id,'$tva_label',</span>
|
||
<a name="l00063"></a>00063 <span class="stringliteral"> '$tva_rate','$tva_comment','$tva_poste')"</span>);
|
||
<a name="l00064"></a>00064 }
|
||
<a name="l00065"></a><a class="code" href="tva_8inc_8php.html#a6">00065</a> $ret_sql=pg_fetch_row($Res);
|
||
<a name="l00066"></a>00066 $err=$ret_sql[0];
|
||
<a name="l00067"></a>00067 }
|
||
<a name="l00068"></a>00068 <span class="keywordflow">if</span> ( $err != 0 )
|
||
<a name="l00069"></a>00069 {
|
||
<a name="l00070"></a>00070 $err_code=array(1=><span class="stringliteral">"Tva id n\'est pas un nombre"</span>,
|
||
<a name="l00071"></a>00071 2=><span class="stringliteral">"Taux tva invalide"</span>,
|
||
<a name="l00072"></a>00072 3=><span class="stringliteral">"Label ne peut <20>tre vide"</span>,
|
||
<a name="l00073"></a>00073 4=><span class="stringliteral">"Poste invalide"</span>,
|
||
<a name="l00074"></a>00074 5=><span class="stringliteral">"Tva id doit <20>tre unique"</span>);
|
||
<a name="l00075"></a><a class="code" href="tva_8inc_8php.html#a7">00075</a> $str_err=$err_code[$err];
|
||
<a name="l00076"></a>00076 echo <span class="stringliteral">"<script>alert ('$str_err'); </script>"</span>;;
|
||
<a name="l00077"></a>00077 }
|
||
<a name="l00078"></a>00078 }
|
||
<a name="l00079"></a>00079
|
||
<a name="l00081"></a>00081 <span class="comment">// Display</span>
|
||
<a name="l00082"></a><a class="code" href="tva_8inc_8php.html#a8">00082</a> $sql=<span class="stringliteral">"select tva_id,tva_label,tva_rate,tva_comment,tva_poste from tva_rate order by tva_id"</span>;
|
||
<a name="l00083"></a><a class="code" href="tva_8inc_8php.html#a9">00083</a> $Res=<a class="code" href="postgres_8php.html#a2">ExecSql</a>($cn,$sql);
|
||
<a name="l00084"></a>00084 ?>
|
||
<a name="l00085"></a>00085 <TABLE>
|
||
<a name="l00086"></a>00086 <TR>
|
||
<a name="l00087"></a>00087 <th>Id</th>
|
||
<a name="l00088"></a>00088 <th>Label</TH>
|
||
<a name="l00089"></a>00089 <th>Taux</th>
|
||
<a name="l00090"></a>00090 <th>Commentaire</th>
|
||
<a name="l00091"></a>00091 <th>Poste</th>
|
||
<a name="l00092"></a>00092 </tr>
|
||
<a name="l00093"></a>00093 <?
|
||
<a name="l00094"></a><a class="code" href="tva_8inc_8php.html#a10">00094</a> $val=pg_fetch_all($Res);
|
||
<a name="l00095"></a>00095 <a class="code" href="debug_8php.html#a0">echo_debug</a>('parametre',__LINE__,$val);
|
||
<a name="l00096"></a>00096 foreach ( $val as $row)
|
||
<a name="l00097"></a>00097 {
|
||
<a name="l00098"></a>00098 <span class="comment">// load value into an array</span>
|
||
<a name="l00099"></a>00099 $index=$row['tva_id'] ;
|
||
<a name="l00100"></a>00100 $a[$index]=array(
|
||
<a name="l00101"></a>00101 'tva_label'=> $row['tva_label'],
|
||
<a name="l00102"></a>00102 'tva_rate'=>$row['tva_rate'],
|
||
<a name="l00103"></a>00103 'tva_comment'=>$row['tva_comment'],
|
||
<a name="l00104"></a>00104 'tva_poste'=>$row['tva_poste']
|
||
<a name="l00105"></a>00105 );
|
||
<a name="l00106"></a>00106 echo <span class="stringliteral">"<TR>"</span>;
|
||
<a name="l00107"></a>00107 echo '<<a class="code" href="constant_8php.html#a7">FORM</a> <a class="code" href="pref_8inc_8php.html#a0">METHOD</a>=<span class="stringliteral">"POST"</span>>';
|
||
<a name="l00108"></a>00108
|
||
<a name="l00109"></a>00109 echo <span class="stringliteral">"<TD>"</span>;
|
||
<a name="l00110"></a>00110 echo $row['tva_id'];
|
||
<a name="l00111"></a>00111 echo <span class="stringliteral">"</TD>"</span>;
|
||
<a name="l00112"></a>00112
|
||
<a name="l00113"></a>00113 echo <span class="stringliteral">"<TD>"</span>;
|
||
<a name="l00114"></a>00114 echo $row['tva_label'];
|
||
<a name="l00115"></a>00115 echo <span class="stringliteral">"</TD>"</span>;
|
||
<a name="l00116"></a>00116
|
||
<a name="l00117"></a>00117 echo <span class="stringliteral">"<TD>"</span>;
|
||
<a name="l00118"></a>00118 echo $row['tva_rate'];
|
||
<a name="l00119"></a>00119 echo <span class="stringliteral">"</TD>"</span>;
|
||
<a name="l00120"></a>00120
|
||
<a name="l00121"></a>00121 echo <span class="stringliteral">"<TD>"</span>;
|
||
<a name="l00122"></a>00122 echo $row['tva_comment'];
|
||
<a name="l00123"></a>00123 echo <span class="stringliteral">"</TD>"</span>;
|
||
<a name="l00124"></a>00124
|
||
<a name="l00125"></a>00125 echo <span class="stringliteral">"<TD>"</span>;
|
||
<a name="l00126"></a>00126 echo $row['tva_poste'];
|
||
<a name="l00127"></a>00127 echo <span class="stringliteral">"</TD>"</span>;
|
||
<a name="l00128"></a>00128
|
||
<a name="l00129"></a>00129 echo <span class="stringliteral">"<TD>"</span>;
|
||
<a name="l00130"></a>00130 echo '<input type=<span class="stringliteral">"submit"</span> <a class="code" href="client_8inc_8php.html#a5">name</a>=<span class="stringliteral">"rm"</span> <a class="code" href="client_8inc_8php.html#a6">value</a>=<span class="stringliteral">"Efface"</span>>';
|
||
<a name="l00131"></a>00131 echo '<input type=<span class="stringliteral">"submit"</span> <a class="code" href="client_8inc_8php.html#a5">name</a>=<span class="stringliteral">"mod"</span> <a class="code" href="client_8inc_8php.html#a6">value</a>=<span class="stringliteral">"Modifie"</span>>';
|
||
<a name="l00132"></a><a class="code" href="tva_8inc_8php.html#a11">00132</a> $w=<span class="keyword">new</span> <a class="code" href="classwidget.html">widget</a>(<span class="stringliteral">"hidden"</span>);
|
||
<a name="l00133"></a><a class="code" href="tva_8inc_8php.html#a12">00133</a> $w->name=<span class="stringliteral">"tva_id"</span>;
|
||
<a name="l00134"></a><a class="code" href="tva_8inc_8php.html#a13">00134</a> $w->value=$row['tva_id'];
|
||
<a name="l00135"></a>00135 echo $w->IOValue();
|
||
<a name="l00136"></a>00136 <a class="code" href="balance_8php.html#a2">$w</a>=<span class="keyword">new</span> <a class="code" href="classwidget.html">widget</a>(<span class="stringliteral">"hidden"</span>);
|
||
<a name="l00137"></a>00137 <a class="code" href="balance_8php.html#a2">$w</a>->name=<span class="stringliteral">"p_action"</span>;
|
||
<a name="l00138"></a>00138 <a class="code" href="balance_8php.html#a2">$w</a>->value=<span class="stringliteral">"tva"</span>;
|
||
<a name="l00139"></a>00139 echo <a class="code" href="balance_8php.html#a2">$w</a>->IOValue();
|
||
<a name="l00140"></a>00140
|
||
<a name="l00141"></a>00141 echo <span class="stringliteral">"</TD>"</span>;
|
||
<a name="l00142"></a>00142
|
||
<a name="l00143"></a>00143 echo '</<a class="code" href="constant_8php.html#a7">FORM</a>>';
|
||
<a name="l00144"></a>00144 echo <span class="stringliteral">"</TR>"</span>;
|
||
<a name="l00145"></a>00145 }
|
||
<a name="l00146"></a>00146 ?>
|
||
<a name="l00147"></a>00147 </TABLE>
|
||
<a name="l00148"></a>00148 <? <span class="comment">// if we add / remove or modify a vat we don't show this button</span>
|
||
<a name="l00149"></a>00149 <span class="keywordflow">if</span> ( ! isset ($_POST['add'])
|
||
<a name="l00150"></a>00150 && ! isset ($_POST['mod'])
|
||
<a name="l00151"></a>00151 && ! isset ($_POST['rm'])
|
||
<a name="l00152"></a>00152
|
||
<a name="l00153"></a>00153 ) { ?>
|
||
<a name="l00154"></a>00154 <form method=<span class="stringliteral">"post"</span>>
|
||
<a name="l00155"></a>00155 <input type=<span class="stringliteral">"submit"</span> <a class="code" href="client_8inc_8php.html#a5">name</a>=<span class="stringliteral">"add"</span> <a class="code" href="client_8inc_8php.html#a6">value</a>=<span class="stringliteral">"Ajouter un taux de tva"</span>>
|
||
<a name="l00156"></a>00156 <input type=<span class="stringliteral">"hidden"</span> <a class="code" href="client_8inc_8php.html#a5">name</a>=<span class="stringliteral">"p_action"</span> <a class="code" href="client_8inc_8php.html#a6">value</a>=<span class="stringliteral">"tva"</span>>
|
||
<a name="l00157"></a>00157 </form>
|
||
<a name="l00158"></a>00158 <?
|
||
<a name="l00159"></a>00159 }
|
||
<a name="l00160"></a>00160
|
||
<a name="l00161"></a>00161
|
||
<a name="l00163"></a>00163 <span class="comment">// remove</span>
|
||
<a name="l00164"></a>00164 <span class="keywordflow">if</span> ( isset ( $_REQUEST['rm']))
|
||
<a name="l00165"></a>00165 {
|
||
<a name="l00166"></a>00166 <a class="code" href="debug_8php.html#a0">echo_debug</a>(<span class="stringliteral">"parametre"</span>,__LINE__,<span class="stringliteral">"efface "</span>.$_POST['tva_id']);
|
||
<a name="l00167"></a>00167 echo <span class="stringliteral">"Voulez-vous vraiment effacer ce taux ? "</span>;
|
||
<a name="l00168"></a><a class="code" href="tva_8inc_8php.html#a14">00168</a> <a class="code" href="tva_8inc_8php.html#a14">$index</a>=$_POST['tva_id'];
|
||
<a name="l00169"></a>00169
|
||
<a name="l00170"></a>00170 ?>
|
||
<a name="l00171"></a>00171 <<a class="code" href="balance_8php.html#a3">table</a>>
|
||
<a name="l00172"></a>00172 <TR>
|
||
<a name="l00173"></a>00173 <th>Label</TH>
|
||
<a name="l00174"></a>00174 <th>Taux</th>
|
||
<a name="l00175"></a>00175 <th>Commentaire</th>
|
||
<a name="l00176"></a>00176 <th>Poste</th>
|
||
<a name="l00177"></a>00177 </tr>
|
||
<a name="l00178"></a>00178 <tr>
|
||
<a name="l00179"></a>00179 <td> <? echo <a class="code" href="balance_8php.html#a9">$a</a>[<a class="code" href="tva_8inc_8php.html#a14">$index</a>]['tva_label']; ?></td>
|
||
<a name="l00180"></a>00180 <td> <? echo $a[<a class="code" href="tva_8inc_8php.html#a14">$index</a>]['tva_rate']; ?></td>
|
||
<a name="l00181"></a>00181 <td> <? echo $a[<a class="code" href="tva_8inc_8php.html#a14">$index</a>]['tva_comment']; ?></td>
|
||
<a name="l00182"></a>00182 <td> <? echo $a[<a class="code" href="tva_8inc_8php.html#a14">$index</a>]['tva_poste']; ?></td>
|
||
<a name="l00183"></a>00183 </Tr>
|
||
<a name="l00184"></a>00184 </<a class="code" href="balance_8php.html#a3">table</a>>
|
||
<a name="l00185"></a>00185 <?
|
||
<a name="l00186"></a>00186 echo '<<a class="code" href="constant_8php.html#a7">FORM</a> method=<span class="stringliteral">"post"</span>>';
|
||
<a name="l00187"></a>00187 echo '<input type=<span class="stringliteral">"hidden"</span> <a class="code" href="client_8inc_8php.html#a5">name</a>=<span class="stringliteral">"tva_id"</span> <a class="code" href="client_8inc_8php.html#a6">value</a>=<span class="stringliteral">"'.$index.'"</span>>';
|
||
<a name="l00188"></a>00188 echo '<input type=<span class="stringliteral">"submit"</span> <a class="code" href="client_8inc_8php.html#a5">name</a>=<span class="stringliteral">"confirm_rm"</span> <a class="code" href="client_8inc_8php.html#a6">value</a>=<span class="stringliteral">"Confirme"</span>>';
|
||
<a name="l00189"></a>00189 echo '<input type=<span class="stringliteral">"submit"</span> <a class="code" href="client_8inc_8php.html#a6">value</a>=<span class="stringliteral">"Cancel"</span> <a class="code" href="client_8inc_8php.html#a5">name</a>=<span class="stringliteral">"no"</span>>';
|
||
<a name="l00190"></a>00190 echo <span class="stringliteral">"</form>"</span>;
|
||
<a name="l00191"></a>00191
|
||
<a name="l00192"></a>00192 }
|
||
<a name="l00194"></a>00194 <span class="comment">// add</span>
|
||
<a name="l00195"></a>00195 <span class="keywordflow">if</span> ( isset ( $_REQUEST['add']))
|
||
<a name="l00196"></a>00196 {
|
||
<a name="l00197"></a>00197 <a class="code" href="debug_8php.html#a0">echo_debug</a>(<span class="stringliteral">"parametre"</span>,__LINE__,<span class="stringliteral">"add a line "</span>);
|
||
<a name="l00198"></a>00198 echo <span class="stringliteral">"Tva <20> ajouter, l'id doit <20>tre diff<66>rent pour chaque taux"</span>;
|
||
<a name="l00199"></a>00199 echo '<<a class="code" href="constant_8php.html#a7">FORM</a> method=<span class="stringliteral">"post"</span>>';
|
||
<a name="l00200"></a>00200
|
||
<a name="l00201"></a>00201
|
||
<a name="l00202"></a>00202 ?>
|
||
<a name="l00203"></a>00203 <<a class="code" href="balance_8php.html#a3">table</a> >
|
||
<a name="l00204"></a>00204 <TR>
|
||
<a name="l00205"></a>00205 <th><span class="keywordtype">id</span></TH>
|
||
<a name="l00206"></a>00206 <th>Label</TH>
|
||
<a name="l00207"></a>00207 <th>Taux</th>
|
||
<a name="l00208"></a>00208 <th>Commentaire</th>
|
||
<a name="l00209"></a>00209 <th>Poste</th>
|
||
<a name="l00210"></a>00210 </tr>
|
||
<a name="l00211"></a>00211 <tr valign=<span class="stringliteral">"top"</span>>
|
||
<a name="l00212"></a><a class="code" href="tva_8inc_8php.html#a15">00212</a> <td> <? <a class="code" href="balance_8php.html#a2">$w</a>=<span class="keyword">new</span> <a class="code" href="classwidget.html">widget</a>(<span class="stringliteral">"text"</span>);$w->size=5; echo $w->IOValue('tva_id<span class="charliteral">','</span>') ?></td>
|
||
<a name="l00213"></a>00213 <td> <? $w=<span class="keyword">new</span> <a class="code" href="classwidget.html">widget</a>(<span class="stringliteral">"text"</span>);$w->size=20; echo $w->IOValue('tva_label<span class="charliteral">','</span>') ?></td>
|
||
<a name="l00214"></a>00214 <td> <? $w=<span class="keyword">new</span> <a class="code" href="classwidget.html">widget</a>(<span class="stringliteral">"text"</span>);$w->size=5; echo $w->IOValue('tva_rate<span class="charliteral">','</span>') ?></td>
|
||
<a name="l00215"></a><a class="code" href="tva_8inc_8php.html#a17">00215</a> <td> <? $w=<span class="keyword">new</span> <a class="code" href="classwidget.html">widget</a>(<span class="stringliteral">"textarea"</span>); $w->heigh=2;$w->width=20;echo $w->IOValue('tva_comment<span class="charliteral">','</span>') ?></td>
|
||
<a name="l00216"></a>00216 <td> <? $w=<span class="keyword">new</span> <a class="code" href="classwidget.html">widget</a>(<span class="stringliteral">"text"</span>); $w->size=10;echo $w->IOValue('tva_poste<span class="charliteral">','</span>') ?></td>
|
||
<a name="l00217"></a>00217 </Tr>
|
||
<a name="l00218"></a>00218 </<a class="code" href="balance_8php.html#a3">table</a>>
|
||
<a name="l00219"></a>00219 <input type=<span class="stringliteral">"submit"</span> <a class="code" href="client_8inc_8php.html#a6">value</a>=<span class="stringliteral">"Confirme"</span> <a class="code" href="client_8inc_8php.html#a5">name</a>=<span class="stringliteral">"confirm_add"</span>>
|
||
<a name="l00220"></a>00220 <input type=<span class="stringliteral">"submit"</span> <a class="code" href="client_8inc_8php.html#a6">value</a>=<span class="stringliteral">"Cancel"</span> <a class="code" href="client_8inc_8php.html#a5">name</a>=<span class="stringliteral">"no"</span>>
|
||
<a name="l00221"></a>00221
|
||
<a name="l00222"></a>00222 </<a class="code" href="constant_8php.html#a7">FORM</a>>
|
||
<a name="l00223"></a>00223 <? }
|
||
<a name="l00224"></a>00224
|
||
<a name="l00226"></a>00226 <span class="comment">// mod</span>
|
||
<a name="l00227"></a>00227 <span class="keywordflow">if</span> ( isset ( $_REQUEST['mod']))
|
||
<a name="l00228"></a>00228 {
|
||
<a name="l00229"></a>00229
|
||
<a name="l00230"></a>00230 <a class="code" href="debug_8php.html#a0">echo_debug</a>(<span class="stringliteral">"parametre"</span>,__LINE__,<span class="stringliteral">"modifie "</span>.$_POST['tva_id']);
|
||
<a name="l00231"></a>00231 echo <span class="stringliteral">"Tva <20> modifier"</span>;
|
||
<a name="l00232"></a>00232 <a class="code" href="tva_8inc_8php.html#a14">$index</a>=$_POST['tva_id'];
|
||
<a name="l00233"></a>00233
|
||
<a name="l00234"></a>00234 echo '<<a class="code" href="constant_8php.html#a7">FORM</a> method=<span class="stringliteral">"post"</span>>';
|
||
<a name="l00235"></a>00235 echo '<input type=<span class="stringliteral">"hidden"</span> <a class="code" href="client_8inc_8php.html#a5">name</a>=<span class="stringliteral">"tva_id"</span> <a class="code" href="client_8inc_8php.html#a6">value</a>=<span class="stringliteral">"'.$index.'"</span>>';
|
||
<a name="l00236"></a>00236 ?>
|
||
<a name="l00237"></a>00237 <<a class="code" href="balance_8php.html#a3">table</a>>
|
||
<a name="l00238"></a>00238 <TR>
|
||
<a name="l00239"></a>00239 <th>Label</TH>
|
||
<a name="l00240"></a>00240 <th>Taux</th>
|
||
<a name="l00241"></a>00241 <th>Commentaire</th>
|
||
<a name="l00242"></a>00242 <th>Poste</th>
|
||
<a name="l00243"></a>00243 </tr>
|
||
<a name="l00244"></a>00244 <tr valign=<span class="stringliteral">"top"</span>>
|
||
<a name="l00245"></a>00245 <td> <? $w=<span class="keyword">new</span> <a class="code" href="classwidget.html">widget</a>(<span class="stringliteral">"text"</span>);$w->size=20; echo $w->IOValue('tva_label',$a[$index]['tva_label']) ?></td>
|
||
<a name="l00246"></a>00246 <td> <? $w=<span class="keyword">new</span> <a class="code" href="classwidget.html">widget</a>(<span class="stringliteral">"text"</span>);$w->size=5; echo $w->IOValue('tva_rate',$a[$index]['tva_rate']) ?></td>
|
||
<a name="l00247"></a>00247 <td> <? $w=<span class="keyword">new</span> <a class="code" href="classwidget.html">widget</a>(<span class="stringliteral">"textarea"</span>); $w->heigh=2;$w->width=20;
|
||
<a name="l00248"></a>00248 echo $w->IOValue('tva_comment',$a[$index]['tva_comment']) ?></td>
|
||
<a name="l00249"></a>00249 <td> <? $w=<span class="keyword">new</span> <a class="code" href="classwidget.html">widget</a>(<span class="stringliteral">"text"</span>);$w->size=5; echo $w->IOValue('tva_poste',$a[$index]['tva_poste']) ?></td>
|
||
<a name="l00250"></a>00250 </Tr>
|
||
<a name="l00251"></a>00251 </<a class="code" href="balance_8php.html#a3">table</a>>
|
||
<a name="l00252"></a>00252 <input type=<span class="stringliteral">"submit"</span> <a class="code" href="client_8inc_8php.html#a6">value</a>=<span class="stringliteral">"Confirme"</span> <a class="code" href="client_8inc_8php.html#a5">name</a>=<span class="stringliteral">"confirm_mod"</span>>
|
||
<a name="l00253"></a>00253 <input type=<span class="stringliteral">"submit"</span> <a class="code" href="client_8inc_8php.html#a6">value</a>=<span class="stringliteral">"Cancel"</span> <a class="code" href="client_8inc_8php.html#a5">name</a>=<span class="stringliteral">"no"</span>>
|
||
<a name="l00254"></a>00254 </<a class="code" href="constant_8php.html#a7">FORM</a>>
|
||
<a name="l00255"></a>00255 <?
|
||
<a name="l00256"></a>00256 }
|
||
<a name="l00257"></a>00257
|
||
<a name="l00258"></a>00258 ?>
|
||
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Jun 23 00:12:46 2006 for phpcompta by
|
||
<a href="http://www.doxygen.org/index.html">
|
||
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4 </small></address>
|
||
</body>
|
||
</html>
|