1 {**************************************************************************}
3 {* Copyright (C) 2003-2004 Polytechnique.org *}
4 {* http://opensource.polytechnique.org/ *}
6 {* This program is free software; you can redistribute it and/or modify *}
7 {* it under the terms of the GNU General Public License as published by *}
8 {* the Free Software Foundation; either version 2 of the License, or *}
9 {* (at your option) any later version. *}
11 {* This program is distributed in the hope that it will be useful, *}
12 {* but WITHOUT ANY WARRANTY; without even the implied warranty of *}
13 {* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *}
14 {* GNU General Public License for more details. *}
16 {* You should have received a copy of the GNU General Public License *}
17 {* along with this program; if not, write to the Free Software *}
18 {* Foundation, Inc., *}
19 {* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *}
21 {**************************************************************************}
25 {if $smarty.request.action eq "edit"}
27 Gestion des opérations de trésorerie
30 <form method="post" action="{$smarty.server.PHP_SEL}">
35 Modifier une opération
42 <td>Date (DD/MM/YYYY)</td>
43 <td><input type="text" name="op_date" size="40"
44 value="{$op_date|date_format}" /></td>
47 <td>Description libre</td>
48 <td><input type="text" name="op_label" size="40" value="{$op_label}" /></td>
52 <td><input type="text" name="op_debit" size="40" value="{$op_debit}" /></td>
56 <td><input type="text" name="op_credit" size="40" value="{$op_credit}" /></td>
59 <td class="center" colspan="2">
60 <input type="hidden" name="op_id" value="{$op_id}" />
61 <input type="hidden" name="action" value="update" />
62 <input type="hidden" name="annee" value="{$annee_sel}" />
63 <input type="hidden" name="mois" value="{$mois_sel}" />
64 <input type="submit" value="enregistrer" />
70 <a href="{$smarty.server.PHP_SELF}">retour</a>
71 {elseif $smarty.request.action eq "update" && $op_id}
72 <strong>modification de l'opération</strong>
73 {elseif $smarty.request.action eq "update"}
74 <strong>ajout de l'opération</strong>
75 {elseif $smarty.request.action eq "del"}
76 <strong>suppression de l'opération</strong>
79 {if $smarty.request.action neq "edit"}
81 Trésorerie pour {$mon_sel}
86 <th>Solde en début de mois</th>
89 <td class="right">{$from_solde}</td>
95 <table class="bicol" style="font-size: 90%">
107 <td><strong>Nouvelle opération</strong></td>
111 <form method="post" action="{$smarty.server.PHP_SELF}">
113 <input type="hidden" name="op_id" value="0" />
114 <input type="hidden" name="action" value="edit" />
115 <input type="hidden" name="annee" value="{$annee_sel}" />
116 <input type="hidden" name="mois" value="{$mois_sel}" />
117 <input type="submit" value="new" />
122 {iterate item=op from=$ops}
123 <tr class="{cycle values="pair,impair"}">
125 <td>{$op.date|date_format}</td>
127 <td class="right">{$op.debit}</td>
128 <td class="right">{$op.credit}</td>
130 <form method="post" action="{$smarty.server.PHP_SELF}">
132 <input type="hidden" name="op_id" value="{$op.id}" />
133 <input type="hidden" name="annee" value="{$annee_sel}" />
134 <input type="hidden" name="mois" value="{$mois_sel}" />
135 <input type="submit" name="action" value="edit" />
136 <input type="submit" name="action" value="del" />
146 <table class="bicol">
148 <th>Solde en fin de mois</th>
151 <td class="right">{$to_solde}</td>
157 {include file=trezo/choix_date.tpl month_arr=$month_arr}
160 {* vim:set et sw=2 sts=2 sws=2: *}