diff --git a/htdocs/adherents/index.php b/htdocs/adherents/index.php index 0aaafa461fb49e7446b25b24cfb7232ab64f322e..eff3f85fdf66476c37097248c6828e1397270d9a 100644 --- a/htdocs/adherents/index.php +++ b/htdocs/adherents/index.php @@ -137,15 +137,15 @@ print "</tr>\n"; $var=false; print "<tr ".$bc[$var].">"; print '<td>'; -print $langs->trans("Ref").':</td><td><input type="text" name="search_ref" class="flat" size="16">'; +print '<label for="search_ref">'.$langs->trans("Ref").'</label>:</td><td><input type="text" name="search_ref" id="search_ref" class="flat" size="16">'; print '</td><td rowspan="3"><input class="button" type="submit" value="'.$langs->trans("Search").'"></td></tr>'; print "<tr ".$bc[$var].">"; print '<td>'; -print $langs->trans("Name").':</td><td><input type="text" name="search_lastname" class="flat" size="16">'; +print '<label for="search_lastname">'.$langs->trans("Name").'</label>:</td><td><input type="text" name="search_lastname" id="search_lastname" class="flat" size="16">'; print '</td></tr>'; print "<tr ".$bc[$var].">"; print '<td>'; -print $langs->trans("Other").':</td><td><input type="text" name="sall" class="flat" size="16">'; +print '<label for="sall">'.$langs->trans("Other").'</label>:</td><td><input type="text" name="sall" id="sall" class="flat" size="16">'; print '</td></tr>'; print "</table></form>"; diff --git a/htdocs/comm/index.php b/htdocs/comm/index.php index 9865399202557d63d822fe92203731478be71d14..eada82f7f6ae6956c3603f211ecc6cdf7d1db735 100644 --- a/htdocs/comm/index.php +++ b/htdocs/comm/index.php @@ -78,9 +78,9 @@ if (! empty($conf->propal->enabled) && $user->rights->propal->lire) print '<table class="noborder nohover" width="100%">'; print '<tr class="liste_titre"><td colspan="3">'.$langs->trans("SearchAProposal").'</td></tr>'; print '<tr '.$bc[$var].'>'; - print '<td class="nowrap">'.$langs->trans("Ref").':</td><td><input type="text" class="flat" name="sf_ref" size="18"></td>'; + print '<td class="nowrap"><label for="sf_ref">'.$langs->trans("Ref").'</label>:</td><td><input type="text" class="flat" name="sf_ref" id="sf_ref" size="18"></td>'; print '<td rowspan="2"><input type="submit" value="'.$langs->trans("Search").'" class="button"></td></tr>'; - print '<tr '.$bc[$var].'><td class="nowrap">'.$langs->trans("Other").':</td><td><input type="text" class="flat" name="sall" size="18"></td>'; + print '<tr '.$bc[$var].'><td class="nowrap"><label for="sall">'.$langs->trans("Other").'</label>:</td><td><input type="text" class="flat" name="sall" id="sall" size="18"></td>'; print '</tr>'; print "</table></form>\n"; print "<br>\n"; @@ -95,8 +95,8 @@ if (! empty($conf->commande->enabled) && $user->rights->commande->lire) print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">'; print '<tr class="liste_titre"><td colspan="3">'.$langs->trans("SearchACustomerOrder").'</td></tr>'; print '<tr '.$bc[$var].'><td>'; - print $langs->trans("Ref").':</td><td><input type="text" class="flat" name="sref" size=18></td><td rowspan="2"><input type="submit" value="'.$langs->trans("Search").'" class="button"></td></tr>'; - print '<tr '.$bc[$var].'><td class="nowrap">'.$langs->trans("Other").':</td><td><input type="text" class="flat" name="sall" size="18"></td>'; + print '<label for="sref">'.$langs->trans("Ref").'</label>:</td><td><input type="text" class="flat" name="sref" id="sref" size=18></td><td rowspan="2"><input type="submit" value="'.$langs->trans("Search").'" class="button"></td></tr>'; + print '<tr '.$bc[$var].'><td class="nowrap"><label for="sall">'.$langs->trans("Other").'</label>:</td><td><input type="text" class="flat" name="sall" id="sall" size="18"></td>'; print '</tr>'; print "</form></table><br>\n"; } @@ -110,9 +110,9 @@ if (! empty($conf->contrat->enabled) && $user->rights->contrat->lire) print '<table class="noborder nohover" width="100%">'; print '<tr class="liste_titre"><td colspan="3">'.$langs->trans("SearchAContract").'</td></tr>'; print '<tr '.$bc[$var].'>'; - print '<td class="nowrap">'.$langs->trans("Ref").':</td><td><input type="text" class="flat" name="search_contract" size="18"></td>'; + print '<td class="nowrap"><label for="search_contract">'.$langs->trans("Ref").'</label>:</td><td><input type="text" class="flat" name="search_contract" id="search_contract" size="18"></td>'; print '<td rowspan="2"><input type="submit" value="'.$langs->trans("Search").'" class="button"></td></tr>'; - print '<tr '.$bc[$var].'><td class="nowrap">'.$langs->trans("Other").':</td><td><input type="text" class="flat" name="sall" size="18"></td>'; + print '<tr '.$bc[$var].'><td class="nowrap"><label for="sall">'.$langs->trans("Other").'</label>:</td><td><input type="text" class="flat" name="sall" id="sall" size="18"></td>'; print '</tr>'; print "</table></form>\n"; print "<br>"; diff --git a/htdocs/compta/hrm.php b/htdocs/compta/hrm.php index a8ce6a45714e27641c1dcd6afeeff1b6f599d968..cd2d2b60f7ec731948ad5b6e04eb15de43f61882 100644 --- a/htdocs/compta/hrm.php +++ b/htdocs/compta/hrm.php @@ -96,9 +96,9 @@ if (! empty($conf->deplacement->enabled) && $user->rights->deplacement->lire) print '<table class="noborder nohover" width="100%">'; print '<tr class="liste_titre"><td colspan="3">'.$langs->trans("SearchATripAndExpense").'</td></tr>'; print "<tr ".$bc[0].">"; - print "<td>".$langs->trans("Ref").':</td><td><input type="text" name="search_ref" class="flat" size="18"></td>'; + print "<td><label for=\"search_ref\">".$langs->trans("Ref").'</label>:</td><td><input type="text" name="search_ref" id="search_ref" class="flat" size="18"></td>'; print '<td><input type="submit" value="'.$langs->trans("Search").'" class="button"></td>'; - //print "<tr ".$bc[0]."><td>".$langs->trans("Other").':</td><td><input type="text" name="sall" class="flat" size="18"></td>'; + //print "<tr ".$bc[0]."><td><label for=\"sall\">".$langs->trans("Other").'</label>:</td><td><input type="text" name="sall" id="sall" class="flat" size="18"></td>'; print '</tr>'; print "</table></form><br>"; } diff --git a/htdocs/compta/index.php b/htdocs/compta/index.php index 205aba9a778f5aa3f7afbbe4938860f30d6c8dde..442016f38fdc88d2c4d095d67b3cfbbb9d37c99d 100644 --- a/htdocs/compta/index.php +++ b/htdocs/compta/index.php @@ -97,9 +97,9 @@ if (! empty($conf->facture->enabled) && $user->rights->facture->lire) print '<table class="noborder nohover" width="100%">'; print "<tr class=\"liste_titre\">"; print '<td colspan="3">'.$langs->trans("SearchACustomerInvoice").'</td></tr>'; - print "<tr ".$bc[0]."><td>".$langs->trans("Ref").':</td><td><input type="text" name="sf_ref" class="flat" size="18"></td>'; + print "<tr ".$bc[0]."><td><label for=\"sf_ref\">".$langs->trans("Ref").'</label>:</td><td><input type="text" name="sf_ref" id="sf_ref" class="flat" size="18"></td>'; print '<td rowspan="2"><input type="submit" value="'.$langs->trans("Search").'" class="button"></td></tr>'; - print "<tr ".$bc[0]."><td>".$langs->trans("Other").':</td><td><input type="text" name="sall" class="flat" size="18"></td>'; + print "<tr ".$bc[0]."><td><label for=\"sall\">".$langs->trans("Other").'</label>:</td><td><input type="text" name="sall" id="sall" class="flat" size="18"></td>'; print '</tr>'; print "</table></form><br>"; } @@ -114,9 +114,9 @@ if (! empty($conf->fournisseur->enabled) && $user->rights->fournisseur->lire) print '<table class="noborder nohover" width="100%">'; print '<tr class="liste_titre"><td colspan="3">'.$langs->trans("SearchASupplierInvoice").'</td></tr>'; print "<tr ".$bc[0].">"; - print "<td>".$langs->trans("Ref").':</td><td><input type="text" name="search_ref" class="flat" size="18"></td>'; + print "<td><label for=\"search_ref\">".$langs->trans("Ref").'</label>:</td><td><input type="text" name="search_ref" id="search_ref" class="flat" size="18"></td>'; print '<td rowspan="2"><input type="submit" value="'.$langs->trans("Search").'" class="button"></td></tr>'; - print "<tr ".$bc[0]."><td>".$langs->trans("RefSupplier").':</td><td><input type="text" name="search_ref_supplier" class="flat" size="18"></td>'; + print "<tr ".$bc[0]."><td><label for=\"search_ref_supplier\">".$langs->trans("RefSupplier").'</label>:</td><td><input type="text" name="search_ref_supplier" id="search_ref_supplier" class="flat" size="18"></td>'; print '</tr>'; print "</table></form><br>"; } @@ -132,9 +132,9 @@ if (! empty($conf->don->enabled) && $user->rights->don->lire) print '<table class="noborder nohover" width="100%">'; print '<tr class="liste_titre"><td colspan="3">'.$langs->trans("SearchADonation").'</td></tr>'; print "<tr ".$bc[0].">"; - print "<td>".$langs->trans("Ref").':</td><td><input type="text" name="search_ref" class="flat" size="18"></td>'; + print "<td><label for=\"search_ref\">".$langs->trans("Ref").'</label>:</td><td><input type="text" name="search_ref" id="search_ref" class="flat" size="18"></td>'; print '<td><input type="submit" value="'.$langs->trans("Search").'" class="button"></td>'; - //print "<tr ".$bc[0]."><td>".$langs->trans("Other").':</td><td><input type="text" name="sall" class="flat" size="18"></td>'; + //print "<tr ".$bc[0]."><td><label for=\"sall\"".$langs->trans("Other").'</label>:</td><td><input type="text" name="sall" id="sall" class="flat" size="18"></td>'; print '</tr>'; print "</table></form><br>"; } diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index b8083ce32b29c1252b2d5f27fbb96af8dcfe2d65..307164556c77dceafeddcd267cf1aee6c92a2c30 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -2744,21 +2744,21 @@ abstract class CommonObject if (! empty($conf->global->MAIN_VIEW_LINE_NUMBER)) print '<td align="center" width="5"> </td>'; // Description - print '<td>'.$langs->trans('Description').'</td>'; + print '<td><label for="">'.$langs->trans('Description').'</label></td>'; // VAT - print '<td align="right" width="50">'.$langs->trans('VAT').'</td>'; + print '<td align="right" width="50"><label for="tva_tx">'.$langs->trans('VAT').'</label></td>'; // Price HT - print '<td align="right" width="80">'.$langs->trans('PriceUHT').'</td>'; + print '<td align="right" width="80"><label for="price_ht">'.$langs->trans('PriceUHT').'</label></td>'; if ($conf->global->MAIN_FEATURES_LEVEL > 1) print '<td align="right" width="80"> </td>'; // Qty - print '<td align="right" width="50">'.$langs->trans('Qty').'</td>'; + print '<td align="right" width="50"><label for="qty">'.$langs->trans('Qty').'</label></td>'; // Reduction short - print '<td align="right" width="50">'.$langs->trans('ReductionShort').'</td>'; + print '<td align="right" width="50"><label for="remise_percent">'.$langs->trans('ReductionShort').'</label></td>'; if (! empty($conf->margin->enabled) && empty($user->societe_id)) { diff --git a/htdocs/core/tpl/login.tpl.php b/htdocs/core/tpl/login.tpl.php index bb67e8636671fa25e0cff2c8d7961f4cb1b14f42..efd0b46d6b457f806f9001dce7a1dd873b201197 100644 --- a/htdocs/core/tpl/login.tpl.php +++ b/htdocs/core/tpl/login.tpl.php @@ -77,7 +77,7 @@ $(document).ready(function () { <tr> <td valign="middle" class="loginfield"><strong><label for="username"><?php echo $langs->trans('Login'); ?></label></strong></td> <td valign="middle" class="nowrap"> -<input type="text" id="username" name="username" class="flat" size="15" maxlength="40" value="<?php echo dol_escape_htmltag($login); ?>" tabindex="1" /> +<input type="text" id="username" name="username" class="flat" size="15" maxlength="40" value="<?php echo dol_escape_htmltag($login); ?>" tabindex="1" autofocus="autofocus" /> </td> </tr> <!-- Password --> @@ -96,9 +96,12 @@ if (! empty($hookmanager->resArray['options'])) { } } ?> -<?php if ($captcha) { ?> +<?php + if ($captcha) { + // TODO: provide accessible captha variants +?> <!-- Captcha --> - <tr><td valign="middle" class="loginfield nowrap"><b><?php echo $langs->trans('SecurityCode'); ?></b></td> + <tr><td valign="middle" class="loginfield nowrap"><label for="securitycode"><b><?php echo $langs->trans('SecurityCode'); ?></b></label></td> <td valign="top" class="nowrap none" align="left"> <table class="login_table_securitycode" style="width: 100px;"><tr> diff --git a/htdocs/core/tpl/objectline_create.tpl.php b/htdocs/core/tpl/objectline_create.tpl.php index 170cc1e0fc74c0a8ca6c76b4d6d15b0ffcef9659..719d6c1794c4a86444bfa57e57237651cc9ad2dc 100644 --- a/htdocs/core/tpl/objectline_create.tpl.php +++ b/htdocs/core/tpl/objectline_create.tpl.php @@ -50,23 +50,25 @@ if (in_array($object->element,array('propal','facture','invoice','commande','ord <td<?php echo (! empty($conf->global->MAIN_VIEW_LINE_NUMBER) ? ' colspan="2"' : ''); ?>> <div id="add"></div><span class="hideonsmartphone"><?php echo $langs->trans('AddNewLine'); ?></span><?php // echo $langs->trans("FreeZone"); ?> </td> - <td align="right"><span id="title_vat"><?php echo $langs->trans('VAT'); ?></span></td> - <td align="right"><span id="title_up_ht"><?php echo $langs->trans('PriceUHT'); ?></span></td> + <td align="right"><span id="title_vat"><label for="tva_tx"><?php echo $langs->trans('VAT'); ?></label></span></td> + <td align="right"><span id="title_up_ht"><label for="price_ht"><?php echo $langs->trans('PriceUHT'); ?></label></span></td> <?php if (! empty($inputalsopricewithtax)) { ?> - <td align="right"><span id="title_up_ttc"><?php echo $langs->trans('PriceUTTC'); ?></span></td> + <td align="right"><span id="title_up_ttc"><label for="price_ttc"><?php echo $langs->trans('PriceUTTC'); ?></label></span></td> <?php } ?> - <td align="right"><?php echo $langs->trans('Qty'); ?></td> - <td align="right"><?php echo $langs->trans('ReductionShort'); ?></td> + <td align="right"><label for="qty"><?php echo $langs->trans('Qty'); ?></label></td> + <td align="right"><label for="remise_percent"><?php echo $langs->trans('ReductionShort'); ?></label></td> <?php if (! empty($usemargins)) { ?> <td align="right"> <?php + echo '<label for="buying_price">'; if ($conf->global->MARGIN_TYPE == "1") echo $langs->trans('BuyingPrice'); else echo $langs->trans('CostPrice'); + echo '</label>'; ?> </td> <?php @@ -107,7 +109,9 @@ else { print '<input type="hidden" name="type" value="'.((! empty($object->element) && $object->element == 'contrat')?'1':'0').'">'; } else {*/ + echo '<label for="select_type">'; echo $langs->trans("FreeLineOfType"); + echo '</label>'; /* if (empty($conf->product->enabled) && empty($conf->service->enabled)) echo $langs->trans("Type"); else if (! empty($forceall) || (! empty($conf->product->enabled) && ! empty($conf->service->enabled))) echo $langs->trans("FreeLineOfType"); @@ -124,6 +128,7 @@ else { echo '<br><span>'; echo '<input type="radio" name="prod_entry_mode" id="prod_entry_mode_predef" value="predef"'.(GETPOST('prod_entry_mode')=='predef'?' checked="true"':'').'> '; + echo '<label for="prod_entry_mode_predef">'; if (empty($senderissupplier)) { if (! empty($conf->product->enabled) && empty($conf->service->enabled)) echo $langs->trans('PredefinedProductsToSell'); @@ -136,6 +141,7 @@ else { else if (empty($conf->product->enabled) && ! empty($conf->service->enabled)) echo $langs->trans('PredefinedServicesToPurchase'); else echo $langs->trans('PredefinedProductsAndServicesToPurchase'); } + echo '</label>'; echo ' '; $filtertype=''; @@ -184,7 +190,7 @@ else { <td align="right"><?php if (GETPOST('prod_entry_mode') != 'predef') { - if ($seller->tva_assuj == "0") echo '<input type="hidden" name="tva_tx" value="0">0'; + if ($seller->tva_assuj == "0") echo '<input type="hidden" name="tva_tx" id="tva_tx" value="0">0'; else echo $form->load_tva('tva_tx', (isset($_POST["tva_tx"])?$_POST["tva_tx"]:-1), $seller, $buyer); } ?> @@ -201,9 +207,9 @@ else { <?php } ?> </td> <?php } ?> - <td align="right"><input type="text" size="2" name="qty" class="flat" value="<?php echo (isset($_POST["qty"])?$_POST["qty"]:1); ?>"> + <td align="right"><input type="text" size="2" name="qty" id="qty" class="flat" value="<?php echo (isset($_POST["qty"])?$_POST["qty"]:1); ?>"> </td> - <td align="right" class="nowrap"><input type="text" size="1" class="flat" value="<?php echo (isset($_POST["remise_percent"])?$_POST["remise_percent"]:$buyer->remise_client); ?>" name="remise_percent"><span class="hideonsmartphone">%</span></td> + <td align="right" class="nowrap"><input type="text" size="1" name="remise_percent" id="remise_percent" class="flat" value="<?php echo (isset($_POST["remise_percent"])?$_POST["remise_percent"]:$buyer->remise_client); ?>"><span class="hideonsmartphone">%</span></td> <?php if (! empty($usemargins)) diff --git a/htdocs/core/tpl/objectline_edit.tpl.php b/htdocs/core/tpl/objectline_edit.tpl.php index 95402139f7e9f2646c988caea758347cae22be21..75f6692b6c5cded58e8eb1e99d31bc486889df46 100644 --- a/htdocs/core/tpl/objectline_edit.tpl.php +++ b/htdocs/core/tpl/objectline_edit.tpl.php @@ -107,7 +107,7 @@ $coldisplay=-1; // We remove first td // must also not be output for most entities (proposal, intervention, ...) //if($line->qty > $line->stock) print img_picto($langs->trans("StockTooLow"),"warning", 'style="vertical-align: bottom;"')." "; ?> - <input size="3" type="text" class="flat" name="qty" value="<?php echo $line->qty; ?>"> + <input size="3" type="text" class="flat" name="qty" id="qty" value="<?php echo $line->qty; ?>"> <?php } else { ?> <?php } ?> @@ -115,7 +115,7 @@ $coldisplay=-1; // We remove first td <td align="right" nowrap><?php $coldisplay++; ?> <?php if (($line->info_bits & 2) != 2) { ?> - <input size="1" type="text" class="flat" name="remise_percent" value="<?php echo $line->remise_percent; ?>">% + <input size="1" type="text" class="flat" name="remise_percent" id="remise_percent" value="<?php echo $line->remise_percent; ?>">% <?php } else { ?> <?php } ?> diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index bdaaffdafe3cfba2c753b4b1464009aacccf2557..f35d493a485d4d1ac76cfc032803abd10b2ce920 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -1800,18 +1800,21 @@ function printSearchForm($urlaction,$urlobject,$title,$htmlmodesearch,$htmlinput global $conf,$langs; $ret=''; - $ret.='<div class="menu_titre">'; - $ret.='<a class="vsmenu" href="'.$urlobject.'">'; - $ret.=$title.'</a><br>'; - $ret.='</div>'; $ret.='<form action="'.$urlaction.'" method="post">'; + $ret.='<label for="'.$htmlinputname.'">'; + $ret.='<div class="menu_titre">'; + $ret.='<a class="vsmenu" href="'.$urlobject.'">'; + $ret.=$title; + $ret.='</a><br>'; + $ret.='</div>'; + $ret.='</label>'; $ret.='<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">'; $ret.='<input type="hidden" name="mode" value="search">'; $ret.='<input type="hidden" name="mode_search" value="'.$htmlmodesearch.'">'; $ret.='<input type="text" class="flat" '; if (! empty($conf->global->MAIN_HTML5_PLACEHOLDER)) $ret.=' placeholder="'.$langs->trans("SearchOf").''.strip_tags($title).'"'; else $ret.=' title="'.$langs->trans("SearchOf").''.strip_tags($title).'"'; - $ret.=' name="'.$htmlinputname.'" size="10" />'; + $ret.=' name="'.$htmlinputname.'" id="'.$htmlinputname.'" size="10" />'; $ret.='<input type="submit" class="button" value="'.$langs->trans("Go").'">'; $ret.="</form>\n"; return $ret; diff --git a/htdocs/product/index.php b/htdocs/product/index.php index b3af35d5b3c0a37544bd7f27d2272e102fa0c770..1770e046ed3b908cee309d26f0d65c9d1ae0958b 100644 --- a/htdocs/product/index.php +++ b/htdocs/product/index.php @@ -83,17 +83,17 @@ print '<table class="noborder nohover" width="100%">'; print "<tr class=\"liste_titre\">"; print '<td colspan="3">'.$langs->trans("Search").'</td></tr>'; print "<tr ".$bc[false]."><td>"; -print $langs->trans("Ref").':</td><td><input class="flat" type="text" size="14" name="sref"></td>'; +print '<label for="sref">'.$langs->trans("Ref").'</label>:</td><td><input class="flat" type="text" size="14" name="sref" id="sref"></td>'; print '<td rowspan="'.$rowspan.'"><input type="submit" class="button" value="'.$langs->trans("Search").'"></td></tr>'; if (! empty($conf->barcode->enabled)) { print "<tr ".$bc[false]."><td>"; - print $langs->trans("BarCode").':</td><td><input class="flat" type="text" size="14" name="sbarcode"></td>'; + print '<label for="barcode">'.$langs->trans("BarCode").'</label>:</td><td><input class="flat" type="text" size="14" name="sbarcode" id="barcode"></td>'; //print '<td><input type="submit" class="button" value="'.$langs->trans("Search").'"></td>'; print '</tr>'; } print "<tr ".$bc[false]."><td>"; -print $langs->trans("Other").':</td><td><input class="flat" type="text" size="14" name="sall"></td>'; +print '<label for="sall">'.$langs->trans("Other").'</label>:</td><td><input class="flat" type="text" size="14" name="sall" id="sall"></td>'; //print '<td><input type="submit" class="button" value="'.$langs->trans("Search").'"></td>'; print '</tr>'; print "</table></form><br>"; diff --git a/htdocs/societe/index.php b/htdocs/societe/index.php index 3cf38a58b90a63d283608a750e166a5acf1dc77d..766e44cf9a74c5959d5265c922085f5f7ab28ad3 100644 --- a/htdocs/societe/index.php +++ b/htdocs/societe/index.php @@ -66,17 +66,17 @@ print '<table class="noborder nohover" width="100%">'; print '<tr class="liste_titre">'; print '<td colspan="3">'.$langs->trans("Search").'</td></tr>'; print "<tr ".$bc[false]."><td>"; -print $langs->trans("Name").':</td><td><input class="flat" type="text" size="14" name="search_nom_only"></td>'; +print '<label for="search_nom_only">'.$langs->trans("Name").'</label>:</td><td><input class="flat" type="text" size="14" name="search_nom_only" id="search_nom_only"></td>'; print '<td rowspan="'.$rowspan.'"><input type="submit" class="button" value="'.$langs->trans("Search").'"></td></tr>'; if (! empty($conf->barcode->enabled)) { print "<tr ".$bc[false]."><td>"; - print $langs->trans("BarCode").':</td><td><input class="flat" type="text" size="14" name="sbarcode"></td>'; + print '<label for="sbarcode">'.$langs->trans("BarCode").'</label>:</td><td><input class="flat" type="text" size="14" name="sbarcode" id="sbarcode"></td>'; //print '<td><input type="submit" class="button" value="'.$langs->trans("Search").'"></td>'; print '</tr>'; } print "<tr ".$bc[false]."><td>"; -print $langs->trans("Other").':</td><td><input class="flat" type="text" size="14" name="search_all"></td>'; +print '<label for="search_all">'.$langs->trans("Other").'</label>:</td><td><input class="flat" type="text" size="14" name="search_all" id="search_all"></td>'; //print '<td><input type="submit" class="button" value="'.$langs->trans("Search").'"></td>'; print '</tr>';