           
<div class="panel panel-default">
    <?php
    $query = $this->main_model->oemployee_info($tid);
    foreach ($query as $row):
        ?>
        <div class="panel-heading">
            <h6 class="panel-title"><i class="fa fa fa-align-justify"></i> Others Employee Information | Edit</h6>
            <a href="<?php echo site_url('everbright/oemployee'); ?>" class="pull-right btn btn-circle btn-xs btn-default"><i class="fa fa-step-backward"></i> Back</a>
        </div>

        <div class="panel-body">
            <form action="<?php echo site_url('everbright/oemployee/edit/' . $row['tid']); ?>" method="post" class="form-horizontal validate" role="form"> 

                <div class="row">
					<div class="col-md-6">                   
						<div class="form-group">
							<label class="col-sm-4 control-label text-right"><span>Serial</span><span class="mandatory">*</span></label>
							<div class="col-sm-8">
								<input type="text" class="required  form-control " placeholder="Serial" name="serial" value="<?php echo $row['serial']; ?>">
							</div>
						</div> 
					</div>
					<div class="col-md-6">                   
						<div class="form-group">
							<label class="col-sm-4 control-label text-right"><span>Name</span><span class="mandatory">*</span></label>
							<div class="col-sm-8">
								<input type="text" class="required  form-control " placeholder="Name" name="name"  value="<?php echo $row['name']; ?>">
							</div>
						</div> 
					</div>
					
                                 
				</div>
				<div class="row">
					
					
					<div class="col-md-6">                   
						<div class="form-group">
							<label class="col-sm-4 control-label text-right">Designation<span class="mandatory">*</span></label>
							<div class="col-sm-8">
								<select data-placeholder="(:-- Select Designation --:)" name="designation" class="select-search">
                                    <?php 
									$query111 = $this->main_model->desig();
									foreach($query111 as $row123):
								?>
									
									<option value="<?php echo $row123['did']; ?>" <?php if($row123['did']==$row['designation']): ?>selected="selected"<?php endif; ?>><?php echo $row123['name']; ?></option>
								 <?php endforeach; ?>
								 </select>                            
							</div>
							
						</div> 
					</div>
					<!-- Date -->
					<div class="col-md-6">                   
						<div class="form-group">
							<label class="col-sm-4 control-label text-right">Contact<span class="mandatory">*</span></label>
							<div class="col-sm-8">
								<input type="text" class="required form-control" placeholder="contact" name="contact"  value="<?php echo $row['contact']; ?>">
							</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">Education<span class="mandatory">*</span> </label>
                        <div class="col-sm-8">
                            <input type="text" class="required  form-control" placeholder="Education" name="education"   value="<?php echo $row['education']; ?>">
                        </div>
                    </div> 
                </div> 
				<div class="col-md-6">                   
						<div class="form-group">
							<label class="col-sm-4 control-label text-right">Join Date<span class="mandatory">*</span></label>
							<div class="col-sm-8">
								<input type="text" class="required form-control datepicker" placeholder="join_date" name="join_date"  value="<?php echo $row['join_date']; ?>">
							</div>
						</div> 
					</div>
                               
            </div> 
            
			

                <div class="form-actions text-right">
                    <button type="submit" value="Update" class="btn btn-primary"><i class="fa fa-check"></i> Update</button>
                </div>

            </form> 

        </div>

    <?php endforeach; ?>

</div>
