diff --git a/htdocs/contrat/fiche.php b/htdocs/contrat/fiche.php
index 4a3bbb81f48..bcb01624007 100644
--- a/htdocs/contrat/fiche.php
+++ b/htdocs/contrat/fiche.php
@@ -808,14 +808,16 @@ else
print "
";
print '';
- $html->select_produits('','p_idprod','',0).' ';
- print '';
+ $html->select_produits('','p_idprod','',0);
+ print ' ';
+ print '';
print ' | ';
print ' | ';
print '% | ';
- print ' | ';
-
+ print ' | ';
+ print '
'."\n";
+
print "";
print '| ';
print $langs->trans("DateStartPlanned").' ';
@@ -836,7 +838,7 @@ else
print '';
print " |
";
- print ' | ';
+ print ' | ';
print '';
$html->select_tva("tva_tx",$conf->defaulttx);
@@ -844,7 +846,7 @@ else
print ' | | ';
print ' | ';
print '% | ';
- print ' | ';
+ print ' | ';
print '
'."\n";
diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php
index d4eb5cecc49..7215acba5e7 100644
--- a/htdocs/main.inc.php
+++ b/htdocs/main.inc.php
@@ -31,6 +31,7 @@
require("master.inc.php");
+
// Verification du login.
// Cette verification est faite pour chaque accès. Après l'authentification,
// l'objet $user est initialisée. Notament $user->id, $user->login et $user->nom, $user->prenom
@@ -177,6 +178,20 @@ if (defined("MAIN_NOT_INSTALLED"))
Header("Location: ".DOL_URL_ROOT."/install/index.php");
}
+// Constantes utilisées pour définir le nombre de lignes des textarea
+if (! eregi("firefox",$_SERVER["HTTP_USER_AGENT"]))
+{
+ define('ROWS_1',1);
+ define('ROWS_2',2);
+ define('ROWS_3',3);
+}
+else
+{
+ define('ROWS_1',0);
+ define('ROWS_2',1);
+ define('ROWS_3',2);
+}
+
/**