41 function 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;
54 $head[$h][0] = $_SERVER[
"PHP_SELF"].$varlink;
55 $head[$h][1] = $langs->trans(
"Report");
56 $head[$h][2] =
'report';
58 print
'<form method="POST" action="'.$_SERVER[
"PHP_SELF"].$varlink.
'">'.
"\n";
59 print
'<input type="hidden" name="token" value="'.newToken().
'">'.
"\n";
63 foreach ($moreparam as $key => $value) {
64 print
'<input type="hidden" name="'.$key.
'" value="'.$value.
'">'.
"\n";
67 print
'<table class="border tableforfield centpercent">'.
"\n";
69 $variante = ($periodlink || $exportlink);
73 print
'<td width="150">'.$langs->trans(
"ReportName").
'</td>';
85 print
'<td width="150">'.$langs->trans(
"CalculationMode").
'</td>';
97 print
'<td>'.$langs->trans(
"ReportPeriod").
'</td>';
103 print
'<td class="nowraponall">'.$periodlink.
'</td>';
110 print
'<td>'.$langs->trans(
"ReportDescription").
'</td>';
111 print
'<td>'.$description.
'</td>';
119 print
'<td>'.$langs->trans(
"GeneratedOn").
'</td>';
124 print
'<td>'.($exportlink ? $langs->trans(
"Export").
': '.$exportlink :
'').
'</td>';
128 print
'</table>'.
"\n";
132 print
'<div class="center"><input type="submit" class="button" name="submit" value="'.$langs->trans(
"Refresh").
'"></div>';
137 print
"\n<!-- end banner of report -->\n\n";
dol_get_fiche_head($links=array(), $active='', $title='', $notab=0, $picto='', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limittoshow=0, $moretabssuffix='')
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='', $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.