diff --git a/htdocs/contrat/index.php b/htdocs/contrat/index.php
index 509467cc822..2d818f8001d 100644
--- a/htdocs/contrat/index.php
+++ b/htdocs/contrat/index.php
@@ -30,6 +30,7 @@ require_once (DOL_DOCUMENT_ROOT."/product/class/product.class.php");
$langs->load("products");
$langs->load("companies");
+$langs->load("contracts");
$sortfield=GETPOST('sortfield','alpha');
$sortorder=GETPOST('sortorder','alpha');
@@ -186,7 +187,7 @@ foreach($listofstatus as $status)
$dataseries[]=array('label'=>$staticcontratligne->LibStatut($status,1,($bool?1:0)),'data'=>(isset($nb[$status.$bool])?(int) $nb[$status.$bool]:0));
if (empty($conf->use_javascript_ajax))
{
-
+
print '
';
print '| '.$staticcontratligne->LibStatut($status,0,($bool?1:0)).' | ';
print ''.($nb[$status.$bool]?$nb[$status.$bool]:0).' '.$staticcontratligne->LibStatut($status,3,($bool?1:0)).' | ';
@@ -206,7 +207,7 @@ $listofstatus=array(0,4,4,5); $bool=false;
foreach($listofstatus as $status)
{
if (empty($conf->use_javascript_ajax))
- {
+ {
print '
';
print '| '.$staticcontratligne->LibStatut($status,0,($bool?1:0)).' | ';
print ''.($nb[$status.$bool]?$nb[$status.$bool]:0).' '.$staticcontratligne->LibStatut($status,3,($bool?1:0)).' | ';
@@ -267,7 +268,7 @@ if (! empty($conf->contrat->enabled) && $user->rights->contrat->lire)
print '
';
//$tot_ttc+=$obj->total_ttc;
$i++;
-
+
}
}
else
@@ -327,7 +328,7 @@ if ($result)
while ($i < $num)
{
- $obj = $db->fetch_object($result);
+ $obj = $db->fetch_object($result);
print '';
print '| ';
@@ -393,7 +394,7 @@ if ($resql)
while ($i < min($num,$max))
{
$obj = $db->fetch_object($resql);
-
+
print ' |
';
print '| ';
$staticcontrat->ref=($obj->ref?$obj->ref:$obj->fk_contrat);
@@ -473,7 +474,7 @@ if ($resql)
while ($i < $num)
{
$obj = $db->fetch_object($resql);
-
+
print ' |
';
print '| ';
@@ -553,7 +554,7 @@ if ($resql)
while ($i < $num)
{
$obj = $db->fetch_object($resql);
-
+
print ' |
';
print '| ';
|