';
$moreforfilter.=$langs->trans('ThirdPartiesOfSaleRepresentative'). ': ';
- $moreforfilter.=$formother->select_salesrepresentatives($search_sale, 'search_sale', $user, 0, 1, 'maxwidth300');
+ $moreforfilter.=$formother->select_salesrepresentatives($search_sale, 'search_sale', $user, 0, 1, 'maxwidth200');
$moreforfilter.='
';
}
// If the user can view prospects other than his'
@@ -533,7 +533,7 @@ if ($resql)
{
$moreforfilter.='';
$moreforfilter.=$langs->trans('LinkedToSpecificUsers'). ': ';
- $moreforfilter.=$form->select_dolusers($search_user, 'search_user', 1, '', 0, '', '', 0, 0, 0, '', 0, '', 'maxwidth300');
+ $moreforfilter.=$form->select_dolusers($search_user, 'search_user', 1, '', 0, '', '', 0, 0, 0, '', 0, '', 'maxwidth200');
$moreforfilter.='
';
}
// If the user can view products
@@ -550,7 +550,7 @@ if ($resql)
$reshook=$hookmanager->executeHooks('printFieldPreListTitle',$parameters); // Note that $action and $object may have been modified by hook
if (empty($reshook)) $moreforfilter .= $hookmanager->resPrint;
else $moreforfilter = $hookmanager->resPrint;
-
+
if (! empty($moreforfilter))
{
print '';
@@ -561,12 +561,12 @@ if ($resql)
$varpage=empty($contextpage)?$_SERVER["PHP_SELF"]:$contextpage;
$selectedfields=$form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage); // This also change content of $arrayfields
if ($massactionbutton) $selectedfields.=$form->showCheckAddButtons('checkforselect', 1);
-
+
print '
';
print '
'."\n";
print '';
- if (! empty($arrayfields['p.ref']['checked']))
+ if (! empty($arrayfields['p.ref']['checked']))
{
print '';
print ' ';
@@ -608,7 +608,7 @@ if ($resql)
print ' ';
}
// Date
- if (! empty($arrayfields['p.date']['checked']))
+ if (! empty($arrayfields['p.date']['checked']))
{
print '';
//print $langs->trans('Month').': ';
@@ -620,7 +620,7 @@ if ($resql)
print ' ';
}
// Date end
- if (! empty($arrayfields['p.fin_validite']['checked']))
+ if (! empty($arrayfields['p.fin_validite']['checked']))
{
print ' ';
}
@@ -703,10 +703,10 @@ if ($resql)
$searchpicto=$form->showFilterButtons();
print $searchpicto;
print '';
-
+
print " \n";
-
+
// Fields title
print '';
if (! empty($arrayfields['p.ref']['checked'])) print_liste_field_titre($arrayfields['p.ref']['label'],$_SERVER["PHP_SELF"],'p.ref','',$param,'',$sortfield,$sortorder);
@@ -726,9 +726,9 @@ if ($resql)
// Extra fields
if (is_array($extrafields->attribute_label) && count($extrafields->attribute_label))
{
- foreach($extrafields->attribute_label as $key => $val)
+ foreach($extrafields->attribute_label as $key => $val)
{
- if (! empty($arrayfields["ef.".$key]['checked']))
+ if (! empty($arrayfields["ef.".$key]['checked']))
{
$align=$extrafields->getAlignFlag($key);
print_liste_field_titre($langs->trans($extralabels[$key]),$_SERVER["PHP_SELF"],"ef.".$key,"",$param,($align?'align="'.$align.'"':''),$sortfield,$sortorder);
@@ -744,24 +744,24 @@ if ($resql)
if (! empty($arrayfields['p.fk_statut']['checked'])) print_liste_field_titre($arrayfields['p.fk_statut']['label'],$_SERVER["PHP_SELF"],"p.fk_statut","",$param,'align="right"',$sortfield,$sortorder);
print_liste_field_titre($selectedfields, $_SERVER["PHP_SELF"],"",'','','align="center"',$sortfield,$sortorder,'maxwidthsearch ');
print ' '."\n";
-
+
$now = dol_now();
$i=0;
$totalarray=array();
while ($i < min($num,$limit))
{
$obj = $db->fetch_object($resql);
-
-
+
+
$objectstatic->id=$obj->rowid;
$objectstatic->ref=$obj->ref;
-
+
print '';
-
+
if (! empty($arrayfields['p.ref']['checked']))
{
print '';
-
+
print '';
// Picto + Ref
print '';
@@ -790,11 +790,11 @@ if ($resql)
$urlsource=$_SERVER['PHP_SELF'].'?id='.$obj->rowid;
print $formfile->getDocumentsLink($objectstatic->element, $filename, $filedir);
print '
';
-
+
print " \n";
if (! $i) $totalarray['nbfield']++;
}
-
+
if (! empty($arrayfields['p.ref_client']['checked']))
{
// Customer ref
@@ -803,12 +803,12 @@ if ($resql)
print '';
if (! $i) $totalarray['nbfield']++;
}
-
+
$companystatic->id=$obj->socid;
$companystatic->name=$obj->name;
$companystatic->client=$obj->client;
$companystatic->code_client=$obj->code_client;
-
+
// Thirdparty
if (! empty($arrayfields['s.nom']['checked']))
{
@@ -817,7 +817,7 @@ if ($resql)
print '';
if (! $i) $totalarray['nbfield']++;
}
-
+
// Town
if (! empty($arrayfields['s.town']['checked']))
{
@@ -858,7 +858,7 @@ if ($resql)
print '';
if (! $i) $totalarray['nbfield']++;
}
-
+
// Date proposal
if (! empty($arrayfields['p.date']['checked']))
{
@@ -867,7 +867,7 @@ if ($resql)
print "\n";
if (! $i) $totalarray['nbfield']++;
}
-
+
// Date end validity
if (! empty($arrayfields['p.fin_validite']['checked']))
{
@@ -882,7 +882,7 @@ if ($resql)
}
if (! $i) $totalarray['nbfield']++;
}
-
+
// Amount HT
if (! empty($arrayfields['p.total_ht']['checked']))
{
@@ -907,7 +907,7 @@ if ($resql)
if (! $i) $totalarray['totalttcfield']=$totalarray['nbfield'];
$totalarray['totalttc'] += $obj->total_ttc;
}
-
+
$userstatic->id=$obj->fk_user_author;
$userstatic->login=$obj->login;
@@ -920,7 +920,7 @@ if ($resql)
print "\n";
if (! $i) $totalarray['nbfield']++;
}
-
+
// Extra fields
if (is_array($extrafields->attribute_label) && count($extrafields->attribute_label))
{
@@ -1008,16 +1008,16 @@ if ($resql)
}
$db->free($resql);
-
+
$parameters=array('arrayfields'=>$arrayfields, 'sql'=>$sql);
$reshook=$hookmanager->executeHooks('printFieldListFooter',$parameters); // Note that $action and $object may have been modified by hook
print $hookmanager->resPrint;
-
+
print '
'."\n";
print '
'."\n";
print ''."\n";
-
+
if ($massaction == 'builddoc' || $action == 'remove_file' || $show_files)
{
/*
@@ -1025,18 +1025,18 @@ if ($resql)
*/
$urlsource=$_SERVER['PHP_SELF'].'?sortfield='.$sortfield.'&sortorder='.$sortorder;
$urlsource.=str_replace('&','&',$param);
-
+
$filedir=$diroutputmassaction;
$genallowed=$user->rights->propal->lire;
$delallowed=$user->rights->propal->lire;
-
+
print $formfile->showdocuments('massfilesarea_proposals','',$filedir,$urlsource,0,$delallowed,'',1,1,0,48,1,$param,'','');
}
else
{
print '
'.$langs->trans("ShowTempMassFilesArea").' ';
}
-
+
}
else
{
diff --git a/htdocs/commande/list.php b/htdocs/commande/list.php
index c49c1b18a4a..daefc3c4cce 100644
--- a/htdocs/commande/list.php
+++ b/htdocs/commande/list.php
@@ -803,7 +803,7 @@ if ($resql)
$langs->load("commercial");
$moreforfilter.='
';
$moreforfilter.=$langs->trans('ThirdPartiesOfSaleRepresentative'). ': ';
- $moreforfilter.=$formother->select_salesrepresentatives($search_sale, 'search_sale', $user, 0, 1, 'maxwidth300');
+ $moreforfilter.=$formother->select_salesrepresentatives($search_sale, 'search_sale', $user, 0, 1, 'maxwidth200');
$moreforfilter.='
';
}
// If the user can view other users
@@ -811,7 +811,7 @@ if ($resql)
{
$moreforfilter.='
';
$moreforfilter.=$langs->trans('LinkedToSpecificUsers'). ': ';
- $moreforfilter.=$form->select_dolusers($search_user, 'search_user', 1, '', 0, '', '', 0, 0, 0, '', 0, '', 'maxwidth300');
+ $moreforfilter.=$form->select_dolusers($search_user, 'search_user', 1, '', 0, '', '', 0, 0, 0, '', 0, '', 'maxwidth200');
$moreforfilter.='
';
}
// If the user can view prospects other than his'
@@ -821,7 +821,7 @@ if ($resql)
$moreforfilter.='
';
$moreforfilter.=$langs->trans('IncludingProductWithTag'). ': ';
$cate_arbo = $form->select_all_categories(Categorie::TYPE_PRODUCT, null, 'parent', null, null, 1);
- $moreforfilter.=$form->selectarray('search_product_category', $cate_arbo, $search_product_category, 1, 0, 0, '', 0, 0, 0, 0, '', 1);
+ $moreforfilter.=$form->selectarray('search_product_category', $cate_arbo, $search_product_category, 1, 0, 0, '', 0, 0, 0, 0, 'maxwidth300', 1);
$moreforfilter.='
';
}
$parameters=array();
diff --git a/htdocs/compta/facture/card.php b/htdocs/compta/facture/card.php
index c4bf83293de..223acb91fb3 100644
--- a/htdocs/compta/facture/card.php
+++ b/htdocs/compta/facture/card.php
@@ -3426,7 +3426,7 @@ else if ($id > 0 || ! empty($ref))
print $object->situation_counter;
print '';
- print '
';
+ print ' ';
$prevsits_total_amount = 0;
foreach ($prevsits as $situation) {
@@ -3434,9 +3434,9 @@ else if ($id > 0 || ! empty($ref))
}
$prevsits_total_amount += $object->total_ht;
- print price($prevsits_total_amount);
- print ' ';
- print '
' . $langs->trans('Currency' . $conf->currency) . ' ';
+ print price($prevsits_total_amount, 0, $langs, 1, -1, -1, (!empty($object->multicurrency_code) ? $object->multicurrency_code : $conf->currency) );
+
+ print '';
// Previous situation(s) deduction(s)
for ($i = 0; $i < $cprevsits; $i++) {
@@ -3447,10 +3447,9 @@ else if ($id > 0 || ! empty($ref))
print $prevsits[$i]->situation_counter;
print '';
- print '
';
- print '- ' . price($prevsits[$i]->total_ht);
- print ' ';
- print '
' . $langs->trans('Currency' . $conf->currency) . ' ';
+ print '
';
+ print '- ' . price($prevsits[$i]->total_ht, 0, $langs, 1, -1, -1, (!empty($object->multicurrency_code) ? $object->multicurrency_code : $conf->currency) );
+ print ' ';
}
}
}
diff --git a/htdocs/compta/facture/list.php b/htdocs/compta/facture/list.php
index cf037942324..2716e3a87b1 100644
--- a/htdocs/compta/facture/list.php
+++ b/htdocs/compta/facture/list.php
@@ -191,7 +191,7 @@ if ($reshook < 0) setEventMessages($hookmanager->error, $hookmanager->errors, 'e
include DOL_DOCUMENT_ROOT.'/core/actions_changeselectedfields.inc.php';
// Do we click on purge search criteria ?
-if (GETPOST("button_removefilter_x") || GETPOST("button_removefilter") || GETPOST("button_removefilter.x")) // Both test are required to be compatible with all browsers
+if (GETPOST("button_removefilter_x") || GETPOST("button_removefilter") || GETPOST("button_removefilter.x")) // All tests are required to be compatible with all browsers
{
$search_user='';
$search_sale='';
@@ -717,7 +717,7 @@ if ($resql)
$langs->load("commercial");
$moreforfilter.='
';
$moreforfilter.=$langs->trans('ThirdPartiesOfSaleRepresentative'). ': ';
- $moreforfilter.=$formother->select_salesrepresentatives($search_sale, 'search_sale', $user, 0, 1, 'maxwidth300');
+ $moreforfilter.=$formother->select_salesrepresentatives($search_sale, 'search_sale', $user, 0, 1, 'maxwidth200');
$moreforfilter.='
';
}
// If the user can view prospects other than his'
@@ -725,7 +725,7 @@ if ($resql)
{
$moreforfilter.='
';
$moreforfilter.=$langs->trans('LinkedToSpecificUsers'). ': ';
- $moreforfilter.=$form->select_dolusers($search_user, 'search_user', 1, '', 0, '', '', 0, 0, 0, '', 0, '', 'maxwidth300');
+ $moreforfilter.=$form->select_dolusers($search_user, 'search_user', 1, '', 0, '', '', 0, 0, 0, '', 0, '', 'maxwidth200');
$moreforfilter.='
';
}
// If the user can view prospects other than his'
@@ -735,7 +735,7 @@ if ($resql)
$moreforfilter.='
';
$moreforfilter.=$langs->trans('IncludingProductWithTag'). ': ';
$cate_arbo = $form->select_all_categories(Categorie::TYPE_PRODUCT, null, 'parent', null, null, 1);
- $moreforfilter.=$form->selectarray('search_product_category', $cate_arbo, $search_product_category, 1, 0, 0, '', 0, 0, 0, 0, '', 1);
+ $moreforfilter.=$form->selectarray('search_product_category', $cate_arbo, $search_product_category, 1, 0, 0, '', 0, 0, 0, 0, 'maxwidth300', 1);
$moreforfilter.='
';
}
$parameters=array();
diff --git a/htdocs/contrat/list.php b/htdocs/contrat/list.php
index 29e13412892..a82535bfbb7 100644
--- a/htdocs/contrat/list.php
+++ b/htdocs/contrat/list.php
@@ -305,7 +305,7 @@ if ($resql)
$i = 0;
$arrayofselected=is_array($toselect)?$toselect:array();
-
+
$param='';
if (! empty($contextpage) && $contextpage != $_SERVER["PHP_SELF"]) $param.='&contextpage='.$contextpage;
if ($limit > 0 && $limit != $conf->liste_limit) $param.='&limit='.$limit;
@@ -323,7 +323,7 @@ if ($resql)
$tmpkey=preg_replace('/search_options_/','',$key);
if ($val != '') $param.='&search_options_'.$tmpkey.'='.urlencode($val);
}
-
+
// List of mass actions available
$arrayofmassactions = array(
//'presend'=>$langs->trans("SendByMail"),
@@ -332,7 +332,7 @@ if ($resql)
if ($user->rights->contrat->supprimer) $arrayofmassactions['delete']=$langs->trans("Delete");
if ($massaction == 'presend') $arrayofmassactions=array();
$massactionbutton=$form->selectMassAction('', $arrayofmassactions);
-
+
print '