diff --git a/htdocs/comm/fiche.php b/htdocs/comm/fiche.php index f62dbed2ff4..6f8e42f255f 100644 --- a/htdocs/comm/fiche.php +++ b/htdocs/comm/fiche.php @@ -24,7 +24,7 @@ /*! \file htdocs/comm/fiche.php \ingroup commercial - \brief Page de la fiche commercial + \brief Onglet client de la fiche societe \version $Revision$ */ @@ -32,14 +32,15 @@ require("./pre.inc.php"); require("../contact.class.php"); require("../actioncomm.class.php"); +$langs->load("companies"); +$langs->load("orders"); +$langs->load("contracts"); + $user->getrights('propale'); $user->getrights('fichinter'); $user->getrights('commande'); $user->getrights('projet'); -$langs->load("orders"); -$langs->load("companies"); -$langs->load("contracts"); llxHeader(); @@ -153,43 +154,45 @@ if ($_socid > 0) { $hselected=$h; $head[$h][0] = DOL_URL_ROOT.'/comm/fiche.php?socid='.$objsoc->id; - $head[$h][1] = 'Client'; + $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] = 'Prospect'; + $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] = 'Fournisseur'; + $head[$h][1] = $langs->trans("Supplier"); $h++; } if ($conf->compta->enabled) { + $langs->load("compta"); $head[$h][0] = DOL_URL_ROOT.'/compta/fiche.php?socid='.$objsoc->id; - $head[$h][1] = 'Comptabilité'; + $head[$h][1] = $langs->trans("Accountancy"); $h++; } $head[$h][0] = DOL_URL_ROOT.'/socnote.php?socid='.$objsoc->id; - $head[$h][1] = 'Note'; + $head[$h][1] = $langs->trans("Note"); $h++; if ($user->societe_id == 0) { $head[$h][0] = DOL_URL_ROOT.'/docsoc.php?socid='.$objsoc->id; - $head[$h][1] = 'Documents'; + $head[$h][1] = $langs->trans("Documents"); $h++; } $head[$h][0] = DOL_URL_ROOT.'/societe/notify/fiche.php?socid='.$objsoc->id; - $head[$h][1] = 'Notifications'; - + $head[$h][1] = $langs->trans("Notifications"); + $h++; + if (file_exists(DOL_DOCUMENT_ROOT.'/sl/')) { $head[$h][0] = DOL_URL_ROOT.'/sl/fiche.php?id='.$objsoc->id; @@ -202,6 +205,7 @@ if ($_socid > 0) $head[$h][0] = DOL_URL_ROOT."/comm/index.php?socidp=$objsoc->id&action=add_bookmark"; $head[$h][1] = 'Bookmark'; $head[$h][2] = 'image'; + $h++; } dolibarr_fiche_head($head, $hselected, $objsoc->nom); diff --git a/htdocs/compta/fiche.php b/htdocs/compta/fiche.php index 23a62156963..88b6245a6e5 100644 --- a/htdocs/compta/fiche.php +++ b/htdocs/compta/fiche.php @@ -32,6 +32,8 @@ require("../contact.class.php"); require("../actioncomm.class.php"); require("../facture.class.php"); +$langs->load("companies"); + /* * Sécurité accés client */ @@ -164,20 +166,21 @@ if ($socid > 0) if ($societe->client==2) { $head[$h][0] = DOL_URL_ROOT.'/comm/prospect/fiche.php?id='.$societe->id; - $head[$h][1] = 'Prospect'; + $head[$h][1] = $langs->trans("Prospect"); $h++; } if ($societe->fournisseur) { $head[$h][0] = DOL_URL_ROOT.'/fourn/fiche.php?socid='.$societe->id; - $head[$h][1] = 'Fournisseur'; + $head[$h][1] = $langs->trans("Supplier"); $h++; } if ($conf->compta->enabled) { + $langs->load("compta"); $hselected=$h; $head[$h][0] = DOL_URL_ROOT.'/compta/fiche.php?socid='.$societe->id; - $head[$h][1] = 'Comptabilité'; + $head[$h][1] = $langs->trans("Accountancy"); $h++; } diff --git a/htdocs/docsoc.php b/htdocs/docsoc.php index 551e803b142..26be770828f 100644 --- a/htdocs/docsoc.php +++ b/htdocs/docsoc.php @@ -20,14 +20,17 @@ * $Source$ */ -/*! \file htdocs/docsoc.php +/*! \file htdocs/docsoc.php \brief Fichier onglet documents liés à la société \ingroup societe - \version $Revision$ + \version $Revision$ */ require("./pre.inc.php"); +$langs->load("companies"); + + llxHeader(); $mesg = ""; @@ -64,7 +67,7 @@ if ( $_POST["sendit"] && defined('MAIN_UPLOAD_DOC') && MAIN_UPLOAD_DOC == 1) if ( $error_msg ) { - echo "$error_msg

"; + print ''.$error_msg.'

'; } if ($action=='delete') { @@ -85,51 +88,53 @@ if ($socid > 0) $societe = new Societe($db); if ($societe->fetch($socid)) { - - $head[0][0] = DOL_URL_ROOT.'/soc.php?socid='.$societe->id; - $head[0][1] = "Fiche société"; - $h = 1; - + $h = 0; + + $head[$h][0] = DOL_URL_ROOT.'/soc.php?socid='.$societe->id; + $head[$h][1] = $langs->trans("Company"); + $h++; + if ($societe->client==1) { $head[$h][0] = DOL_URL_ROOT.'/comm/fiche.php?socid='.$societe->id; - $head[$h][1] = 'Client'; + $head[$h][1] = $langs->trans("Customer"); $h++; } if ($societe->client==2) { $head[$h][0] = DOL_URL_ROOT.'/comm/prospect/fiche.php?id='.$societe->id; - $head[$h][1] = 'Prospect'; + $head[$h][1] = $langs->trans("Prospect"); $h++; } if ($societe->fournisseur) { $head[$h][0] = DOL_URL_ROOT.'/fourn/fiche.php?socid='.$societe->id; - $head[$h][1] = 'Fournisseur'; + $head[$h][1] = $langs->trans("Supplier"); $h++; } if ($conf->compta->enabled) { + $langs->load("compta"); $head[$h][0] = DOL_URL_ROOT.'/compta/fiche.php?socid='.$societe->id; - $head[$h][1] = 'Comptabilité'; + $head[$h][1] = $langs->trans("Accountancy"); $h++; } $head[$h][0] = DOL_URL_ROOT.'/socnote.php?socid='.$societe->id; - $head[$h][1] = 'Note'; + $head[$h][1] = $langs->trans("Note"); $h++; if ($user->societe_id == 0) { $head[$h][0] = DOL_URL_ROOT.'/docsoc.php?socid='.$societe->id; - $head[$h][1] = 'Documents'; + $head[$h][1] = $langs->trans("Documents"); $hselected = $h; $h++; } $head[$h][0] = DOL_URL_ROOT.'/societe/notify/fiche.php?socid='.$societe->id; - $head[$h][1] = 'Notifications'; + $head[$h][1] = $langs->trans("Notifications"); dolibarr_fiche_head($head, $hselected, $societe->nom); @@ -166,7 +171,7 @@ if ($socid > 0) if ($handle) { - print ''; + print '
'; while (($file = readdir($handle))!==false) { if (!is_dir($dir.$file) && substr($file, 0, 1) <> '.' && substr($file, 0, 3) <> 'CVS') diff --git a/htdocs/soc.php b/htdocs/soc.php index cf615436bf6..85d0fcfa516 100644 --- a/htdocs/soc.php +++ b/htdocs/soc.php @@ -22,6 +22,12 @@ * */ +/*! \file htdocs/soc.php + \ingroup societe + \brief Onglet societe d'une societe + \version $Revision$ +*/ + require("pre.inc.php"); $langs->load("companies"); @@ -117,7 +123,7 @@ if ($_GET["action"] == 'create') print ''; print ''; - print '
'; + print '
'; print ''; print ''; print '
'.$langs->trans('Name').'
'.$langs->trans('Address').'
'.$langs->trans('Zip').' '; @@ -260,47 +266,48 @@ else $soc->fetch($_GET["socid"]); $head[0][0] = 'soc.php?socid='.$soc->id; - $head[0][1] = "Fiche société"; + $head[0][1] = $langs->trans("Company"); $h = 1; if ($soc->client==1) { $head[$h][0] = DOL_URL_ROOT.'/comm/fiche.php?socid='.$soc->id; - $head[$h][1] = 'Client'; + $head[$h][1] = $langs->trans("Customer"); $h++; } if ($soc->client==2) { $head[$h][0] = DOL_URL_ROOT.'/comm/prospect/fiche.php?id='.$soc->id; - $head[$h][1] = 'Prospect'; + $head[$h][1] = $langs->trans("Prospect"); $h++; } if ($soc->fournisseur) { $head[$h][0] = DOL_URL_ROOT.'/fourn/fiche.php?socid='.$soc->id; - $head[$h][1] = 'Fiche fournisseur'; + $head[$h][1] = $langs->trans("Supplier");; $h++; } if ($conf->compta->enabled) { + $langs->load("compta"); $head[$h][0] = DOL_URL_ROOT.'/compta/fiche.php?socid='.$soc->id; - $head[$h][1] = 'Comptabilité'; + $head[$h][1] = $langs->trans("Accountancy"); $h++; } $head[$h][0] = DOL_URL_ROOT.'/socnote.php?socid='.$soc->id; - $head[$h][1] = 'Note'; + $head[$h][1] = $langs->trans("Note"); $h++; if ($user->societe_id == 0) { $head[$h][0] = DOL_URL_ROOT.'/docsoc.php?socid='.$soc->id; - $head[$h][1] = 'Documents'; + $head[$h][1] = $langs->trans("Documents"); $h++; } $head[$h][0] = DOL_URL_ROOT.'/societe/notify/fiche.php?socid='.$soc->id; - $head[$h][1] = 'Notifications'; + $head[$h][1] = $langs->trans("Notifications"); dolibarr_fiche_head($head, 0, $soc->nom); @@ -308,7 +315,7 @@ else * Fiche société en mode visu */ - print ''; + print '
'; print ''; print ""; diff --git a/htdocs/societe/notify/fiche.php b/htdocs/societe/notify/fiche.php index 1f977c5d756..0cadea37a6c 100644 --- a/htdocs/societe/notify/fiche.php +++ b/htdocs/societe/notify/fiche.php @@ -82,50 +82,51 @@ $soc->id = $_GET["socid"]; if ( $soc->fetch($soc->id) ) { + $h=0; - $head[0][0] = DOL_URL_ROOT.'/soc.php?socid='.$soc->id; - $head[0][1] = "Fiche société"; - $h = 1; + $head[$h][0] = DOL_URL_ROOT.'/soc.php?socid='.$soc->id; + $head[$h][1] = $langs->trans("Company"); + $h++; if ($soc->client==1) { $head[$h][0] = DOL_URL_ROOT.'/comm/fiche.php?socid='.$soc->id; - $head[$h][1] = 'Client'; + $head[$h][1] = $langs->trans("Customer"); $h++; } if ($soc->client==2) { $head[$h][0] = DOL_URL_ROOT.'/comm/prospect/fiche.php?id='.$soc->id; - $head[$h][1] = 'Prospect'; + $head[$h][1] = $langs->trans("Prospect"); $h++; } if ($soc->fournisseur) { $head[$h][0] = DOL_URL_ROOT.'/fourn/fiche.php?socid='.$soc->id; - $head[$h][1] = 'Fournisseur'; + $head[$h][1] = $langs->trans("Supplier"); $h++; } if ($conf->compta->enabled) { $head[$h][0] = DOL_URL_ROOT.'/compta/fiche.php?socid='.$soc->id; - $head[$h][1] = 'Comptabilite'; + $head[$h][1] = $langs->trans("Accountancy"); $h++; } $head[$h][0] = DOL_URL_ROOT.'/socnote.php?socid='.$soc->id; - $head[$h][1] = 'Note'; + $head[$h][1] = $langs->trans("Note"); $h++; if ($user->societe_id == 0) { $head[$h][0] = DOL_URL_ROOT.'/docsoc.php?socid='.$soc->id; - $head[$h][1] = 'Documents'; + $head[$h][1] = $langs->trans("Documents"); $h++; } $head[$h][0] = DOL_URL_ROOT.'/societe/notify/fiche.php?socid='.$soc->id; - $head[$h][1] = 'Notifications'; + $head[$h][1] = $langs->trans("Notifications"); $hselected=$h; $h++; diff --git a/htdocs/socnote.php b/htdocs/socnote.php index c1307e3804d..7bd1aeab002 100644 --- a/htdocs/socnote.php +++ b/htdocs/socnote.php @@ -21,14 +21,17 @@ * */ -/*! \file htdocs/socnote.php +/*! \file htdocs/socnote.php \brief Fichier onglet notes liées à la société \ingroup societe - \version $Revision$ + \version $Revision$ */ require("./pre.inc.php"); +$langs->load("companies"); + + if ($_POST["action"] == 'add') { $sql = "UPDATE ".MAIN_DB_PREFIX."societe SET note='".$_POST["note"]."' WHERE idp=".$_POST["socid"]; $result = $db->query($sql); @@ -47,51 +50,54 @@ if ($_GET["socid"] > 0) { /* * */ + $h=0; - $head[0][0] = DOL_URL_ROOT.'/soc.php?socid='.$societe->id; - $head[0][1] = "Fiche société"; - $h = 1; + $head[$h][0] = DOL_URL_ROOT.'/soc.php?socid='.$societe->id; + $head[$h][1] = $langs->trans("Company"); + $h++; if ($societe->client==1) { $head[$h][0] = DOL_URL_ROOT.'/comm/fiche.php?socid='.$societe->id; - $head[$h][1] = 'Client'; + $head[$h][1] = $langs->trans("Customer"); $h++; } if ($societe->client==2) { $head[$h][0] = DOL_URL_ROOT.'/comm/prospect/fiche.php?id='.$societe->id; - $head[$h][1] = 'Prospect'; + $head[$h][1] = $langs->trans("Prospect"); $h++; } if ($societe->fournisseur) { $head[$h][0] = DOL_URL_ROOT.'/fourn/fiche.php?socid='.$societe->id; - $head[$h][1] = 'Fournisseur'; + $head[$h][1] = $langs->trans("Supplier"); $h++; } if ($conf->compta->enabled) { + $langs->load("compta"); $head[$h][0] = DOL_URL_ROOT.'/compta/fiche.php?socid='.$societe->id; - $head[$h][1] = 'Comptabilité'; + $head[$h][1] = $langs->trans("Accountancy"); $h++; } $head[$h][0] = DOL_URL_ROOT.'/socnote.php?socid='.$societe->id; - $head[$h][1] = 'Note'; + $head[$h][1] = $langs->trans("Note"); $hselected = $h; $h++; if ($user->societe_id == 0) { $head[$h][0] = DOL_URL_ROOT.'/docsoc.php?socid='.$societe->id; - $head[$h][1] = 'Documents'; + $head[$h][1] = $langs->trans("Documents"); $h++; } $head[$h][0] = DOL_URL_ROOT.'/societe/notify/fiche.php?socid='.$societe->id; - $head[$h][1] = 'Notifications'; + $head[$h][1] = $langs->trans("Notifications"); + $h++; dolibarr_fiche_head($head, $hselected, $societe->nom); @@ -100,7 +106,7 @@ if ($_GET["socid"] > 0) { print ""; - print '
'.$langs->trans('Name').''.$soc->nom.''.$langs->trans('Prefix').''.$soc->prefix_comm.'
".$langs->trans('Address')."".nl2br($soc->adresse)."
".$soc->cp." ".$soc->ville." ".$soc->pays."
'; + print '
'; print '
'; print ""; print "id."\">";