fix typos and misbehaviours. this has never been able to work ?!
authorx2000habouzit <x2000habouzit@839d8a87-29fc-0310-9880-83ba4fa771e5>
Mon, 10 Jul 2006 21:28:21 +0000 (21:28 +0000)
committerx2000habouzit <x2000habouzit@839d8a87-29fc-0310-9880-83ba4fa771e5>
Mon, 10 Jul 2006 21:28:21 +0000 (21:28 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@425 839d8a87-29fc-0310-9880-83ba4fa771e5

modules/trezo.php
templates/trezo/gere_operations.tpl

index 93dd253..806882d 100644 (file)
@@ -71,7 +71,7 @@ class TrezoModule extends PLModule
         return PL_OK;
     }
 
-    function handler_op(&$page)
+    function handler_operation(&$page)
     {
         global $globals;
 
index e65976c..c00a7a9 100644 (file)
 {*                                                                        *}
 {**************************************************************************}
 
-
-
 {if $smarty.request.action eq "edit"}
 <h1>
   Gestion des opérations de trésorerie
 </h1>
 
-<form method="post" action="{$smarty.server.PHP_SEL}">
+<form method="post" action="{rel}/{$platal->path}">
   <table class="bicol">
     <tr>
       <th colspan="2">
@@ -41,7 +39,7 @@
     <tr>
       <td>Date (DD/MM/YYYY)</td>
       <td><input type="text" name="op_date" size="40"
-        value="{$op_date|date_format}" /></td>
+        value="{$op_date|date_format:"%d/%m/%Y"}" /></td>
     </tr>
     <tr>
       <td>Description libre</td>
@@ -67,7 +65,7 @@
   </table>
 </form>
 
-<a href="{$smarty.server.PHP_SELF}">retour</a>
+<a href="{rel}/{$platal->path}">retour</a>
 {elseif $smarty.request.action eq "update" && $op_id}
 <strong>modification de l'opération</strong>
 {elseif $smarty.request.action eq "update"}
     <td>&nbsp;</td>
     <td>&nbsp;</td>
     <td>
-      <form method="post" action="{$smarty.server.PHP_SELF}">
+      <form method="post" action="{rel}/{$platal->path}">
         <div>
           <input type="hidden" name="op_id" value="0" />
           <input type="hidden" name="action" value="edit" />
     <td class="right">{$op.debit}</td>
     <td class="right">{$op.credit}</td>
     <td>
-      <form method="post" action="{$smarty.server.PHP_SELF}">
+      <form method="post" action="{rel}/{$platal->path}">
         <div>
           <input type="hidden" name="op_id" value="{$op.id}" />
           <input type="hidden" name="annee" value="{$annee_sel}" />