/[dolibarr]/dolibarr/htdocs/contrat/fiche.php
ViewVC logotype

Diff of /dolibarr/htdocs/contrat/fiche.php

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

revision 1.66 by eldy, Sat Oct 1 16:05:57 2005 UTC revision 1.67 by eldy, Tue Oct 4 01:32:40 2005 UTC
# Line 212  if ($_POST["action"] == 'confirm_valid' Line 212  if ($_POST["action"] == 'confirm_valid'
212  {  {
213      $contrat = new Contrat($db);      $contrat = new Contrat($db);
214      $contrat->fetch($_GET["id"]);      $contrat->fetch($_GET["id"]);
215      $result = $contrat->validate($user,$lang,$conf);      $result = $contrat->validate($user,$langs,$conf);
216  }  }
217    
218  if ($_POST["action"] == 'confirm_close' && $_POST["confirm"] == 'yes' && $user->rights->contrat->creer)  if ($_POST["action"] == 'confirm_close' && $_POST["confirm"] == 'yes' && $user->rights->contrat->creer)
219  {  {
220      $contrat = new Contrat($db);      $contrat = new Contrat($db);
221      $contrat->fetch($_GET["id"]);      $contrat->fetch($_GET["id"]);
222      $result = $contrat->cloture($user,$lang,$conf);      $result = $contrat->cloture($user,$langs,$conf);
223  }  }
224    
225  if ($_POST["action"] == 'confirm_delete' && $_POST["confirm"] == 'yes')  if ($_POST["action"] == 'confirm_delete' && $_POST["confirm"] == 'yes')
# Line 228  if ($_POST["action"] == 'confirm_delete' Line 228  if ($_POST["action"] == 'confirm_delete'
228      {      {
229          $contrat = new Contrat($db);          $contrat = new Contrat($db);
230          $contrat->id = $_GET["id"];          $contrat->id = $_GET["id"];
231          $contrat->delete($user,$lang,$conf);          $contrat->delete($user,$langs,$conf);
232          Header("Location: index.php");          Header("Location: index.php");
233          return;          return;
234      }      }

Legend:
Removed from v.1.66  
changed lines
  Added in v.1.67

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