Show some headings on the main page only for hardcopies, making the
printout more meaningful.
$q = new UserQuery;
$user = $q->findOneByUsername($username);
if (! $q->count()) {
+ echo "<h1 class=\"printonly\">$charity</h1>\n";
echo "<h1>Not logged in!</h1>\n";
if ($_SERVER['REMOTE_USER']) echo "<p>User <em>" . $_SERVER['REMOTE_USER'] . "</em> needs an entry in the user table.</p>\n";
}
else {
$user_id = $user->getContactId();
$admin_level = $user->getAdmin();
- if ($module) include_once("$lib_root/$module.php");
+ if ($module) {
+ echo "<h3 class=\"printonly\">$charity $module</h3>\n";
+ include_once("$lib_root/$module.php");
+ }
+
#else include_once("$lib_root/menu.php");
}
include_once("$lib_root/footer.php");