File "dashboard.php"
Full Path: /home/ichhrkpd/public_html/template/views/dashboard.php
File size: 8.71 KB
MIME-type: text/html
Charset: utf-8
<style>
.menubar{
border-radius:10px;
background:#fff;
padding:10px;
}
.infoside{
border-radius:10px;
background:#fff;
padding:10px;
}
.logout{
border-radius:3px;
margin: 0 auto;
background:#0a3b5f;
color:#fff;
padding:5px;
width:130px;
}
.basic-info{
border-radius:3px;
margin: 0 auto;
background:#0a3b5f;
color:#fff;
padding:5px;
margin-bottom:5px;
}
.result{
border-radius:3px;
margin: 0 auto;
background:#dee6ec;
color:#000;
padding:5px;
}
.title{
text-align:center !important;
font-size:18px;
}
</style>
<?php
$examArr = array('1'=>'First Terminal','2'=>'Promotion Test','3'=>'Test Exam');
$grp=array('A'=>'Science','B'=>'Arts','C'=>'Commerce');
$opt=$stdinfo[0]->opt_ids;
$opt_sub = explode(',',$opt);
$reg_id=$stdinfo[0]->std_reg;
$batch_id=$stdinfo[0]->batch_id;
$msg = isset($msg)?$msg:'';
$msg_type = isset($msg_type)?$msg_type:'';
$this->session->UnsetFlashData();
?>
<!-- Start main-content -->
<div class="main-content">
<!-- Section: inner-header -->
<section style="background-color: #dcebf5">
<div class="container pt-10 pb-10">
<!-- Section Content -->
<div class="section-content">
<div class="row">
<div class="col-md-12 text-center">
<h4 class="title">Student Profile Page</h4>
</div>
</div>
<div class="row" style="padding:10px; ">
<div class="col-md-4" style="margin-bottom:5px;">
<div class="menubar">
<!---<p style="text-align:center"><img src="<?php echo base_url();?>img/user.png"/></p>--->
<p class="title"><u><?php echo $stdinfo[0]->name; ?></u></p>
<p class="basic-info">Basic Info</p>
<p class="result"> Results</p>
<br>
<form action="<?php echo base_url();?>student_info/xm_results" method="post" role="form">
<input type="hidden" id="batch_id" name="batch_id" value="<?php echo $batch_id; ?>">
<input type="hidden" id="std_reg" name="std_reg" value="<?php echo $reg_id; ?>">
<input type="hidden" id="year_no" name="year_no" value="1">
<input type="submit" value="First Terminal">
</form>
<form action="<?php echo base_url();?>student_info/xm_results" method="post" role="form">
<input type="hidden" id="batch_id" name="batch_id" value="<?php echo $batch_id; ?>">
<input type="hidden" id="std_reg" name="std_reg" value="<?php echo $reg_id; ?>">
<input type="hidden" id="year_no" name="year_no" value="2">
<input type="submit" value="Promotion Test">
</form>
<form action="<?php echo base_url();?>student_info/xm_results" method="post" role="form">
<input type="hidden" id="batch_id" name="batch_id" value="<?php echo $batch_id; ?>">
<input type="hidden" id="std_reg" name="std_reg" value="<?php echo $reg_id; ?>">
<input type="hidden" id="year_no" name="year_no" value="3">
<input type="submit" value="Test">
</form>
<br>
<a href="<?php echo base_url();?>student_info/logout"><p class="logout"><img src="<?php echo base_url();?>img/shutdown.png"/> Logout</p></a>
</div>
</div>
<div class="col-md-8 ">
<div class="infoside">
<input style="padding: 10px" type="button" class="fa fa-print" onclick="printDiv('printableArea')" value="Print" />
<div style="padding:2px" id="printableArea">
<div class="row">
<div class="col-md-6">
<b>Roll No :</b> <?php echo $stdinfo[0]->std_roll; ?>
<br>
<b>Registration No :</b> <?php echo $stdinfo[0]->std_reg; ?>
<br>
<b>Session :</b> <?php echo $stdinfo[0]->std_session;?>
<br>
<b>Current Year & Exam :</b> <?php echo $stdinfo[0]->batch_year.", ".$examArr[$stdinfo[0]->year_no];?>
</div>
<div class="col-md-6">
<b>Student's Name :</b> <?php echo $stdinfo[0]->name; ?>
<br>
<b>Father's Name :</b> <?php echo $stdinfo[0]->fname; ?>
<br>
<b>Mother's Name :</b> <?php echo $stdinfo[0]->mname; ?>
<br>
<b>Group :</b> <?php echo $grp[$stdinfo[0]->batch_group]; ?>
</div>
</div>
<p>**Selected Subjects</p>
<table class="table table-bordered">
<thead>
<tr>
<th style="text-align: center;color:#000">Subject Code</th>
<th style="text-align: center;color:#000">Subject Name</th>
</tr>
</thead>
<tbody>
<?php foreach($subinfo as $sd){ ?>
<tr>
<td style="text-align: center;color:#000"><?php echo $sd->sub_id; ?></td>
<td style="color:#000">
<?php
if (in_array($sd->sub_id, $opt_sub))
echo $sd->sub_title.'<b> (Optional) </b>';
else
echo $sd->sub_title;
?>
</td>
</tr>
<?php } ?>
</tbody>
</table>
<p style="text-align:center">
<span class="title"><small>Ichhamati Degree College, Ranirbandar, Dinajpur</small></span>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</div>
<!-- end main-content -->
<script type="text/javascript">
function printDiv(divName) {
var printContents = document.getElementById(divName).innerHTML;
var originalContents = document.body.innerHTML;
document.body.innerHTML = printContents;
window.print();
document.body.innerHTML = originalContents;
}
</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);
}
} );
</script>