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

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

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

revision 1.31 by eldy, Sat Jul 16 11:21:08 2005 UTC revision 1.32 by rodolphe, Sat Jul 30 20:24:13 2005 UTC
# Line 42  if ($_POST["action"] == 'add' && $user-> Line 42  if ($_POST["action"] == 'add' && $user->
42    $pro->socidp = $_GET["socidp"];    $pro->socidp = $_GET["socidp"];
43    $pro->ref = $_POST["ref"];    $pro->ref = $_POST["ref"];
44    $pro->title = $_POST["title"];    $pro->title = $_POST["title"];
45    $pro_id = $pro->create($user);    $result = $pro->create($user);
46    
47    if ($pro_id)    if ($result == 0)
48      {      {
49        Header("Location:fiche.php?id=$pro_id");        Header("Location:fiche.php?id=".$pro->id);
50      }      }
51  }  }
52    
# Line 72  if ($_POST["action"] == 'update' && $use Line 72  if ($_POST["action"] == 'update' && $use
72    }    }
73  }  }
74    
75  if ($_POST["action"] == 'confirm_delete' && $_POST["confirm"] == "yes")  if ($_POST["action"] == 'confirm_delete' && $_POST["confirm"] == "yes" && $user->rights->projet->supprimer)
76  {  {
77    $projet = new Project($db);    $projet = new Project($db);
78    $projet->id = $_GET["id"];    $projet->id = $_GET["id"];
79    $projet->delete();    if ($projet->delete($user) == 0)
80    Header("Location: index.php");      {
81          Header("Location: index.php");
82        }
83      else
84        {
85          Header("Location: fiche.php?id=".$projet->id);
86        }
87  }  }
88    
89  llxHeader("",$langs->trans("Project"),"Projet");  llxHeader("",$langs->trans("Project"),"Projet");

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.32

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