<?php
session_start();
    if(!isset($_SESSION['id'])) {
        header("location: index.php");
    }

?>
<?php
//session_start();
//include 'dashboard.php';
include "fetch_data.php";
include "connection.php";
error_reporting(0);

$APP_ID = $_SESSION['id'];


$user_sql = "SELECT * FROM AD_APP WHERE APP_ID = '$APP_ID' ";
$result = ociparse($conn, $user_sql);
oci_execute($result);
$user_row = oci_fetch_assoc($result);

/* retrive admission category */
$add_cat = "SELECT CAT_NAME FROM AD_CAT WHERE CAT_CODE = '". $user_row['APP_CAT'] ."' ";
$add_cat = ociparse($conn, $add_cat);
oci_execute($add_cat);
$add_cat = oci_fetch_assoc($add_cat);

/* retrive religion */
$reli = "SELECT RG_NAME FROM AD_RELIGION_MST WHERE RG_CODE = '". $user_row['RG_CODE'] ."' ";
$reli = ociparse($conn, $reli);
oci_execute($reli);
$reli = oci_fetch_assoc($reli);

/* retrive board */
$board = "SELECT BOARD_NAME FROM AD_BOARD WHERE BOARD_CODE = '". $user_row['BOARD_CODE'] ."' ";
$board = ociparse($conn, $board);
oci_execute($board);
$board = oci_fetch_assoc($board);

/* retrive location */
$loc_code = "SELECT LOC_NAME FROM AD_SCHOOL_LOC WHERE LOC_CODE = '". $user_row['LOC_CODE'] ."' ";
$loc_code = ociparse($conn, $loc_code);
oci_execute($loc_code);
$loc_code = oci_fetch_assoc($loc_code);

/* retrive ssc group */
$ssc_gr = "SELECT * FROM AD_SSC_GR WHERE GR_CODE = '". $user_row['SSC_GR_CODE'] ."' ";
$ssc_gr = ociparse($conn, $ssc_gr);
oci_execute($ssc_gr);
$ssc_gr = oci_fetch_assoc($ssc_gr);

/* retrive ssc version */
$ssc_ver = "SELECT CAT_NAME FROM AD_CAT WHERE CAT_CODE = '". $user_row['SSC_VERSION'] ."' ";
$ssc_ver = ociparse($conn, $ssc_ver);
oci_execute($ssc_ver);
$ssc_ver = oci_fetch_assoc($ssc_ver);




/* retrive  version */
$version = "SELECT VAR_NAME FROM AD_VERSION WHERE VAR_ID = '". $user_row['SSC_VERSION'] ."' ";
$version = ociparse($conn, $version);
oci_execute($version);
$version = oci_fetch_assoc($version);




?>


<html lang="en">
   <head>
   <link rel="icon" href="assets/img/logo.jpg" type="image/jpeg">
   <!-- Google tag (gtag.js) -->
   <script async src="https://www.googletagmanager.com/gtag/js?id=G-GQPGJ4YN30"></script>
   <script>
      window.dataLayer = window.dataLayer || [];

      function gtag() {
         dataLayer.push(arguments);
      }
      gtag('js', new Date());

      gtag('config', 'G-GQPGJ4YN30');
   </script>
      <meta charset="UTF-8">
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>My Profile</title>
      <!-- using online links -->
      <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css"
         integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">

      <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css"
         integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay" crossorigin="anonymous">

      <link rel="stylesheet" href="//malihu.github.io/custom-scrollbar/jquery.mCustomScrollbar.min.css">
      
      <!-- CSS only -->
     <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/css/bootstrap.min.css" rel="stylesheet"
         integrity="sha384-KyZXEAg3QhqLMpG8r+8fhAXLRk2vvoC2f3B09zVXn8CA5QIVfZOJ3BCsw2P0p/We" crossorigin="anonymous">

         <style>
            label{
               font-weight: bold;
            }
         </style>

         <!-- print div scripts starts -->
<script type="text/javascript">
         function printContent(el){
           
         	 var divToPrint=document.getElementById(el);
         
         	  var newWin=window.open('','Print-Window');
         
         	  newWin.document.open();
         
         	  newWin.document.write('<html> <link rel="stylesheet"href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO"crossorigin="anonymous">');
         	  newWin.document.write('<style> label{font-weight: bold;}  </style>'); 
         	  newWin.document.write('<body onload="window.print()"> ');
         	  
         	  
         	  
         	  newWin.document.write(divToPrint.innerHTML);
         	  
         	  newWin.document.write('</body></html>');
         
         	  newWin.document.close();
         
         	  setTimeout(function(){newWin.close();},1000);
         }
         
      </script>
      <!-- print div script ends -->
   </head>
   <body>

   <!-- dashboard start -->
   <?php include 'dashboard.php'; ?>
   <!-- dashboard end -->

   

   
   <form action="" method="POST" enctype="multipart/form-data">
   
       
       <div class="container-fluid mt-2">
       
       
          <div class="card mt-2">
          <?php //include 'marquee.php'; ?>
          <?php //include 'marquee1.php'; ?>
          <?php //include 'marquee2.php'; ?>
             <div class="d-flex justify-content-right mt-2">
                   <!-- <div class="ml-2">
                         <a href="edit.php" class="btn btn-success">Edit</a>
                   </div> -->
                   <!-- <div class="ml-2">
                         <a href="#" class="btn btn-danger" onclick="printContent('print_doc')">Print</a>
                   </div> -->
                    
                   <?php
                   if($user_row['PAYMENT_STATUS'] == 'P'){
                     ?>

                  <div class="ml-2">
                   <a href="admit_card1.php?id=<?php echo $APP_ID?>"  class="btn btn-outline-primary" id="download"><i class="fa fa-download"></i> Download Admit Card</a>

                   </div>


                    <?php

                   }
                   
                   
                   ?>   
                </div>
             <div class="card-body" id="print_doc">
             <header class="row text-center align-items-center my-4">
    <!-- Logo Section -->
    <div class="col-lg-2 col-md-3 col-sm-12 mb-2">
        <img src="assets/img/logo.jpg" alt="NDC" width="100" height="100">
    </div>

    <!-- Title Section -->
    <div class="col-lg-10 col-md-9 col-sm-12">
        <h2>Admission Application Form 2025</h2>
        <h4>Notre Dame College, Dhaka</h4>
    </div>
