diff --git a/htdocs/societe/card.php b/htdocs/societe/card.php
index 6abb7aa9647..96a9dd7deed 100644
--- a/htdocs/societe/card.php
+++ b/htdocs/societe/card.php
@@ -1396,7 +1396,7 @@ else
print $formcompany->get_input_id_prof($i, $key, $object->$key, $object->country_code);
print '';
- if (($j % 2) == 1) print '';
+ if (($j % $NBCOLS) == ($NBCOLS - 1)) print '';
$j++;
}
$i++;
@@ -1448,6 +1448,7 @@ else
print '
';
print '| '.$form->editfieldkey('CustomerCode', 'customer_code', '', $object, 0).' | ';
print '| ';
@@ -1879,15 +1881,18 @@ else
|| (!empty($conf->supplier_proposal->enabled) && !empty($user->rights->supplier_proposal->lire)))
{
print ' | ';
- print '| '.$form->editfieldkey('Supplier', 'fournisseur', '', $object, 0, 'string', '', 1).' | ';
+ print ' | '.$form->editfieldkey('Supplier', 'fournisseur', '', $object, 0, 'string', '', 1).' | ';
+ print '';
print $form->selectyesno("fournisseur", $object->fournisseur, 1);
print ' | ';
+ if ($conf->browser->layout == 'phone') print ' ';
print '| ';
if (!empty($conf->fournisseur->enabled) && !empty($user->rights->fournisseur->lire))
{
print $form->editfieldkey('SupplierCode', 'supplier_code', '', $object, 0);
}
- print ' | ';
+ print ' | ';
+ print '';
print '| ';
if ((!$object->code_fournisseur || $object->code_fournisseur == -1) && $modCodeFournisseur->code_auto)
{
@@ -1936,7 +1941,9 @@ else
// Zip / Town
print ' | | '.$form->editfieldkey('Zip', 'zipcode', '', $object, 0).' | ';
print $formcompany->select_ziptown($object->zip, 'zipcode', array('town', 'selectcountry_id', 'state_id'), 0, 0, '', 'maxwidth50onsmartphone');
- print ' | '.$form->editfieldkey('Town', 'town', '', $object, 0).' | ';
+ print ' | ';
+ if ($conf->browser->layout == 'phone') print ' ';
+ print '| '.$form->editfieldkey('Town', 'town', '', $object, 0).' | ';
print $formcompany->select_ziptown($object->town, 'town', array('zipcode', 'selectcountry_id', 'state_id'));
print $form->widgetForTranslation("town", $object, $permissiontoadd, 'string', 'alphanohtml', 'maxwidth100 quatrevingtpercent');
print ' | ';
@@ -1944,7 +1951,7 @@ else
// Country
print '| '.$form->editfieldkey('Country', 'selectcounty_id', '', $object, 0).' | ';
print img_picto('', 'globe-americas', 'class="paddingrightonly"');
- print $form->select_country((GETPOSTISSET('country_id') ? GETPOST('country_id') : $object->country_id), 'country_id');
+ print $form->select_country((GETPOSTISSET('country_id') ? GETPOST('country_id') : $object->country_id), 'country_id', '', 0, 'minwidth300 widthcentpercentminusx');
if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionarySetup"), 1);
print ' | ';
@@ -1966,15 +1973,16 @@ else
// Phone / Fax
print '| '.$form->editfieldkey('Phone', 'phone', GETPOST('phone', 'alpha'), $object, 0).' | ';
- print ''.img_picto('', 'object_phoning').' | ';
+ print ''.img_picto('', 'object_phoning').' | ';
+ if ($conf->browser->layout == 'phone') print ' ';
print '| '.$form->editfieldkey('Fax', 'fax', GETPOST('fax', 'alpha'), $object, 0).' | ';
- print ''.img_picto('', 'object_phoning_fax').' | ';
+ print ''.img_picto('', 'object_phoning_fax').' | ';
// EMail / Web
print '| '.$form->editfieldkey('EMail', 'email', GETPOST('email', 'alpha'), $object, 0, 'string', '', (!empty($conf->global->SOCIETE_EMAIL_MANDATORY))).' | ';
- print ''.img_picto('', 'object_email').' | ';
+ print ''.img_picto('', 'object_email').' | ';
print '| '.$form->editfieldkey('Web', 'url', GETPOST('url', 'alpha'), $object, 0).' | ';
- print ''.img_picto('', 'globe').' | ';
+ print ''.img_picto('', 'globe').' | ';
if (!empty($conf->socialnetworks->enabled)) {
foreach ($socialnetworks as $key => $value) {
@@ -1990,36 +1998,9 @@ else
}
}
}
- // if (! empty($conf->socialnetworks->enabled))
- // {
- // // Skype
- // if (! empty($conf->global->SOCIALNETWORKS_SKYPE))
- // {
- // print '| '.$form->editfieldkey('Skype', 'skype', '', $object, 0).' | ';
- // print ' | ';
- // }
- // // Twitter
- // if (! empty($conf->global->SOCIALNETWORKS_TWITTER))
- // {
- // print '| '.$form->editfieldkey('Twitter', 'twitter', '', $object, 0).' | ';
- // print ' | ';
- // }
- // // Facebook
- // if (! empty($conf->global->SOCIALNETWORKS_FACEBOOK))
- // {
- // print '| '.$form->editfieldkey('Facebook', 'facebook', '', $object, 0).' | ';
- // print ' | ';
- // }
- // // LinkedIn
- // if (! empty($conf->global->SOCIALNETWORKS_LINKEDIN))
- // {
- // print '| '.$form->editfieldkey('LinkedIn', 'linkedin', '', $object, 0).' | ';
- // print ' | ';
- // }
- // }
// Prof ids
- $i = 1; $j = 0;
+ $i = 1; $j = 0; $NBCOLS = ($conf->browser->layout == 'phone' ? 1 : 2);
while ($i <= 6)
{
$idprof = $langs->transcountry('ProfId'.$i, $object->country_code);
@@ -2027,13 +2008,13 @@ else
{
$key = 'idprof'.$i;
- if (($j % 2) == 0) print '';
+ if (($j % $NBCOLS) == 0) print ' ';
$idprof_mandatory = 'SOCIETE_IDPROF'.($i).'_MANDATORY';
print '| '.$form->editfieldkey($idprof, $key, '', $object, 0, 'string', '', !(empty($conf->global->$idprof_mandatory) || !$object->isACompany())).' | ';
print $formcompany->get_input_id_prof($i, $key, $object->$key, $object->country_code);
print ' | ';
- if (($j % 2) == 1) print ' ';
+ if (($j % $NBCOLS) == ($NBCOLS - 1)) print '';
$j++;
}
$i++;
@@ -2058,7 +2039,7 @@ else
print '';
}
print '';
-
+ if ($conf->browser->layout == 'phone') print '';
print '| '.$form->editfieldkey($langs->transcountry("LocalTax2IsUsed", $mysoc->country_code), 'localtax2assuj_value', '', $object, 0).' | ';
print $form->selectyesno('localtax2assuj_value', $object->localtax2_assuj, 1);
if (!isOnlyOneLocalTax(2))
@@ -2132,6 +2113,7 @@ else
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 ' | ';
+ if ($conf->browser->layout == 'phone') print ' ';
print '| '.$form->editfieldkey('Staff', 'effectif_id', '', $object, 0).' | ';
print $form->selectarray("effectif_id", $formcompany->effectif_array(0), $object->effectif_id);
if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionarySetup"), 1);
|
|
|