'.fieldLabel('ProspectCustomer','customerprospect',1).' ';
print '';
$selected=isset($_POST['client'])?GETPOST('client'):$object->client;
if (empty($conf->global->SOCIETE_DISABLE_PROSPECTS)) print ''.$langs->trans('Prospect').' ';
@@ -998,7 +998,7 @@ else
print ''.$langs->trans('NorProspectNorCustomer').' ';
print ' ';
- print ''.$langs->trans('CustomerCode').' ';
+ print ' '.fieldLabel('CustomerCode','customer_code').' ';
print '';
$tmpcode=$object->code_client;
if (empty($tmpcode) && ! empty($modCodeClient->code_auto)) $tmpcode=$modCodeClient->getNextValue($object,0);
@@ -1013,10 +1013,10 @@ else
{
// Supplier
print ' ';
- print ''.$langs->trans('Supplier').' ';
+ print ' '.fieldLabel('Supplier','fournisseur',1).' ';
print $form->selectyesno("fournisseur",(isset($_POST['fournisseur'])?GETPOST('fournisseur'):$object->fournisseur),1);
print ' ';
- print ''.$langs->trans('SupplierCode').' ';
+ print ' '.fieldLabel('SupplierCode','supplier_code').' ';
print '';
$tmpcode=$object->code_fournisseur;
if (empty($tmpcode) && ! empty($modCodeFournisseur->code_auto)) $tmpcode=$modCodeFournisseur->getNextValue($object,1);
@@ -1029,33 +1029,33 @@ else
}
// Status
- print ' '.$langs->trans('Status').' ';
+ print ' '.fieldLabel('Status','status').' ';
print $form->selectarray('status', array('0'=>$langs->trans('ActivityCeased'),'1'=>$langs->trans('InActivity')),1);
print ' ';
// Barcode
if (! empty($conf->barcode->enabled))
{
- print ''.$langs->trans('Gencod').' ';
+ print ''.fieldLabel('Gencod','barcode').' ';
print ' ';
print ' ';
}
// Address
- print ''.$langs->trans('Address').' ';
+ print ''.fieldLabel('Address','address').' ';
print ' ';
// Zip / Town
- print ''.$langs->trans('Zip').' ';
+ print ' '.fieldLabel('Zip','zipcode').' ';
print $formcompany->select_ziptown($object->zip,'zipcode',array('town','selectcountry_id','state_id'),6);
- print ' '.$langs->trans('Town').' ';
+ print ' '.fieldLabel('Town','town').' ';
print $formcompany->select_ziptown($object->town,'town',array('zipcode','selectcountry_id','state_id'));
print ' ';
// Country
- print ''.$langs->trans('Country').' ';
+ print ' '.fieldLabel('Country','selectcountry_id').' ';
print $form->select_country((GETPOST('country_id')!=''?GETPOST('country_id'):$object->country_id));
if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionarySetup"),1);
print ' ';
@@ -1063,29 +1063,29 @@ else
// State
if (empty($conf->global->SOCIETE_DISABLE_STATE))
{
- print ''.$langs->trans('State').' ';
+ print ' '.fieldLabel('State','state_id').' ';
if ($object->country_id) print $formcompany->select_state($object->state_id,$object->country_code);
else print $countrynotdefined;
print ' ';
}
// Email web
- print ''.$langs->trans('EMail').(! empty($conf->global->SOCIETE_MAIL_REQUIRED)?'*':'').' ';
+ print ''.fieldLabel('EMail','email').(! empty($conf->global->SOCIETE_MAIL_REQUIRED)?'*':'').' ';
print ' ';
- print ''.$langs->trans('Web').' ';
+ print ''.fieldLabel('Web','url').' ';
print ' ';
// Skype
if (! empty($conf->skype->enabled))
{
- print ''.$langs->trans('Skype').' ';
+ print ''.fieldLabel('Skype','skype').' ';
print ' ';
}
// Phone / Fax
- print ''.$langs->trans('Phone').' ';
+ print ''.fieldLabel('Phone','phone').' ';
print ' ';
- print ''.$langs->trans('Fax').' ';
+ print ''.fieldLabel('Fax','fax').' ';
print ' ';
// Prof ids
@@ -1101,9 +1101,9 @@ else
$idprof_mandatory ='SOCIETE_IDPROF'.($i).'_MANDATORY';
if(empty($conf->global->$idprof_mandatory))
- print ''.$idprof.' ';
+ print ' '.fieldLabel($idprof,$key).' ';
else
- print ' '.$idprof.' ';
+ print ' '.fieldLabel($idprof,$key,1).' ';
print $formcompany->get_input_id_prof($i,$key,$object->$key,$object->country_code);
print ' ';
@@ -1115,11 +1115,11 @@ else
if ($j % 2 == 1) print ' ';
// Assujeti TVA
- print ''.$langs->trans('VATIsUsed').' ';
+ print ''.fieldLabel('VATIsUsed','assujtva_value').' ';
print '';
print $form->selectyesno('assujtva_value',1,1); // Assujeti par defaut en creation
print ' ';
- print ''.$langs->trans('VATIntra').' ';
+ print ''.fieldLabel('VATIntra','inra_vat').' ';
print '';
$s = ' ';
@@ -1149,17 +1149,17 @@ else
print ' ';
// Type - Size
- print ''.$langs->trans("ThirdPartyType").' '."\n";
+ print ' '.fieldLabel('ThirdPartyType','typent_id').' '."\n";
print $form->selectarray("typent_id", $formcompany->typent_array(0), $object->typent_id, 0, 0, 0, '', 0, 0, 0, (empty($conf->global->SOCIETE_SORT_ON_TYPEENT)?'ASC':$conf->global->SOCIETE_SORT_ON_TYPEENT));
if ($user->admin) print ' '.info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionarySetup"),1);
print ' ';
- print ''.$langs->trans("Staff").' ';
+ print ' '.fieldLabel('Staff','effectif_id').' ';
print $form->selectarray("effectif_id", $formcompany->effectif_array(0), $object->effectif_id);
if ($user->admin) print ' '.info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionarySetup"),1);
print ' ';
// Legal Form
- print ''.$langs->trans('JuridicalStatus').' ';
+ print ''.fieldLabel('JuridicalStatus','legal_form').' ';
print '';
if ($object->country_id)
{
@@ -1172,7 +1172,7 @@ else
print ' ';
// Capital
- print ''.$langs->trans('Capital').' ';
+ print ''.fieldLabel('Capital','capital').' ';
print ' ';
print ''.$langs->trans("Currency".$conf->currency).' ';
@@ -1202,7 +1202,7 @@ else
if (! empty($conf->global->MAIN_MULTILANGS))
{
- print ''.$langs->trans("DefaultLang").' '."\n";
+ print ' '.fieldLabel('DefaultLang','default_lang').' '."\n";
print $formadmin->select_language(($object->default_lang?$object->default_lang:$conf->global->MAIN_LANG_DEFAULT),'default_lang',0,0,1);
print ' ';
print ' ';
@@ -1212,7 +1212,7 @@ else
{
// Assign a Name
print '';
- print ''.$langs->trans("AllocateCommercial").' ';
+ print ''.fieldLabel('AllocateCommercial','commercial_id').' ';
print '';
$form->select_users((! empty($object->commercial_id)?$object->commercial_id:$user->id),'commercial_id',1); // Add current user by default
print ' ';
@@ -1222,7 +1222,7 @@ else
if (!empty($conf->incoterm->enabled))
{
print '';
- print ''.$langs->trans("IncotermLabel").' ';
+ print ''.fieldLabel('IncotermLabel','incoterm_id').' ';
print '';
print $form->select_incoterms((!empty($object->fk_incoterms) ? $object->fk_incoterms : ''), (!empty($object->location_incoterms)?$object->location_incoterms:''));
print ' ';
@@ -1231,12 +1231,12 @@ else
// Categories
if (! empty($conf->categorie->enabled) && ! empty($user->rights->categorie->lire))
{
- print ''.$langs->trans("Categories").' ';
+ print ' '.fieldLabel('Categories','custcats').' ';
$cate_arbo = $form->select_all_categories(Categorie::TYPE_CUSTOMER, null, 'parent', null, null, 1);
print $form->multiselectarray('custcats', $cate_arbo, GETPOST('custcats', 'array'), null, null, null, null, "90%");
print " ";
}
-
+
// Other attributes
$parameters=array('colspan' => ' colspan="3"', 'colspanvalue' => '3');
$reshook=$hookmanager->executeHooks('formObjectOptions',$parameters,$object,$action); // Note that $action and $object may have been modified by hook
@@ -1247,7 +1247,7 @@ else
// Ajout du logo
print '';
- print ''.$langs->trans("Logo").' ';
+ print ''.fieldLabel('Logo','photoinput').' ';
print '';
print ' ';
print ' ';
@@ -1319,10 +1319,10 @@ else
$object->oldcopy=dol_clone($object);
- if (GETPOST('nom'))
+ if (GETPOST('name'))
{
// We overwrite with values if posted
- $object->name = GETPOST('nom', 'alpha');
+ $object->name = GETPOST('name', 'alpha');
$object->prefix_comm = GETPOST('prefix_comm', 'alpha');
$object->client = GETPOST('client', 'int');
$object->code_client = GETPOST('code_client', 'alpha');
@@ -1452,13 +1452,13 @@ else
print '';
// Name
- print ''.$langs->trans('ThirdPartyName').' ';
- print ' ';
+ print ''.fieldLabel('ThirdPartyName','name',1).' ';
+ print ' ';
// Prefix
if (! empty($conf->global->SOCIETE_USEPREFIX)) // Old not used prefix field
{
- print ''.$langs->trans("Prefix").' ';
+ print ' '.fieldLabel('Prefix','prefix').' ';
// It does not change the prefix mode using the auto numbering prefix
if (($prefixCustomerIsUsed || $prefixSupplierIsUsed) && $object->prefix_comm)
{
@@ -1473,14 +1473,14 @@ else
}
// Prospect/Customer
- print ' '.$langs->trans('ProspectCustomer').' ';
+ print ''.fieldLabel('ProspectCustomer','customerprospect',1).' ';
print '';
if (empty($conf->global->SOCIETE_DISABLE_PROSPECTS)) print 'client==2?' selected':'').'>'.$langs->trans('Prospect').' ';
if (empty($conf->global->SOCIETE_DISABLE_PROSPECTS) && empty($conf->global->SOCIETE_DISABLE_CUSTOMERS)) print 'client==3?' selected':'').'>'.$langs->trans('ProspectCustomer').' ';
if (empty($conf->global->SOCIETE_DISABLE_CUSTOMERS)) print 'client==1?' selected':'').'>'.$langs->trans('Customer').' ';
print 'client==0?' selected':'').'>'.$langs->trans('NorProspectNorCustomer').' ';
print ' ';
- print ''.$langs->trans('CustomerCode').' ';
+ print ' '.fieldLabel('CustomerCode','customer_code').' ';
print '';
if ((!$object->code_client || $object->code_client == -1) && $modCodeClient->code_auto)
@@ -1510,10 +1510,10 @@ else
if (! empty($conf->fournisseur->enabled) && ! empty($user->rights->fournisseur->lire))
{
print ' ';
- print ''.$langs->trans('Supplier').' ';
+ print ' '.fieldLabel('Supplier','fournisseur',1).' ';
print $form->selectyesno("fournisseur",$object->fournisseur,1);
print ' ';
- print ''.$langs->trans('SupplierCode').' ';
+ print ' '.fieldLabel('SupplierCode','supplier_code').' ';
print '';
if ((!$object->code_fournisseur || $object->code_fournisseur == -1) && $modCodeFournisseur->code_auto)
@@ -1543,31 +1543,31 @@ else
// Barcode
if (! empty($conf->barcode->enabled))
{
- print ' '.$langs->trans('Gencod').' ';
+ print ''.fieldLabel('Gencod','barcode').' ';
print ' ';
print ' ';
}
// Status
- print ''.$langs->trans("Status").' ';
+ print ' '.fieldLabel('Status','status').' ';
print $form->selectarray('status', array('0'=>$langs->trans('ActivityCeased'),'1'=>$langs->trans('InActivity')),$object->status);
print ' ';
// Address
- print ''.$langs->trans('Address').' ';
+ print ''.fieldLabel('Address','address').' ';
print ' ';
// Zip / Town
- print ''.$langs->trans('Zip').' ';
+ print ' '.fieldLabel('Zip','zipcode').' ';
print $formcompany->select_ziptown($object->zip,'zipcode',array('town','selectcountry_id','state_id'),6);
- print ' '.$langs->trans('Town').' ';
+ print ' '.fieldLabel('Town','town').' ';
print $formcompany->select_ziptown($object->town,'town',array('zipcode','selectcountry_id','state_id'));
print ' ';
// Country
- print ''.$langs->trans('Country').' ';
+ print ' '.fieldLabel('Country','selectcounty_id').' ';
print $form->select_country((GETPOST('country_id')!=''?GETPOST('country_id'):$object->country_id),'country_id');
if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionarySetup"),1);
print ' ';
@@ -1575,28 +1575,28 @@ else
// State
if (empty($conf->global->SOCIETE_DISABLE_STATE))
{
- print ''.$langs->trans('State').' ';
+ print ' '.fieldLabel('State','state_id').' ';
print $formcompany->select_state($object->state_id,$object->country_code);
print ' ';
}
// EMail / Web
- print ''.$langs->trans('EMail').(! empty($conf->global->SOCIETE_MAIL_REQUIRED)?'*':'').' ';
+ print ''.fieldLabel('EMail','email',(! empty($conf->global->SOCIETE_MAIL_REQUIRED))).' ';
print ' ';
- print ''.$langs->trans('Web').' ';
+ print ''.fieldLabel('Web','url').' ';
print ' ';
// Skype
if (! empty($conf->skype->enabled))
{
- print ''.$langs->trans('Skype').' ';
+ print ''.fieldLabel('Skype','skype').' ';
print ' ';
}
// Phone / Fax
- print ''.$langs->trans('Phone').' ';
+ print ''.fieldLabel('Phone','phone').' ';
print ' ';
- print ''.$langs->trans('Fax').' ';
+ print ''.fieldLabel('Fax','fax').' ';
print ' ';
// Prof ids
@@ -1612,9 +1612,9 @@ else
$idprof_mandatory ='SOCIETE_IDPROF'.($i).'_MANDATORY';
if(empty($conf->global->$idprof_mandatory))
- print ''.$idprof.' ';
+ print ' '.fieldLabel($idprof,$key).' ';
else
- print ' '.$idprof.' ';
+ print ' '.fieldLabel($idprof,$key).' ';
print $formcompany->get_input_id_prof($i,$key,$object->$key,$object->country_code);
print ' ';
@@ -1626,12 +1626,12 @@ else
if ($j % 2 == 1) print ' ';
// VAT payers
- print ''.$langs->trans('VATIsUsed').' ';
+ print ' '.fieldLabel('VATIsUsed','assujtva_value').' ';
print $form->selectyesno('assujtva_value',$object->tva_assuj,1);
print ' ';
// VAT Code
- print ''.$langs->trans('VATIntra').' ';
+ print ''.fieldLabel('VATIntra','intra_vat').' ';
print '';
$s =' ';
@@ -1664,7 +1664,7 @@ else
//TODO: Place into a function to control showing by country or study better option
if($mysoc->localtax1_assuj=="1" && $mysoc->localtax2_assuj=="1")
{
- print ' '.$langs->transcountry("LocalTax1IsUsed",$mysoc->country_code).' ';
+ print ' '.fieldLabel($langs->transcountry("LocalTax1IsUsed",$mysoc->country_code),'localtax1assuj_value').' ';
print $form->selectyesno('localtax1assuj_value',$object->localtax1_assuj,1);
if(! isOnlyOneLocalTax(1))
{
@@ -1673,7 +1673,7 @@ else
print '';
}
- print ' '.$langs->transcountry("LocalTax2IsUsed",$mysoc->country_code).' ';
+ print ' '.fieldLabel($langs->transcountry("LocalTax2IsUsed",$mysoc->country_code),'localtax2assuj_value').' ';
print $form->selectyesno('localtax2assuj_value',$object->localtax2_assuj,1);
if (! isOnlyOneLocalTax(2))
{
@@ -1686,7 +1686,7 @@ else
}
elseif($mysoc->localtax1_assuj=="1" && $mysoc->localtax2_assuj!="1")
{
- print ' '.$langs->transcountry("LocalTax1IsUsed",$mysoc->country_code).' ';
+ print ' '.fieldLabel($langs->transcountry("LocalTax1IsUsed",$mysoc->country_code),'localtax1assuj_value').' ';
print $form->selectyesno('localtax1assuj_value',$object->localtax1_assuj,1);
if(! isOnlyOneLocalTax(1))
{
@@ -1699,7 +1699,7 @@ else
}
elseif($mysoc->localtax2_assuj=="1" && $mysoc->localtax1_assuj!="1")
{
- print ' '.$langs->transcountry("LocalTax2IsUsed",$mysoc->country_code).' ';
+ print ' '.fieldLabel($langs->transcountry("LocalTax2IsUsed",$mysoc->country_code),'localtax2assuj_value').' ';
print $form->selectyesno('localtax2assuj_value',$object->localtax2_assuj,1);
if(! isOnlyOneLocalTax(2))
{
@@ -1711,28 +1711,28 @@ else
}
// Type - Size
- print ' '.$langs->trans("ThirdPartyType").' ';
+ print ' '.fieldLabel('ThirdPartyType','typent_id').' ';
print $form->selectarray("typent_id",$formcompany->typent_array(0), $object->typent_id, 0, 0, 0, '', 0, 0, 0, (empty($conf->global->SOCIETE_SORT_ON_TYPEENT)?'ASC':$conf->global->SOCIETE_SORT_ON_TYPEENT));
if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionarySetup"),1);
print ' ';
- print ''.$langs->trans("Staff").' ';
+ print ' '.fieldLabel('Staff','effectif_id').' ';
print $form->selectarray("effectif_id",$formcompany->effectif_array(0), $object->effectif_id);
if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionarySetup"),1);
print ' ';
// Juridical type
- print ''.$langs->trans('JuridicalStatus').' ';
+ print ' '.fieldLabel('JuridicalStatus','legal_form').' ';
print $formcompany->select_juridicalstatus($object->forme_juridique_code, $object->country_code, '', 'legal_form');
print ' ';
// Capital
- print ''.$langs->trans("Capital").' ';
+ print ''.fieldLabel('Capital','capital').' ';
print ''.$langs->trans("Currency".$conf->currency).' ';
// Default language
if (! empty($conf->global->MAIN_MULTILANGS))
{
- print ''.$langs->trans("DefaultLang").' '."\n";
+ print ' '.fieldLabel('DefaultLang','default_lang').' '."\n";
print $formadmin->select_language($object->default_lang,'default_lang',0,0,1);
print ' ';
print ' ';
@@ -1741,7 +1741,7 @@ else
// Categories
if (! empty($conf->categorie->enabled) && ! empty($user->rights->categorie->lire))
{
- print '' . $langs->trans("Categories") . ' ';
+ print ''.fieldLabel('Categories', 'custcats').' ';
print '';
$cate_arbo = $form->select_all_categories( Categorie::TYPE_CUSTOMER, null, null, null, null, 1);
$c = new Categorie( $db );
@@ -1752,7 +1752,7 @@ else
print $form->multiselectarray( 'custcats', $cate_arbo, $arrayselected, '', 0, '', 0, '90%');
print " ";
}
-
+
// Other attributes
$parameters=array('colspan' => ' colspan="3"', 'colspanvalue' => '3');
$reshook=$hookmanager->executeHooks('formObjectOptions',$parameters,$object,$action); // Note that $action and $object may have been modified by hook
@@ -1763,9 +1763,9 @@ else
// Webservices url/key
if (!empty($conf->syncsupplierwebservices->enabled)) {
- print ''.$langs->trans('WebServiceURL').' ';
+ print ''.fieldLabel('WebServiceURL','webservices_url').' ';
print ' ';
- print ''.$langs->trans('WebServiceKey').' ';
+ print ''.fieldLabel('WebServiceKey','webservices_key').' ';
print ' ';
}
@@ -1773,7 +1773,7 @@ else
if (!empty($conf->incoterm->enabled))
{
print '';
- print ''.$langs->trans("IncotermLabel").' ';
+ print ''.fieldLabel('IncotermLabel','incoterm_id').' ';
print '';
print $form->select_incoterms((!empty($object->fk_incoterms) ? $object->fk_incoterms : ''), (!empty($object->location_incoterms)?$object->location_incoterms:''));
print ' ';
@@ -1781,7 +1781,7 @@ else
// Logo
print '';
- print ''.$langs->trans("Logo").' ';
+ print ''.fieldLabel('Logo','photoinput').' ';
print '';
if ($object->logo) print $form->showphoto('societe',$object);
$caneditfield=1;
@@ -2187,7 +2187,7 @@ else
print $form->showCategories( $object->id, 'customer', 1 );
print " ";
}
-
+
// Incoterms
if (!empty($conf->incoterm->enabled))
{
diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php
index 25bb20432ff..2563440cf8c 100644
--- a/htdocs/theme/eldy/style.css.php
+++ b/htdocs/theme/eldy/style.css.php
@@ -1400,7 +1400,12 @@ div.tabs {
clear:both;
height:100%;
}
-div.tabsElem { margin-top: 1px; } /* To avoid overlap of tabs when not browser */
+div.tabsElem {
+ margin-top: 1px;
+ dol_use_jmobile)) { ?>;
+ margin-bottom: -1px;
+
+} /* To avoid overlap of tabs when not browser */
div.tabBar {
color: #;
@@ -1969,6 +1974,13 @@ table.liste td {
/* Pagination */
+div.refid {
+ padding-top: dol_use_jmobile)?'8':'12'; ?>px;
+ font-weight: bold;
+ color: #766;
+ font-size: 120%;
+}
+
div.pagination {
float: right;
}
@@ -1987,8 +1999,10 @@ div.pagination li {
display: inline-block;
padding-left: 0px;
padding-right: 0px;
+dol_use_jmobile)) { ?>
padding-top: 6px;
- padding-bottom: 6px;
+ padding-bottom: 5px;
+
}
.pagination {
display: inline-block;
@@ -1997,7 +2011,9 @@ div.pagination li {
}
div.pagination li.pagination a,
div.pagination li.pagination span {
+dol_use_jmobile)) { ?>
padding: 6px 12px;
+
margin-left: -1px;
line-height: 1.42857143;
color: #000;
@@ -2006,10 +2022,26 @@ div.pagination li.pagination span {
div.pagination li.pagination span.inactive {
cursor: default;
}
+div.pagination li.litext a {
+border: none;
+ padding-right: 10px;
+ padding-left: 4px;
+ font-weight: bold;
+}
+dol_use_jmobile)) { ?>
+div.pagination li.litext {
+ padding-top: 13px;
+ vertical-align: top;
+}
+
dol_use_jmobile)) { ?>
+div.pagination li.noborder a:hover {
+ border: none;
+ background-color: transparent;
+}
div.pagination li a,
div.pagination li span {
- background-color: #fff;
+ background-color: #fff;
border: 1px solid #ddd;
}
div.pagination li:first-child a,
@@ -3471,6 +3503,14 @@ ul.ulmenu {
color: # !important;
text-shadow: none !important;
}
+/*
+.ui-btn-up-c {
+ background: transparent;
+}
+*/
+div.tabsElem a.tab {
+ background: transparent;
+}
.ui-controlgroup-horizontal .ui-btn.ui-first-child {
-webkit-border-top-left-radius: 6px;
border-top-left-radius: 6px;