File "std_info-20260225162449.php"

Full Path: /home/ichhrkpd/public_html/application/models/std_info-20260225162449.php
File size: 5.31 KB
MIME-type: text/html
Charset: utf-8

<style>
   


    
</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);

?>

<!-- Start 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">
                
                <input style="padding: 10px" type="button" class="fa fa-print" onclick="printDiv('printableArea')" value="Print" />
               
            </div>

            <div class="col-md-12" style="padding:20px 100px 20px 100px" id="printableArea">
                <p style="text-align:center"><b><u>Student's Information Status of 	Higher Secondary Certificate</u></b></p><br>
                <h4 class="title">Ichhamati Degree College, Ranirbandar, Dinajpur</h4>
                
                 <table class="table">
                   
                    <tbody>
                        
                        <tr>
                            <td><b>Roll No</b></td>
                            <td>:</td>
                            <td><?php echo $stdinfo[0]->std_roll; ?></td>
                            <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                            <td>Student's Name</td>
                            
                            <td>:</td>
                            <td><?php echo $stdinfo[0]->name; ?></td>
                        </tr>
                        <tr>
                            <td><b>Registration No</b></td>
                            <td>:</td>
                            <td><?php echo $stdinfo[0]->std_reg; ?></td>
                            <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                            <td>Father's Name</td>
                            <td>:</td>
                            <td><?php echo $stdinfo[0]->fname; ?></td>
                        </tr>
                        
                         <tr>
                            <td>Session</td>
                            <td>:</td>
                            <td><?php echo $stdinfo[0]->std_session;?></td>
                            <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                            <td>Mother's Name</td>
                            <td>:</td>
                            <td><?php echo $stdinfo[0]->mname; ?></td>
                        </tr>
                        <tr>
                            <td>Current Year & Exam</td>
                            <td>:</td>
                            <td><?php echo $stdinfo[0]->batch_year.", ".$examArr[$stdinfo[0]->year_no];?></td>
                            <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                            <td>Group</td>
                            <td>:</td>
                            <td><?php echo $grp[$stdinfo[0]->batch_group]; ?></td>
                        </tr>
                        
                        
   
                
                    </tbody>
                  </table>  
                 
              
              <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>   
             
              
            </div>
            
            
          </div>
        </div>
      </div>
    </section>  
    
    
    
<script type="text/javascript">
    function required()
    {
    var empt = document.forms["form1"]["reg_id"].value;
    var empt2 = document.forms["form1"]["mobile"].value;
    if (empt == "" && empt2 == "")
    {
    alert("Please Input Registration ID/Mobile Number");
   
    return false;
    }
    
}


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>