';
$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();
$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 '';
@@ -400,7 +400,7 @@ if ($resql)
$varpage=empty($contextpage)?$_SERVER["PHP_SELF"]:$contextpage;
$selectedfields=$form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage); // This also change content of $arrayfields
-
+
print '
';
print '
'."\n";
print '';
@@ -418,9 +418,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($extralabels[$key],$_SERVER["PHP_SELF"],"ef.".$key,"",$param,($align?'align="'.$align.'"':''),$sortfield,$sortorder);
@@ -493,7 +493,7 @@ if ($resql)
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 ' | ';
- }
+ }
if (! empty($arrayfields['sale_representative']['checked']))
{
print ' | ';
@@ -548,7 +548,7 @@ if ($resql)
{
print '';
print ' | ';
- }
+ }
// Status
if (! empty($arrayfields['status']['checked']))
{
@@ -564,12 +564,12 @@ if ($resql)
while ($i < min($num,$limit))
{
$obj = $db->fetch_object($resql);
-
+
$contracttmp->ref=$obj->ref;
$contracttmp->id=$obj->rowid;
$contracttmp->ref_customer=$obj->ref_customer;
$contracttmp->ref_supplier=$obj->ref_supplier;
-
+
$var=!$var;
print '
';
if (! empty($arrayfields['c.ref']['checked']))
@@ -585,15 +585,15 @@ if ($resql)
}
print '';
}
- if (! empty($arrayfields['c.ref_customer']['checked']))
+ if (! empty($arrayfields['c.ref_customer']['checked']))
{
print '| '.$obj->ref_customer.' | ';
}
- if (! empty($arrayfields['c.ref_supplier']['checked']))
+ if (! empty($arrayfields['c.ref_supplier']['checked']))
{
print ''.$obj->ref_supplier.' | ';
}
- if (! empty($arrayfields['s.nom']['checked']))
+ if (! empty($arrayfields['s.nom']['checked']))
{
print ''.img_object($langs->trans("ShowCompany"),"company").' '.$obj->name.' | ';
}
@@ -636,7 +636,7 @@ if ($resql)
print $typenArray[$obj->typent_code];
print '';
if (! $i) $totalarray['nbfield']++;
- }
+ }
if (! empty($arrayfields['sale_representative']['checked']))
{
// Sales representatives
@@ -720,7 +720,7 @@ if ($resql)
if (! $i) $totalarray['nbfield']++;
}
// Status
- if (! empty($arrayfields['status']['checked']))
+ if (! empty($arrayfields['status']['checked']))
{
print ''.($obj->nb_initial>0?$obj->nb_initial:'').' | ';
print ''.($obj->nb_running>0?$obj->nb_running:'').' | ';
@@ -737,7 +737,7 @@ if ($resql)
}
print '';
if (! $i) $totalarray['nbfield']++;
-
+
print "
\n";
$i++;
}
@@ -745,7 +745,7 @@ if ($resql)
print '
';
print '
';
-
+
print '';
}
else
diff --git a/htdocs/contrat/services.php b/htdocs/contrat/services.php
index 42ff4b04e83..f21c476fe35 100644
--- a/htdocs/contrat/services.php
+++ b/htdocs/contrat/services.php
@@ -331,7 +331,7 @@ if ($conf->categorie->enabled && ($user->rights->produit->lire || $user->rights-
$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.='
';
}
@@ -515,23 +515,23 @@ $var=True; $i=0;
while ($i < min($num,$limit))
{
$obj = $db->fetch_object($resql);
-
+
$contractstatic->id=$obj->cid;
$contractstatic->ref=$obj->ref?$obj->ref:$obj->cid;
-
+
$var=!$var;
print "
";
-
+
// Ref
- if (! empty($arrayfields['c.ref']['checked']))
+ if (! empty($arrayfields['c.ref']['checked']))
{
print '| ';
print $contractstatic->getNomUrl(1,16);
print ' | ';
}
// Service
- if (! empty($arrayfields['p.description']['checked']))
+ if (! empty($arrayfields['p.description']['checked']))
{
print '';
if ($obj->pid)
@@ -551,9 +551,9 @@ while ($i < min($num,$limit))
}
print ' | ';
}
-
+
// Third party
- if (! empty($arrayfields['s.nom']['checked']))
+ if (! empty($arrayfields['s.nom']['checked']))
{
print '';
$companystatic->id=$obj->socid;
@@ -562,9 +562,9 @@ while ($i < min($num,$limit))
print $companystatic->getNomUrl(1,'customer',28);
print ' | ';
}
-
+
// Start date
- if (! empty($arrayfields['cd.date_ouverture_prevue']['checked']))
+ if (! empty($arrayfields['cd.date_ouverture_prevue']['checked']))
{
print '';
print ($obj->date_ouverture_prevue?dol_print_date($db->jdate($obj->date_ouverture_prevue)):' ');
@@ -573,15 +573,15 @@ while ($i < min($num,$limit))
else print ' ';
print ' | ';
}
- if (! empty($arrayfields['cd.date_ouverture']['checked']))
+ if (! empty($arrayfields['cd.date_ouverture']['checked']))
{
print ''.($obj->date_ouverture?dol_print_date($db->jdate($obj->date_ouverture)):' ').' | ';
}
// End date
- if (! empty($arrayfields['cd.date_fin_validite']['checked']))
+ if (! empty($arrayfields['cd.date_fin_validite']['checked']))
{
print ''.($obj->date_fin_validite?dol_print_date($db->jdate($obj->date_fin_validite)):' ');
- if ($obj->date_fin_validite && $db->jdate($obj->date_fin_validite) < ($now - $conf->contrat->services->expires->warning_delay) && $obj->statut < 5)
+ if ($obj->date_fin_validite && $db->jdate($obj->date_fin_validite) < ($now - $conf->contrat->services->expires->warning_delay) && $obj->statut < 5)
{
$warning_delay=$conf->contrat->services->expires->warning_delay / 3600 / 24;
$textlate = $langs->trans("Late").' = '.$langs->trans("DateReference").' > '.$langs->trans("DateToday").' '.(ceil($warning_delay) >= 0 ? '+' : '').ceil($warning_delay).' '.$langs->trans("days");
@@ -590,7 +590,7 @@ while ($i < min($num,$limit))
else print ' ';
print ' | ';
}
- if (! empty($arrayfields['cd.date_cloture']['checked']))
+ if (! empty($arrayfields['cd.date_cloture']['checked']))
{
print ''.dol_print_date($db->jdate($obj->date_cloture)).' | ';
}
@@ -657,7 +657,7 @@ while ($i < min($num,$limit))
}
print '';
if (! $i) $totalarray['nbfield']++;
-
+
print "
\n";
$i++;
}
diff --git a/htdocs/fourn/commande/list.php b/htdocs/fourn/commande/list.php
index 42773058471..5998cab9343 100644
--- a/htdocs/fourn/commande/list.php
+++ b/htdocs/fourn/commande/list.php
@@ -475,7 +475,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();
@@ -719,7 +719,7 @@ if ($resql)
if (! empty($arrayfields['cf.ref']['checked']))
{
print '
';
-
+
print '';
// Picto + Ref
print '| ';
@@ -734,7 +734,7 @@ if ($resql)
$filedir=$conf->fournisseur->dir_output.'/commande' . '/' . dol_sanitizeFileName($obj->ref);
print $formfile->getDocumentsLink($objectstatic->element, $filename, $filedir);
print ' | ';
-
+
print ' | '."\n";
if (! $i) $totalarray['nbfield']++;
}
diff --git a/htdocs/fourn/facture/list.php b/htdocs/fourn/facture/list.php
index 8022eb7ef17..118ef3df3b1 100644
--- a/htdocs/fourn/facture/list.php
+++ b/htdocs/fourn/facture/list.php
@@ -232,7 +232,7 @@ if (empty($reshook))
}
-
+
/*
* View
*/
@@ -389,7 +389,7 @@ if ($resql)
$num = $db->num_rows($resql);
$arrayofselected=is_array($toselect)?$toselect:array();
-
+
if ($socid)
{
$soc = new Societe($db);
@@ -424,9 +424,9 @@ if ($resql)
$tmpkey=preg_replace('/search_options_/','',$key);
if ($val != '') $param.='&search_options_'.$tmpkey.'='.urlencode($val);
}
-
+
$massactionbutton=$form->selectMassAction('', $massaction == 'presend' ? array() : array('presend'=>$langs->trans("SendByMail"), 'builddoc'=>$langs->trans("PDFMerge")));
-
+
$i = 0;
print '
\n";