<?
include('auth.php');
include('common.php');

$vid=$_GET['vid'];
?>
<!doctype html>
<html class="no-js" lang="en"> <!--<![endif]-->
<head>
  <meta charset="utf-8">

  <!-- Use the .htaccess and remove these lines to avoid edge case issues.
       More info: h5bp.com/i/378 -->
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

  <title>LLNB System</title>
  <meta name="description" content="">

  <!-- Mobile viewport optimized: h5bp.com/viewport -->
  <meta name="viewport" content="width=device-width, maximum-scale=1.0">

  <!-- Place favicon.ico and apple-touch-icon.png in the root directory: mathiasbynens.be/notes/touch-icons -->
  <LINK REL="SHORTCUT ICON" HREF="favicon.ico">

  <link rel="stylesheet" href="css/style.css">
  <link rel="stylesheet" href="css/llnb-style.css">

  <!-- More ideas for your <head> here: h5bp.com/d/head-Tips -->

  <script src="js/libs/modernizr-2.5.3.min.js"></script>
         	<link href="scripts/SqueezeBox.css" rel="stylesheet" type="text/css" />
        	<script src="scripts/mootools.js" type="text/javascript" ></script>
  	<script src="scripts/SqueezeBox.js" type="text/javascript"></script>
  	
  	  
  	 <script language="javascript">
  	  
  	  
  	window.addEvent('domready', function()
  	{
  		SqueezeBox.assign($$('a.active_m'), {
  			parse: 'rel'
  		});
  	});
  	
  	
</script>  
</head>
<body>
<div id="wrap">
  <!-- Prompt IE 6 users to install Chrome Frame. Remove this if you support IE 6.
       chromium.org/developers/how-tos/chrome-frame-getting-started -->
  <!--[if lt IE 7]><p class=chromeframe>Your browser is <em>ancient!</em> <a href="http://browsehappy.com/">Upgrade to a different browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">install Google Chrome Frame</a> to experience this site.</p><![endif]-->
  <header><a href="index.php" class="btn lfr" style="position:relative; top: 15px; right: 0;">Logout</a>
	<h1>Laubach Literacy - <?=uType();?></h1> 
	<h3><?=fetchCouncilName($_SESSION['council_id']);?></h3>
	<nav id="menu" class="clearfix navmenu"><a href="home.php" class="btn lfl">Home</a><a href="volunteer_list.php" class="btn lfl">Volunteer List</a></nav>
  </header>
  <div role="main" id="main" class="clearfix">
  	<div id="location">
      <H2><span>Volunteer:</span> <?= fetchVolName($vid); ?></H2>
    
    </div> <!-- end of location -->
	  <h2>Overview</h2>
	  <?
	  		$thestatus = fetchCurrentStatus(3, $_GET['vid']);
	  
	  		if ( $thestatus == 0)	
	  		{	$btn= "Make Active";
	  			$thepg = "make_active_m";
	  			$h="310";
	  
	  		}
	  		else
	  		{	$btn = "Make Inactive";
	  			$thepg = "make_inactive_m";
	  					$h="575";
	  
	  		}
		?>
		<ul>
		  <li><a href="<?=$thepg;?>.php?utype=3&frompg=voloverview&lid=<?=$_GET['vid'];?>" rel="{handler:'iframe',size:{x:545,y:<?=$h;?>}}" class="active_m"><?=$btn;?></a></li>
        </ul>
        <ul>
            <li><a href="volunteer_timelist.php?vid=<?=$_GET['vid'];?>" class="btn lfl btnlrg">Volunteer Time</a></li>
            <li><a href="volunteer_personalinfo.php?mode=edit&vid=<?=$_GET['vid'];?>" class="btn lfl btnlrg">Personal Information </a></li>
            <li><a href="volunteer_employmentinfo.php?vid=<?=$_GET['vid'];?>" class="btn lfl btnlrg">Employment Information </a></li>
            <li><a href="volunteer_volunteerinfo.php?vid=<?=$_GET['vid'];?>" class="btn lfl btnlrg">Volunteer Organizations</a></li>
            <li><a href="volunteer_status.php?vid=<?=$_GET['vid'];?>" class="btn lfl btnlrg">Status Information</a></li>
        </ul>
  </div><!-- end of main -->
  <div class="sidecolumn">
  <? 
  echo printVolunteerHRs($vid, 3);
  ?>
  	
  </div>
    <div style="clear:both;"></div>
  <footer>
	<?php include('footer.php'); ?>
  </footer>
  </div>
</body>
</html>