
   <div class="row">
        <div class="col-sm-12 col-md-12">
            <div class="panel">
                <div class="panel-heading">
                    <div class="panel-title">
                        
                    </div>
                </div>
                <div class="panel-body">

                <?= form_open('hrm/Employees/update_emp_performance_form/'. $data->emp_per_id) ?>
                

                    <input name="emp_per_id" type="hidden" value="<?php echo $data->emp_per_id ?>">
                 
                         <div class="form-group row">
                            <label for="employee_id" class="col-sm-3 col-form-label"><?php echo display('employee_name') ?> </label>
                            <div class="col-sm-9">
                                <!--  <input  name="empname" type="text" class="form-control" value="<?php echo $data->first_name.' '.$data->last_name;?>"> -->
                                  <?php echo form_dropdown('employee_id',$employee,(!empty($data->employee_id)?$data->employee_id:null),'class="form-control" id="employee_id"') ?>
                              
                            </div>
                        </div>

                        <div class="form-group row">
                            <label for="note" class="col-sm-3 col-form-label"><?php echo display('note') ?></label>
                            <div class="col-sm-9">
                                <input type="text" name="note" class="form-control" id="note" value="<?php echo $data->note?>">
                            </div>
                        </div> 

                       <div class="form-group row">
                            <label for="date" class="col-sm-3 col-form-label"><?php echo display('date') ?> </label>
                            <div class="col-sm-9">
                                <input type="text" name="date" class="form-control" id="date" value="<?php echo $data->date?>">
                            </div>
                        </div> 
                         <div class="form-group row">
                            <label for="note_by" class="col-sm-3 col-form-label"><?php echo display('note_by') ?> </label>
                            <div class="col-sm-9">
                                <input type="text" name="note_by" class="form-control" id="note_by" value="<?php echo $data->note_by?>">
                            </div>
                        </div> 
                        <div class="form-group row">
                            <label for="number_of_star" class="col-sm-3 col-form-label"><?php echo display('number_of_star') ?> </label>
                            <div class="col-sm-9">
                                <input type="text" name="number_of_star" class="form-control" id="number_of_star" onkeyup="starcheck()" value="<?php echo $data->number_of_star?>">
                            </div>
                        </div> 

                       <div class="form-group row">
                            <label for="status" class="col-sm-3 col-form-label"><?php echo display('status') ?> </label>
                            <div class="col-sm-9">
                                <input type="text" name="status" class="form-control" id="status" value="<?php echo $data->status?>">
                            </div>
                        </div> 
                         

                        <div class="form-group text-right">
                            
                            <button type="submit" class="btn btn-success w-md m-b-5"><?php echo display('update') ?></button>
                        </div>

                    <?php echo form_close() ?>


                </div>  
            </div>
        </div>
    </div>

<script type="text/javascript">
     function starcheck(){
 var star = $('#number_of_star').val();
if(star > 5){
    alert('You Can not input More Than five Star');
    document.getElementById('number_of_star').value = '';
    }
}
</script>
