Location: PHPKode > projects > Clinical Handover Database > output/menu.php
<?php
ini_set("display_errors","1");
ini_set("display_startup_errors","1");
set_magic_quotes_runtime(0);

include("include/dbcommon.php");

if(!@$_SESSION["UserID"])
{
	header("Location: login.php");
	return;
}


include('libs/Smarty.class.php');
$smarty = new Smarty();

$smarty->assign("username",$_SESSION["UserID"]);
$smarty->assign("not_a_guest",$_SESSION["AccessLevel"] != ACCESS_LEVEL_GUEST);
$strPerm = GetUserPermissions("jobs");
$smarty->assign("allow_jobs",!(strpos($strPerm, "A")===false && strpos($strPerm, "S")===false));
$strPerm = GetUserPermissions("patients");
$smarty->assign("allow_patients",!(strpos($strPerm, "A")===false && strpos($strPerm, "S")===false));
$strPerm = GetUserPermissions("Nursing Handover");
$smarty->assign("allow_Nursing_Handover",!(strpos($strPerm, "A")===false && strpos($strPerm, "S")===false));
$strPerm = GetUserPermissions("Current Patients");
$smarty->assign("allow_Current_Patients",!(strpos($strPerm, "A")===false && strpos($strPerm, "S")===false));
$strPerm = GetUserPermissions("Current Jobs");
$smarty->assign("allow_Current_Jobs",!(strpos($strPerm, "A")===false && strpos($strPerm, "S")===false));
$strPerm = GetUserPermissions("Ward Round Sheet");
$smarty->assign("allow_Ward_Round_Sheet",!(strpos($strPerm, "A")===false && strpos($strPerm, "S")===false));
$strPerm = GetUserPermissions("Sign-Out Sheet");
$smarty->assign("allow_Sign_Out_Sheet",!(strpos($strPerm, "A")===false && strpos($strPerm, "S")===false));
$strPerm = GetUserPermissions("users");
$smarty->assign("allow_users",!(strpos($strPerm, "A")===false && strpos($strPerm, "S")===false));
$strPerm = GetUserPermissions("consultants");
$smarty->assign("allow_consultants",!(strpos($strPerm, "A")===false && strpos($strPerm, "S")===false));
$strPerm = GetUserPermissions("ward list");
$smarty->assign("allow_ward_list",!(strpos($strPerm, "A")===false && strpos($strPerm, "S")===false));


$smarty->display("menu.htm");
Return current item: Clinical Handover Database