Location: PHPKode > projects > Athena Research Assistant > athena-dev-0.1pre-alpha/pages/main.php
<?php
session_start();
require("../config/config.php");
require("../includes/check_login.inc.php");
require("../includes/mysql_db_connect.inc.php");
require("../includes/convert_na_to_dash.inc.php");
require("../includes/showPAGEnumbers.inc.php");
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
	<title><?php echo($title); ?></title>
	<link href="../global_elements/athena.css" rel="stylesheet" media="screen">
	<meta http-equiv="expires" CONTENT="1996-01-01">
	<?php require("../includes/openWINjs.inc.php"); ?>
</head>
<body bgcolor="#708090">

<div align="center">

<table width="800" height="100%" cellpadding="1" cellspacing="0" bgcolor="#000000">
	<tr>
		<td>

			<table width="800" height="100%" border="0" cellspacing="1" cellpadding="3">
				<tr>

					<td valign="top" Align="left" width="120" bgcolor="#FFFFFF">
						<!-- MENU BEGINS HERE -->
						
						<?php
						include("../includes/menu.inc.php");
						?>
					
						<!-- MENU ENDS HERE -->
					</td>
	
					<td bgcolor="#F5F5DC" width="680" align="center" valign="<?php echo($_GET["valign"]); ?>">
					<!-- MODULE BEGINS HERE -->
					
					<?php
					//LOAD A MODULE BASED ON $act VARIABLE
					
					//SHOW WELCOME SCREEN
					if (empty($_GET["act"]) or !isset($_GET["act"]) or $_GET["act"] == ""){
						include("../modules/begin.php");
					}
					
					//ADD USER
					if ($_GET["act"] == "adduser"){
						include("../modules/adduser.php");
					}
					//ADD GROUP
					if ($_GET["act"] == "addgroup"){
						include("../modules/addgroup.php");
					}
					//ADD RESOURCE
					if ($_GET["act"] == "addresrc"){
						include("../modules/addresrc.php");
					}
					//ADD PROJECT
					if ($_GET["act"] == "addproject"){
						include("../modules/addproject.php");
					}
					//ADD A NOTE
					if ($_GET["act"] == "addnote"){
						include("../modules/addnotes.php");
					}
					//VIEW PROJECT
					if ($_GET["act"] == "viewprojects"){
						include("../modules/viewprojects.php");
					}
					//VIEW PROJECT
					if ($_GET["act"] == "viewresrc"){
						include("../modules/viewresrc.php");
					}
					//VIEW PUBLIC RESOURCES
					if ($_GET["act"] == "public"){
						include("../modules/viewPUBLICresrc.php");
					}
					//SHOW ITEM DETAILS
					if ($_GET["act"] == "details"){
						include("../modules/viewDETAILS.php");
					}
					//EDIT ITEM DETAILS
					if ($_GET["act"] == "edit"){
						include("../modules/editITEM.php");
					}
					
					?>
					<!-- MODULE END HERE -->
					</td>

				</tr>
				
				<tr>
					<td align="center" colspan="2" bgcolor="#ffffff">
						<!-- FOOTNOTE BEGINS -->
						
						<?php
						include("../includes/poweredby.inc.php");
						?>
					
						<!-- FOOTNOTE ENDS -->
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>

</div>


</body>
</html>
Return current item: Athena Research Assistant