diff --git a/htdocs/comm/list.php b/htdocs/comm/list.php
index 3147240167e..fcc1783daf5 100644
--- a/htdocs/comm/list.php
+++ b/htdocs/comm/list.php
@@ -246,7 +246,7 @@ if ($result)
print '';
print '
';
- print $form->select_country($search_country,'search_country');
+ print $form->select_country($search_country,'search_country','',0,'maxwidth100');
print ' ';
print '';
diff --git a/htdocs/comm/prospect/list.php b/htdocs/comm/prospect/list.php
index e4d10e3396c..670d170de97 100644
--- a/htdocs/comm/prospect/list.php
+++ b/htdocs/comm/prospect/list.php
@@ -385,7 +385,7 @@ if ($resql)
print_liste_field_titre($langs->trans("Company"),$_SERVER["PHP_SELF"],"s.nom","",$param,'',$sortfield,$sortorder);
print_liste_field_titre($langs->trans("Zip"),$_SERVER["PHP_SELF"],"s.zip","",$param,"",$sortfield,$sortorder);
print_liste_field_titre($langs->trans("Town"),$_SERVER["PHP_SELF"],"s.town","",$param,"",$sortfield,$sortorder);
- print_liste_field_titre($langs->trans("State"),$_SERVER["PHP_SELF"],"s.fk_departement","",$param,'align="center"',$sortfield,$sortorder);
+ print_liste_field_titre($langs->trans("StateShort"),$_SERVER["PHP_SELF"],"s.fk_departement","",$param,'align="center"',$sortfield,$sortorder);
print_liste_field_titre($langs->trans("Country"),$_SERVER["PHP_SELF"],"country.code_iso","",$param,'align="center"',$sortfield,$sortorder);
print_liste_field_titre($langs->trans("ThirdPartyType"),$_SERVER["PHP_SELF"],"typent.code","",$param,'align="center"',$sortfield,$sortorder);
print_liste_field_titre($langs->trans("DateCreation"),$_SERVER["PHP_SELF"],"s.datec","",$param,'align="center"',$sortfield,$sortorder);
@@ -427,13 +427,13 @@ if ($resql)
print ' ';
print ' ';
print '';
- print $form->select_country($search_country,'search_country');
+ print $form->select_country($search_country,'search_country','',0,'maxwidth100');
print ' ';
print '';
print $form->selectarray("search_type_thirdparty", $formcompany->typent_array(0), $search_type_thirdparty, 0, 0, 0, '', 0, 0, 0, (empty($conf->global->SOCIETE_SORT_ON_TYPEENT)?'ASC':$conf->global->SOCIETE_SORT_ON_TYPEENT));
print ' ';
print '';
- print ' ';
+ print ' ';
print ' ';
// Prospect level
diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index 8d69e58bad3..0d4bff05d42 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -484,9 +484,10 @@ class Form
* @param string $htmlname Name of html select object
* @param string $htmloption Options html on select object
* @param integer $maxlength Max length for labels (0=no limit)
+ * @param string $morecss More css class
* @return string HTML string with select
*/
- function select_country($selected='',$htmlname='country_id',$htmloption='',$maxlength=0)
+ function select_country($selected='',$htmlname='country_id',$htmloption='',$maxlength=0,$morecss='minwidth300')
{
global $conf,$langs;
@@ -507,7 +508,7 @@ class Form
$resql=$this->db->query($sql);
if ($resql)
{
- $out.= '';
+ $out.= '';
$num = $this->db->num_rows($resql);
$i = 0;
if ($num)
diff --git a/htdocs/fourn/list.php b/htdocs/fourn/list.php
index d3edf06f1cb..5693031c630 100644
--- a/htdocs/fourn/list.php
+++ b/htdocs/fourn/list.php
@@ -1,6 +1,6 @@
- * Copyright (C) 2004-2012 Laurent Destailleur
+ * Copyright (C) 2004-2015 Laurent Destailleur
* Copyright (C) 2005-2012 Regis Houssin
* Copyright (C) 2011 Philippe Grand
* Copyright (C) 2013 Cédric Salvador
@@ -238,7 +238,7 @@ if ($resql)
print ' ';
print '';
- print $form->select_country($search_country,'search_country');
+ print $form->select_country($search_country,'search_country','',0,'maxwidth100');
print ' ';
print '';
diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang
index e06553afd89..508a4dceee7 100755
--- a/htdocs/langs/en_US/admin.lang
+++ b/htdocs/langs/en_US/admin.lang
@@ -802,7 +802,7 @@ Permission59003=Read every user margin
DictionaryCompanyType=Thirdparties type
DictionaryCompanyJuridicalType=Juridical kinds of thirdparties
DictionaryProspectLevel=Prospect potential level
-DictionaryCanton=State/Cantons
+DictionaryCanton=State/Province
DictionaryRegion=Regions
DictionaryCountry=Countries
DictionaryCurrency=Currencies
diff --git a/htdocs/langs/en_US/companies.lang b/htdocs/langs/en_US/companies.lang
index 3bd16069036..a73ed322cba 100644
--- a/htdocs/langs/en_US/companies.lang
+++ b/htdocs/langs/en_US/companies.lang
@@ -64,6 +64,7 @@ UserTitle=Title
Surname=Surname/Pseudo
Address=Address
State=State/Province
+StateShort=State
Region=Region
Country=Country
CountryCode=Country code
diff --git a/htdocs/societe/list.php b/htdocs/societe/list.php
index 45881d20d36..a5792642a64 100644
--- a/htdocs/societe/list.php
+++ b/htdocs/societe/list.php
@@ -195,7 +195,7 @@ if ($socname)
/*
- * Mode Liste
+ * Mode List
*/
/*
REM: Regle sur droits "Voir tous les clients"
@@ -376,7 +376,7 @@ if ($resql)
print ' ';
print ' ';
if (! empty($search_nom_only) && empty($search_nom)) $search_nom=$search_nom_only;
- print ' ';
+ print ' ';
print ' ';
// Barcode
if (! empty($conf->barcode->enabled))
@@ -387,11 +387,11 @@ if ($resql)
}
// Town
print '';
- print ' ';
+ print ' ';
print ' ';
//Country
print '';
- print $form->select_country($search_country,'search_country');
+ print $form->select_country($search_country,'search_country','',0,'maxwidth100');
print ' ';
//Company type
print '';