diff --git a/htdocs/comm/contact.php b/htdocs/comm/contact.php
index 28524e8142d..88333cb5ecf 100644
--- a/htdocs/comm/contact.php
+++ b/htdocs/comm/contact.php
@@ -181,12 +181,12 @@ if ($result)
$var=!$var;
print "
";
- print ''.img_file();
+ print ' '.img_object($langs->trans("ShowContact"),"contact");
print ' '.$obj->name.' ';
print "$obj->firstname ";
- print ' ';
- print "idp\">$obj->nom \n";
+ print ''.img_object($langs->trans("ShowCompany"),"company").' ';
+ print "idp\">$obj->nom \n";
print ''.$obj->email.' ';
diff --git a/htdocs/comm/fiche.php b/htdocs/comm/fiche.php
index 6148a0ac402..9f9ea89f469 100644
--- a/htdocs/comm/fiche.php
+++ b/htdocs/comm/fiche.php
@@ -224,7 +224,7 @@ if ($_socid > 0)
print ' '.$langs->trans("Phone").' '.dolibarr_print_phone($objsoc->tel).' Fax '.dolibarr_print_phone($objsoc->fax).' ';
print ''.$langs->trans("Web")." url\">$objsoc->url ";
- print "".$langs->trans("ProfIdSiren")." siren\">$objsoc->siren ";
+ print "".$langs->trans("ProfIdSiren")." siren\">$objsoc->siren ";
print ''.$langs->trans("Prefix").' ';
if ($objsoc->prefix_comm)
{
@@ -238,7 +238,7 @@ if ($_socid > 0)
print " ";
print "".$langs->trans("Type")." $objsoc->typent Effectif $objsoc->effectif ";
- print '';
+ print ' ';
print $langs->trans("CustomerDiscount").' '.$objsoc->remise_client." % ";
print '';
print img_edit($langs->trans("Modify"));
@@ -498,7 +498,7 @@ if ($_socid > 0)
print ' ';
print '';
- print img_file();
+ print img_object($langs->trans("Show"),"contact");
print ' '.$obj->firstname.' '. $obj->name.' ';
if ($obj->note)
@@ -529,7 +529,7 @@ if ($_socid > 0)
print ' ';
print '';
- print img_actions();
+ print img_object($langs->trans("Rendez-Vous"),"action");
print ' ';
print " \n";
diff --git a/htdocs/comm/remise.php b/htdocs/comm/remise.php
index e4e31a582d0..936efba6dab 100644
--- a/htdocs/comm/remise.php
+++ b/htdocs/comm/remise.php
@@ -84,7 +84,7 @@ if ($_socid > 0)
$dac = strftime("%Y-%m-%d %H:%M", time());
if ($errmesg)
{
- print "$errmesg ";
+ print ''.$errmesg.'
';
}
/*
@@ -136,14 +136,8 @@ if ($_socid > 0)
$head[$h][0] = DOL_URL_ROOT.'/societe/notify/fiche.php?socid='.$objsoc->id;
$head[$h][1] = $langs->trans("Notifications");
-
- if (file_exists(DOL_DOCUMENT_ROOT.'/sl/'))
- {
- $head[$h][0] = DOL_URL_ROOT.'/sl/fiche.php?id='.$objsoc->id;
- $head[$h][1] = 'Fiche catalogue';
- $h++;
- }
-
+ $h++;
+
if ($user->societe_id == 0)
{
$head[$h][0] = DOL_URL_ROOT."/comm/index.php?socidp=$objsoc->id&action=add_bookmark";
@@ -161,15 +155,17 @@ if ($_socid > 0)
print ' ';
print '';
print '';
- print '";
+ print "";
print " ";
@@ -205,21 +201,24 @@ if ($_socid > 0)
/*
*
- * Liste des projets associés
+ * Liste de l'historique des remises
*
*/
$sql = "SELECT rc.rowid,rc.remise_client,".$db->pdate("rc.datec")." as dc, u.code";
- $sql .= " FROM ".MAIN_DB_PREFIX."societe_remise as rc";
- $sql .= " , ".MAIN_DB_PREFIX."user as u";
+ $sql .= " FROM ".MAIN_DB_PREFIX."societe_remise as rc, ".MAIN_DB_PREFIX."user as u";
$sql .= " WHERE rc.fk_soc =". $objsoc->id;
$sql .= " AND u.rowid = rc.fk_user_author";
$sql .= " ORDER BY rc.datec DESC";
if ( $db->query($sql) )
{
- print '';
+ print '';
$tag = !$tag;
- print "";
+ print ' ';
+ print ''.$langs->trans("Date").' ';
+ print ''.$langs->trans("Discount").' ';
+ print ''.$langs->trans("User").' ';
+ print ' ';
$i = 0 ;
$num = $db->num_rows();
@@ -227,12 +226,11 @@ if ($_socid > 0)
{
$obj = $db->fetch_object( $i);
$tag = !$tag;
- print "";
- print ''.strftime("%d %B %Y",$obj->dc).' ';
+ print ' ';
+ print ''.dolibarr_print_date($obj->dc,"%d %B %Y %H:%M").' ';
print ''.$obj->remise_client.' % ';
print ''.$obj->code.' ';
-
- print "".$obj->ref ." ";
+ print '';
$i++;
}
$db->free();
@@ -240,12 +238,9 @@ if ($_socid > 0)
}
else
{
- print $db->error();
+ dolibarr_print_error($db);
}
-
-
-
}
$db->close();
diff --git a/htdocs/contact/index.php b/htdocs/contact/index.php
index 6019bd29ef6..675376f7764 100644
--- a/htdocs/contact/index.php
+++ b/htdocs/contact/index.php
@@ -1,7 +1,7 @@
* Copyright (C) 2003 Éric Seigne
- * Copyright (C) 2004 Laurent Destailleur
+ * Copyright (C) 2004-2005 Laurent Destailleur
*
* 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
@@ -239,10 +239,12 @@ if ($result)
print '';
print '';
- print img_file();
+ print img_object($langs->trans("ShowContact"),"contact");
print ' '.$obj->name.' ';
print ''.$obj->firstname.' ';
- print ''.$obj->nom.' ';
+ print '';
+ print img_object($langs->trans("ShowCompany"),"company");
+ print ' '.$obj->nom.' ';
print ''.dolibarr_print_phone($obj->phone).' ';
if ($_GET["view"] == 'phone')