<?php
define('Admin_USER',true);
session_start();
if(!isset($_SESSION['adm1n']) || $_SESSION['adm1n']['Nbr'] == ''){
  
       header("Location: ../misc/default.php");
       exit;
       
}
require_once("../../includes/php/defines.php");
require_once("../../includes/php/classes/mainClass.php");
require_once("../../includes/php/classes/eventClass.php");

$e = new eventClass;

?>
<section>
<div class="container-fluid">
    <div class="container">
        <div class="col-md-4">
            <div class="col-md-12 result-heading">
                <div class="rh-form">
                    <div class="col-md-10">
                        <form id="Search_Form" name="Search_Form"> 
                            <div class="form-group">
                                <input type="button" value="Add Event" onclick="contentChanger('events/add-event.php','','','events/manage-events.php');">
                            </div>                         
                            <div class="form-group">
                                <label>Event Start Date</label>
                                <input type="text" class="date_field" style="width:15%;" id="Start_Month" name="Start_Month">
                                <input type="text" class="date_field" style="width:15%;" id="Start_Day" name="Start_Day">
                                <input type="text" class="date_field" style="width:30%;" id="Start_Year" name="Start_Year">
                            </div>                                                        
                            <div class="form-group">
                                <label>Event End Date</label>
                                <input type="text" class="date_field" style="width:15%;" id="End_Month" name="End_Month">
                                <input type="text" class="date_field" style="width:15%;" id="End_Day" name="End_Day">
                                <input type="text" class="date_field" style="width:30%;" id="End_Year" name="End_Year">
                            </div> 
                            <div class="form-group">
                                <input type="button" value="Search" onclick="processSearch('Events','No_Clear','1');">
                            </div>                                                                                                                
                        </form>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-md-8">
            <div class="col-md-12 result-heading">
                <h1>Events</h1>&nbsp;
              <div id="Animation">
                  <div class="blockG" id="rotateG_01"></div>
                  <div class="blockG" id="rotateG_02"></div>
                  <div class="blockG" id="rotateG_03"></div>
                  <div class="blockG" id="rotateG_04"></div>
                  <div class="blockG" id="rotateG_05"></div>
                  <div class="blockG" id="rotateG_06"></div>
                  <div class="blockG" id="rotateG_07"></div>
                  <div class="blockG" id="rotateG_08"></div>                                            
              </div>
              <div id="Result" style="margin-bottom:25px;"></div> 
              <div id="RowContainer"></div>                
            </div>
        </div>
    </div>
</div>
</section>
<script>
$(document).ready(function(){
    processSearch('Events','No_Clear','1');
});
</script>