File "batch_subjects.php"
Full Path: /home/ichhrkpd/public_html/idcm_old/application/views/batch_subjects.php
File size: 6.43 KB
MIME-type: text/html
Charset: utf-8
<?php
$sl =1;
$msg = isset($msg)?$msg:'';
$msg_type = isset($msg_type)?$msg_type:'';
$this->session->UnsetFlashData();
$subArr = array();
$ScienceSub = ScienceSub();
$ArtsSub = ArtsSub();
$CommerceSub = CommerceSub();
if($batch_group == 'A') {
$subArr = $ScienceSub;
}elseif($batch_group == 'B'){
$subArr = $ArtsSub;
}else{
$subArr = $CommerceSub;
}
?>
<div class="content-wrapper">
<section class="content-header">
<h1>
<?php
echo $title;
?>
</h1>
</section>
<section class="content">
<div class="row">
<div class="col-xs-12">
<div class="box">
<div class="box-header">
<a href="<?php echo base_url().'admin/std_list/batch_id/'.$batch_id;?>" class="btn-sm btn-info pull-right"><i class="fa fa-arrow-left" aria-hidden="true"></i> Back</a>
</div>
<div class="box-body">
<div class="row">
<div class="col-md-6">
<label class="control-label"><?php _e("First Terminal"); ?> <a target="_blank" class="pull-right" href='<?php echo base_url()."admin/exam_result_print/batch_id/$batch_id/year_no/1";?>' > View Result</a> </label>
<table id="example" class="table table-bordered table-hover">
<thead>
<tr>
<th>Code</th>
<th>Title</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php foreach($sub_data as $sd){ ?>
<tr>
<td><?php echo $sd->sub_id ?></td>
<td><?php echo $sd->sub_title ?></td>
<td>
<a href="<?php echo base_url().'admin/sub_details/code/'.$sd->sub_id . '/batch_id/' . $batch_id . '/year_no/1';?>" > Details</a>
</td>
</tr>
<?php } ?>
</tbody>
</table>
<label class="control-label"><?php _e("Promotion Test"); ?> <a target="_blank" class="pull-right" href='<?php echo base_url()."admin/exam_result_print/batch_id/$batch_id/year_no/2";?>' > View Result</a> </label>
<table id="example" class="table table-bordered table-hover">
<thead>
<tr>
<th>Code</th>
<th>Title</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php foreach($sub_data as $sd){ ?>
<tr>
<td><?php echo $sd->sub_id; ?></td>
<td><?php echo $sd->sub_title; ?></td>
<td>
<a href="<?php echo base_url().'admin/sub_details/code/'.$sd->sub_id . '/batch_id/' . $batch_id . '/year_no/2';?>" > Details</a>
</td>
</tr>
<?php } ?>
</tbody>
</table>
<label class="control-label"><?php _e("Test Exam"); ?> <a target="_blank" class="pull-right" href='<?php echo base_url()."admin/exam_result_print/batch_id/$batch_id/year_no/3";?>' > View Result</a> </label>
<table id="example" class="table table-bordered table-hover">
<thead>
<tr>
<th>Code</th>
<th>Title</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php foreach($sub_data as $sd){ ?>
<tr>
<td><?php echo $sd->sub_id ?></td>
<td><?php echo $sd->sub_title ?></td>
<td>
<a href="<?php echo base_url().'admin/sub_details/code/'.$sd->sub_id . '/batch_id/' . $batch_id . '/year_no/3';?>" > Details</a>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</div>
<script>
$(document).ready(function() {
$('#contactForm').validator();
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);
}
} );
</script>