</header>

                <div class="form-body">
                   <form action="" method="">
                      <div class="row m-3">
                         <div class="col-lg-4 col-md-4 col-sm-12">
                          <div class="row">
                               <div class="col-lg-6 col-md-6 col-sm-12">
                               <label for="text" class="font-weight-bold">Applied Group:</label>
                               </div>
                               <div class="col-lg-6 col-md-6 col-sm-12 ">
                                     <?php echo $add_cat['CAT_NAME']; ?>
                               </div>
                            </div>
                         </div>
 
                         <div class="col-lg-8 col-md-8 col-sm-12">
                            <div class="row">
                               <div class="col-lg-3 col-md-3 col-sm-12">
 
                               </div>
                               <div class="col-lg-6 col-md-6 col-sm-12">
                                  <!-- <input type="file" accept="image/*" name="file" id="file" onchange="preview_image(event)"> -->
                               </div>
                               <div class="col-lg-3 col-md-3 col-sm-12"  >
                               <label for="text" class="text-center">Photograph:</label>
                                     <img src="data:image/jpeg;base64,<?php echo $photoout; ?>" id="output_image" width="130px" height="130px" ></img>
                               </div>
                            </div>
                         </div>
                         
                      </div>
                      <div class="row m-3">
    <!-- Full Name of Student -->
    <div class="col-lg-6 col-md-6 col-sm-12 mb-3">
        <label class="font-weight-bold">Full Name of Student:</label>
        <div class="form-control bg-light">
            <?php echo $user_row['STD_NAME']; ?>
        </div>
    </div>

    <!-- Student's Mobile No -->
    <div class="col-lg-6 col-md-6 col-sm-12 mb-3">
        <label class="font-weight-bold">Student's Mobile No:</label>
        <div class="form-control bg-light">
            <?php echo $user_row['STD_MOBILE_NO']; ?>
        </div>
    </div>
</div>

 
 
                      
 
 
<div class="row m-3">
    <!-- Religion -->
    <div class="col-lg-6 col-md-6 col-sm-12 mb-3">
        <label class="font-weight-bold">Religion:</label>
        <div class="form-control bg-light">
            <?php echo $reli['RG_NAME']; ?>
        </div>
    </div>

    <!-- Religious Sect -->
    <div class="col-lg-6 col-md-6 col-sm-12 mb-3">
        <label class="font-weight-bold">Religious Sect:</label>
        <div class="form-control bg-light">
            <?php echo $user_row['RG_SECT']; ?>
        </div>
        <!-- Optional Note -->
        <!-- <small class="text-muted">Shia/Sunni, Brahmana/Kshatriya, Catholic/Baptist</small> -->
    </div>
</div>

<div class="row m-3">
    <!-- Father's Name -->
    <div class="col-lg-6 col-md-6 col-sm-12 mb-3">
        <label class="font-weight-bold">Father's Name:</label>
        <div class="form-control bg-light">
            <?php echo $user_row['F_NAME']; ?>
        </div>
    </div>
    <!-- Mother's Name -->
    <div class="col-lg-6 col-md-6 col-sm-12 mb-3">
        <label class="font-weight-bold">Mother's Name:</label>
        <div class="form-control bg-light">
            <?php echo $user_row['M_NAME']; ?>
        </div>
    </div>

    
</div>

<div class="row m-3">
    <!-- Father's Mobile No -->
    <div class="col-lg-6 col-md-6 col-sm-12 mb-3">
        <label class="font-weight-bold">Father's Mobile No:</label>
        <div class="form-control bg-light">
            <?php echo $user_row['F_MOBILE_NO']; ?>
        </div>
    </div>

    <!-- Mother's Mobile No -->
    <div class="col-lg-6 col-md-6 col-sm-12 mb-3">
        <label class="font-weight-bold">Mother's Mobile No:</label>
        <div class="form-control bg-light">
            <?php echo $user_row['M_MOBILE_NO']; ?>
        </div>
    </div>
</div>


<div class="row m-3">
    <!-- Father's Profession -->
    <div class="col-lg-6 col-md6 col-sm-12 mb-3">
        <label class="font-weight-bold">Father's Profession:</label>
        <div class="form-control bg-light">
            <?php echo $user_row['FATHER_PROFESSION']; ?>
        </div>
    </div>

    <!-- Mother's Profession -->
    <div class="col-lg-6 col-md-6 col-sm-12 mb-3">
        <label class="font-weight-bold">Mother's Profession:</label>
        <div class="form-control bg-light">
            <?php echo $user_row['MOTHER_PROFESSION']; ?>
        </div>
    </div>
</div>

                            
                            <h5 class="col-lg-12 col-md-12 col-sm-12 font-weight-bold"style="margin-left: 12px">Your Mail Address:</h5>
                            <div class="row m-3">
    <div class="col-lg-6 col-md-6 col-sm-12 mb-3">
        <label class="font-weight-bold">Email:</label>
        <div class="form-control bg-light">
            <?php echo $user_row['E_MAIL']; ?>
        </div>
    </div>
</div>




                      <h5 class="col-lg-12 col-md-12 col-sm-12 font-weight-bold" style="margin-left:15px">Information regarding  your SSC Exam:</h5>
                      <div class="row m-3">
  <div class="col-lg-6 col-md-6 col-sm-12 mb-3">
    <label class="font-weight-bold">Full Name of School:</label>
    <div class="form-control bg-light">
      <?php echo $user_row['SCHOOL_NAME']; ?>
    </div>
  </div>

  <div class="col-lg-6 col-md-6 col-sm-12 mb-3">
    <label class="font-weight-bold">Board:</label>
    <div class="form-control bg-light">
      <?php echo $board['BOARD_NAME']; ?>
    </div>
  </div>
