<?
include('auth.php');
include('common.php');
//council
$cid=$_GET['cid'];
$c = $_GET['coordid'];
$SQL="SELECT * FROM coordinator WHERE id=".$c;
$results = llnb_query($SQL);
$row = llnb_fetch_assoc($results);
?>



<!doctype html>
<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>
	<?
	if ($_SESSION['ulevel'] == $_EXECDIR )
		echo "<a href=\"coordinator_list.php?cid=".$_GET['cid']."\" class=\"btn lfl\">Coordinator List</a></nav>";
	?>
  </header>
  <div role="main" id="main" class="clearfix">
  	<div id="location">
    <H2><span>Coordinator:</span> <?=$row['firstname']." ".$row['lastname'];?></H2>
	
    </div> <!-- end of location -->
	  <h2>Overview</h2> 
	  <?
	  		$thestatus = fetchCurrentStatus(4, $_GET['coordid']);
	  
	  		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=4&frompg=coordoverview&lid=<?=$_GET['coordid'];?>" rel="{handler:'iframe',size:{x:545,y:<?=$h;?>}}" class="active_m"><?=$btn;?></a></li>
        </ul>		
        <ul>
            <li><a href="coordinator_personalinfo.php?cid=<?=$cid;?>&mode=edit&coordid=<?=$c;?>" class="btn lfl btnlrg">Personal Information </a></li>
            <li><a href="coordinator_timelist.php?cid=<?=$cid;?>&coordid=<?=$c;?>" class="btn lfl btnlrg">Volunteer Time</a></li>
            <li><a href="coordinator_status.php?cid=<?=$cid;?>&coordid=<?=$c;?>" class="btn lfl btnlrg">Status</a></li>
        </ul>
  </div><!-- end of main -->
  <div class="sidecolumn">
    <? 
    echo printVolunteerHRs($c, 4);
    ?>
 </div>
    <div style="clear:both;"></div>
  <footer>
	<?php include('footer.php'); ?>
  </footer>
  </div> <!-- end of wrap -->



</body>
</html>