<div id="maincontainer"> <?php page_header(); page_menu(PAGE_PROFILE); ?> <div id="pagecontent"> <?php if (isset($_SESSION['s_mid'])) { $_SESSION['Smessage'] = "Logged in as scientist."; $_SESSION['Stype'] = 2; $_SESSION['Sdetail'] = ""; displayMessage('Smessage', 'Sdetail', 'Stype'); } displayNotification(); ?> <?php displayMessage('ChangePassMessage', 'ChangePassDetails', 'ChangePassType'); ?> <div id="registercontent"> <div id="container"> <div class="tabs"> <ul class="menu"> <li><a href="#motherInfo"><?php echo _("Mother Information"); ?> </a></li>
if (file_exists('includes/' . $_GET['p'] . '.php')) { require 'includes/' . $_GET['p'] . '.php'; } else { echo 'Error'; } } ?> </div> <div id="leftpane"> <div id="Sort"> </div> <div id="Notifications"> <?php if (isset($_COOKIE['username'])) { displayNotification('Success', 'You are now logged in', 'success'); } function displayNotification($title, $content, $type) { if ($title == 'Success') { $col = 'lime'; } else { $col = 'red'; } echo '<div class="notificationleft" style="float:left;">' . $title . ' - ' . $content . '</div><div style="width:50px;height:50px;border-radius:25px;background-color:' . $col . ';float:right;"></div>'; } ?> </div> </div> <div id="gradient"></div> <?php