41function report_header($reportname, $notused, $period, $periodlink, $description, $builddate, $exportlink =
'', $moreparam = array(), $calcmode =
'', $varlink =
'')
45 print
"\n\n<!-- start banner of report -->\n";
47 if (!empty($varlink)) {
48 $varlink =
'?'.$varlink;
51 $title = $langs->trans(
"Report");
53 print_barre_liste($title, 0,
'',
'',
'',
'',
'', -1,
'',
'generic', 0,
'',
'', -1, 1, 1);
55 print
'<form method="POST" id="searchFormList" action="'.$_SERVER[
"PHP_SELF"].$varlink.
'">'.
"\n";
56 print
'<input type="hidden" name="token" value="'.newToken().
'">'.
"\n";
60 foreach ($moreparam as $key => $value) {
61 print
'<input type="hidden" name="'.$key.
'" value="'.$value.
'">'.
"\n";
64 print
'<table class="border tableforfield centpercent">'.
"\n";
66 $variant = ($periodlink || $exportlink);
70 print
'<td width="150">'.$langs->trans(
"ReportName").
'</td>';
82 print
'<td width="150">'.$langs->trans(
"CalculationMode").
'</td>';
94 print
'<td>'.$langs->trans(
"ReportPeriod").
'</td>';
100 print
'<td class="nowraponall">'.$periodlink.
'</td>';
107 print
'<td>'.$langs->trans(
"ReportDescription").
'</td>';
108 print
'<td>'.$description.
'</td>';
116 print
'<td>'.$langs->trans(
"GeneratedOn").
'</td>';
121 print
'<td>'.($exportlink ? $langs->trans(
"Export").
': '.$exportlink :
'').
'</td>';
125 print
'</table>'.
"\n";
129 print
'<div class="center"><input type="submit" class="button" name="submit" value="'.$langs->trans(
"Refresh").
'"></div>';
134 print
"\n<!-- end banner of report -->\n\n";
print_barre_liste($title, $page, $file, $options='', $sortfield='', $sortorder='', $morehtmlcenter='', $num=-1, $totalnboflines='', $picto='generic', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limit=-1, $selectlimitsuffix=0, $hidenavigation=0, $pagenavastextinput=0, $morehtmlrightbeforearrow='')
Print a title with navigation controls for pagination.
dol_get_fiche_head($links=array(), $active='', $title='', $notab=0, $picto='', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limittoshow=0, $moretabssuffix='', $dragdropfile=0)
Show tabs of a record.
dol_get_fiche_end($notab=0)
Return tab footer of a card.
dol_print_date($time, $format='', $tzoutput='auto', $outputlangs=null, $encodetooutput=false)
Output date in a string format according to outputlangs (or langs if not defined).
report_header($reportname, $notused, $period, $periodlink, $description, $builddate, $exportlink='', $moreparam=array(), $calcmode='', $varlink='')
Show header of a report.