Skip to content

Commit

Permalink
Merge pull request #1737 from GPCsolutions/accessibility
Browse files Browse the repository at this point in the history
Accessibility
  • Loading branch information
eldy committed Jul 16, 2014
2 parents 8a8a90d + 94bcb0d commit 6a19cc6
Show file tree
Hide file tree
Showing 6 changed files with 269 additions and 222 deletions.
146 changes: 73 additions & 73 deletions htdocs/admin/company.php

Large diffs are not rendered by default.

114 changes: 68 additions & 46 deletions htdocs/contact/fiche.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion htdocs/core/class/html.form.class.php
Expand Up @@ -3306,7 +3306,7 @@ function selectCurrency($selected='',$htmlname='currency_id')

if ($selected=='euro' || $selected=='euros') $selected='EUR'; // Pour compatibilite

$out.= '<select class="flat" name="'.$htmlname.'">';
$out.= '<select class="flat" name="'.$htmlname.'" id="'.$htmlname.'">';
foreach ($langs->cache_currencies as $code_iso => $currency)
{
if ($selected && $selected == $code_iso)
Expand Down
10 changes: 5 additions & 5 deletions htdocs/core/class/html.formcompany.class.php
Expand Up @@ -374,7 +374,7 @@ function select_civility($selected='',$htmlname='civility_id')
$resql=$this->db->query($sql);
if ($resql)
{
$out.= '<select class="flat" name="'.$htmlname.'">';
$out.= '<select class="flat" name="'.$htmlname.'" id="'.$htmlname.'">';
$out.= '<option value="">&nbsp;</option>';
$num = $this->db->num_rows($resql);
$i = 0;
Expand Down Expand Up @@ -453,7 +453,7 @@ function select_juridicalstatus($selected='', $country_codeid=0, $filter='')
if ($resql)
{
$out.= '<div id="particulier2" class="visible">';
$out.= '<select class="flat" name="forme_juridique_code">';
$out.= '<select class="flat" name="forme_juridique_code" id="legal_form">';
if ($country_codeid) $out.= '<option value="0">&nbsp;</option>';

$num = $this->db->num_rows($resql);
Expand Down Expand Up @@ -772,7 +772,7 @@ function get_input_id_prof($idprof,$htmlname,$preselected,$country_code)
$maxlength=$formlength;
if (empty($formlength)) { $formlength=24; $maxlength=128; }

$out = '<input type="text" name="'.$htmlname.'" size="'.($formlength+1).'" maxlength="'.$maxlength.'" value="'.$selected.'">';
$out = '<input type="text" name="'.$htmlname.'" id="'.$htmlname.'" size="'.($formlength+1).'" maxlength="'.$maxlength.'" value="'.$selected.'">';

return $out;
}
Expand All @@ -782,7 +782,7 @@ function get_input_id_prof($idprof,$htmlname,$preselected,$country_code)
*
* @param int $local LocalTax
* @param int $selected Preselected value
* @param varchar $htmlname HTML select name
* @param string $htmlname HTML select name
* @return void
*/
function select_localtax($local, $selected, $htmlname)
Expand All @@ -798,7 +798,7 @@ function select_localtax($local, $selected, $htmlname)
if (count($valors) > 1)
{
//montar select
print '<select class="flat" name="'.$htmlname.'">';
print '<select class="flat" name="'.$htmlname.'" id="'.$htmlname.'">';
while ($i <= (count($valors))-1)
{
if ($selected == $valors[$i])
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/class/html.formother.class.php
Expand Up @@ -760,7 +760,7 @@ function select_month($selected='',$htmlname='monthid',$useempty=0)

$montharray = monthArray($langs); // Get array

$select_month = '<select class="flat" name="'.$htmlname.'">';
$select_month = '<select class="flat" name="'.$htmlname.'" id="'.$htmlname.'">';
if ($useempty)
{
$select_month .= '<option value="0">&nbsp;</option>';
Expand Down

0 comments on commit 6a19cc6

Please sign in to comment.