<div class="panel panel-default">

    <div class="panel-heading">
        <h6 class="panel-title">
            <a href="<?php echo site_url('everbright/teacher_leave'); ?>"><i class="fa fa-align-justify"></i></a> 
            Teacher Leave Report | Generate.
        </h6>
        <a href="<?php echo site_url('everbright/teacher_leave'); ?>" class="pull-right btn btn-circle btn-xs btn-default"><i class="fa fa-times"></i>Cancel</a>
    </div>

    <div class="panel-body">
        <form action="<?php echo site_url('everbright/teacher_leave_show'); ?>" method="post" class="form-horizontal validate" role="form" enctype="multipart/form-data"> 
            
                      
            <div class="row">
                
				<?php 
                        $query = $this->main_model->teacher();
                        
                        ?>
                <div class="col-md-6">                   
                    <div class="form-group">
                        <label class="col-sm-4 control-label text-right">Teacher<span class="mandatory">*</span></label>
                        <div class="col-sm-8">
                            <select data-placeholder="(:-- Select Teacher --:)" name="user_ID" class="required  select-search">
                               
							   <option value=""></option>
							   <?php foreach($query as $row): ?>
                                <option value="<?php echo $row['tid']; ?>"><?php echo $row['name']; ?></option>
								<?php endforeach; ?>
                              
                            </select>                            
                        </div>
                        
                    </div> 
                </div>
				
            </div>
			<div class="row">
                <!-- ATTN -->
                <div class="col-md-6">                   
                    <div class="form-group">
                        <label class="col-sm-4 control-label text-right">From Date <span class="mandatory">*</span></label>
                        <div class="col-sm-8">
                            <input type="text" class="required form-control datepicker" placeholder="To Date" name="fdate" value="<?php echo date('Y-m-d'); ?>">
                        </div>
                    </div> 
                </div>  
                <!-- SHIPPER -->
                <div class="col-md-6">                   
                    <div class="form-group">
                        <label class="col-sm-4 control-label text-right">To Date <span class="mandatory">*</span></label>
                        <div class="col-sm-8">
                            <input type="text" class="required form-control datepicker" placeholder="To Date" name="tdate" value="<?php echo date('Y-m-d'); ?>">
                        </div>
                    </div> 
                </div>                    
            </div>
			 
			
            <div class="form-actions text-right">
                <button type="submit" value="Submit" class="btn btn-primary"><i class="fa fa-check"></i> Submit</button>
            </div>
        </form>
    </div>

</div>
