diff --git a/htdocs/admin/societe.php b/htdocs/admin/societe.php
index 3a4b45231ae..5d1367b1fb7 100644
--- a/htdocs/admin/societe.php
+++ b/htdocs/admin/societe.php
@@ -65,19 +65,6 @@ if ($_GET["action"] == 'setcodecompta')
}
}
-if ($_POST["action"] == 'setdisablenotifications')
-{
- if (dolibarr_set_const($db, "SOCIETE_DISABLE_NOTIFICATIONS",! $_POST["constvalue"]))
- {
- Header("Location: ".$_SERVER["PHP_SELF"]);
- exit;
- }
- else
- {
- dolibarr_print_error($db);
- }
-}
-
/*
* Affichage page configuration module societe
@@ -213,8 +200,8 @@ print "\n";
print '
';
-// Choix du module de gestion des codes compta
-
+// Autres options
+/*
print_titre($langs->trans("OtherOptions"));
$var=true;
@@ -228,16 +215,16 @@ print '
| ';
print "\n";
print '';
print "\n";
-
+*/
$db->close();
diff --git a/htdocs/comm/multiprix.php b/htdocs/comm/multiprix.php
index 8848eb6a1d8..d54cc92a9e1 100644
--- a/htdocs/comm/multiprix.php
+++ b/htdocs/comm/multiprix.php
@@ -69,82 +69,27 @@ if ($user->societe_id > 0)
*********************************************************************************/
if ($_socid > 0)
{
- // On recupere les donnees societes par l'objet
- $objsoc = new Societe($db);
- $objsoc->id=$_socid;
- $objsoc->fetch($_socid,$to);
-
- $dac = strftime("%Y-%m-%d %H:%M", time());
- if ($errmesg)
- {
- print ''.$errmesg.'
';
- }
-
- /*
- * Affichage onglets
- */
- $h = 0;
-
- $head[$h][0] = DOL_URL_ROOT.'/soc.php?socid='.$objsoc->id;
- $head[$h][1] = $langs->trans("Company");
- $h++;
-
- if ($objsoc->client==1)
- {
- $hselected=$h;
- $head[$h][0] = DOL_URL_ROOT.'/comm/fiche.php?socid='.$objsoc->id;
- $head[$h][1] = $langs->trans("Customer");
- $h++;
- }
- if ($objsoc->client==2)
- {
- $hselected=$h;
- $head[$h][0] = DOL_URL_ROOT.'/comm/prospect/fiche.php?id='.$obj->socid;
- $head[$h][1] = $langs->trans("Prospect");
- $h++;
- }
- if ($objsoc->fournisseur)
- {
- $head[$h][0] = DOL_URL_ROOT.'/fourn/fiche.php?socid='.$objsoc->id;
- $head[$h][1] = $langs->trans("Supplier");
- $h++;
- }
-
- if ($conf->compta->enabled || $conf->comptaexpert->enabled)
- {
- $head[$h][0] = DOL_URL_ROOT.'/compta/fiche.php?socid='.$objsoc->id;
- $head[$h][1] = $langs->trans("Accountancy");
- $h++;
- }
+ // On recupere les donnees societes par l'objet
+ $objsoc = new Societe($db);
+ $objsoc->id=$_socid;
+ $objsoc->fetch($_socid,$to);
+
+ $dac = strftime("%Y-%m-%d %H:%M", time());
+ if ($errmesg)
+ {
+ print ''.$errmesg.'
';
+ }
+
- $head[$h][0] = DOL_URL_ROOT.'/socnote.php?socid='.$objsoc->id;
- $head[$h][1] = $langs->trans("Note");
- $h++;
+ /*
+ * Affichage onglets
+ */
- if ($user->societe_id == 0)
- {
- $head[$h][0] = DOL_URL_ROOT.'/docsoc.php?socid='.$objsoc->id;
- $head[$h][1] = $langs->trans("Documents");
- $h++;
- }
+ $head = societe_prepare_head($objsoc);
- $head[$h][0] = DOL_URL_ROOT.'/societe/notify/fiche.php?socid='.$objsoc->id;
- $head[$h][1] = $langs->trans("Notifications");
- $h++;
-
- if ($user->societe_id == 0)
- {
- $head[$h][0] = DOL_URL_ROOT."/comm/index.php?socidp=$objsoc->id&action=add_bookmark";
- $head[$h][1] = img_object($langs->trans("BookmarkThisPage"),'bookmark');
- $head[$h][2] = 'image';
- }
+ dolibarr_fiche_head($head, 'notify', $objsoc->nom);
- dolibarr_fiche_head($head, $hselected, $objsoc->nom);
- /*
- *
- *
- */
print '