           
<div class="panel panel-default">
    <?php
    $query = $this->main_model->digitalcontent_info($id);
    foreach ($query as $row):
        ?>
        <div class="panel-heading">
            <h6 class="panel-title"><i class="fa fa fa-align-justify"></i> Digital Content | Edit</h6>
            <a href="<?php echo site_url('everbright/digitalcontent'); ?>" 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/digitalcontent/edit/' . $row['id']); ?>" 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">Class<span class="mandatory">*</span></label>
							<div class="col-sm-8">
								<select data-placeholder="(:-- Select Class --:)" name="sclass" class="select-search">
                                    <?php 
									$query111 = $this->main_model->sclass();
									foreach($query111 as $row123):
								?>
									
									<option value="<?php echo $row123['name']; ?>" <?php if($row123['name']==$row['sclass']): ?>selected="selected"<?php endif; ?>><?php echo $row123['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">Teacher<span class="mandatory">*</span></label>
							<div class="col-sm-8">
								<select data-placeholder="(:-- Select Teacher --:)" name="steacher" class="select-search">
                                    <?php 
									$query1thr = $this->main_model->teacher();
									foreach($query1thr as $rowthr):
								?>
									
									<option value="<?php echo $rowthr['name']; ?>" <?php if($rowthr['name']==$row['steacher']): ?>selected="selected"<?php endif; ?>><?php echo $rowthr['name']; ?></option>
								 <?php endforeach; ?>
								 </select>                            
							</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">Subject<span class="mandatory">*</span> </label>
                        <div class="col-sm-8">
                            <input type="text" class="required  form-control" placeholder="Subject" name="ssubject" value="<?php echo $row['ssubject']; ?>">
                        </div>
                    </div> 
                </div> 
                <!-- SHIPPER -->
                <div class="col-md-6">                   
                    <div class="form-group">
                        <label class="col-sm-4 control-label text-right">Title<span class="mandatory">*</span> </label>
                        <div class="col-sm-8">
                            <input type="text" class="required  form-control" placeholder="Title" name="title" value="<?php echo $row['title']; ?>">
                        </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>
