';
$text='';
- if ($totallate > 0) $text=$langs->transnoentitiesnoconv("WarningYouHaveAtLeastOneTaskLate");
+ if ($totallate > 0) $text=$langs->transnoentitiesnoconv("WarningYouHaveAtLeastOneTaskLate").' ('.$langs->transnoentitiesnoconv("NActionsLate",$totallate).')';
$options='height="64px"';
if ($rowspan <= 2) $options='height="24"'; // Weather logo is smaller if dashboard has few elements
else if ($rowspan <= 3) $options='height="48"'; // Weather logo is smaller if dashboard has few elements
diff --git a/htdocs/langs/en_US/companies.lang b/htdocs/langs/en_US/companies.lang
index 35419bea090..fe8eab1bd43 100644
--- a/htdocs/langs/en_US/companies.lang
+++ b/htdocs/langs/en_US/companies.lang
@@ -294,6 +294,9 @@ YouMustCreateContactFirst=You must create emails contacts for third party first
ListSuppliersShort=List of suppliers
ListProspectsShort=List of prospects
ListCustomersShort=List of customers
+ThirdPartiesArea=Third parties area
+LastModifiedThirdParties=Last %s modified third parties
+UniqueThirdParties=Total of unique third parties
# Monkey
MonkeyNumRefModelDesc=Return numero with format %syymm-nnnn for customer code and %syymm-nnnn for supplier code where yy is year, mm is month and nnnn is a sequence with no break and no return to 0.
diff --git a/htdocs/langs/fr_FR/companies.lang b/htdocs/langs/fr_FR/companies.lang
index 28412992564..eec23ef2c37 100644
--- a/htdocs/langs/fr_FR/companies.lang
+++ b/htdocs/langs/fr_FR/companies.lang
@@ -301,7 +301,9 @@ YouMustCreateContactFirst=Vous devez créer des contacts avec emails sur le tier
ListSuppliersShort=Liste fournisseurs
ListProspectsShort=Liste prospects
ListCustomersShort=Liste clients
-
+ThirdPartiesArea=Espace Tiers
+LastModifiedThirdParties=Les %s derniers tiers modifiés
+UniqueThirdParties=Total de tiers uniques
# Monkey
MonkeyNumRefModelDesc=Renvoie le numéro sous la forme %syymm-nnnn pour les codes clients et %syymm-nnnn pour les codes fournisseurs où yy est l'année, mm le mois et nnnn un compteur séquentiel sans rupture et sans remise à 0.
diff --git a/htdocs/societe/index.php b/htdocs/societe/index.php
index e69de29bb2d..7458c80cad6 100644
--- a/htdocs/societe/index.php
+++ b/htdocs/societe/index.php
@@ -0,0 +1,214 @@
+
+ * Copyright (C) 2004-2010 Laurent Destailleur
+ * Copyright (C) 2005-2009 Regis Houssin
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+/**
+ * \file htdocs/societe/index.php
+ * \ingroup societe
+ * \brief Home page for third parties area
+ * \version $Id$
+ */
+
+require("../main.inc.php");
+require_once(DOL_DOCUMENT_ROOT.'/societe/class/societe.class.php');
+
+// Security check
+$result=restrictedArea($user,'societe',0,'','','','');
+
+$thirdparty_static = new Societe($db);
+
+$langs->load("companies");
+
+
+/*
+ * View
+ */
+
+$transAreaType = $langs->trans("ThirdPartiesArea");
+$helpurl='EN:Module_ThirdParty|FR:Module_Tiers|ES:Módulo_Tierceros';
+
+llxHeader("",$langs->trans("ThirdParties"),$helpurl);
+
+print_fiche_titre($transAreaType);
+
+print '
';
+
+print '
';
+
+/*
+ * Zone recherche tiers
+ */
+$rowspan=2;
+print ' ";
+
+
+/*
+ * Nombre de tiers
+ */
+$third = array();
+$total=0;
+
+$sql = "SELECT s.rowid, s.client, s.fournisseur";
+$sql.= " FROM ".MAIN_DB_PREFIX."societe as s";
+$sql.= " WHERE s.entity = ".$conf->entity;
+$result = $db->query($sql);
+if ($result)
+{
+ while ($objp = $db->fetch_object($result))
+ {
+ if ($objp->client == 1 || $objp->client == 3) $third['customer']++;
+ if ($objp->client == 2 || $objp->client == 3) $third['prospect']++;
+ if ($objp->fournisseur) $third['supplier']++;
+
+ $total++;
+ }
+}
+else dol_print_error($db);
+
+print '