added report page

git-svn-id: svn://anubis/tipman@2 ce01c143-e732-0410-ac0e-c064f6e6c7ef
This commit is contained in:
Josh Holtrop 2008-09-08 01:52:45 +00:00
parent a6ccd8cd1f
commit ff1358ea28

View File

@ -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>';