File "page_content.php"
Full Path: /home/ichhrkpd/public_html/idcm_old/application/views/page_content.php
File size: 10.42 KB
MIME-type: text/html
Charset: utf-8
<?php
$msg = isset($msg)?$msg:'';
$msg_type = isset($msg_type)?$msg_type:'';
$this->session->UnsetFlashData();
?>
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Page Content
</h1>
</section>
<section class="content">
<div class="row">
<div class="col-xs-12">
<div class="box">
<div class="box-header">
</div><!-- /.box-header -->
<div class="box-body"><div class="table-responsive">
<table id="example" class="table table-bordered table-hover">
<thead>
<tr>
<th>sl#</th>
<th>Page Title</th>
<th>Content</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>About Us</td>
<td>
<form id="contactForm" action="<?php echo base_url()."admin/update_page_content"?>" class="contact-form" method="post" role="form" >
<div class="form-group">
<textarea id="page_content1" name="page_content"><?php echo $content_all->about_us; ?></textarea>
</div>
<div class="" style="margin-top:5px;">
<input type="hidden" name="page_name" id="page_name" value="about_us">
<button type="submit" name="submit" id="submit" class="btn btn-xs btn-info" id="confirm">Submit</button>
</div>
</form>
</td>
</tr>
<tr>
<td>2</td>
<td>Admission</td>
<td>
<form id="contactForm" action="<?php echo base_url()."admin/update_page_content"?>" class="contact-form" method="post" role="form" >
<div class="form-group">
<textarea id="page_content9" name="page_content"><?php echo $content_all->admission; ?></textarea>
</div>
<div class="" style="margin-top:5px;">
<input type="hidden" name="page_name" id="page_name" value="admission">
<button type="submit" name="submit" id="submit" class="btn btn-xs btn-info" id="confirm">Submit</button>
</div>
</form>
</td>
</tr>
<tr>
<td>3</td>
<td>Contact Us</td>
<td>
<form id="contactForm" action="<?php echo base_url()."admin/update_page_content"?>" class="contact-form" method="post" role="form" >
<div class="form-group">
<textarea id="page_content2" name="page_content"><?php echo $content_all->contact_us; ?></textarea>
</div>
<div class="" style="margin-top:5px;">
<input type="hidden" name="page_name" id="page_name" value="contact_us">
<button type="submit" name="submit" id="submit" class="btn btn-xs btn-info" id="confirm">Submit</button>
</div>
</form>
</td>
</tr>
<tr>
<td>4</td>
<td>Syllabus (Science)</td>
<td>
<form id="contactForm" action="<?php echo base_url()."admin/update_page_content"?>" class="contact-form" method="post" role="form" >
<div class="form-group">
<textarea id="page_content3" name="page_content"><?php echo $content_all->syl_sci; ?></textarea>
</div>
<div class="" style="margin-top:5px;">
<input type="hidden" name="page_name" id="page_name" value="syl_sci">
<button type="submit" name="submit" id="submit" class="btn btn-xs btn-info" id="confirm">Submit</button>
</div>
</form>
</td>
</tr>
<tr>
<td>5</td>
<td>Syllabus (Arts)</td>
<td>
<form id="contactForm" action="<?php echo base_url()."admin/update_page_content"?>" class="contact-form" method="post" role="form" >
<div class="form-group">
<textarea id="page_content4" name="page_content"><?php echo $content_all->syl_arts; ?></textarea>
</div>
<div class="" style="margin-top:5px;">
<input type="hidden" name="page_name" id="page_name" value="syl_arts">
<button type="submit" name="submit" id="submit" class="btn btn-xs btn-info" id="confirm">Submit</button>
</div>
</form>
</td>
</tr>
<tr>
<td>6</td>
<td>Syllabus (Commerce)</td>
<td>
<form id="contactForm" action="<?php echo base_url()."admin/update_page_content"?>" class="contact-form" method="post" role="form" >
<div class="form-group">
<textarea id="page_content5" name="page_content"><?php echo $content_all->syl_com; ?></textarea>
</div>
<div class="" style="margin-top:5px;">
<input type="hidden" name="page_name" id="page_name" value="syl_com">
<button type="submit" name="submit" id="submit" class="btn btn-xs btn-info" id="confirm">Submit</button>
</div>
</form>
</td>
</tr>
<tr>
<td>7</td>
<td>Academic Calender</td>
<td>
<form id="contactForm" action="<?php echo base_url()."admin/update_page_content"?>" class="contact-form" method="post" role="form" >
<div class="form-group">
<textarea id="page_content6" name="page_content"><?php echo $content_all->aca_cal; ?></textarea>
</div>
<div class="" style="margin-top:5px;">
<input type="hidden" name="page_name" id="page_name" value="aca_cal">
<button type="submit" name="submit" id="submit" class="btn btn-xs btn-info" id="confirm">Submit</button>
</div>
</form>
</td>
</tr>
<tr>
<td>8</td>
<td>Rules</td>
<td>
<form id="contactForm" action="<?php echo base_url()."admin/update_page_content"?>" class="contact-form" method="post" role="form" >
<div class="form-group">
<textarea id="page_content7" name="page_content"><?php echo $content_all->rules; ?></textarea>
</div>
<div class="" style="margin-top:5px;">
<input type="hidden" name="page_name" id="page_name" value="rules">
<button type="submit" name="submit" id="submit" class="btn btn-xs btn-info" id="confirm">Submit</button>
</div>
</form>
</td>
</tr>
<tr>
<td>9</td>
<td>Library Information</td>
<td>
<form id="contactForm" action="<?php echo base_url()."admin/update_page_content"?>" class="contact-form" method="post" role="form" >
<div class="form-group">
<textarea id="page_content8" name="page_content"><?php echo $content_all->library_info; ?></textarea>
</div>
<div class="" style="margin-top:5px;">
<input type="hidden" name="page_name" id="page_name" value="library_info">
<button type="submit" name="submit" id="submit" class="btn btn-xs btn-info" id="confirm">Submit</button>
</div>
</form>
</td>
</tr>
</tbody>
</table></div>
</div><!-- /.box-body -->
</div><!-- /.box -->
</div><!-- /.col -->
</div><!-- /.row -->
</section><!-- /.content -->
</div>
<script src="<?php echo base_url();?>lib/bootstrap/js/jquery.dataTables.min.js"></script>
<script src="<?php echo base_url();?>lib/bootstrap/js/dataTables.bootstrap.min.js"></script>
<script src="https://cdn.ckeditor.com/4.4.3/standard/ckeditor.js"></script>
<script>
$(document).ready(function() {
var toast_msg = '<?php echo $msg;?>';
var msg_type = '<?php echo $msg_type;?>';
if(toast_msg !== null && toast_msg !== '') {
var shortCutFunction = msg_type;
toastr.options = {
positionClass: 'toast-bottom-right'
};
var $toast = toastr[shortCutFunction](toast_msg);
}
CKEDITOR.replace('page_content1');
CKEDITOR.replace('page_content2');
CKEDITOR.replace('page_content3');
CKEDITOR.replace('page_content4');
CKEDITOR.replace('page_content5');
CKEDITOR.replace('page_content6');
CKEDITOR.replace('page_content7');
CKEDITOR.replace('page_content8');
CKEDITOR.replace('page_content9');
} );
</script>