Modif esthétique mineure sur sélection par ajax

This commit is contained in:
Laurent Destailleur 2006-08-02 01:39:27 +00:00
parent 504a8e1b54
commit efb24b9954
3 changed files with 12 additions and 9 deletions

View File

@ -777,22 +777,23 @@ class Form
{ {
if (! $num) if (! $num)
{ {
print $langs->trans("NoProductMatching").' '; print '<select class="flat" name="'.$htmlname.'">';
print '<option value="0">-- '.$langs->trans("NoProductMatching").' --</option>';
} }
// else else
// { {
print '<select class="flat" name="'.$htmlname.'" onchange="publish_selvalue(this);">'; print '<select class="flat" name="'.$htmlname.'" onchange="publish_selvalue(this);">';
print "<option value=\"0\" selected=\"true\">&nbsp;</option>"; print '<option value="0" selected="true">-- '.$langs->trans("MatchingProducts").' --</option>';
// } }
} }
else else
{ {
print '<select class="flat" name="'.$htmlname.'">'; print '<select class="flat" name="'.$htmlname.'">';
print "<option value=\"0\" selected=\"true\">&nbsp;</option>"; print '<option value="0" selected="true">&nbsp;</option>';
} }
$i = 0; $i = 0;
while ($i < $num) while ($num && $i < $num)
{ {
$objp = $this->db->fetch_object($result); $objp = $this->db->fetch_object($result);

View File

@ -105,3 +105,4 @@ ExportDataset_produit_1=Products and services
DeleteProductLine=Delete product line DeleteProductLine=Delete product line
ConfirmDeleteProductLine=Are you sure you want to delete this product line? ConfirmDeleteProductLine=Are you sure you want to delete this product line?
NoProductMatching=No product/service match your criteria NoProductMatching=No product/service match your criteria
MatchingProducts=Matching products/services

View File

@ -105,3 +105,4 @@ ExportDataset_produit_1=Produits et services
DeleteProductLine=Supprimer ligne produit DeleteProductLine=Supprimer ligne produit
ConfirmDeleteProductLine=Êtes-vous sûr de vouloir effacer cette ligne produit ? ConfirmDeleteProductLine=Êtes-vous sûr de vouloir effacer cette ligne produit ?
NoProductMatching=Aucun produit/service ne répond au critère NoProductMatching=Aucun produit/service ne répond au critère
MatchingProducts=Produits/Services trouvés