added report page
git-svn-id: svn://anubis/tipman@2 ce01c143-e732-0410-ac0e-c064f6e6c7ef
This commit is contained in:
parent
a6ccd8cd1f
commit
ff1358ea28
7
main.php
7
main.php
@ -61,9 +61,14 @@
|
|||||||
$year_total += $checks['amount1'];
|
$year_total += $checks['amount1'];
|
||||||
$year_total += $checks['amount2'];
|
$year_total += $checks['amount2'];
|
||||||
}
|
}
|
||||||
|
$reportLink = sprintf('<br><a href="%s/report.php?year=%s">%s report</a>',
|
||||||
|
$MY_SERVER,
|
||||||
|
$_SESSION['year'],
|
||||||
|
$_SESSION['year']
|
||||||
|
);
|
||||||
echo spacer(1,20);
|
echo spacer(1,20);
|
||||||
echo '<div style="margin-left: auto; margin-right: auto; width: 8em;">' .
|
echo '<div style="margin-left: auto; margin-right: auto; width: 8em;">' .
|
||||||
round_table($_SESSION['year'] . ' total: $' . $year_total, 1) . '</div>';
|
round_table($_SESSION['year'] . ' total: $' . $year_total . $reportLink, 1) . '</div>';
|
||||||
echo spacer(1, 30);
|
echo spacer(1, 30);
|
||||||
echo '<div style="margin-left: auto; margin-right: auto; width: 6em;">' . round_table('<a class="nav_link" href="' . $MY_SERVER . '/login.php">Logout</a>', 1) . '</div>';
|
echo '<div style="margin-left: auto; margin-right: auto; width: 6em;">' . round_table('<a class="nav_link" href="' . $MY_SERVER . '/login.php">Logout</a>', 1) . '</div>';
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user