43function report_header($reportname, $notused, $period, $periodlink, $description, $builddate, $exportlink =
'', $moreparam = array(), $calcmode =
'', $varlink =
'')
47 print
"\n\n<!-- start banner of report -->\n";
49 if (!empty($varlink)) {
50 $varlink =
'?'.$varlink;
53 $title = $langs->trans(
"Report");
55 print_barre_liste($title, 0,
'',
'',
'',
'',
'', -1,
'',
'generic', 0,
'',
'', -1, 1, 1);
57 print
'<form method="POST" id="searchFormList" action="'.$_SERVER[
"PHP_SELF"].$varlink.
'">'.
"\n";
58 print
'<input type="hidden" name="token" value="'.newToken().
'">'.
"\n";
62 foreach ($moreparam as $key => $value) {
63 print
'<input type="hidden" name="'.$key.
'" value="'.$value.
'">'.
"\n";
66 print
'<table class="border tableforfield centpercent">'.
"\n";
68 $variant = ($periodlink || $exportlink);
72 print
'<td width="150">'.$langs->trans(
"ReportName").
'</td>';
84 print
'<td width="150">'.$langs->trans(
"CalculationMode").
'</td>';
96 print
'<td>'.$langs->trans(
"ReportPeriod").
'</td>';
102 print
'<td class="nowraponall">'.$periodlink.
'</td>';
109 print
'<td>'.$langs->trans(
"ReportDescription").
'</td>';
110 print
'<td>'.$description.
'</td>';
118 print
'<td>'.$langs->trans(
"GeneratedOn").
'</td>';
123 print
'<td>'.($exportlink ? $langs->trans(
"Export").
': '.$exportlink :
'').
'</td>';
127 print
'</table>'.
"\n";
131 print
'<div class="center"><input type="submit" class="button" name="submit" value="'.$langs->trans(
"Refresh").
'"></div>';
136 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, $morecssdiv='')
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, $decorate=0)
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.