</div>

 
<div class="row m-3">
  <div class="col-sm-12 col-md-6 mb-3">
    <label class="font-weight-bold">Exam. Roll No:</label>
    <div class="form-control bg-light">
      <?php echo $user_row['EXAM_ROLL_NO']; ?>
    </div>
  </div>

  <div class="col-sm-12 col-md-6 mb-3">
    <label class="font-weight-bold">Registration No:</label>
    <div class="form-control bg-light">
      <?php echo $user_row['REG_NO']; ?>
    </div>
  </div>
</div>

 
<div class="row m-3">
  <div class="col-sm-6 col-md-6 mb-3">
    <label class="font-weight-bold">Session:</label>
    <div class="form-control bg-light">
      <?php echo $user_row['SESSION_NO']; ?>
    </div>
  </div>

  <div class="col-sm-6 col-md-6 mb-3">
    <label class="font-weight-bold">Exam. Year:</label>
    <div class="form-control bg-light">
      <?php echo $user_row['EXAM_YEAR']; ?>
    </div>
  </div>
</div>

 
                      
 
 
                      
                      <div class="row m-3">
  <div class="col-lg-6 col-md-6 col-sm-12 mb-3">
    <label class="font-weight-bold "> School Location:</label>
    <div class="form-control bg-light">
      <?php echo $loc_code['LOC_NAME']; ?>
    </div>
  </div>

  <div class="col-lg-6 col-md-6 col-sm-12 mb-3">
    <label class="font-weight-bold ">SSC Group:</label>
    <div class="form-control bg-light">
      <?php echo $ssc_gr['GR_NAME']; ?>
    </div>
  </div>
