<?php
require_once("src/core/managers/LoginManager.php");
require_once("src/widgets/MainMenu.php");
require_once("src/widgets/SubMenu.php");
require_once("src/widgets/CookieCrumble.php");
require_once("src/widgets/UserLogin.php");

session_start();

// The ID of this page is in SiteMap.xml
$curPageId = 'resources';

// Get an instance of the LoginManager
$lm = LoginManager::instance();

// Log the user out if that's what they want
$url = explode("?", $_SERVER['PHP_SELF']);
$lm->logoutOnRequest($url[0]);

// Check if the user is logged in
$user =& $lm->getLoggedInUser();

// Get the user's level
$userLevel = 0;
if (isset($user)) {
	$userLevel = $user->getUserLevel();
}

$mainMenu =& new MainMenu($curPageId, $userLevel);
$cookieCrumble =& new CookieCrumble($curPageId);
$userLogin =& new UserLogin(&$user);
$subMenu =& new SubMenu($curPageId, $userLevel);

?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<title>EECS REFS</title>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
		<link href="core.css" rel="stylesheet" type="text/css">
	</head>
	<body>
		<table align="center" class="bodyTable">
			<tr><td><img src="images/logo.jpg" alt="EECS REFS Logo"/></td><td colspan="2" valign="top"><? echo $mainMenu->toHtml() ?></td></tr>
  			<tr><td colspan="2" valign="top"><img src="images/header.jpg" alt=""/></td></tr>
  			<tr><td valign="top" class="cookieCrumbleTd"><? echo $cookieCrumble->toHtml() ?></td><td class="cookieCrumbleTd"><? echo $userLogin->getLoginWidget() ?></td></tr>
  			<tr>
  				<td class="bodyLeftTd"><? echo $subMenu->toHtml() ?></td>
    			<td width="*" class="bodyCenterTd">
					<p>We have compiled a list of resources that may be of interest to you. If you would like a PDF version with the same information you may download it <a href="documents/Resources.pdf">here</a>. </p><br/>
					<h1>Medical and Stress Management Resources</h1>
					<table class="resourcesTable">
					  
					  <tr class="resourcesEvenTr">
					    <td valign="top" class="resourcesHeaderTd">MIT Medical, Mental Health Services</td>
					  </tr>
					  <tr class="resourcesEvenTr">
					    <td valign="top" class="resourcesTd">
					    	<a href="http://web.mit.edu/medical/" target="_blank">http://web.mit.edu/medical/</a><br/>
					    	253-2916, Available 24 hours; Walk-in Hours: M - F, 2 - 4pm 
					    </td>
					  </tr>
					  
					  <tr class="resourcesOddTr">
					    <td valign="top" class="resourcesHeaderTd">Student Support Services</td>
					  </tr>
					  <tr class="resourcesOddTr">
					    <td valign="top" class="resourcesTd">
					    	<a href="http://web.mit.edu/counsel/www/" target="_blank">http://web.mit.edu/counsel/www/</a><br/>
					    	Rm 5-104, 253-4861, 9 - 4pm<br/>
							Offers personal counseling for students on a variety of issues, particularly those which affect academic performance
					    </td>
					  </tr>
					  
					  <tr class="resourcesEvenTr">
					    <td valign="top" class="resourcesHeaderTd">Center for Health Promotion and Wellness</td>
					  </tr>
					  <tr class="resourcesEvenTr">
					    <td valign="top" class="resourcesTd">
					    	<a href="http://web.mit.edu/medical/a-center.html" target="_blank">http://web.mit.edu/medical/a-center.html</a><br/>
					    	E23-205, 253-3646, Zan Barry, Health Educator<br/>
							Offers resources on issues such as sleep difficulties, stress management, or concerns about a friend in need 
					    </td>
					  </tr>
					  
					  <tr class="resourcesOddTr">
					    <td valign="top" class="resourcesHeaderTd">MIT Sexual Violence Resources</td>
					  </tr>
					  <tr class="resourcesOddTr">
					    <td valign="top" class="resourcesTd">
					    	<a href="http://web.mit.edu/medical/student/svr " target="_blank">http://web.mit.edu/medical/student/svr </a><br/>
					    	Information and quick links pertaining to sexual violence.
					    </td>
					  </tr>
					</table>
					
					<br/>
					<h1>Conflict Resolution Resources</h1>
					<table class="resourcesTable">
					  
					  <tr class="resourcesEvenTr">
					    <td valign="top" class="resourcesHeaderTd">mediation@mit</td>
					  </tr>
					  <tr class="resourcesEvenTr">
					    <td valign="top" class="resourcesTd">
					    	<a href="http://web.mit.edu/mediation/" target="_blank">http://web.mit.edu/mediation/</a><br/>
					    	Neutral student mediators that confidentially help voluntary participants arrive at a constructive resolution to a conflict 
					    </td>
					  </tr>
					  
					  <tr class="resourcesOddTr">
					    <td valign="top" class="resourcesHeaderTd">Office of the Dean for Graduate Education</td>
					  </tr>
					  <tr class="resourcesOddTr">
					    <td valign="top" class="resourcesTd">
					    	<a href="http://web.mit.edu/odge/" target="_blank">http://web.mit.edu/odge/</a><br/>
					    	253-4860, Support and referral office for graduate students
					    </td>
					  </tr>
					  
					  <tr class="resourcesEvenTr">
					    <td valign="top" class="resourcesHeaderTd">Ombuds Office</td>
					  </tr>
					  <tr class="resourcesEvenTr">
					    <td valign="top" class="resourcesTd">
					    	<a href="http://web.mit.edu/ombud/" target="_blank">http://web.mit.edu/ombud/</a><br/>
					    	Rm. 10-213, 253-5921<br/>
							Professional mediators who confidentially help resolve disputes and manage conflict 
					    </td>
					  </tr>
					  
					  <tr class="resourcesOddTr">
					    <td valign="top" class="resourcesHeaderTd">MIT Police</td>
					  </tr>
					  <tr class="resourcesOddTr">
					    <td valign="top" class="resourcesTd">
					    	253-1212, or 100 from a campus phone
					    </td>
					  </tr>
					</table>
					
					<br/>
					<h1>Additional EECS Department Resources</h1>
					<table class="resourcesTable">
					  
					  <tr class="resourcesEvenTr">
					    <td valign="top" class="resourcesHeaderTd">EECS Graduate Headquarters (Rm 38-444)</td>
					  </tr>
					  <tr class="resourcesEvenTr">
					    <td valign="top" class="resourcesTd">
					    	Terry Orlando (orlando !_AT_! mit.edu)<br/>
 							Janet Fischer (jfischer !_AT_! mit.edu)
					    </td>
					  </tr>
					  
					</table>
				</td>
  			</tr>
  			<tr><td colspan="3" class="footerTd">&copy; EECS REFS</td></tr>
  			<tr><td colspan="3"><img src="images/footerShadow.jpg" alt=""/></td></tr>
		</table>
	</body>
</html>
