           
<div class="panel panel-default">
    <?php
    $query = $this->main_model->teacher_info($tid);
    foreach ($query as $row):
        ?>
        <div class="panel-heading">
            <h6 class="panel-title"><i class="fa fa fa-align-justify"></i> Teacher Information | Edit</h6>
            <a href="<?php echo site_url('everbright/teacher'); ?>" 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/teacher/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 datepicker" 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> 
                <!-- SHIPPER -->
                <div class="col-md-6">                   
                    <div class="form-group">
                        <label class="col-sm-4 control-label text-right">Joining Date <span class="mandatory">*</span></label>
                        <div class="col-sm-8">
                            <input type="text" class="required form-control datepicker" placeholder="Date" name="join_date" value="<?php echo $row['join_date']; ?>">
                        </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">Class Teacher<span class="mandatory">*</span></label>
						<div class="col-sm-8">
							<select data-placeholder="(:-- Select Class Teacher --:)" name="class_teacher" class="select-search">
                                    <?php 
									$query112 = $this->main_model->sclass();
									foreach($query112 as $row1122):
								?>
									
									<option value="<?php echo $row1122['name']; ?>" <?php if($row1122['name']==$row['class_teacher']): ?>selected="selected"<?php endif; ?>><?php echo $row1122['name']; ?></option>
								 <?php endforeach; ?>
							</select>                            
						</div>
							
					</div> 
				</div>
                <div class="col-md-6">                   
                        <div class="form-group">
                            <label class="col-sm-4 control-label text-right">Section</label>
                            <div class="col-sm-8">
                                <select data-placeholder="(:-- Select Section --:)" name="section" class="select-search">
                                    <option value=""></option>
                                    <option value="A" <?php if($row['section']=='A'): ?>selected="selected"<?php endif; ?>>A</option>
                                    <option value="B" <?php if($row['section']=='B'): ?>selected="selected"<?php endif; ?>>B</option>
                                    <option value="C" <?php if($row['section']=='C'): ?>selected="selected"<?php endif; ?>>C</option>
                                    <option value="D" <?php if($row['section']=='D'): ?>selected="selected"<?php endif; ?>>D</option>
                                    <option value="N/A" <?php if($row['section']=='N/A'): ?>selected="selected"<?php endif; ?>>N/A</option>
								</select>                            
                            </div>                            
                           
                        </div> 
                    </div>                    
            </div>
			<div class="row">
                <!-- Gross Weigth -->
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4 text-right">Teaching Class<span class="mandatory">*</span> </label>
                        <div class="col-md-8">
                            <input type="text" class="required  form-control" placeholder="Subject" name="t_class" value="<?php echo $row['t_class']; ?>">
                        </div>
                    </div>
                </div>
                <!-- SHIPPER -->
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4 text-right">Teaching Subject<span class="mandatory">*</span> </label>
                        <div class="col-md-8">
                            <input type="text" class="required  form-control" placeholder="Subject" name="t_department" value="<?php echo $row['t_department']; ?>">
                        </div>
                    </div>
                </div>                    
            </div>
            <div class="row">			
                <!-- Gross Weigth -->
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4 text-right">Email<span class="mandatory">*</span> </label>
                        <div class="col-md-8">
                            <input type="text" class="required  form-control" placeholder="Email" name="email"  value="<?php echo $row['email']; ?>">
                        </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>
