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


<!doctype html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!-- Consider adding a manifest.appcache: h5bp.com/d/Offline -->
<!--[if gt IE 8]><!--> <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>
   <script language="javascript">
  
    function checkForm()
    {
  	if (document.getElementById('utype1').checked == false &&
  		document.getElementById('utype2').checked == false &&
  	document.getElementById('utype3').checked == false &&
  	  	document.getElementById('utype4').checked == false &&
  	document.getElementById('utype5').checked == false )
	return false
	else
	  	return true;
    }
</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> 
	<nav id="menu" class="clearfix navmenu"><a href="home.php" class="btn lfl">Home</a></nav>
  </header>
  <div role="main" id="main">
  	<div id="location">
    <H2>Mailing List</H2>
    
    </div> <!-- end of location -->
    <form action="report_mailinglist_CSV.php" method="POST" target="_blank" onSubmit="return checkForm();">
    <label>Select the council or Entire Province</label>
        <select name="council" title="Select council">
		<?
			if($_SESSION['ulevel']==4)
			{
				echo "<option value=\"".$_SESSION['council_id']."\">".fetchCouncilName($_SESSION['council_id'])."</option>";
			
			}
			else
				echo buildCouncilDropdownALLoption($csel);
		?>
	
	
        </select>
    <div style="clear:both;"></div>
	<div class="input">
	    <label>Select Active, Inactive or both:</label>
		<label class="radio" style="margin-right:15px;">
		<input name="status" type="radio" value="active">Active</label> 
		<label class="radio">
		<input name="status" type="radio" value="inactive">Inactive</label>
		<label class="radio">
		<input name="status" type="radio" value="both" checked >Both</label>
    </div>
	
    <div style="clear:both;"></div>
	<div class="input">
	    <label>Select all that apply:</label>
		<label><input name="userclass[]" id="utype1" type="checkbox" value="1">Learner</label> 
		<label><input name="userclass[]" id="utype2"  type="checkbox" value="2">Tutor</label>
		<label><input name="userclass[]" id="utype3"  type="checkbox" value="3">Council Coordinator</label>
		<label><input name="userclass[]" id="utype4"  type="checkbox" value="4">Board Members</label>
		<label><input name="userclass[]" id="utype5"  type="checkbox" value="5">Volunteers</label>
    </div>
      
    <div style="clear:both;"></div>
    
    <p><input type="submit" class="btn lfl" value="Download List"></p>
    
    </form>
  </div><!-- end of main -->
  <aside>
	<?php //include('aside-report.php'); ?>
  </aside>
    <div style="clear:both;"></div>
  <footer>
	<?php include('footer.php'); ?>
  </footer>
  </div> <!-- end of wrap -->


</body>
</html>