<?php
session_start();
if(!isset($_SESSION['adm1n']) || $_SESSION['adm1n']['Nbr'] == ''){
  
       header("Location: ../misc/default.php");
       exit;
       
}

?>
<section>
	<div class="container-fluid">
		<div class="container">
			<div class="col-md-12 result-heading">
				<div class="rh-form">		
				<?php
				if(isset($_GET['ReturnPage']) && $_GET['ReturnPage'] != ''){                                        

						echo '<form>';
						echo '<div class="form-group">';
						echo '<div class="return-div"><span onclick="contentChanger(\''.$_GET['ReturnPage'].'\');"><< RETURN TO events MANAGER</span></div>';
						echo '</div>';       
						echo '</form>';  

				}             
				?>		
					<h1>Add An Event</h1>					
					<form class="a-r-form" id="Admin_Form">
						<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"></div>                         
						<div class="form-group">
							<label>Event Name</label>
							<input type="text" class="col-md-12" id="Name" name="Name">
						</div>						
						<div class="form-group">
							<label>Start Date</label>
							<input type="text" class="date_field" id="Start_Month" name="Start_Month">
							<input type="text" class="date_field" id="Start_Day" name="Start_Day">
							<input type="text" class="date_field" id="Start_Year" name="Start_Year">
						</div> 	
						<div class="form-group">
							<label>End Date</label>
							<input type="text" class="date_field" id="End_Month" name="End_Month">
							<input type="text" class="date_field" id="End_Day" name="End_Day">
							<input type="text" class="date_field" id="End_Year" name="End_Year">
						</div> 	                        	            							
						<div class="form-group">
                            <p class="label-p">Event Details</p>
							<textarea class="col-md-12" rows="5" id="Details" name="Details"></textarea>
						</div>
						<div class="form-group dropzone" id="DropZone" name="DropZone" style="background-color:#e6e6e6; border:dashed 1px #ccc; border-radius:10px; text-align:center;">														
							<label><strong>Listing Image ( jpeg, jpg & png only )</strong></label>
							<input type="file" name="Files[]" id="Files[]" multiple class="inputFile">						
						</div>							
						<div id="PreviewContainer" name="PreviewContainer" class="dropzone-previews"></div>							
                        <div class="form-group" id="Submit_Paragraph">
							<input type="hidden" id="Option" name="Option" value="Add_Event"/>
							<input type="hidden" id="Clear" name="Clear" value=""/>
							<input type="button" value="submit" onclick="processForm('Add_Event','');">
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
</section>
<script type="text/javascript" src="js/dropzone.js"/>
<script type="text/javascript" src="includes/ajax/dropzone_form_processor.js"/>