/[dolibarr]/dolibarr/htdocs/compta/deplacement/fiche.php
ViewVC logotype

Diff of /dolibarr/htdocs/compta/deplacement/fiche.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.11 by eldy, Sat Jul 2 12:16:33 2005 UTC revision 1.12 by eldy, Sat Dec 3 00:36:02 2005 UTC
# Line 18  Line 18 
18   *   *
19   * $Id$   * $Id$
20   * $Source$   * $Source$
  *  
21   */   */
22    
23  /**  /**
# Line 63  if ($_POST["action"] == 'add' && $_POST[ Line 62  if ($_POST["action"] == 'add' && $_POST[
62    if ($id)    if ($id)
63      {      {
64        Header ( "Location: fiche.php?id=".$id);        Header ( "Location: fiche.php?id=".$id);
65          exit;
66      }      }
67    else    else
68      {      {
# Line 87  if ($_POST["action"] == 'update' && $_PO Line 87  if ($_POST["action"] == 'update' && $_PO
87    if ($result > 0)    if ($result > 0)
88      {      {
89        Header ( "Location: fiche.php?id=".$_POST["id"]);        Header ( "Location: fiche.php?id=".$_POST["id"]);
90          exit;
91      }      }
92    else    else
93      {      {
# Line 170  else Line 171  else
171                print '</td></tr>';                print '</td></tr>';
172                print '<tr><td>'.$langs->trans("Kilometers").'</td><td><input name="km" class="flat" size="10" value="'.$deplacement->km.'"></td></tr>';                print '<tr><td>'.$langs->trans("Kilometers").'</td><td><input name="km" class="flat" size="10" value="'.$deplacement->km.'"></td></tr>';
173    
174                print '<tr><td>&nbsp;</td><td><input type="submit" class="button" value="'.$langs->trans("Save").'">&nbsp;';                print '<tr><td align="center" colspan="2"><input type="submit" class="button" value="'.$langs->trans("Save").'"> &nbsp; ';
175                print '<input type="submit" name="cancel" class="button" value="'.$langs->trans("Cancel").'"></td></tr>';                print '<input type="submit" name="cancel" class="button" value="'.$langs->trans("Cancel").'"></td></tr>';
176                print '</table>';                print '</table>';
177                print '</form><br>';                print '</form>';
178                                
179                print '</div>';                print '</div>';
180              }              }
# Line 208  else Line 209  else
209                print dolibarr_print_date($deplacement->date);                print dolibarr_print_date($deplacement->date);
210                print '</td></tr>';                print '</td></tr>';
211                print '<tr><td>'.$langs->trans("Kilometers").'</td><td>'.$deplacement->km.'</td></tr>';                    print '<tr><td>'.$langs->trans("Kilometers").'</td><td>'.$deplacement->km.'</td></tr>';    
212                print "</table><br>";                print "</table>";
213                                
214                print '</div>';                print '</div>';
215              }              }

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26