




<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <h1>
        <center>Employee Salary Payment Details</center>
        
      </h1>
    </section>
    
    <section class="content">
    <div style="text-align:right;">
    <a href="<?php echo base_url() ?>emppayListings" class="btn btn-info" value="Back"/>Back</a>
    </div>
    <br>
        <div class="row">
            <!-- left column -->
            <div class="col-md-12">
              <!-- general form elements -->
                
                <div class="box box-primary">
                   
                    <!-- form start -->
                    
                     <form role="form" id="addemppaydate" action="<?php echo base_url() ?>emppaydate/addNewemppay" method="post" name="addform" > 
                   

                        <div class="box-body">
                            <div class="row"> 

                             <!--<div class="col-md-4">
                                    <div class="form-group">
                                        <label for="Pay_Data_ID">Pay Data ID:</label><font color="Red">*</font>
                                         
                                        <div class="form-group">
                                                <?php
                                         $data = array('name' => 'Pay_Data_ID','value' => set_value('Pay_Data_ID'), 'class' => 'form-control' ,'style'=>'text-transform:uppercase;');
                                        echo form_input($data);
                                        ?>   
                                    </div>
                                    </div>
                                </div>-->


                            
                           
                                <div class="col-md-4">
                                    <div class="form-group">
                                        <label for="EmpID">Employee ID:</label><font color="Red">*</font>
                                        <div class="form-group">
                            
                                          <?php
                                               $Employee = array("-1"=>'Select Employee');

                                                if(!empty($empdetails)){
                                            
                                                  foreach($empdetails as $emp){
                                                     $EmpID=$emp->EmpID;
                                                     $Employee+= array($EmpID => $emp->EmpID . "-" . $emp->FirstName . "-" . $emp->LastName);
                                                     // $Employee = array_merge($Employee,$Employee1);
                                                    }
                                                }
											//$data=array('name'=>'EmpID','value'=>$Employee,'id'=>'EmpID','class' => 'form-control');
											  echo form_dropdown('EmpID', $Employee,set_value('EmpID'),'class="form-control",id="xxx"');
											  //echo form_dropdown($data);

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

                                <div class="col-md-4">
                                    <div class="form-group">
                                        <label for="Basic_Pay">Basic Pay:</label><font color="Red">*</font>
                                        <div class="form-group">
                                                <?php
                                         
                                       $data = array('name' => 'Basic_Pay','id' => 'Basic_Pay','value' => set_value('Basic_Pay'),'pattern' => '[0-9]{4,6}', 'class' => 'form-control', 'style'=>'text-transform:uppercase;','title' => 'Enter Valid Basic Pay Amount,Minimum Four Digit Positive Number');
                                        echo form_input($data);
                                        ?>   
                                    </div>
                                    </div>
                                </div>
                               

                            

                                  
                                
                                <div class="col-md-4">
                                    <div class="form-group">
                                        <label for="HRA_Rate">HRA Rate(%):</label><font color="Red">*</font>
                                         
                                        <div class="form-group">
                                                <?php
                                         
                                         $data = array('name' => 'HRA_Rate','id'=>'HRA_Rate','value' => set_value('HRA_Rate'), 'class' => 'form-control','style'=>'text-transform:uppercase;','pattern'=>'([0-9]{1,2}([.][0-9]{1,2})?)', 'title'=>'Enter the Valid HRA Rate,Minimum 1 digit,Maximum 2 digit','onfocusout'=>'validateHRA();');
                                        echo form_input($data);
                                        ?>   
                                    </div>
                                    </div>
                                </div>
                                 </div><!--row completed div-->

                                  <div class="row">
                                <div class="col-md-4">
                                    <div class="form-group">
                                        <label for="OT_Rate">OT Rate:</label><font color="Red">*</font>
                                        <div class="form-group">
                                                <?php
                                          
                                          $data = array('name' => 'OT_Rate','value' => set_value('OT_Rate'), 'class' => 'form-control' ,'style'=>'text-transform:uppercase;','pattern'=>'[0-9]{1,4}' ,'title'=>'Enter the Valid OT Rate, Minimum 1 digit, Maximum 4 digit');
                                        echo form_input($data);
                                        
                                        ?>   
                                    </div>
                                    </div>
                                </div>
                                <div class="col-md-4">
                                    <div class="form-group">
                                        <label for="Allowances">Allowances:</label><font color="Red">*</font>
                                        <div class="form-group">
                                                <?php
                                         
                                         $data = array('name' => 'Allowances','value' => set_value('Allowances'), 'class' => 'form-control' ,'style'=>'text-transform:uppercase;','pattern'=>'[0-9]{1,4}','title'=>'Enter the Valid Allowances,Minimum 1 digit , Maximum 4 digit ');
                                        echo form_input($data);
                                        ?>   
                                    </div>
                                    </div>
                                </div>
                                

                                
                                
                                <div class="col-md-4">
                                    <div class="form-group">
                                        <label for="PF_Rate">PF Rate(%):</label><font color="Red">*</font>
                                         
                                        <div class="form-group">
                                                <?php
                                         
                                         $data = array('name' => 'PF_Rate','value' => set_value('PF_Rate'),'class' => 'form-control' ,'style'=>'text-transform:uppercase;','pattern'=>'([0-9]{1,2}([.][0-9]{1,2})?)', 'title'=>'Enter the valid PF Rate,Minimum 1 digit,Maximum 2 digit');
                                        echo form_input($data);
                                        ?>   
                                    </div>
                                    </div>
                                </div>
                                </div><!--row completed div-->
                            
                           <div class="row">
                                <div class="col-md-4">
                                    <div class="form-group">
                                        <label for="ESI_Rate">ESI Rate(%):</label><font color="Red">*</font>
                                        <div class="form-group">
                                                <?php
                                         
                                          $data = array('name' => 'ESI_Rate','value' => set_value('ESI_Rate'), 'class' => 'form-control' ,'style'=>'text-transform:uppercase;','pattern'=>'([0-9]{1,2}([.][0-9]{1,2})?)','title'=>'Enter the Valid ESI Rate,Minimum 1 digit,Maximum 2 digit');
                                        echo form_input($data);
                                        ?>   
                                    </div>
                                    </div>
                                </div>
                                <!--for food allowances-->
                                 <div class="col-md-4">
                                    <div class="form-group">
                                        <label for="Food_Allowances">Food Allowances:</label><font color="Red">*</font>
                                        <div class="form-group">
                                                <?php
                                         
                                         $data = array('name' => 'Food_Allowances','value' => set_value('Food_Allowances'), 'class' => 'form-control','pattern'=>'[0-9]{1,4}','onfocusout'=>'validateFood();', 'title'=>'Enter the Valid Food Allowances,Minimun 1 Digit,Maximum 4 Digit');
                                        echo form_input($data);
                                        ?>   
                                    </div>
                                    </div>
                                </div>
                          </div><!--row completed div-->

                                   
                               <div class="box-footer" style="text-align:right">
                            <input type="submit" class="btn btn-info" value="Submit" onmouseover="empcheck();" />
                            <input type="reset" class="btn btn-info" value="Reset" />
                        </div> 
                                
                                
                        </div><!-- /.box-body -->
    
                        
                    </form><!-- form closed -->

  
                </div><!--  -->
            </div><!-- -->
            <div class="col-md-4">
                <?php
                    $this->load->helper('form');
                    $error = $this->session->flashdata('error');
                    if($error)
                    {
                ?>
                <div class="alert alert-danger alert-dismissable">
                    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                    <?php echo $this->session->flashdata('error'); ?>                    
                </div>
                <?php } ?>
                <?php  
                    $success = $this->session->flashdata('success');
                    if($success)
                    {
                ?>
                <div class="alert alert-success alert-dismissable">
                    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                    <?php echo $this->session->flashdata('success'); ?>
                </div>
                <?php } ?>
                
                <div class="row">
                    <div class="col-md-12">
                        <?php echo validation_errors('<div class="alert alert-danger alert-dismissable">', ' <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button></div>'); ?>
                    </div>
                </div>
            </div>
        </div>  <!-- first row closed-->   
    </section>
    
</div><!--content-wrapper closed-->
<script src="<?php echo base_url(); ?>assets/js/addUser.js" type="text/javascript"></script>      





