           
<div class="panel panel-default">
    <?php
    $query = $this->main_model->deptteacher_info($dtid);
    foreach ($query as $row):
        ?>
        <div class="panel-heading">
            <h6 class="panel-title"><i class="fa fa fa-align-justify"></i> Institution Teacher Summery | Edit</h6>
            <a href="<?php echo site_url('everbright/deptteacher'); ?>" 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/deptteacher/edit/' . $row['dtid']); ?>" 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 class="mandatory">*</span></span></label>
                            <div class="col-sm-8">
                                <input type="text" class="required  form-control " value="<?php echo $row['serial']; ?>"  placeholder="Serial" name="serial">
                            </div>
                        </div> 
                    </div>
                    <div class="col-md-6">                   
                        <div class="form-group">
                            <label class="col-sm-4 control-label text-right"><span>Subject Name<span class="mandatory">*</span></span></label>
                            <div class="col-sm-8">
                                <input type="text" class="required  form-control " value="<?php echo $row['dept_name']; ?>"  placeholder="Subject Name" name="dept_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"><span>Create<span class="mandatory">*</span></span></label>
                            <div class="col-sm-8">
                                <input type="text" class="required  form-control " value="<?php echo $row['createp']; ?>"  placeholder="Create" name="createp">
                            </div>
                        </div> 
                    </div>
                    <div class="col-md-6">                   
                        <div class="form-group">
                            <label class="col-sm-4 control-label text-right"><span>Fill Up<span class="mandatory">*</span></span></label>
                            <div class="col-sm-8">
                                <input type="text" class="required  form-control " value="<?php echo $row['fillp']; ?>"  placeholder="Fill Up" name="fillp">
                            </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"><span>Null<span class="mandatory">*</span></span></label>
                            <div class="col-sm-8">
                                <input type="text" class="required  form-control " value="<?php echo $row['nullp']; ?>"  placeholder="Null" name="nullp">
                            </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>