</div>

                      
                      <div class="row  m-3">
                         <div class="col-lg-12 col-md-12 col-sm-12">
                            <div class="row">
                               <div class="col-lg-12 col-md-12 col-sm-12">
                                  <h6 class="text-center" style="font-weight: bold;">Grade points of each subject must be filled up of SSC/Dakhil/Equivalent Examination</h6>
                               </div>
                            </div>
                         </div>
                         <div class="col-lg-12 col-md-12 col-sm-12">
                            <div class="row">
                               <div class="col-lg-12 col-md-12 col-sm-12">
                                  <h6 class="text-center" style="font-weight: bold;">For Example: 3.50, 4.00, 5.00 etc.</h6>
                               </div>
                            </div>
                         </div>
                      </div>
 
                     <?php
                         if($ssc_gr['GR_CODE'] == '1') {
                            ?>
 
                      <div class="group">
                         <div class="row m-3">
                            <div class="col-lg-3 col-md-3 col-sm-6">
                               <div class="row">
                                  <div class="col-lg-6 col-md-6 col-sm-12">
                                     <label for="text" class="text-center"> Bangla:</label>
                                  </div>
                                  <div class="col-lg-6 col-md-6 col-sm-12">
                                     <!-- <input type="text" class="form-control" name="s_bangla"
                                        id="s_bangla" th:value=""> -->
                                        <?php echo $user_row['GP_BANG']; ?>
                                  </div>
                               </div>
                            </div>
                            <div class="col-lg-3 col-md-3 col-sm-6">
                               <div class="row">
                                  <div class="col-lg-6 col-md-6 col-sm-12">
                                     <label for="text" class="text-center">English:</label>
                                  </div>
                                  <div class="col-lg-6 col-md-6 col-sm-12">
                                     <!-- <input type="text" class="form-control" name="s_english"
                                        id="s_english" th:value=""> -->
                                        <?php echo $user_row['GP_ENG']; ?>
                                  </div>
                               </div>
                            </div>
                            <div class="col-lg-3 col-md-3 col-sm-6">
                               <div class="row">
                                  <div class="col-lg-6 col-md-6 col-sm-12">
                                     <label for="text" class="text-center">Mathematics:</label>
                                  </div>
                                  <div class="col-lg-6 col-md-6 col-sm-12">
                                     <!-- <input type="text" class="form-control" name="s_mathematics"
                                        id="s_mathematics" th:value=""> -->
                                        <?php echo $user_row['GP_MATH']; ?>
                                  </div>
                               </div>
                            </div>
                            <div class="col-lg-3 col-md-3 col-sm-6">
                               <div class="row">
                                  <div class="col-lg-7 col-md-7 col-sm-12">
                                     <label for="text" class="text-center"> Physics:</label>
                                  </div>
                                  <div class="col-lg-5 col-md-5 col-sm-12">
                                     <!-- <input type="text" class="form-control" name="physics"
                                        id="physics" th:value=""> -->
                                        <?php echo $user_row['GP_PHY']; ?>
                                  </div>
                               </div>
                            </div>
                         </div>
                         <div class="row m-3">
                           
                            <div class="col-lg-3 col-md-3 col-sm-6">
                               <div class="row">
                                  <div class="col-lg-8 col-md-8 col-sm-12">
                                     <label for="text" class="text-center">Chemistry:</label>
                                  </div>
                                  <div class="col-lg-4 col-md-4 col-sm-12">
                                     <!-- <input type="text" class="form-control" name="chemistry"
                                        id="chemistry" th:value=""> -->
                                        <?php echo $user_row['GP_CHE']; ?>
                                  </div>
                               </div>
                            </div>
                            <div class="col-lg-3 col-md-3 col-sm-6">
                               <div class="row">
                                  <div class="col-lg-7 col-md-7 col-sm-12">
                                     <label for="text" class="text-center">Biology:</label>
                                  </div>
                                  <div class="col-lg-5 col-md-5 col-sm-12">
                                     <!-- <input type="text" class="form-control" name="biology"
                                        id="biology" th:value=""> -->
                                        <?php echo $user_row['GP_BIO']; ?>
                                  </div>
                               </div>
                            </div>
                            <div class="col-lg-3 col-md-3 col-sm-6">
                               <div class="row">
                                  <div class="col-lg-8 col-md-8 col-sm-12">
                                     <label for="text" class="text-center">Higher Math:</label>
                                  </div>
                                  <div class="col-lg-4 col-md-4 col-sm-12">
                                     <!-- <input type="text" class="form-control" name="highermath"
                                        id="highermath" th:value=""> -->
                                        <?php echo $user_row['GP_HMATH']; ?>
                                  </div>
                               </div>
                            </div>
                         </div>
                         <div class="row m-3">
                            <div class="col-lg-8 col-md-8 col-sm-12">
                               <div class="row">
                                  <div class="col-lg-9 col-md-9 col-sm-12">
                                     <label class="">Name of SSC Additional Subject & Grade Point:</label>
                                  </div>
                                  <div class="col-lg-3 col-md-3 col-sm-12">
                                     <!-- <input type="text" class="form-control" name="s_addsub"
                                        id="s_addsub" th:value=""> -->
                                        <?php echo $user_row['ADD_SUB_NAME']; ?>
                                  </div>
                               </div>
                            </div>
                            <div class="col-lg-4 col-md-4 col-sm-12">
                               <div class="row">
                                  <div class="col-lg-6 col-md-6 col-sm-12">
                                     <label for="text" class="text-center ">Grade Point:</label>
                                  </div>
                                  <div class="col-lg-6 col-md-6 col-sm-12">
                                     <!-- <input type="text" class="form-control" name="s_grade_point"
                                        id="s_grade_point" th:value=""> -->
                                        <?php echo $user_row['GP_ADD_SUB']; ?>
                                  </div>
                               </div>
                            </div>
                             </div>
                         <div class="row m-3">
                            
                                      <div class="col-lg-3 col-md-3 col-sm-12">
                                        <div class="row">
                                            <div class="col-lg-6 col-md-6 col-sm-12">
                                                <label for="text" class="text-center font-weight-bold">Total Marks:</label>
                                              </div>
                                            <div class="col-lg-6 col-md-6 col-sm-12">
                                                <?php echo $user_row['TOTAL_MARKS']; ?>
                                            </div>
                                        </div>
                                    </div> 
                                    <div class="col-lg-9 col-md-9 col-sm-12">
                                        <div class="row">
                                            <div class="col-lg-12 col-md-12 col-sm-12">
                                                <h6 class="font-weight-bold">(Total availed number except Physical Education,  Health and Sports, and Career Education)</h6>
                                            </div>
                                        </div>
                                    </div>
                         </div>
                      </div>
 
                      <?php
                         }
                      ?>
                      
 
                      <?php
                         if($ssc_gr['GR_CODE'] == '2') {
                            ?>
                      <div class="group">
                         <div class="row m-3">
                            <div class="col-lg-3 col-md-3 col-sm-6">
                               <div class="row">
                                  <div class="col-lg-6 col-md-6 col-sm-12">
                                     <label for="text" class="text-center"> Bangla:</label>
                                  </div>
                                  <div class="col-lg-6 col-md-6 col-sm-12">
                                     <!-- <input type="text" class="form-control" name="h_bangla"
                                        id="h_bangla" th:value=""> -->
                                        <?php echo $user_row['GP_BANG']; ?>
                                  </div>
                               </div>
                            </div>
                            <div class="col-lg-3 col-md-3 col-sm-6">
                               <div class="row">
                                  <div class="col-lg-6 col-md-6 col-sm-12">
                                     <label for="text" class="text-center">English:</label>
                                  </div>
                                  <div class="col-lg-6 col-md-6 col-sm-12">
                                     <!-- <input type="text" class="form-control" name="h_english"
                                        id="h_english" th:value=""> -->
                                        <?php echo $user_row['GP_ENG']; ?>
                                  </div>
                               </div>
                            </div>
                            <div class="col-lg-3 col-md-3 col-sm-6">
                               <div class="row">
                                  <div class="col-lg-6 col-md-6 col-sm-12">
                                     <label for="text" class="text-center">Mathematics:</label>
                                  </div>
                                  <div class="col-lg-6 col-md-6 col-sm-12">
                                     <!-- <input type="text" class="form-control" name="h_mathematics"
                                        id="h_mathematics" th:value=""> -->
                                        <?php echo $user_row['GP_MATH']; ?>
                                  </div>
                               </div>
                            </div>
                            <div class="col-lg-3 col-md-3 col-sm-6">
                               <div class="row">
                                  <div class="col-lg-7 col-md-7 col-sm-12">
                                     <label for="text" class="text-center"> Science:</label>
                                  </div>
                                  <div class="col-lg-5 col-md-5 col-sm-12">
                                     <!-- <input type="text" class="form-control" name="science"
                                        id="science" th:value=""> -->
                                        <?php echo $user_row['GP_SCI']; ?>
                                  </div>
                               </div>
                            </div>
                         </div>
                         <div class="row m-3">
                            <div class="col-lg-3 col-md-3 col-sm-6">
                               <div class="row">
                                  <div class="col-lg-7 col-md-7 col-sm-12">
                                     <label for="text" class="text-center"> Economics:</label>
                                  </div>
                                  <div class="col-lg-5 col-md-5 col-sm-12">
                                     <!-- <input type="text" class="form-control" name="science"
                                        id="science" th:value=""> -->
                                        <?php echo $user_row['GP_ECO']; ?>
                                  </div>
                               </div>
                            </div>


                            <div class="col-lg-4 col-md-4 col-sm-6">
                               <div class="row">
                                  <div class="col-lg-7 col-md-7 col-sm-12">
                                     <label for="text" class="text-center"> Civics & Citizenship:</label>
                                  </div>
                                  <div class="col-lg-5 col-md-5 col-sm-12">
                                     <!-- <input type="text" class="form-control" name="science"
                                        id="science" th:value=""> -->
                                        <?php echo $user_row['GP_CIVICS']; ?>
                                  </div>
                               </div>
                            </div>



                            <div class="col-lg-5 col-md-5 col-sm-6">
                               <div class="row">
                                  <div class="col-lg-8 col-md-8 col-sm-12">
                                     <label for="text" class="text-center"> Geography & Environment:</label>
                                  </div>
                                  <div class="col-lg-4 col-md-4 col-sm-12">
                                     <!-- <input type="text" class="form-control" name="science"
                                        id="science" th:value=""> -->
                                        <?php echo $user_row['GP_GEO']; ?>
                                  </div>
                               </div>
                            </div>
                         </div>
                         <div class="row m-3">
                            <div class="col-lg-9 col-md-9 col-sm-12">
                               <div class="row">
                                  <div class="col-lg-7 col-md-7 col-sm-12">
                                     <label class="">Name of SSC Additional Subject & Grade Point:</label>
                                  </div>
                                  <div class="col-lg-5 col-md-5 col-sm-12">
                                     <!-- <input type="text" class="form-control" name="h_addsub"
                                        id="h_addsub" th:value=""> -->
                                        <?php echo $user_row['ADD_SUB_NAME']; ?>
                                  </div>
                               </div>
                            </div>
                            <div class="col-lg-3 col-md-3 col-sm-12">
                               <div class="row">
                                  <div class="col-lg-6 col-md-6 col-sm-12">
                                     <label for="text" class="text-center ">Grade Point:</label>
                                  </div>
                                  <div class="col-lg-4 col-md-4 col-sm-12">
                                     <!-- <input type="text" class="form-control" name="h_grade_point"
                                        id="h_grade_point" th:value=""> -->
                                        <?php echo $user_row['GP_ADD_SUB']; ?>
                                  </div>
                               </div>
                            </div>


                            
                         </div>
                         <div class="row m-3">
                            

                                    <div class="col-lg-3 col-md-3 col-sm-12">
                                        <div class="row">
                                            <div class="col-lg-6 col-md-6 col-sm-12">
                                                <label for="text" class="text-center font-weight-bold">Total Marks:</label>
                                            </div>
                                            <div class="col-lg-6 col-md-6 col-sm-12">
                                                <?php echo $user_row['TOTAL_MARKS']; ?>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-lg-9 col-md-9 col-sm-12">
                                        <div class="row">
                                            <div class="col-lg-12 col-md-12 col-sm-12">
                                                <h6 class="font-weight-bold">(Total availed number except Physical Education,  Health and Sports, and Career Education)</h6>
                                            </div>
                                        </div>
                                    </div>
                         </div>

                      </div>
 
                      <?php
                         }
                      ?>
 
 
                      <?php
                         if($ssc_gr['GR_CODE'] == '3') {
                            ?>
                      <div class="group">
                         <div class="row m-3">
                            <div class="col-lg-3 col-md-3 col-sm-6">
                               <div class="row">
                                  <div class="col-lg-6 col-md-6 col-sm-12">
                                     <label for="text" class="text-center"> Bangla:</label>
                                  </div>
                                  <div class="col-lg-6 col-md-6 col-sm-12">
                                     <!-- <input type="text" class="form-control" name="g_bangla"
                                        id="g_bangla" th:value=""> -->
                                        <?php echo $user_row['GP_BANG']; ?>
                                  </div>
                               </div>
                            </div>
                            <div class="col-lg-3 col-md-3 col-sm-6">
                               <div class="row">
                                  <div class="col-lg-6 col-md-6 col-sm-12">
                                     <label for="text" class="text-center">English:</label>
                                  </div>
                                  <div class="col-lg-6 col-md-6 col-sm-12">
                                     <!-- <input type="text" class="form-control" name="g_english"
                                        id="g_english" th:value=""> -->
                                        <?php echo $user_row['GP_ENG']; ?>
                                  </div>
                               </div>
                            </div>


                            <div class="col-lg-3 col-md-3 col-sm-6">
                               <div class="row">
                                  <div class="col-lg-6 col-md-6 col-sm-12">
                                     <label for="text" class="text-center">Mathematics:</label>
                                  </div>
                                  <div class="col-lg-6 col-md-6 col-sm-12">
                                     <!-- <input type="text" class="form-control" name="g_english"
                                        id="g_english" th:value=""> -->
                                        <?php echo $user_row['GP_MATH']; ?>
                                  </div>
                               </div>
                            </div>


                            <div class="col-lg-3 col-md-3 col-sm-6">
                               <div class="row">
                                  <div class="col-lg-7 col-md-7 col-sm-12">
                                     <label for="text" class="text-center">Quran Majid Hadith Sharif:</label>
                                  </div>
                                  <div class="col-lg-5 col-md-5 col-sm-12">
                                     <!-- <input type="text" class="form-control" name="g_english"
                                        id="g_english" th:value=""> -->
                                        <?php echo $user_row['GP_QURAN']; ?>
                                  </div>
                               </div>
                            </div>

                            
                         </div>



                         <div class="row m-3">
                             <div class="col-lg-3 col-md-3 col-sm-6">
                               <div class="row">
                                  <div class="col-lg-6 col-md-6 col-sm-12">
                                     <label for="text" class="text-center" style="margin-right:20px">Arabic-I Arabic-II:</label>
                                  </div>
                                  <div class="col-lg-6 col-md-6 col-sm-12">
                                     <!-- <input type="text" class="form-control" name="g_english"
                                        id="g_english" th:value=""> -->
                                        <?php echo $user_row['GP_ARABIC']; ?>
                                  </div>
                               </div>
                            </div>


                            <div class="col-lg-3 col-md-3 col-sm-6">
                               <div class="row">
                                  <div class="col-lg-6 col-md-6 col-sm-12">
                                     <label for="text" class="text-center">Aqaid & Fiqh:</label>
                                  </div>
                                  <div class="col-lg-6 col-md-6 col-sm-12">
                                     <!-- <input type="text" class="form-control" name="g_english"
                                        id="g_english" th:value=""> -->
                                        <?php echo $user_row['GP_AQAID']; ?>
                                  </div>
                               </div>
                            </div>



                            <div class="col-lg-3 col-md-3 col-sm-6">
                               <div class="row">
                                  <div class="col-lg-6 col-md-6 col-sm-12">
                                     <label for="text" class="text-center">Islamic History:</label>
                                  </div>
                                  <div class="col-lg-6 col-md-6 col-sm-12">
                                     <!-- <input type="text" class="form-control" name="g_english"
                                        id="g_english" th:value=""> -->
                                        <?php echo $user_row['GP_ISLAM']; ?>
                                  </div>
                               </div>
                            </div>


                         </div>



                         <div class="row m-3">
                            <div class="col-lg-5 col-md-5 col-sm-12">
                               <div class="row">
                                  <div class="col-lg-7 col-md-7 col-sm-12">
                                     <label class="">Name of SSC Additional Subject & Grade Point:</label>
                                  </div>
                                  <div class="col-lg-5 col-md-5 col-sm-12">
                                     <!-- <input type="text" class="form-control" name="g_addsub"
                                        id="g_addsub" th:value=""> -->
                                        <?php echo $user_row['ADD_SUB_NAME']; ?>
                                  </div>
                               </div>
                            </div>
                            <div class="col-lg-4 col-md-4 col-sm-12">
                               <div class="row">
                                  <div class="col-lg-6 col-md-6 col-sm-12">
                                     <label for="text" class="text-center ">Grade Point:</label>
                                  </div>
                                  <div class="col-lg-6 col-md-6 col-sm-12">
                                     <!-- <input type="text" class="form-control" name="g_grade_point"
                                        id="g_grade_point" th:value=""> -->
                                        <?php echo $user_row['GP_ADD_SUB']; ?>
                                  </div>
                               </div>
                            </div>
                                                                
                         </div>
                         <div class="row m-3">
                            
                            <div class="col-lg-3 col-md-3 col-sm-12">
                                        <div class="row">
                                            <div class="col-lg-6 col-md-6 col-sm-12">
                                                <label for="text" class="text-center font-weight-bold">Total Marks:</label>
                                            </div>
                                            <div class="col-lg-6 col-md-6 col-sm-12">
                                                <?php echo $user_row['TOTAL_MARKS']; ?>
                                            </div>
                                        </div>
                              </div> 
                              <div class="col-lg-9 col-md-9 col-sm-12">
                                        <div class="row">
                                            <div class="col-lg-12 col-md-12 col-sm-12">
                                                <h6 class="font-weight-bold">(Total availed number except Physical Education,  Health and Sports, and Career Education)</h6>
                                            </div>
                                        </div>
                                    </div>
                                    
                         </div>
                      </div>
 
                      <?php 
                         }
                      ?>
 
 
                      <?php
                         if($ssc_gr['GR_CODE'] == '4') {
                            ?>
                      <div class="<?php echo $ssc_gr["GR_CODE"] ?> group">
                         <div class="row m-3">
                            <div class="col-lg-3 col-md-3 col-sm-6">
                               <div class="row">
                                  <div class="col-lg-6 col-md-6 col-sm-12">
                                     <label for="text" class="text-center"> Bangla:</label>
                                  </div>
                                  <div class="col-lg-6 col-md-6 col-sm-12">
                                     <!-- <input type="text" class="form-control" name="bs_bangla"
                                        id="bs_bangla" th:value=""> -->
                                        <?php echo $user_row['GP_BANG']; ?>
                                  </div>
                               </div>
                            </div>
                            <div class="col-lg-3 col-md-3 col-sm-6">
                               <div class="row">
                                  <div class="col-lg-6 col-md-6 col-sm-12">
                                     <label for="text" class="text-center">English:</label>
                                  </div>
                                  <div class="col-lg-6 col-md-6 col-sm-12">
                                     <!-- <input type="text" class="form-control" name="bs_english"
                                        id="bs_english" th:value=""> -->
                                        <?php echo $user_row['GP_ENG']; ?>
                                  </div>
                               </div>
                            </div>
                            <div class="col-lg-3 col-md-3 col-sm-6">
                               <div class="row">
                                  <div class="col-lg-6 col-md-6 col-sm-12">
                                     <label for="text" class="text-center">Mathematics:</label>
                                  </div>
                                  <div class="col-lg-6 col-md-6 col-sm-12">
                                     <!-- <input type="text" class="form-control" name="bs_mathematics"
                                        id="bs_mathematics" th:value=""> -->
                                        <?php echo $user_row['GP_MATH']; ?>
                                  </div>
                               </div>
                            </div>
                            <div class="col-lg-3 col-md-3 col-sm-6">
                               <div class="row">
                                  <div class="col-lg-6 col-md-6 col-sm-12">
                                     <label for="text" class="text-center">Science:</label>
                                  </div>
                                  <div class="col-lg-6 col-md-6 col-sm-12">
                                     <!-- <input type="text" class="form-control" name="bs_mathematics"
                                        id="bs_mathematics" th:value=""> -->
                                        <?php echo $user_row['GP_SCI']; ?>
                                  </div>
                               </div>
                            </div>
                         </div>
                         <div class="row m-3">
                            <div class="col-lg-3 col-md-3 col-sm-6">
                               <div class="row">
                                  <div class="col-lg-7 col-md-7 col-sm-12">
                                     <label for="text" class="text-center">Accounting:</label>
                                  </div>
                                  <div class="col-lg-5 col-md-5 col-sm-12">
                                     <!-- <input type="text" class="form-control" name="accounting"
                                        id="accounting" th:value=""> -->
                                        <?php echo $user_row['GP_ACC']; ?>
                                  </div>
                               </div>
                            </div>



                            <div class="col-lg-3 col-md-3 col-sm-6">
                               <div class="row">
                                  <div class="col-lg-7 col-md-7 col-sm-12">
                                     <label for="text" class="text-center">Finance & Banking:</label>
                                  </div>
                                  <div class="col-lg-5 col-md-5 col-sm-12">
                                     <!-- <input type="text" class="form-control" name="accounting"
                                        id="accounting" th:value=""> -->
                                        <?php echo $user_row['GP_FIN']; ?>
                                  </div>
                               </div>
                            </div>


                            <div class="col-lg-3 col-md-3 col-sm-6">
                               <div class="row">
                                  <div class="col-lg-7 col-md-7 col-sm-12">
                                     <label for="text" class="text-center">Business Entrepreneurship:</label>
                                  </div>
                                  <div class="col-lg-5 col-md-5 col-sm-12">
                                     <!-- <input type="text" class="form-control" name="accounting"
                                        id="accounting" th:value=""> -->
                                        <?php echo $user_row['GP_BUSINT']; ?>
                                  </div>
                               </div>
                            </div>
                         </div>
                         <div class="row m-3">
                            <div class="col-lg-9 col-md-9 col-sm-12">
                               <div class="row">
                                  <div class="col-lg-7 col-md-7 col-sm-12">
                                     <label for="text" class="text-center" style="margin-right:20px"> Name of SSC Additional Subject & Grade Point:</label>
                                  </div>
                                  <div class="col-lg-5 col-md-5 col-sm-12">
                                     <!-- <input type="text" class="form-control" name="bs_addsub"
                                        id="bs_addsub" th:value=""> -->
                                        <?php echo $user_row['ADD_SUB_NAME']; ?>
                                  </div>
                               </div>
                            </div>
                            <div class="col-lg-3 col-md-3 col-sm-12">
                               <div class="row">
                                  <div class="col-lg-6 col-md-6 col-sm-12">
                                     <label for="text" class="text-center ">Grade Point:</label>
                                  </div>
                                  <div class="col-lg-6 col-md-6 col-sm-12">
                                     <!-- <input type="text" class="form-control" name="bs_grade_point"
                                        id="bs_grade_point" th:value=""> -->
                                        <?php echo $user_row['GP_ADD_SUB']; ?>
                                  </div>
                               </div>
                            </div>
                            
                         </div>
                         <div class="row m-3">
                            
                            <div class="col-lg-3 col-md-3 col-sm-12">
                                        <div class="row">
                                            <div class="col-lg-6 col-md-6 col-sm-12">
                                                <label for="text" class="text-center font-weight-bold">Total Marks:</label>
                                            </div>
                                            <div class="col-lg-6 col-md-6 col-sm-12">
                                                <?php echo $user_row['TOTAL_MARKS']; ?>
                                            </div>
                                        </div>
                            </div> 
                            <div class="col-lg-9 col-md-9 col-sm-12">
                                        <div class="row">
                                            <div class="col-lg-12 col-md-12 col-sm-12">
                                                <h6 class="font-weight-bold">(Total availed number except Physical Education,  Health and Sports, and Career Education)</h6>
                                            </div>
                                        </div>
                                    </div>
                         </div>
                      </div>
 
                      <?php 
                         }
                      ?>
                      
                      <div class="row  m-3">
                         <div class="col-lg-3 col-md-3 col-sm-12">
                            <div class="row">
                               <div class="col-lg-5 col-md-5 col-sm-12">
                                  <label for="text" class="text-center">SSC GPA:</label>
                               </div>
                               <div class="col-lg-7 col-md-7 col-sm-12">
                                  <!-- <input type="text" class="form-control" name="ssc_gpa"
                                     id="ssc_gpa" th:value=""> -->
                                     <?php echo $user_row['SSC_GPA']; ?>
                               </div>
                            </div>
                         </div>
                         <div class="col-lg-4 col-md-4 col-sm-12">
                            <div class="row">
                               <div class="col-lg-6 col-md-6 col-sm-12">
                                  <label for="text" class="text-center">Total No. of A+:</label>
                               </div>
                               <div class="col-lg-6 col-md-6 col-sm-12">
                                  <!-- <input type="text" class="form-control" name="total_aplus"
                                     id="total_aplus" th:value=""> -->
                                     <?php echo $user_row['TOTAL_APLUS']; ?>
                               </div>
                            </div>
                         </div>
                         <div class="col-lg-5 col-md-5 col-sm-12">
                            <div class="row">
                               <div class="col-lg-12 col-md-12 col-sm-12">
                                  <h6 class="">(Total availed  A+ except Physical Education, Health and Sports, and Career Education)</h6>
                               </div>
                            </div>
                         </div>
                      </div>


                      <div class="row  m-3">
                        <div class="col-lg-12 col-md-12 col-sm-12">
                           <div class="row">
                              <div class="col-lg-12 col-md-12 col-sm-12">
                                 <label for="text" class="text-center">Other subjects:</label>
                              </div>

                              <?php
                               if($user_row['EXAM_SUB_NAME1']!=null){
                                 ?>

                                 <div class="col-6">
                                    <label >Others Sub. 1 : </label>
                                    <span id="value" ><?php echo $user_row['EXAM_SUB_NAME1'] ?>&nbsp&nbsp<?php echo $user_row['GP_EXAM_SUB1'] ?></span>
                                </div>


                               <?php

                               }
                               ?>

                               <?php
                               if($user_row['EXAM_SUB_NAME2']!=null){
                                 ?>

                                 <div class="col-6">
                                    <label >Others Sub. 2 : </label>
                                    <span id="value" ><?php echo $user_row['EXAM_SUB_NAME2'] ?>&nbsp&nbsp<?php echo $user_row['GP_EXAM_SUB2'] ?></span>
                                </div>


                               <?php

                               }
                              ?>

                              <?php
                               if($user_row['EXAM_SUB_NAME3']!=null){
                                 ?>

                                 <div class="col-6">
                                    <label >Others Sub. 3 : </label>
                                    <span id="value" ><?php echo $user_row['EXAM_SUB_NAME3'] ?>&nbsp&nbsp<?php echo $user_row['GP_EXAM_SUB3'] ?></span>
                                </div>


                               <?php

                               }
                               ?>

                               <?php
                               if($user_row['EXAM_SUB_NAME4']!=null){
                                 ?>

                                 <div class="col-6">
                                    <label >Others Sub. 3 : </label>
                                    <span id="value" ><?php echo $user_row['EXAM_SUB_NAME4'] ?>&nbsp&nbsp<?php echo $user_row['GP_EXAM_SUB4'] ?></span>
                                </div>


                               <?php

                               }
                              ?>


                           </div>
                        </div>
                     </div>





                      <!-- <div class="row  m-3">
                      <div class="col-lg-3 col-md-3 col-sm-12">
                                    <div class="row">
                                        <div class="col-lg-12 col-md-12 col-sm-12">
                                            <h6 class="font-weight-bold"> পরীক্ষায় প্রাপ্ত মোট নম্বর (যদি থাকে) </h6>
                                        </div>
                                    </div>
                                </div>



                                    <div class="col-lg-3 col-md-3 col-sm-12">
                                        <div class="row">
                                            <div class="col-lg-5 col-md-5 col-sm-12">
                                                <label for="text" class="text-center font-weight-bold">SSC Total Marks:</label>
                                            </div>
                                            <div class="col-lg-7 col-md-7 col-sm-12">
                                                <input type="number" class="form-control" name="total_marks" id="total_marks" value="<?php echo $user_row['TOTAL_MARKS']; ?>"">
                                                <span id="es_s_total_marks" style="color:red; font-weight:bold"></span>
                                            </div>
                                        </div>
                                    </div>


                                    <div class="col-lg-6 col-md-6 col-sm-12">
                                    <div class="row">
                                        <div class="col-lg-12 col-md-12 col-sm-12">
                                            <h6 class="font-weight-bold">(পরীক্ষায় মোট নম্বরের ক্ষেত্রে Physical Education, Health and Sports, and Career Education-এ প্রাপ্ত নম্বর যোগ হবে না। )</h6>
                                        </div>
                                    </div>
                                </div>
                      </div> -->
                      <div class="row m-3">
                         <div class="col-lg-12 col-md-12 col-sm-12">
                            <div class="row">
                               <div class="col-lg-4 col-md-4 col-sm-12">
                                  <h6>Version of SSC Exam: </h6>
                               </div>
                               <div class="form-check col-lg-4 col-md-4 col-sm-12">
                                <?php 
                                if($user_row['SSC_VERSION'] =='B'){
                                  ?>

                                    <h6>Bangla </h6>

                                  <?php


                                }else{
                                  ?>
                                    <h6>English </h6>



                                  <?php


                                }
                                 


                                ?>
                               </div>
                                
                               
                            </div>
                         </div>
                      </div>
                      <div class="row m-3">
                         <div class="col-lg-12 col-md-12 col-sm-12">
                            <div class="row">
                               <div class="col-lg-8 col-md-8 col-sm-12">
                                  <label for="text" class="text-center ">Write down the contact number to send messages(SMS) from the college to your mobile phone:</label>
                               </div>
                               <div class="col-lg-4 col-md-4 col-sm-12">
                                  <!-- <input type="number" class="form-control" name="massage_mobile"
                                     id="massage_mobile" th:value=""> -->
                                     <?php echo $user_row['SMS_MOBILE_NO']; ?>
                               </div>
                            </div>
                         </div>
                      </div>


                      <?php
                       if($user_row['TB_EXAM_ROLL_NO']!=null){
                        ?>

                        <div class="row  m-3">
                        <div class="col-lg-9 col-md-9 col-sm-12">
                            <div class="row">
                                <div class="col-lg-9 col-md-9 col-sm-12">
                                    <label for="text" class="text-center font-weight-bold">যমজ ভাই ভর্তি আবেদন করে থাকলে তোমার ভাইয়ের এস এস সি রোল ও রেজিস্ট্রেশন নম্বর :</label>
                                </div>

                                <div class="col-lg-3 col-md-3 col-sm-12">
                                    <!-- <span class="font-weight-bold">Subjects</span> -->
                                    <input type="text" class="form-control m-2" name="twin_ssc_roll" id="twin_ssc_roll" placeholder="SSC Roll" value="<?php echo $user_row['TB_EXAM_ROLL_NO']; ?>" readonly>
                       
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-3 col-md-3 col-sm-12">
                            <div class="row">

                                <div class="col-lg-12 col-md-12 col-sm-12">
                                    <!-- <span class="font-weight-bold">Grade Point</span> -->
                                    <input type="text" class="form-control m-2" name="twin_ssc_regi" id="twin_ssc_regi" placeholder="Registration Number" value="<?php echo $user_row['TB_REG_NO']; ?>" readonly>
                                   




                                </div>
                            </div>
                        </div>
                    </div>


                      



                       <?php
                        
                       }
                      
                      ?>

                     
                       
                      <div class="row">
                         <div class="col-lg-4 col-md-4 col-sm-12">
                         </div>
                         <div class="col-lg-4 col-md-4 col-sm-12">
                            
                         </div>
                         <div class="col-lg-4 col-md-4 col-sm-12">
                         </div>
                      </div>
                   </form>
                </div>
             </div>
          </div>
       </div>
 
    </form>


      <!-- using online scripts -->
      <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
      <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js"
         integrity="sha384-wHAiFfRlMFy6i5SRaxvfOCifBUQy1xHdJ/yoi7FRNXMRBu5WHdZYu1hA6ZOblgut" crossorigin="anonymous"></script>
      <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js"
         integrity="sha384-B0UglyR+jN6CkvvICOB2joaf5I4l3gm9GU6Hc1og6Ls7i6U/mkkaduKaBhlAXv9k" crossorigin="anonymous"></script>
      <script src="//malihu.github.io/custom-scrollbar/jquery.mCustomScrollbar.concat.min.js"></script>
      <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
   </body>
</html>