mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix: Pb balises mal fermes
This commit is contained in:
parent
8565116184
commit
dfa2d60d96
|
|
@ -808,14 +808,16 @@ else
|
|||
|
||||
print "<tr $bc[$var]>";
|
||||
print '<td colspan="3">';
|
||||
$html->select_produits('','p_idprod','',0).'<br>';
|
||||
print '<textarea name="desc" cols="50" rows="1"></textarea>';
|
||||
$html->select_produits('','p_idprod','',0);
|
||||
print '<br>';
|
||||
print '<textarea name="desc" cols="50" rows="'.ROWS_2.'"></textarea>';
|
||||
print '</td>';
|
||||
|
||||
print '<td align="center"><input type="text" class="flat" size="2" name="pqty" value="1"></td>';
|
||||
print '<td align="right" nowrap><input type="text" class="flat" size="1" name="premise" value="0">%</td>';
|
||||
print '<td align="center" colspan="3" rowspan="2"><input type="submit" class="button" value="'.$langs->trans("Add").'"></td>';
|
||||
|
||||
print '<td align="center" colspan="2" rowspan="2"><input type="submit" class="button" value="'.$langs->trans("Add").'"></td>';
|
||||
print '</tr>'."\n";
|
||||
|
||||
print "<tr $bc[$var]>";
|
||||
print '<td colspan="8">';
|
||||
print $langs->trans("DateStartPlanned").' ';
|
||||
|
|
@ -836,7 +838,7 @@ else
|
|||
print '<input type="hidden" name="id" value="'.$id.'">';
|
||||
|
||||
print "<tr $bc[$var]>";
|
||||
print '<td><textarea name="desc" cols="50" rows="1"></textarea></td>';
|
||||
print '<td><textarea name="desc" cols="50" rows="'.ROWS_2.'"></textarea></td>';
|
||||
|
||||
print '<td>';
|
||||
$html->select_tva("tva_tx",$conf->defaulttx);
|
||||
|
|
@ -844,7 +846,7 @@ else
|
|||
print '<td align="right"><input type="text" class="flat" size="4" name="pu" value=""></td>';
|
||||
print '<td align="center"><input type="text" class="flat" size="2" name="pqty" value="1"></td>';
|
||||
print '<td align="right" nowrap><input type="text" class="flat" size="1" name="premise" value="0">%</td>';
|
||||
print '<td align="center" colspan="2" rowspan="2"><input type="submit" class="button" value="'.$langs->trans("Add").'"></td>';
|
||||
print '<td align="center" rowspan="2" colspan="2"><input type="submit" class="button" value="'.$langs->trans("Add").'"></td>';
|
||||
|
||||
print '</tr>'."\n";
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user