';
+ }
+
+ $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 ($moreforfilter)
+ {
+ print '
';
+ print $moreforfilter;
+ print '
';
+ }
+
+ $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";
+
+ // Lines with input filters
+ print '
';
+ if (! empty($arrayfields['p.ref']['checked']))
+ {
+ print '
';
+ // Extra fields
+ include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_input.tpl.php';
+ // Fields from hook
+ $parameters=array('arrayfields'=>$arrayfields);
+ $reshook=$hookmanager->executeHooks('printFieldListOption',$parameters); // Note that $action and $object may have been modified by hook
+ print $hookmanager->resPrint;
+ // Date creation
+ if (! empty($arrayfields['p.datec']['checked']))
+ {
+ print '
';
+ print '
';
+ }
+ // Date modification
+ if (! empty($arrayfields['p.tms']['checked']))
+ {
+ print '
';
- }
- $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;
+ print '
';
- if ($moreforfilter)
- {
- print '
';
- print $moreforfilter;
- print '
';
- }
-
- $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 '
';
+ if (! empty($arrayfields['p.accountancy_code_sell']['checked']))
+ {
+ print '
'.$obj->accountancy_code_sell.'
';
+ if (! $i) $totalarray['nbfield']++;
+ }
// Accountancy code sell
- if (! empty($arrayfields['p.accountancy_code_buy']['checked'])) print '
';
+ if (! empty($arrayfields['p.accountancy_code_buy']['checked']))
+ {
+ print '
'.$obj->accountancy_code_buy.'
';
+ if (! $i) $totalarray['nbfield']++;
+ }
// Extra fields
- include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_input.tpl.php';
+ include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_print_fields.tpl.php';
// Fields from hook
- $parameters=array('arrayfields'=>$arrayfields);
- $reshook=$hookmanager->executeHooks('printFieldListOption',$parameters); // Note that $action and $object may have been modified by hook
+ $parameters=array('arrayfields'=>$arrayfields, 'obj'=>$obj);
+ $reshook=$hookmanager->executeHooks('printFieldListValue',$parameters); // Note that $action and $object may have been modified by hook
print $hookmanager->resPrint;
// Date creation
if (! empty($arrayfields['p.datec']['checked']))
{
- print '
';
+ if ($massactionbutton || $massaction) // If we are in select mode (massactionbutton defined) or if we have already selected and sent an action ($massaction) defined
+ {
+ $selected=0;
+ if (in_array($obj->rowid, $arrayofselected)) $selected=1;
+ print '';
+ }
+ print '