示例#1
0
	<title>Gloasis</title>
	<link rel="stylesheet" href="styles/stylesheet.css" />
	<script type="text/javascript">
		logout = function() {
			window.location.href = "http://localhost/gloasis/modules/home/logout.php";
		}
	</script>
	<script type="text/javascript" src="feed/submit_new_word.js"></script>
</head>
<body>
	<div class="header">
		<?php 
if (isset($_REQUEST['username']) && !$login) {
    echo "<div>Invalid username or password.</div>";
}
showHead($loggedIn);
?>

	</div>
	<div class="body">
		<?php 
showHome($loggedIn);
?>

	</div>
	<div class="footer" style="">
		<div class="view_more" onclick="loadMore();">View More</div>
	</div>
</body>
</html>
示例#2
0
}

if(isset($posted) == false)
{
	echo "<div class='homemid'><p>Please log in to access the Library Management System.</p></div>";
}
else if(strcmp(trim($element[15]),"Blocked") == 0)
{
	echo "<div class='homemid'><p>Your access to the Library Management System has been blocked.</p></div>";
}
else if ($valid_user == false)
{
	echo "<div class='homemid'><p>Your username and or password is incorrect. Please try again.</p></div>";
}
else
{
	if(strcmp(trim($element[14]), "Student") == 0)
	{
		echo "<div class='homemid'><p>Welcome to the Library Management System. What would you like to do?</p></div>";
		showHome();
	}
	else
	{
		echo "<div class='homemid'><p>Please click through to the <a href='students.php'>Student Administration</a> page.</p></div>";
	}
}
?>

</body>
</html>