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)) $varlink =
'?'.$varlink;
52 $head[$h][0] =
$_SERVER[
"PHP_SELF"].$varlink;
53 $head[$h][1] = $langs->trans(
"Report");
54 $head[$h][2] =
'report';
56 print '<form method="POST" action="'.$_SERVER[
"PHP_SELF"].$varlink.
'">'.
"\n";
57 print '<input type="hidden" name="token" value="'.newToken().
'">'.
"\n";
61 foreach ($moreparam as $key => $value)
63 print '<input type="hidden" name="'.$key.
'" value="'.$value.
'">'.
"\n";
66 print '<table class="border tableforfield centpercent">'.
"\n";
68 $variante = ($periodlink || $exportlink);
72 print '<td width="150">'.$langs->trans(
"ReportName").
'</td>';
76 if ($variante)
print '<td></td>';
83 print '<td width="150">'.$langs->trans(
"CalculationMode").
'</td>';
86 if ($variante)
print '<td></td>';
93 print '<td>'.$langs->trans(
"ReportPeriod").
'</td>';
95 if ($period)
print $period;
96 if ($variante)
print '<td class="nowraponall">'.$periodlink.
'</td>';
102 print '<td>'.$langs->trans(
"ReportDescription").
'</td>';
103 print '<td>'.$description.
'</td>';
104 if ($variante)
print '<td></td>';
109 print '<td>'.$langs->trans(
"GeneratedOn").
'</td>';
113 if ($variante)
print '<td>'.($exportlink ? $langs->trans(
"Export").
': '.$exportlink :
'').
'</td>';
116 print '</table>'.
"\n";
120 print '<div class="center"><input type="submit" class="button" name="submit" value="'.$langs->trans(
"Refresh").
'"></div>';
125 print "\n<!-- end banner of report -->\n\n";
report_header($reportname, $notused, $period, $periodlink, $description, $builddate, $exportlink= '', $moreparam=array(), $calcmode= '', $varlink= '')
Show header of a report.
print $_SERVER["PHP_SELF"]
Edit parameters.
dol_get_fiche_head($links=array(), $active= '', $title= '', $notab=0, $picto= '', $pictoisfullpath=0, $morehtmlright= '', $morecss= '', $limittoshow=0, $moretabssuffix= '')
Show tabs of a record.
print
Draft customers invoices.
dol_print_date($time, $format= '', $tzoutput= 'auto', $outputlangs= '', $encodetooutput=false)
Output date in a string format according to outputlangs (or langs if not defined).
dol_get_fiche_end($notab=0)
Return tab footer of a card.