File "xm_results-20260225051124.php"

Full Path: /home/ichhrkpd/public_html/template/views/xm_results-20260225051124.php
File size: 8.5 KB
MIME-type: text/html
Charset: utf-8

<style>

	.table-bordered {
	  border: 1px solid #000 !important;
	}
	
	.table-bordered > thead > tr > th, .table-bordered > tbody > tr > th, .table-bordered > tfoot > tr > th, .table-bordered > thead > tr > td, .table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > td {
	  border: 1px solid #000 !important;
	  text-align: left;
	  padding: 5px 5px 5px 5px;
	  
	}
	
	table {
  		width: 100%;
		margin:  auto; 
		font-size: 12px;
	}


    .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:#dee6ec;
        
        padding:5px;
        margin-bottom:5px;
        
    }
    .basic-info a{
        color:#000 !important;
    }
    .result{
        border-radius:3px;
        margin: 0 auto;
        background:#0a3b5f;
        color:#fff;
        padding:5px;
        
    }
    
    .title{
        text-align:center !important;
        font-size:18px;
    }
    
  
    
</style>

<?php 
 $master_stdArr = isset($master_stdArr)?$master_stdArr:array();
	 
	 $exam_name = isset($exam_name)?$exam_name:'';
	 
	 
	 $i = 1;
	 
	 $msg = isset($msg)?$msg:'';
	 $msg_type = isset($msg_type)?$msg_type:'';
	 $this->session->UnsetFlashData();
	 
	 
	 $k = 1;
	 
	 $num_std = count($master_stdArr);
	 $num_pages = ceil($num_std / 25);
	 
	 if($num_pages == 0){
	     $num_pages = 1;
	 }
	 


?>

<!-- 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 $stdObj->name; ?></u></p>
                  
                  <p class="basic-info"><a href="<?php echo base_url();?>student_info/dashboard">Basic Info</a></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"/>&nbsp;&nbsp;&nbsp;Logout</p></a>
                </div> 
            </div>
            <div class="col-md-8 ">
                <div class="infoside">
                     <strong><?php echo 'Examination of ' . $exam_name;?></strong></p>
                
                     <table class="table-bordered">
                    <thead>
                                         
                    </thead>
                    <tbody>
                        
                        <tr>
                            <td>Registration No</td><td><?php echo $stdObj->std_reg; ?></td>
                            <td>Roll No</td><td><?php echo $stdObj->std_roll; ?></td>
                            
                        </tr>
                        
                        <tr>
                            <td>Name of Student</td>
                            <td colspan=3><?php echo $stdObj->name; ?></td>
                        </tr>
                        
                        <tr>
                            <td>Father's Name</td>
                            <td colspan=3><?php echo $stdObj->fname; ?></td>
                        </tr>
                        
                        <tr>
                            <td>Mother's Name</td>
                            <td colspan=3><?php echo $stdObj->mname; ?></td>
                        </tr>
                        
                        <tr>
                            <td>GPA</td>
                            <td colspan=3><?php echo $cgpa; ?></td>
                        </tr>
                        
                
                    </tbody>
                  </table> 
                  
                  <br><h4 style="text-align:center;">Subject-Wise Grade/Marks</h4>
        
                  <table class="table-bordered">
                    <thead>
                       <tr> 
                            <th style="text-align: center;">Subject Code</th>
                            <th style="text-align: center;">Subject Name</th>
                            <th style="text-align: center;">Marks</th>
                            <th style="text-align: center;">Grade</th>
                            <th style="text-align: center;">GP</th>
                       </tr>           
                    </thead>
                    <tbody>
                        
                        <?php foreach($final_data as $fd){ ?>
                        
                        <tr>
                            <td style="text-align: center;"><?php echo $fd->sub_code; ?></td>
                            <td><?php echo $fd->sub_name; ?></td>
                            <td style="text-align: center;"><?php echo $fd->total; ?></td>
                            <td style="text-align: center;"><?php echo $fd->LG; ?></td>
                            <td style="text-align: center;"><?php echo $fd->GP; ?></td>
                            
                        </tr>
                        
                         <?php } ?>
                        
                        
                        
                        
                        
                
                    </tbody>
                  </table> 
                   
                 
                </div>
            </div>
            
          </div>
          
        </div>
      </div>
    </section>
    
    
  </div>
  <!-- end main-content -->
  
  
  <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>