';
- print '';
+ print '| ';
print $langs->trans('ProspectLevel');
print ' | ';
if ($action != 'editlevel' && $user->rights->societe->creer) {
@@ -683,10 +683,11 @@ if ($object->id > 0) {
}
print ' | ';
print " ";
- }
- print '';
- print ' ';
+ print ' ';
+ } else {
+ print ' ';
+ }
$boxstat = '';
@@ -695,7 +696,7 @@ if ($object->id > 0) {
// Lien recap
$boxstat .= ' ';
- $boxstat .= ' ';
+ $boxstat .= '';
$boxstat .= '| ';
if (isModEnabled("propal") && $user->rights->propal->lire) {
diff --git a/htdocs/core/class/html.formactions.class.php b/htdocs/core/class/html.formactions.class.php
index 63e705aa1f7..364a638e13f 100644
--- a/htdocs/core/class/html.formactions.class.php
+++ b/htdocs/core/class/html.formactions.class.php
@@ -142,7 +142,7 @@ class FormActions
$canedit = 0;
}
- print ajax_combobox('select'.$htmlname);
+ print ajax_combobox('select'.$htmlname, array(), 0, 0, 'resolve', '-1', $morecss);
if (empty($onlyselect)) {
print ' = 0) ? '' : ' disabled').'>';
diff --git a/htdocs/projet/class/project.class.php b/htdocs/projet/class/project.class.php
index 9213fc1470d..ccefdb4c600 100644
--- a/htdocs/projet/class/project.class.php
+++ b/htdocs/projet/class/project.class.php
@@ -2265,7 +2265,7 @@ class Project extends CommonObject
$this->user_creation = $cuser;
}
- if ($obj->fk_user_cloture) {
+ if (!empty($obj->fk_user_cloture)) {
$cluser = new User($this->db);
$cluser->fetch($obj->fk_user_cloture);
$this->user_cloture = $cluser;
diff --git a/htdocs/projet/element.php b/htdocs/projet/element.php
index f96f5737cf4..7bad7fd493d 100644
--- a/htdocs/projet/element.php
+++ b/htdocs/projet/element.php
@@ -376,8 +376,8 @@ $listofreferent = array(
'lang'=>'entrepot',
'buttonnew'=>'AddWarehouse',
'project_field'=>'fk_project',
- 'testnew'=>$user->rights->stock->creer,
- 'test'=>$conf->stock->enabled && $user->rights->stock->lire && !empty($conf->global->WAREHOUSE_ASK_WAREHOUSE_DURING_PROJECT)),
+ 'testnew'=>$user->hasRight('stock', 'creer'),
+ 'test'=>!empty($conf->stock->enabled) && $user->hasRight('stock', 'lire') && !empty($conf->global->WAREHOUSE_ASK_WAREHOUSE_DURING_PROJECT)),
'propal'=>array(
'name'=>"Proposals",
'title'=>"ListProposalsAssociatedProject",
@@ -387,8 +387,8 @@ $listofreferent = array(
'urlnew'=>DOL_URL_ROOT.'/comm/propal/card.php?action=create&origin=project&originid='.$id.'&socid='.$socid.'&backtopage='.urlencode($_SERVER['PHP_SELF'].'?id='.$id),
'lang'=>'propal',
'buttonnew'=>'AddProp',
- 'testnew'=>$user->rights->propal->creer,
- 'test'=>$conf->propal->enabled && $user->rights->propal->lire),
+ 'testnew'=>$user->hasRight('propal', 'creer'),
+ 'test'=>!empty($conf->propal->enabled) && $user->hasRight('propal', 'lire')),
'order'=>array(
'name'=>"CustomersOrders",
'title'=>"ListOrdersAssociatedProject",
@@ -398,8 +398,8 @@ $listofreferent = array(
'urlnew'=>DOL_URL_ROOT.'/commande/card.php?action=create&projectid='.$id.'&socid='.$socid.'&backtopage='.urlencode($_SERVER['PHP_SELF'].'?id='.$id),
'lang'=>'orders',
'buttonnew'=>'CreateOrder',
- 'testnew'=>$user->rights->commande->creer,
- 'test'=>$conf->commande->enabled && $user->rights->commande->lire),
+ 'testnew'=>$user->hasRight('commande', 'creer'),
+ 'test'=>!empty($conf->commande->enabled) && $user->hasRight('commande', 'lire')),
'invoice'=>array(
'name'=>"CustomersInvoices",
'title'=>"ListInvoicesAssociatedProject",
@@ -410,8 +410,8 @@ $listofreferent = array(
'urlnew'=>DOL_URL_ROOT.'/compta/facture/card.php?action=create&projectid='.$id.'&socid='.$socid.'&backtopage='.urlencode($_SERVER['PHP_SELF'].'?id='.$id),
'lang'=>'bills',
'buttonnew'=>'CreateBill',
- 'testnew'=>$user->rights->facture->creer,
- 'test'=>$conf->facture->enabled && $user->rights->facture->lire),
+ 'testnew'=>$user->hasRight('facture', 'creer'),
+ 'test'=>!empty($conf->facture->enabled) && $user->hasRight('facture', 'lire')),
'invoice_predefined'=>array(
'name'=>"PredefinedInvoices",
'title'=>"ListPredefinedInvoicesAssociatedProject",
@@ -421,8 +421,8 @@ $listofreferent = array(
'urlnew'=>DOL_URL_ROOT.'/compta/facture/card.php?action=create&projectid='.$id.'&socid='.$socid.'&backtopage='.urlencode($_SERVER['PHP_SELF'].'?id='.$id),
'lang'=>'bills',
'buttonnew'=>'CreateBill',
- 'testnew'=>$user->rights->facture->creer,
- 'test'=>$conf->facture->enabled && $user->rights->facture->lire),
+ 'testnew'=>$user->hasRight('facture', 'creer'),
+ 'test'=>!empty($conf->facture->enabled) && $user->hasRight('facture', 'lire')),
'proposal_supplier'=>array(
'name'=>"SuppliersProposals",
'title'=>"ListSupplierProposalsAssociatedProject",
@@ -432,8 +432,8 @@ $listofreferent = array(
'urlnew'=>DOL_URL_ROOT.'/supplier_proposal/card.php?action=create&projectid='.$id.'&backtopage='.urlencode($_SERVER['PHP_SELF'].'?id='.$id), // No socid parameter here, the socid is often the customer and we create a supplier object
'lang'=>'supplier_proposal',
'buttonnew'=>'AddSupplierProposal',
- 'testnew'=>$user->rights->supplier_proposal->creer,
- 'test'=>$conf->supplier_proposal->enabled && $user->rights->supplier_proposal->lire),
+ 'testnew'=>$user->hasRight('supplier_proposal', 'creer'),
+ 'test'=>!empty($conf->supplier_proposal->enabled) && $user->hasRight('supplier_proposal', 'lire')),
'order_supplier'=>array(
'name'=>"SuppliersOrders",
'title'=>"ListSupplierOrdersAssociatedProject",
@@ -443,8 +443,8 @@ $listofreferent = array(
'urlnew'=>DOL_URL_ROOT.'/fourn/commande/card.php?action=create&projectid='.$id.'&backtopage='.urlencode($_SERVER['PHP_SELF'].'?id='.$id), // No socid parameter here, the socid is often the customer and we create a supplier object
'lang'=>'suppliers',
'buttonnew'=>'AddSupplierOrder',
- 'testnew'=>($user->rights->fournisseur->commande->creer || $user->rights->supplier_order->creer),
- 'test'=>$conf->supplier_order->enabled && ($user->rights->fournisseur->commande->lire || $user->rights->supplier_order->lire)),
+ 'testnew'=>$user->hasRight('fournisseur', 'commande', 'creer') || $user->hasRight('supplier_order', 'creer'),
+ 'test'=>!empty($conf->supplier_order->enabled) && $user->hasRight('fournisseur', 'commande', 'lire') || $user->hasRight('supplier_order', 'lire')),
'invoice_supplier'=>array(
'name'=>"BillsSuppliers",
'title'=>"ListSupplierInvoicesAssociatedProject",
@@ -455,8 +455,8 @@ $listofreferent = array(
'urlnew'=>DOL_URL_ROOT.'/fourn/facture/card.php?action=create&projectid='.$id.'&backtopage='.urlencode($_SERVER['PHP_SELF'].'?id='.$id), // No socid parameter here, the socid is often the customer and we create a supplier object
'lang'=>'suppliers',
'buttonnew'=>'AddSupplierInvoice',
- 'testnew'=>($user->rights->fournisseur->facture->creer || $user->rights->supplier_invoice->creer),
- 'test'=>$conf->supplier_invoice->enabled && ($user->rights->fournisseur->facture->lire || $user->rights->supplier_invoice->lire)),
+ 'testnew'=>$user->hasRight('fournisseur', 'facture', 'creer') || $user->hasRight('supplier_invoice', 'creer'),
+ 'test'=>!empty($conf->supplier_invoice->enabled) && $user->hasRight('fournisseur', 'facture', 'lire') || $user->hasRight('supplier_invoice', 'lire')),
'contract'=>array(
'name'=>"Contracts",
'title'=>"ListContractAssociatedProject",
@@ -466,8 +466,8 @@ $listofreferent = array(
'urlnew'=>DOL_URL_ROOT.'/contrat/card.php?action=create&projectid='.$id.'&socid='.$socid.'&backtopage='.urlencode($_SERVER['PHP_SELF'].'?id='.$id),
'lang'=>'contracts',
'buttonnew'=>'AddContract',
- 'testnew'=>$user->rights->contrat->creer,
- 'test'=>$conf->contrat->enabled && $user->rights->contrat->lire),
+ 'testnew'=>$user->hasRight('contrat', 'creer'),
+ 'test'=>!empty($conf->contrat->enabled) && $user->hasRight('contrat', 'lire')),
'intervention'=>array(
'name'=>"Interventions",
'title'=>"ListFichinterAssociatedProject",
@@ -479,8 +479,8 @@ $listofreferent = array(
'urlnew'=>DOL_URL_ROOT.'/fichinter/card.php?action=create&origin=project&originid='.$id.'&socid='.$socid.'&backtopage='.urlencode($_SERVER['PHP_SELF'].'?id='.$id),
'lang'=>'interventions',
'buttonnew'=>'AddIntervention',
- 'testnew'=>$user->rights->ficheinter->creer,
- 'test'=>$conf->ficheinter->enabled && $user->rights->ficheinter->lire),
+ 'testnew'=>$user->hasRight('ficheinter', 'creer'),
+ 'test'=>!empty($conf->ficheinter->enabled) && $user->hasRight('ficheinter', 'lire')),
'shipping'=>array(
'name'=>"Shippings",
'title'=>"ListShippingAssociatedProject",
@@ -501,9 +501,9 @@ $listofreferent = array(
'urlnew'=>DOL_URL_ROOT.'/mrp/mo_card.php?action=create&origin=project&originid='.$id.'&socid='.$socid.'&backtopage='.urlencode($_SERVER['PHP_SELF'].'?id='.$id),
'lang'=>'mrp',
'buttonnew'=>'CreateMO',
- 'testnew'=>'$user->rights->mrp->write',
+ 'testnew'=>$user->hasRight('mrp', 'write'),
'project_field'=>'fk_project',
- 'test'=>$conf->mrp->enabled && $user->rights->mrp->read),
+ 'test'=>!empty($conf->mrp->enabled) && $user->hasRight('mrp', 'read')),
'trip'=>array(
'name'=>"TripsAndExpenses",
'title'=>"ListExpenseReportsAssociatedProject",
@@ -515,8 +515,8 @@ $listofreferent = array(
'urlnew'=>DOL_URL_ROOT.'/deplacement/card.php?action=create&projectid='.$id.'&socid='.$socid.'&backtopage='.urlencode($_SERVER['PHP_SELF'].'?id='.$id),
'lang'=>'trips',
'buttonnew'=>'AddTrip',
- 'testnew'=>$user->rights->deplacement->creer,
- 'test'=>$conf->deplacement->enabled && $user->rights->deplacement->lire),
+ 'testnew'=>$user->hasRight('deplacement', 'creer'),
+ 'test'=>!empty($conf->deplacement->enabled) && $user->hasRight('deplacement', 'lire')),
'expensereport'=>array(
'name'=>"ExpenseReports",
'title'=>"ListExpenseReportsAssociatedProject",
@@ -528,8 +528,8 @@ $listofreferent = array(
'urlnew'=>DOL_URL_ROOT.'/expensereport/card.php?action=create&projectid='.$id.'&socid='.$socid.'&backtopage='.urlencode($_SERVER['PHP_SELF'].'?id='.$id),
'lang'=>'trips',
'buttonnew'=>'AddTrip',
- 'testnew'=>$user->rights->expensereport->creer,
- 'test'=>$conf->expensereport->enabled && $user->rights->expensereport->lire),
+ 'testnew'=>$user->hasRight('expensereport', 'creer'),
+ 'test'=>!empty($conf->expensereport->enabled) && $user->hasRight('expensereport', 'lire')),
'donation'=>array(
'name'=>"Donation",
'title'=>"ListDonationsAssociatedProject",
@@ -541,8 +541,8 @@ $listofreferent = array(
'urlnew'=>DOL_URL_ROOT.'/don/card.php?action=create&projectid='.$id.'&socid='.$socid.'&backtopage='.urlencode($_SERVER['PHP_SELF'].'?id='.$id),
'lang'=>'donations',
'buttonnew'=>'AddDonation',
- 'testnew'=>$user->rights->don->creer,
- 'test'=>$conf->don->enabled && $user->rights->don->lire),
+ 'testnew'=>$user->hasRight('don', 'creer'),
+ 'test'=>!empty($conf->don->enabled) && $user->hasRight('don', 'lire')),
'loan'=>array(
'name'=>"Loan",
'title'=>"ListLoanAssociatedProject",
@@ -554,8 +554,8 @@ $listofreferent = array(
'urlnew'=>DOL_URL_ROOT.'/loan/card.php?action=create&projectid='.$id.'&socid='.$socid.'&backtopage='.urlencode($_SERVER['PHP_SELF'].'?id='.$id),
'lang'=>'loan',
'buttonnew'=>'AddLoan',
- 'testnew'=>$user->rights->loan->write,
- 'test'=>$conf->loan->enabled && $user->rights->loan->read),
+ 'testnew'=>$user->hasRight('loan', 'write'),
+ 'test'=>!empty($conf->loan->enabled) && $user->hasRight('loan', 'read')),
'chargesociales'=>array(
'name'=>"SocialContribution",
'title'=>"ListSocialContributionAssociatedProject",
@@ -567,8 +567,8 @@ $listofreferent = array(
'urlnew'=>DOL_URL_ROOT.'/compta/sociales/card.php?action=create&projectid='.$id.'&backtopage='.urlencode($_SERVER['PHP_SELF'].'?id='.$id),
'lang'=>'compta',
'buttonnew'=>'AddSocialContribution',
- 'testnew'=>$user->rights->tax->charges->lire,
- 'test'=>$conf->tax->enabled && $user->rights->tax->charges->lire),
+ 'testnew'=>$user->hasRight('tax', 'charges', 'lire'),
+ 'test'=>!empty($conf->tax->enabled) && $user->hasRight('tax', 'charges', 'lire')),
'project_task'=>array(
'name'=>"TaskTimeSpent",
'title'=>"ListTaskTimeUserProject",
@@ -579,8 +579,8 @@ $listofreferent = array(
'disableamount'=>0,
'urlnew'=>DOL_URL_ROOT.'/projet/tasks/time.php?withproject=1&action=createtime&projectid='.$id.'&backtopage='.urlencode($_SERVER['PHP_SELF'].'?id='.$id),
'buttonnew'=>'AddTimeSpent',
- 'testnew'=>$user->rights->projet->creer,
- 'test'=>($conf->project->enabled && $user->rights->projet->lire && empty($conf->global->PROJECT_HIDE_TASKS))),
+ 'testnew'=>$user->hasRight('project', 'creer'),
+ 'test'=>!empty($conf->project->enabled) && $user->hasRight('projet', 'lire') && !empty($conf->global->PROJECT_HIDE_TASKS)),
'stock_mouvement'=>array(
'name'=>"MouvementStockAssociated",
'title'=>"ListMouvementStockProject",
@@ -589,7 +589,7 @@ $listofreferent = array(
'table'=>'stock_mouvement',
'datefieldname'=>'datem',
'disableamount'=>0,
- 'test'=>($conf->stock->enabled && $user->rights->stock->mouvement->lire && !empty($conf->global->STOCK_MOVEMENT_INTO_PROJECT_OVERVIEW))),
+ 'test'=>!empty($conf->stock->enabled) && $user->hasRight('stock', 'mouvement', 'lire') && !empty($conf->global->STOCK_MOVEMENT_INTO_PROJECT_OVERVIEW)),
'salaries'=>array(
'name'=>"Salaries",
'title'=>"ListSalariesAssociatedProject",
@@ -601,8 +601,8 @@ $listofreferent = array(
'urlnew'=>DOL_URL_ROOT.'/salaries/card.php?action=create&projectid='.$id.'&backtopage='.urlencode($_SERVER['PHP_SELF'].'?id='.$id),
'lang'=>'salaries',
'buttonnew'=>'AddSalary',
- 'testnew'=>$user->rights->salaries->write,
- 'test'=>$conf->salaries->enabled && $user->rights->salaries->read),
+ 'testnew'=>$user->hasRight('salaries', 'write'),
+ 'test'=>!empty($conf->salaries->enabled) && $user->hasRight('salaries', 'read')),
'variouspayment'=>array(
'name'=>"VariousPayments",
'title'=>"ListVariousPaymentsAssociatedProject",
@@ -614,8 +614,8 @@ $listofreferent = array(
'urlnew'=>DOL_URL_ROOT.'/compta/bank/various_payment/card.php?action=create&projectid='.$id.'&backtopage='.urlencode($_SERVER['PHP_SELF'].'?id='.$id),
'lang'=>'banks',
'buttonnew'=>'AddVariousPayment',
- 'testnew'=>$user->rights->banque->modifier,
- 'test'=>$conf->banque->enabled && $user->rights->banque->lire && empty($conf->global->BANK_USE_OLD_VARIOUS_PAYMENT)),
+ 'testnew'=>$user->hasRight('banque', 'modifier'),
+ 'test'=>!empty($conf->banque->enabled) && $user->hasRight('banque', 'lire') && !empty($conf->global->BANK_USE_OLD_VARIOUS_PAYMENT)),
/* No need for this, available on dedicated tab "Agenda/Events"
'agenda'=>array(
'name'=>"Agenda",
diff --git a/htdocs/public/project/new.php b/htdocs/public/project/new.php
index 484b32f2416..c44002340d6 100644
--- a/htdocs/public/project/new.php
+++ b/htdocs/public/project/new.php
@@ -287,7 +287,6 @@ if (empty($reshook) && $action == 'add') {
$proj->ref = $defaultref;
$proj->statut = $proj::STATUS_DRAFT;
$proj->status = $proj::STATUS_DRAFT;
- $proj->email = GETPOST("email");
$proj->public = 1;
$proj->usage_opportunity = 1;
$proj->title = $langs->trans("LeadFromPublicForm");
diff --git a/htdocs/societe/card.php b/htdocs/societe/card.php
index 9e4c3eff260..87b2d58f230 100644
--- a/htdocs/societe/card.php
+++ b/htdocs/societe/card.php
@@ -1853,7 +1853,8 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
print ' | ';
print '| '.$form->editfieldkey('Currency', 'multicurrency_code', '', $object, 0).' | ';
print '';
- print $form->selectMultiCurrency((GETPOSTISSET('multicurrency_code') ? GETPOST('multicurrency_code') : ($object->multicurrency_code ? $object->multicurrency_code : $conf->currency)), 'multicurrency_code', 1);
+ print img_picto('', 'currency', 'class="pictofixedwidth"');
+ print $form->selectMultiCurrency((GETPOSTISSET('multicurrency_code') ? GETPOST('multicurrency_code') : ($object->multicurrency_code ? $object->multicurrency_code : $conf->currency)), 'multicurrency_code', 1, '', false, 'maxwidth150 widthcentpercentminusx');
print ' | ';
}
@@ -1893,7 +1894,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
// Accountancy codes
if (!empty($conf->global->ACCOUNTANCY_USE_PRODUCT_ACCOUNT_ON_THIRDPARTY)) {
- print '';
+ print '';
if (isModEnabled('accounting')) {
// Accountancy_code_sell
@@ -2301,13 +2302,13 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
print '';
// Zip / Town
- print '| '.$form->editfieldkey('Zip', 'zipcode', '', $object, 0).' | ';
+ print ' | | '.$form->editfieldkey('Zip', 'zipcode', '', $object, 0).' | browser->layout == 'phone' ? ' colspan="3"': '').'>';
print $formcompany->select_ziptown($object->zip, 'zipcode', array('town', 'selectcountry_id', 'state_id'), 0, 0, '', 'maxwidth100');
print ' | ';
if ($conf->browser->layout == 'phone') {
print ' ';
}
- print '| '.$form->editfieldkey('Town', 'town', '', $object, 0).' | ';
+ print ' | '.$form->editfieldkey('Town', 'town', '', $object, 0).' | browser->layout == 'phone' ? ' colspan="3"': '').'>';
print $formcompany->select_ziptown($object->town, 'town', array('zipcode', 'selectcountry_id', 'state_id'));
print $form->widgetForTranslation("town", $object, $permissiontoadd, 'string', 'alphanohtml', 'maxwidth100 quatrevingtpercent');
print ' | ';
@@ -2336,30 +2337,24 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
// Phone / Fax
print '| '.$form->editfieldkey('Phone', 'phone', GETPOST('phone', 'alpha'), $object, 0).' | ';
- print ''.img_picto('', 'object_phoning', 'class="pictofixedwidth"').' | ';
+ print 'browser->layout == 'phone' ? ' colspan="3"': '').'>'.img_picto('', 'object_phoning', 'class="pictofixedwidth"').' | ';
if ($conf->browser->layout == 'phone') {
print ' ';
}
print '| '.$form->editfieldkey('Fax', 'fax', GETPOST('fax', 'alpha'), $object, 0).' | ';
- print ''.img_picto('', 'object_phoning_fax', 'class="pictofixedwidth"').' | ';
+ print 'browser->layout == 'phone' ? ' colspan="3"': '').'>'.img_picto('', 'object_phoning_fax', 'class="pictofixedwidth"').' | ';
+ print '';
- // EMail / Web
+ // Web
print '| '.$form->editfieldkey('Web', 'url', GETPOST('url', 'alpha'), $object, 0).' | ';
- print ''.img_picto('', 'globe', 'class="pictofixedwidth"').' | ';
+ print ''.img_picto('', 'globe', 'class="pictofixedwidth"').' | ';
// EMail
print '| '.$form->editfieldkey('EMail', 'email', GETPOST('email', 'alpha'), $object, 0, 'string', '', (!empty($conf->global->SOCIETE_EMAIL_MANDATORY))).' | ';
- print '';
- print img_picto('', 'object_email');
- print ' | ';
- if (!empty($conf->mailing->enabled)) {
- $langs->load("mails");
- print ''.$langs->trans("NbOfEMailingsSend").' | ';
- print ''.$object->getNbOfEMailings().' | ';
- } else {
- print ' | ';
- }
- print ' ';
+ print '';
+ print img_picto('', 'object_email', 'class="pictofixedwidth"');
+ print '';
+ print ' | ';
// Unsubscribe
if (!empty($conf->mailing->enabled)) {
@@ -2559,7 +2554,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
// Default language
if (getDolGlobalInt('MAIN_MULTILANGS')) {
print '| '.$form->editfieldkey('DefaultLang', 'default_lang', '', $object, 0).' | '."\n";
- print img_picto('', 'language').$formadmin->select_language($object->default_lang, 'default_lang', 0, 0, 1);
+ print img_picto('', 'language', 'class="pictofixedwidth"').$formadmin->select_language($object->default_lang, 'default_lang', 0, null, '1', 0, 0, 'maxwidth300 widthcentpercentminusx');
print ' | ';
print ' ';
}
@@ -2585,7 +2580,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
foreach ($cats as $cat) {
$arrayselected[] = $cat->id;
}
- print img_picto('', 'category').$form->multiselectarray('custcats', $cate_arbo, $arrayselected, 0, 0, 'quatrevingtpercent widthcentpercentminusx', 0, 0);
+ print img_picto('', 'category', 'class="pictofixedwidth"').$form->multiselectarray('custcats', $cate_arbo, $arrayselected, 0, 0, 'quatrevingtpercent widthcentpercentminusx', 0, 0);
print "";
// Supplier
@@ -2599,7 +2594,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
foreach ($cats as $cat) {
$arrayselected[] = $cat->id;
}
- print img_picto('', 'category').$form->multiselectarray('suppcats', $cate_arbo, $arrayselected, 0, 0, 'quatrevingtpercent widthcentpercentminusx', 0, 0);
+ print img_picto('', 'category', 'class="pictofixedwidth"').$form->multiselectarray('suppcats', $cate_arbo, $arrayselected, 0, 0, 'quatrevingtpercent widthcentpercentminusx', 0, 0);
print "";
}
}
@@ -2609,7 +2604,8 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
print '';
print '| '.$form->editfieldkey('Currency', 'multicurrency_code', '', $object, 0).' | ';
print '';
- print $form->selectMultiCurrency((GETPOSTISSET('multicurrency_code') ? GETPOST('multicurrency_code') : ($object->multicurrency_code ? $object->multicurrency_code : $conf->currency)), 'multicurrency_code', 1);
+ print img_picto('', 'currency', 'class="pictofixedwidth"');
+ print $form->selectMultiCurrency((GETPOSTISSET('multicurrency_code') ? GETPOST('multicurrency_code') : ($object->multicurrency_code ? $object->multicurrency_code : $conf->currency)), 'multicurrency_code', 1, '', false, 'maxwidth150 widthcentpercentminusx');
print ' | ';
}
@@ -2622,7 +2618,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
print '';
print '| '.$langs->trans('ParentCompany').' | ';
print '';
- print img_picto('', 'company', 'class="paddingrightonly"');
+ print img_picto('', 'company', 'class="pictofixedwidth"');
print $form->select_company(GETPOST('parent_company_id') ? GETPOST('parent_company_id') : $object->parent, 'parent_company_id', '', 'SelectThirdParty', 0, 0, null, 0, 'minwidth300 maxwidth500 widthcentpercentminusxx');
print ' | ';
}
@@ -2674,7 +2670,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
if (empty($arrayselected)) {
$arrayselected = $object->getSalesRepresentatives($user, 1);
}
- print img_picto('', 'user').$form->multiselectarray('commercial', $userlist, $arrayselected, 0, 0, 'quatrevingtpercent widthcentpercentminusx', 0, 0, '', '', '', 1);
+ print img_picto('', 'user', 'class="pictofixedwidth"').$form->multiselectarray('commercial', $userlist, $arrayselected, 0, 0, 'quatrevingtpercent widthcentpercentminusx', 0, 0, '', '', '', 1);
print '';
print ' ';
@@ -3061,13 +3057,6 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
}
print '';
- // Email
- if (!empty($conf->mailing->enabled)) {
- $langs->load("mails");
- print '| '.$langs->trans("NbOfEMailingsSend").' | ';
- print ''.$object->getNbOfEMailings().' | ';
- }
-
// Unsubscribe opt-out
if (!empty($conf->mailing->enabled)) {
$result = $object->getNoEmail();
@@ -3080,6 +3069,10 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
} else {
print ''.$langs->trans("EMailNotDefined").'';
}
+
+ $langs->load("mails");
+ print ' '.$object->getNbOfEMailings().'';
+
print '';
}
diff --git a/htdocs/societe/price.php b/htdocs/societe/price.php
index b4e60cf0051..af2898a8556 100644
--- a/htdocs/societe/price.php
+++ b/htdocs/societe/price.php
@@ -215,6 +215,11 @@ print '';
print ' ';
print ' ';
+// Type Prospect/Customer/Supplier
+print '| '.$langs->trans('NatureOfThirdParty').' | ';
+print $object->getTypeUrl(1);
+print ' | ';
+
if (!empty($conf->global->SOCIETE_USEPREFIX)) { // Old not used prefix field
print '| '.$langs->trans('Prefix').' | '.$object->prefix_comm.' | ';
}
diff --git a/htdocs/theme/eldy/global.inc.php b/htdocs/theme/eldy/global.inc.php
index 7736698a609..73971ca5480 100644
--- a/htdocs/theme/eldy/global.inc.php
+++ b/htdocs/theme/eldy/global.inc.php
@@ -1,6 +1,9 @@
-
+}
+
+?>
/* |
|