<?php

$EmpID = '';
$FirstName= '';
$LastName = '';
$DateofBirth = '';
$ContactNumber = '';
$EmailId = '';
$DateofJoining = '';
$Role = '';
$Address1 = '';
$Address2 = '';
$Place = '';
$City = '';
$State = '';
$Pin = '';
$DepartmentName = '';
$User_Comments = '';
if(!empty($userRecords))
{
    foreach ($userRecords as $uf)
    {
		$EmpID = $uf->EmpID;
        $FirstName = $uf->FirstName;
        $LastName = $uf->LastName;
        $DateofBirth = $uf->DateofBirth;
		$ContactNumber = $uf->ContactNumber;
		$EmailId = $uf->EmailId;
		$DateofJoining	= $uf->DateofJoining;
		$Role = $uf->Role;
		$Address1 = $uf->Address1;
		$Address2 = $uf->Address2;
		$Place = $uf->Place;
		$City = $uf->City;
		$State = $uf->State;
		$Pin = $uf->Pin;
		$DepartmentName = $uf->DepartmentName;
		$User_Comments = $uf->User_Comments;
    }
}


?>

<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <h1>
       <center> Employee details</center>
        	  
      </h1>
	 
    </section>
    
    <section class="content">
    
        <div class="row">
            <!-- left column -->
            <div class="col-md-8">
              <!-- general form elements -->
                
                   <div style="text-align:right;">
    <a href="<?php echo base_url() ?>userListing" class="btn btn-info" value="Back"/>Back</a>
	</div>
	<br/>
                
                <div class="box box-primary">
                    <div class="box-header">
                        <center><h3 class="box-title">View Employee Details</h3></center>
                    </div><!-- /.box-header -->
                    <!-- form start -->
                    
                    <form role="form" action="<?php echo base_url() ?>Employeedetails/editemployee" method="post" id="editemployee" role="form">
                        <div class="box-body">
                            <div class="row">
                                <table class="table table-bordered 2px">
                                <div class="col-md-6 col-md-offset-3">                                
                                    <div class="form-group">
									 
									<tbody>
									<tr>
									<td><label for="EmpID" class="col-md-7">EmpID</label></td>
                                        <td><?php echo $EmpID; ?></td>
									</tr>
									
										
										<tr>
										<td><label for="FirstName" class="col-md-7">FirstName  </label></td>
                                        <td><?php echo $FirstName; ?></td>						
										</tr>
                                    
                                    
                                
                                
                                    <tr>
                                      <td>  <label for="LastName" class="col-md-7">LastName</label></td>
                                        <td><?php echo $LastName;?></td>
                                    </tr>
                               
                            
                            
									<tr>
                                      <td>  <label for="DateofBirth" class="col-md-7">DateofBirth</label></td>
                                         <td> <?php echo $DateofBirth?></td>
                                    </tr>
									<tr>
                                      <td>  <label for="EmailId" class="col-md-7">EmailId</label></td>
                                       <td> <?php echo $EmailId?></td>
                                   </tr>
                            
                            
									<tr>
								
										<td><label for="DateofJoining" class="col-md-7">DateofJoining</label></td>
                                        <td> <?php echo $DateofJoining?></td>
                                   
									</tr>
								
                                    <tr>
                                     <td>   <label for="Role" class="col-md-7">Role</label></td>
                                      <td>  <?php echo $Role; ?></td>
                                    </tr>
                                
									<tr>
                                       <td> <label for="Address1" class="col-md-7">Address1</label></td>
                                        <td><?php echo $Address1; ?></td>
										</tr>
										<tr>
                                     <td>   <label for="Address2" class="col-md-7">Address2</label></td>
                                      <td>  <?php echo $Address2; ?></td>
                                    </tr>
									<tr>
                                     <td>   <label for="Place" class="col-md-7">Place</label></td>
                                      <td>  <?php echo $Place; ?></td>
                                    </tr>
									<tr>
                                     <td>   <label for="State" class="col-md-7">State</label></td>
                                      <td>  <?php echo $State; ?></td>
                                    </tr>
									<tr>
                                     <td>   <label for="Pin" class="col-md-7">Pin</label></td>
                                      <td>  <?php echo $Pin; ?></td>
                                    </tr>
									<td>   <label for="DepartmentName" class="col-md-7">DepartmentName</label></td>
                                      <td>  <?php echo $DepartmentName; ?></td>
                                    </tr>
									<tr>
									<td>   <label for="User_Comments" class="col-md-7">User_Comments</label></td>
                                   <td><?php echo $DepartmentName; ?></td>
								   
								   </tr>   
                                    </div>
                                </div>
                                    
								   
                            </div>
							</table>
                            
                        </div><!-- /.box-body -->
     
                    </form>
                </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>    
    </section>
</div>

<script src="<?php echo base_url(); ?>assets/js/editUser.js" type="text/javascript"></script>