<?php
include('../headertop.php');
include('../datepicker.php');

$disp = '';
$pagetitle = 'New Project Details';
//$disp .=' <div class="col-md-6">';

if(isset($_REQUEST['sm']))
$disp .= '<div class="smdiv">'.$_REQUEST['sm'].'</div>';
else
$disp .= '<div class="smdiv">Add a New Project</div>';

$disp .='<form role="form" id="addproject" method="post" action="addproject2.php" enctype="multipart/form-data" >
                                    <div class="row">
                                <div class="col-md-6">
                                    <h3>Fill all required fields(*) and click Submit</h3>
                                    
                                        <div class="form-group">
                                            <label>Project Name *</label>
                                            <input type="text" name="project_name" data-validation="required" class="form-control" />
                                                                                  </div>
                                       
                                         <div class="form-group" >
                                            <label>Project Start Date *</label>
                                           <input type="text" id="datep1" readonly class="form-control" name="start_date" data-validation="required"    />
                                        </div>
										
										<div class="form-group">
                                            <label>Area Address </label>
                                            <textarea class="form-control" name="project_address" rows="3"></textarea>
                                        </div>
										
										<div class="form-group">
                                            <label>Other Project Details </label>
                                            <textarea class="form-control" name="project_details"  rows="3"></textarea>
                                        </div>
										
										  									  
											  </div>
											  
											  <div class="col-md-6" style="margin-top:55px">
											 											  
										 <div class="form-group">
                                            <label>Number of Floors </label>
                                            <input type="text" class="form-control" name="no_floors" />
                                        </div>
										
										<div class="form-group">
                                            <label>How many Flats </label>
                                            <input type="text" class="form-control" name="no_flats" />
                                        </div>
										
										<div class="form-group">
                                            <label>Flat Numbers (comma separated) </label>
                                            <input type="text" class="form-control" name="flats" placeholder="example: 101,102,201 etc"/>
                                        </div>
										
										<div class="form-group">
                                            <label>Project Type * </label>
                                            <select name="type" data-validation="required" class="form-control">
											<option value=""></option><option value="ct">Construction</option><option value="mt">Maintenance</option>
											</select>
                                        </div>
										
										 <div class="form-group" >
											  <label>Project Photo</label>
											  <input type="file" name="photo" class="form-control">
											  </div>
                                              
                                         </div>
										
										<div class="col-md-9" style="text-align:center"><button type="submit" class="btn btn-primary" name="addprojectsubmit">Submit Button</button>
                                        <button type="reset" class="btn btn-default">Reset Button</button>
										</form></div>
                                    </div>';
									
									include('../template.php');
									include('../header.php');
                                    ?>
                                    <script>
                                    $.validate({
  form : '#addproject'
});
</script>
                                      