           
<div class="panel panel-default">
    <?php
    $query = $this->main_model->ainfo_info($id);
    foreach ($query as $row):
        ?>
        <div class="panel-heading">
            <h6 class="panel-title"><i class="fa fa fa-align-justify"></i> Admission Info. | Edit</h6>
            <a href="<?php echo site_url('everbright/ainfo'); ?>" 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/ainfo/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">Admission Type</label>
                            <div class="col-sm-8">
                                <select data-placeholder="(:-- Select Admission Type --:)" name="atype" class="select-search">
                                    <option value=""></option>
                                    <option value="1" <?php if($row['atype']=='1'): ?>selected="selected"<?php endif; ?>>প্রসপেক্টাস</option>
                                    <option value="2" <?php if($row['atype']=='2'): ?>selected="selected"<?php endif; ?>>ভর্তির নিয়মাবলী</option>
									<option value="3" <?php if($row['atype']=='3'): ?>selected="selected"<?php endif; ?>>ভর্তি পরীক্ষার সিলেবাস</option>
									<option value="4" <?php if($row['atype']=='4'): ?>selected="selected"<?php endif; ?>>ভর্তির ফলাফল</option>
                                </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">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> 
					<!-- SHIPPER -->
					<div class="col-md-6">                   
						<div class="form-group">
							<label class="col-sm-4 control-label text-right">File Type<span class="mandatory">*</span> </label>
							<div class="col-sm-8">
								<input type="text" class="required  form-control" placeholder="File Type" name="page" value="<?php echo $row['page']; ?>">
							</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>
