/[dolibarr]/dolibarr/htdocs/socnote.php
ViewVC logotype

Diff of /dolibarr/htdocs/socnote.php

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

revision 1.20 by eldy, Sat Oct 15 13:53:33 2005 UTC revision 1.21 by eldy, Fri Nov 11 16:37:53 2005 UTC
# Line 38  if ($_POST["action"] == 'add') { Line 38  if ($_POST["action"] == 'add') {
38    
39    $_GET["socid"]=$_POST["socid"];   // Pour retour sur fiche    $_GET["socid"]=$_POST["socid"];   // Pour retour sur fiche
40  }  }
41    
42    
43  /*  /*
44   *   *
45   */   */
 llxHeader();  
46    
47  if ($_GET["socid"] > 0) {  llxHeader();
48    
49    $societe = new Societe($db, $_GET["socid"]);  if ($_GET["socid"] > 0)
50    $societe->fetch($_GET["socid"]);  {
51    /*      $societe = new Societe($db, $_GET["socid"]);
52     *      $societe->fetch($_GET["socid"]);
53     */      
54        $h=0;      
55        $h=0;
56        $head[$h][0] = DOL_URL_ROOT.'/soc.php?socid='.$societe->id;      
57        $head[$h][1] = $langs->trans("Company");      $head[$h][0] = DOL_URL_ROOT.'/soc.php?socid='.$societe->id;
58            $h++;      $head[$h][1] = $langs->trans("Company");
59        $h++;
60        if ($societe->client==1)      
61          {      if ($societe->client==1)
62            $head[$h][0] = DOL_URL_ROOT.'/comm/fiche.php?socid='.$societe->id;      {
63            $head[$h][1] = $langs->trans("Customer");          $head[$h][0] = DOL_URL_ROOT.'/comm/fiche.php?socid='.$societe->id;
64            $h++;          $head[$h][1] = $langs->trans("Customer");
65          }          $h++;
66              }
67        if ($societe->client==2)      
68          {      if ($societe->client==2)
69            $head[$h][0] = DOL_URL_ROOT.'/comm/prospect/fiche.php?id='.$societe->id;      {
70            $head[$h][1] = $langs->trans("Prospect");          $head[$h][0] = DOL_URL_ROOT.'/comm/prospect/fiche.php?id='.$societe->id;
71            $h++;          $head[$h][1] = $langs->trans("Prospect");
72          }          $h++;
73        if ($societe->fournisseur)      }
74          {      if ($societe->fournisseur)
75            $head[$h][0] = DOL_URL_ROOT.'/fourn/fiche.php?socid='.$societe->id;      {
76            $head[$h][1] = $langs->trans("Supplier");          $head[$h][0] = DOL_URL_ROOT.'/fourn/fiche.php?socid='.$societe->id;
77            $h++;          $head[$h][1] = $langs->trans("Supplier");
78          }          $h++;
79        }
80        if ($conf->compta->enabled) {      
81            $langs->load("compta");      if ($conf->compta->enabled) {
82            $head[$h][0] = DOL_URL_ROOT.'/compta/fiche.php?socid='.$societe->id;          $langs->load("compta");
83            $head[$h][1] = $langs->trans("Accountancy");          $head[$h][0] = DOL_URL_ROOT.'/compta/fiche.php?socid='.$societe->id;
84            $h++;          $head[$h][1] = $langs->trans("Accountancy");
85        }          $h++;
86        }
87        $head[$h][0] = DOL_URL_ROOT.'/socnote.php?socid='.$societe->id;      
88        $head[$h][1] = $langs->trans("Note");      $head[$h][0] = DOL_URL_ROOT.'/socnote.php?socid='.$societe->id;
89        $hselected = $h;      $head[$h][1] = $langs->trans("Note");
90        $h++;      $hselected = $h;
91        $h++;
92        if ($user->societe_id == 0)      
93          {      if ($user->societe_id == 0)
94            $head[$h][0] = DOL_URL_ROOT.'/docsoc.php?socid='.$societe->id;      {
95            $head[$h][1] = $langs->trans("Documents");          $head[$h][0] = DOL_URL_ROOT.'/docsoc.php?socid='.$societe->id;
96            $h++;          $head[$h][1] = $langs->trans("Documents");
97          }          $h++;
98              }
99        $head[$h][0] = DOL_URL_ROOT.'/societe/notify/fiche.php?socid='.$societe->id;      
100        $head[$h][1] = $langs->trans("Notifications");      $head[$h][0] = DOL_URL_ROOT.'/societe/notify/fiche.php?socid='.$societe->id;
101            $h++;      $head[$h][1] = $langs->trans("Notifications");
102              $h++;
103        dolibarr_fiche_head($head, $hselected, $societe->nom);      
104        $head[$h][0] = DOL_URL_ROOT.'/societe/info.php?socid='.$societe->id;
105        $head[$h][1] = $langs->trans("Info");
106        $h++;
107        
108        dolibarr_fiche_head($head, $hselected, $societe->nom);
109    
110    
111    print "<form method=\"post\" action=\"socnote.php\">";    print "<form method=\"post\" action=\"socnote.php\">";

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

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