<?
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>
</head>
<body>
<div id="wrap">
  <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>
    <?
    if ($_GET['r'] == 1)
    		echo "New Brunswick Government Report";
    	else
    	   	echo "Internal LLNB  Report";
    ?>
    </H2>
    
    </div> <!-- end of location -->
    <form action="report_main_do.php" method="POST">
     <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 style="display:block;">Start Date of Report:</label>
        <select name="month" title="month">
  		<?=buildMonthDropdown(1, $_MONTHS_abbr);?>
        </select>
        
        <select name="day" title="date">
  		<?=buildDayDropdown(1, $D);?>
        </select>
        
        <select name="year" title="Year">
  		<?=buildYearDropdown(date(Y), $Y);?>
        </select>
        
      </div>
      <div class="input plusleft">
        <label style="display:block;">End Date of Report:</label>
        <select name="monthend" title="month">
  		<?=buildMonthDropdown(1,  $_MONTHS_abbr);?>
        </select>
        
        <select name="dayend" title="date">
  		<?=buildDayDropdown(1, $DE);?>
        </select>
        
        <select name="yearend" title="Year">
  		<?=buildYearDropdown(date(Y), $YE);?>
        </select>
      </div>
      
    <div style="clear:both;"></div>
    
    <p><input type="submit" class="btn lfl" value="Generate Report"></p>
    <input type="hidden" name="rtype" value="<?=$_GET['r']; ?>">
    
    </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>