<?php
session_start();

if (!isset($_SESSION['id'])) {
   header("location: index.php");
}
include "fetch_data.php";
include "connection.php";

$APP_ID = $_SESSION['id'];


$sql = "SELECT * FROM AD_ADMISSION where APP_ROLL_NO in (select APP_ROLL_NO from ad_app where APP_ID='$APP_ID')";
// $sql = "SELECT * FROM AD_ADM where APP_ROLL_NO in (select APP_ROLL_NO from ad_app where APP_ID='$APP_ID')";
// $sql = " SELECT AD_APP.APP_ROLL_NO,(SELECT AD_CAT.CAT_NAME FROM AD_CAT WHERE AD_APP.APP_CAT = AD_CAT.CAT_ID ) AS APP_CAT  FROM AD_APP WHERE APP_ID = '$APP_ID'";
// $sql = "  SELECT APP_ROLL_NO,APP_CAT,CAT_NAME from AD_APP ada,AD_CAT adc where ADA.APP_CAT=ADC.CAT_CODE and APP_ID = '$APP_ID''";
// print_r($sql);
$parse = ociparse($conn, $sql);
oci_execute($parse);

//print_r($sql);
while ($row = oci_fetch_assoc($parse)) {
   $user_row[] = $row;
}

// var_dump($division);
// echo count($division);
oci_free_statement($parse);




















if (isset($_POST['submit'])) {


   $APP_ROLL_NO = $_POST['app_roll_no'];
   $APP_CAT = $_POST['ap_cat'];
   // $imdata=0;
   $imdata = $_POST['basedata'];
   $STD_NAME = $_POST['std_name'];
   $NICK_NAME = $_POST['nick_name'];
   $DOB  = date('d-m-Y', strtotime($_POST['dob']));
   $BIRTH_REG_NO = $_POST['birth_reg_number'];
   $BLOOD_GR = $_POST['blood_group'];
   $RG_CODE = $_POST['religion'];
   $RG_SECT = $_POST['religion_sect'];
   $STD_MOBILE_NO = $_POST['std_mobile_number'];
   $SMS_MOBILE_NO = $_POST['sms_mobile_number'];
   $SSC_GR_CODE = $_POST['ssc_group_code'];
   $SCHOOL_NAME = $_POST['school_name'];
   $SCHOOL_ADDR = $_POST['school_address'];
   $BOARD_CODE = $_POST['board'];
   $EXAM_CENTER = $_POST['exam_center'];
   $EXAM_ROLL_NO = $_POST['exam_roll_number'];
   $EXAM_YEAR = $_POST['exam_year'];
   $REG_NO = $_POST['reg_no'];
   $SESSION_NO = $_POST['session'];
   $SSC_GPA = $_POST['ssc_gpa'];
   $TOTAL_APLUS = $_POST['number_of_aplus'];
   if ($APP_CAT === '1' || $APP_CAT === '2') {
      $MARKS_BANG = $_POST['s_bangla'];
      $MARKS_ENG = $_POST['s_english'];
      $MARKS_RELI = $_POST['s_religion'];
      $MARKS_MATH = $_POST['s_math'];
      // $MARKS_BGS= $_POST['s_global'];
      // $MARKS_ICT = $_POST['s_ict'];
      $MARKS_PHY = $_POST['s_physics'];
      $MARKS_CHE = $_POST['s_chemisty'];
      $MARKS_BIO = $_POST['s_biology'];
      $MARKS_HMATH = $_POST['s_higher_math'];
      // $MARKS_CRRE = $_POST['s_career_edutacation'];
      $OTHER_SUB1_NAME = $_POST['s_subject1'];
      $MARKS_OTHER_SUB1 = $_POST['s_subject1_gpa'];
      $OTHER_SUB2_NAME = $_POST['s_subject2'];
      $MARKS_OTHER_SUB2 = $_POST['s_subject2_gpa'];
      $OTHER_SUB3_NAME = $_POST['s_subject3'];
      $MARKS_OTHER_SUB3 = $_POST['s_subject3_gpa'];
      $ADD_SUB_NAME = $_POST['s_additional_subject'];
      $MARKS_ADD_SUB = $_POST['s_additional_subject_gpa'];
      $BANGLA = 'Y';
      $ENGLISH = 'Y';
      $ICT = 'Y';
      $PHYSICS = 'Y';
      $CHEMISTRY = 'Y';
      $HIGHER_MATH = 'N';
      $BIOLOGY = 'N';
      $scienceR = $_POST['scienceR'];
      if ($scienceR == 'HigherMath') {
         $HIGHER_MATH = 'Y';
      }
      if ($scienceR == 'Biology') {
         $BIOLOGY = 'Y';
      }
   } else if ($APP_CAT === '3') {
      $MARKS_BANG = $_POST['h_bangla'];
      $MARKS_ENG = $_POST['h_english'];
      $MARKS_RELI = $_POST['h_religion'];
      $MARKS_MATH = $_POST['h_mathematics'];
      $MARKS_SCIENCE = $_POST['h_science'];
      // $MARKS_ICT = $_POST['h_ict'];
      // $MARKS_CRRE = $_POST['h_career_education'];
      // $MARKS_HIST = $_POST['h_his_bd'];
      // $MARKS_AGRI_STUD = $_POST['h_agri_studies'];
      // $MARKS_PHY_EDU = $_POST['h_physical_edu'];
      $MARKS_ECONOMICS = $_POST['h_economics'];
      $MARKS_CIVICS = $_POST['h_civics'];
      $MARKS_GEO_ENV = $_POST['h_geography'];
      $OTHER_SUB1_NAME = $_POST['h_other_subject1'];
      $MARKS_OTHER_SUB1 = $_POST['h_other_subject1_gpa'];
      $OTHER_SUB2_NAME = $_POST['h_other_subject2'];
      $MARKS_OTHER_SUB2 = $_POST['h_other_subject2_gpa'];
      $OTHER_SUB3_NAME = $_POST['h_other_subject3'];
      $MARKS_OTHER_SUB3 = $_POST['h_other_subject3_gpa'];
      $OTHER_SUB4_NAME = $_POST['h_other_subject4'];
      $MARKS_OTHER_SUB4 = $_POST['h_other_subject4_gpa'];
      $ADD_SUB_NAME = $_POST['h_addi_subject'];
      $MARKS_ADD_SUB = $_POST['h_addi_subject_gpa'];
      $SUB_GR_CODE = $_POST['SelectGroup'];
      if ($SUB_GR_CODE === '03') {
         $BANGLA = 'Y';
         $ENGLISH = 'Y';
         $ICT = 'Y';
         $HISTORY = 'Y';
         $SOCIAL_WORKS = 'Y';

         $grpH = $_POST['grpH'];
         $LOGIC = 'N';
         $ENCONOMICS = 'N';
         if ($grpH === 'Logich') {
            $LOGIC = 'Y';
         }
         if ($grpH === 'Economicsh') {
            $ENCONOMICS = 'Y';
         }
         $ENCONOMICS . $LOGIC;
      }
      if ($SUB_GR_CODE === '04') {
         $BANGLA = 'Y';
         $ENGLISH = 'Y';
         $ICT = 'Y';
         $SOCIAL_WORKS = 'Y';
         $ENCONOMICS = 'Y';
         $grpW = $_POST['grpW'];
         $LOGIC = 'N';
         $CIVICS = 'N';
         if ($grpW === 'Logicw') {
            $LOGIC = 'Y';
         }
         if ($grpW === 'Civicsw') {
            $CIVICS = 'Y';
         }
         $LOGIC . $CIVICS;
      }
      if ($SUB_GR_CODE === '05') {
         $BANGLA = 'Y';
         $ENGLISH = 'Y';
         $ICT = 'Y';
         $LOGIC = 'Y';
         $GEOGRAPHY = 'Y';
         $grpG = $_POST['grpG'];
         $ENCONOMICS = 'N';
         $CIVICS = 'N';
         if ($grpG === 'Economicsg') {
            $ENCONOMICS = 'Y';
         }
         if ($grpG === 'Civicsg') {
            $CIVICS = 'Y';
         }
         $ENCONOMICS . $CIVICS;
      }
   } else if ($APP_CAT === '4') {
      $MARKS_BANG = $_POST['b_bangla'];
      $MARKS_ENG = $_POST['b_english'];
      $MARKS_RELI = $_POST['b_religion'];
      $MARKS_MATH = $_POST['b_mathematics'];
      $MARKS_SCIENCE = $_POST['b_science'];
      $MARKS_ACCNT = $_POST['b_accounting'];
      // $MARKS_ICT = $_POST['b_ict'];
      $MARKS_FIN_BANK = $_POST['b_finance'];
      $MARKS_BUSS_ENTER = $_POST['b_business'];
      // $MARKS_AGRI_STUD = $_POST['b_agriculture'];
      $OTHER_SUB1_NAME = $_POST['b_subject1'];
      $MARKS_OTHER_SUB1 = $_POST['b_subject1_gpa'];
      $OTHER_SUB2_NAME = $_POST['b_subject2'];
      $MARKS_OTHER_SUB2 = $_POST['b_subject2_gpa'];
      $OTHER_SUB3_NAME = $_POST['b_subject3'];
      $MARKS_OTHER_SUB3 = $_POST['b_subject3_gpa'];
      $OTHER_SUB4_NAME = $_POST['b_subject4'];
      $MARKS_OTHER_SUB4 = $_POST['b_subject4_gpa'];
      $ADD_SUB_NAME = $_POST['b_additional_sub'];
      $MARKS_ADD_SUB = $_POST['b_additional_sub_gpa'];
      $BANGLA = 'Y';
      $ENGLISH = 'Y';
      $ICT = 'Y';
      $ACCOUNTING = 'Y';
      $BUSS_ORG_MNG = 'Y';
      $FIN_BANK_INS = 'Y';
      $STATISTICS = 'N';
      $ENCONOMICS = 'N';
      $busR = $_POST['busR'];
      if ($busR == 'Statistics') {
         $STATISTICS = 'Y';
      }
      if ($busR == 'Economics') {
         $ENCONOMICS = 'Y';
      }
   }






   $PERM_ADDRS = $_POST['permanent_address'];
   $DHK_RES_ADDRS = $_POST['dhaka_resi_address'];
   $F_NAME = $_POST['f_name'];
   $F_OCCU = $_POST['f_occupation'];
   $F_DESIG = $_POST['f_designation'];
   $F_NID = $_POST['f_national_id_number'];
   $F_OFF_ADDRS = $_POST['f_office_Address'];
   $F_MOBILE_NO = $_POST['f_mobile_number'];
   $MONTH_INCOME_PARENTS = $_POST['f_monthly_income'];
   $TOT_FAMILY_INCOME = $_POST['family_monthly_income'];
   $M_NAME = $_POST['m_name'];
   $M_OCCU = $_POST['m_occupation'];
   $M_DESIG = $_POST['m_designation'];
   $M_NID = $_POST['m_national_id_number'];
   $M_OFF_ADDRS = $_POST['m_office_address'];
   $M_MOBILE_NO = $_POST['m_mobile_number'];
   $LG_NAME = $_POST['local_name'];
   $LG_RELATION = $_POST['local_relationship'];
   $LG_OCCU = $_POST['local_occupation'];
   $LG_DESIG = $_POST['local_designation'];
   $LG_DHK_RES_ADDRS = $_POST['local_dhaka_Address'];
   $LG_MOBILE_NO = $_POST['local_mobile_number'];
   $PR_NAME = $_POST['progress_name'];
   $PR_RELATION = $_POST['progress_relationship'];
   $PR_ADDRS = $_POST['progress_address'];
   $PR_MOBILE_NO = $_POST['progress_mobile_number'];

   // $BANGLA = '';
   // $ENGLISH = '';
   // $ICT = '';
   // $PHYSICS = '';
   // $CHEMISTRY = '';
   // $ACCOUNTING = '';
   // $BUSS_ORG_MNG = '';
   // $FIN_BANK_INS = '';
   //$HISTORY = '';
   //$SOCIAL_WORKS = '';
   //$HIGHER_MATH = '';
   //$BIOLOGY = '';
   // $STATISTICS = '';
   // $ENCONOMICS = '';
   //$LOGIC = '';
   //$GEOGRAPHY = '';
   //$CIVICS = '';
   $SPORTS_DTLS = $_POST['sports'];
   $CLUBS_DTLS = $_POST['clubs'];
   $OTHERS_DTLS = $_POST['others'];
   $STD_NAME_B = $_POST['std_name_b'];





   $returnval = 0;
   //    $stid = oci_parse($conn, "begin PKG_AD_ADM.DPD_AD_ADM_UPDATE(:o_status,:ADM_ID,:APP_ROLL_NO,:APP_CAT,:imdata,:STD_NAME,:NICK_NAME,:DOB,:BIRTH_REG_NO,:BLOOD_GR,:RG_CODE,:RG_SECT,:STD_MOBILE_NO,:SMS_MOBILE_NO,:SSC_GR_CODE,:SCHOOL_NAME,:SCHOOL_ADDR,:BOARD_CODE,:EXAM_CENTER,:EXAM_ROLL_NO,:EXAM_YEAR,:REG_NO,:SESSION_NO,:SSC_GPA,:TOTAL_APLUS,:MARKS_BANG,
   //    :MARKS_ENG,:MARKS_RELI,:MARKS_MATH,:MARKS_BGS,:MARKS_SCIENCE,:MARKS_ACCNT,:MARKS_ICT,:MARKS_PHY,:MARKS_CHE,:MARKS_BIO,
   //    :MARKS_HMATH,:MARKS_CRRE,:MARKS_FIN_BANK,:MARKS_BUSS_ENTER,:MARKS_AGRI_STUD,:OTHER_SUB1_NAME,:MARKS_OTHER_SUB1,:OTHER_SUB2_NAME,:MARKS_OTHER_SUB2,:ADD_SUB_NAME,:MARKS_ADD_SUB,:PERM_ADDRS,:DHK_RES_ADDRS,:F_NAME,:F_OCCU,:F_DESIG,
   //    :F_NID,:F_OFF_ADDRS,:F_MOBILE_NO,:MONTH_INCOME_PARENTS,:TOT_FAMILY_INCOME,:M_NAME,:M_OCCU,:M_DESIG,:M_NID,:M_OFF_ADDRS,:M_MOBILE_NO,:LG_NAME,:LG_RELATION,:LG_OCCU,:LG_DESIG,:LG_DHK_RES_ADDRS,:LG_MOBILE_NO,:PR_NAME,:PR_RELATION,:PR_ADDRS,:PR_MOBILE_NO,:SUB_GR_CODE,:BANGLA,:ENGLISH,:ICT,:PHYSICS,:CHEMISTRY,:ACCOUNTING,:BUSS_ORG_MNG,:FIN_BANK_INS,:HISTORY,:SOCIAL_WORKS,:HIGHER_MATH,:BIOLOGY,:STATISTICS,:ENCONOMICS,:LOGIC,:GEOGRAPHY,:CIVICS,:SPORTS_DTLS,:CLUBS_DTLS,:OTHERS_DTLS,:OTHER_SUB3_NAME,:MARKS_OTHER_SUB3,:OTHER_SUB4_NAME,:MARKS_OTHER_SUB4,:MARKS_HIST,:MARKS_CIVICS,:MARKS_GEO_ENV,:MARKS_PHY_EDU); end;");


   $stid = oci_parse($conn, "begin PKG_AD_ADM.DPD_AD_ADM_UPDATE(:o_status,:APP_ID,:APP_ROLL_NO,:APP_CAT,:imdata,:STD_NAME,:NICK_NAME,:DOB,:BIRTH_REG_NO,:BLOOD_GR,:RG_CODE,:RG_SECT,:STD_MOBILE_NO,:SMS_MOBILE_NO,:SSC_GR_CODE,:SCHOOL_NAME,:SCHOOL_ADDR,:BOARD_CODE,:EXAM_CENTER,:EXAM_ROLL_NO,:EXAM_YEAR,:REG_NO,:SESSION_NO,:SSC_GPA,:TOTAL_APLUS,:MARKS_BANG,
:MARKS_ENG,:MARKS_RELI,:MARKS_MATH,:MARKS_BGS,:MARKS_SCIENCE,:MARKS_ACCNT,:MARKS_ICT,:MARKS_PHY,:MARKS_CHE,:MARKS_BIO,
:MARKS_HMATH,:MARKS_CRRE,:MARKS_FIN_BANK,:MARKS_BUSS_ENTER,:MARKS_AGRI_STUD,:OTHER_SUB1_NAME,:MARKS_OTHER_SUB1,:OTHER_SUB2_NAME,:MARKS_OTHER_SUB2,:ADD_SUB_NAME,:MARKS_ADD_SUB,:PERM_ADDRS,:DHK_RES_ADDRS,:F_NAME,:F_OCCU,:F_DESIG,
:F_NID,:F_OFF_ADDRS,:F_MOBILE_NO,:MONTH_INCOME_PARENTS,:TOT_FAMILY_INCOME,:M_NAME,:M_OCCU,:M_DESIG,:M_NID,:M_OFF_ADDRS,:M_MOBILE_NO,:LG_NAME,:LG_RELATION,:LG_OCCU,:LG_DESIG,:LG_DHK_RES_ADDRS,:LG_MOBILE_NO,:PR_NAME,:PR_RELATION,:PR_ADDRS,:PR_MOBILE_NO,:SUB_GR_CODE,:BANGLA,:ENGLISH,:ICT,:PHYSICS,:CHEMISTRY,:ACCOUNTING,:BUSS_ORG_MNG,:FIN_BANK_INS,:HISTORY,:SOCIAL_WORKS,:HIGHER_MATH,:BIOLOGY,:STATISTICS,:ENCONOMICS,:LOGIC,:GEOGRAPHY,:CIVICS,:SPORTS_DTLS,:CLUBS_DTLS,:OTHERS_DTLS,:OTHER_SUB3_NAME,:MARKS_OTHER_SUB3,:OTHER_SUB4_NAME,:MARKS_OTHER_SUB4,:MARKS_HIST,:MARKS_CIVICS,:MARKS_GEO_ENV,:MARKS_PHY_EDU,:MARKS_ECONOMICS,:STD_NAME_B); end;");


   oci_bind_by_name($stid, ":o_status", $returnval, -1, SQLT_INT);
   //    oci_bind_by_name($stid, ":ADM_ID", $ADM_ID, -1, SQLT_INT);
   oci_bind_by_name($stid, ":APP_ID", $APP_ID, -1, SQLT_INT);
   oci_bind_by_name($stid, ":APP_ROLL_NO", $APP_ROLL_NO, -1, SQLT_INT);
   oci_bind_by_name($stid, ":APP_CAT", $APP_CAT, -1, SQLT_INT);
   oci_bind_by_name($stid, ":imdata", $imdata, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":STD_NAME", $STD_NAME, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":NICK_NAME", $NICK_NAME, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":DOB", $DOB, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":BIRTH_REG_NO", $BIRTH_REG_NO, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":BLOOD_GR", $BLOOD_GR, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":RG_CODE", $RG_CODE, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":RG_SECT", $RG_SECT, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":STD_MOBILE_NO", $STD_MOBILE_NO, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":SMS_MOBILE_NO", $SMS_MOBILE_NO, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":SSC_GR_CODE", $SSC_GR_CODE, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":SCHOOL_NAME", $SCHOOL_NAME, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":SCHOOL_ADDR", $SCHOOL_ADDR, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":BOARD_CODE", $BOARD_CODE, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":EXAM_CENTER", $EXAM_CENTER, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":EXAM_ROLL_NO", $EXAM_ROLL_NO, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":EXAM_YEAR", $EXAM_YEAR, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":REG_NO", $REG_NO, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":SESSION_NO", $SESSION_NO, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":SSC_GPA", $SSC_GPA, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":TOTAL_APLUS", $TOTAL_APLUS, -1, SQLT_INT);
   oci_bind_by_name($stid, ":MARKS_BANG", $MARKS_BANG, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":MARKS_ENG", $MARKS_ENG, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":MARKS_RELI", $MARKS_RELI, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":MARKS_MATH", $MARKS_MATH, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":MARKS_BGS", $MARKS_BGS, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":MARKS_SCIENCE", $MARKS_SCIENCE, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":MARKS_ACCNT", $MARKS_ACCNT, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":MARKS_ICT", $MARKS_ICT, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":MARKS_PHY", $MARKS_PHY, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":MARKS_CHE", $MARKS_CHE, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":MARKS_BIO", $MARKS_BIO, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":MARKS_HMATH", $MARKS_HMATH, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":MARKS_CRRE", $MARKS_CRRE, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":MARKS_FIN_BANK", $MARKS_FIN_BANK, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":MARKS_BUSS_ENTER", $MARKS_BUSS_ENTER, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":MARKS_AGRI_STUD", $MARKS_AGRI_STUD, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":OTHER_SUB1_NAME", $OTHER_SUB1_NAME, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":MARKS_OTHER_SUB1", $MARKS_OTHER_SUB1, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":OTHER_SUB2_NAME", $OTHER_SUB2_NAME, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":MARKS_OTHER_SUB2", $MARKS_OTHER_SUB2, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":ADD_SUB_NAME", $ADD_SUB_NAME, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":MARKS_ADD_SUB", $MARKS_ADD_SUB, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":PERM_ADDRS", $PERM_ADDRS, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":DHK_RES_ADDRS", $DHK_RES_ADDRS, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":F_NAME", $F_NAME, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":F_OCCU", $F_OCCU, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":F_DESIG", $F_DESIG, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":F_NID", $F_NID, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":F_OFF_ADDRS", $F_OFF_ADDRS, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":F_MOBILE_NO", $F_MOBILE_NO, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":MONTH_INCOME_PARENTS", $MONTH_INCOME_PARENTS, -1, SQLT_INT);
   oci_bind_by_name($stid, ":TOT_FAMILY_INCOME", $TOT_FAMILY_INCOME, -1, SQLT_INT);
   oci_bind_by_name($stid, ":M_NAME", $M_NAME, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":M_OCCU", $M_OCCU, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":M_DESIG", $M_DESIG, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":M_NID", $M_NID, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":M_OFF_ADDRS", $M_OFF_ADDRS, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":M_MOBILE_NO", $M_MOBILE_NO, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":LG_NAME", $LG_NAME, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":LG_RELATION", $LG_RELATION, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":LG_OCCU", $LG_OCCU, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":LG_DESIG", $LG_DESIG, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":LG_DHK_RES_ADDRS", $LG_DHK_RES_ADDRS, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":LG_MOBILE_NO", $LG_MOBILE_NO, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":PR_NAME", $PR_NAME, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":PR_RELATION", $PR_RELATION, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":PR_ADDRS", $PR_ADDRS, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":PR_MOBILE_NO", $PR_MOBILE_NO, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":SUB_GR_CODE", $SUB_GR_CODE, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":BANGLA", $BANGLA, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":ENGLISH", $ENGLISH, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":ICT", $ICT, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":PHYSICS", $PHYSICS, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":CHEMISTRY", $CHEMISTRY, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":ACCOUNTING", $ACCOUNTING, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":BUSS_ORG_MNG", $BUSS_ORG_MNG, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":FIN_BANK_INS", $FIN_BANK_INS, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":HISTORY", $HISTORY, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":SOCIAL_WORKS", $SOCIAL_WORKS, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":HIGHER_MATH", $HIGHER_MATH, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":BIOLOGY", $BIOLOGY, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":STATISTICS", $STATISTICS, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":ENCONOMICS", $ENCONOMICS, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":LOGIC", $LOGIC, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":GEOGRAPHY", $GEOGRAPHY, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":CIVICS", $CIVICS, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":SPORTS_DTLS", $SPORTS_DTLS, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":CLUBS_DTLS", $CLUBS_DTLS, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":OTHERS_DTLS", $OTHERS_DTLS, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":OTHER_SUB3_NAME", $OTHER_SUB3_NAME, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":MARKS_OTHER_SUB3", $MARKS_OTHER_SUB3, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":OTHER_SUB4_NAME", $OTHER_SUB4_NAME, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":MARKS_OTHER_SUB4", $MARKS_OTHER_SUB4, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":MARKS_HIST", $MARKS_HIST, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":MARKS_CIVICS", $MARKS_CIVICS, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":MARKS_GEO_ENV", $MARKS_GEO_ENV, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":MARKS_PHY_EDU", $MARKS_PHY_EDU, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":MARKS_ECONOMICS", $MARKS_ECONOMICS, -1, SQLT_CHR);
   oci_bind_by_name($stid, ":STD_NAME_B", $STD_NAME_B, -1, SQLT_CHR);
   oci_execute($stid);

   oci_free_statement($stid);
   oci_close($conn);
   if ($returnval == '0') {
      echo '<script>alert("Please carefully fill up all the fields.")</script>';
   } else if ($returnval == '1') {
      echo '<script>
      alert("Your Application is updated!!");
      // window.location.href = "https://www.itbadmission.com/ndc/view1.php";
      // window.location.href = "http://localhost/ndc/view1.php";
      // window.location.href = "http://localhost/ndc_admission_final/admissionedit.php";
      window.location.href = "https://ndc.iadmissionbd.net/admissionedit.php";
      </script>';
   } else if ($returnval == '2') {
      echo '<script>alert("Your Submit Uncessfull Please Submit Another Time")</script>';
   } else if ($returnval == '3') {
      echo '<script>alert(Already Submitted Please Update Your Profile(if needed) and Make Payment")</script>';
   }
























}


?>


<html lang="en">

<head>

   <!-- 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>Edit 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">
   <!-- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> -->
   <style>
      select[readonly] {
         background: #eee;
         /*Simular campo inativo - Sugestão @GabrielRodrigues*/
         pointer-events: none;
         touch-action: none;
      }
   </style>
</head>

<body>






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


   <form action="" method="POST" enctype="multipart/form-data">
      <div class="container">
         <div class="card">
            <div class="card-body">
               <header class="col-lg-12 col-md-12 col-sm-12 text-center">
                  <div class="row m-3">
                     <div class="col-lg-4 col-md-4 col-sm-12">
                        <div class="row">
                           <div class="col-lg-12 col-md-12 col-sm-12">
                              <img id="" src="assets\img\logo.jpg" alt="NDC_Logo" width="130px" height="130px"></img>


                           </div>
                        </div>
                     </div>
                     <div class="col-lg-4 col-md-4 col-sm-12">
                        <div class="row">
                           <div class="col-lg-12 col-md-12 col-sm-12">
                              <h6 class="fw-bolder">NOTRE DAME COLLEGE, DHAKA</h6>
                              <h6 class="fw-bolder">ADMISSION FORM 2022-2023</h6>
                              <!-- <h6 class="fw-bolder"><span class="" name="ap_cat" id="ap_cat" style="font-weight: bold;"><?php echo $user_row[0]['APP_CAT']; ?></span> GROUP</h6> -->
                              <h6> GROUP:</h6>
                              <?php
                              include 'connection.php';

                              $sql = "select * from AD_CAT";
                              $parseresults = ociparse($conn, $sql);
                              ociexecute($parseresults);

                              echo '<select class="form-select" name="ap_cat" id="ap_cat" readonly="readonly" tabindex="-1" aria-disabled="true" >';
                              echo '<option value="">Select Your Subject</option>';
                              while ($row = oci_fetch_assoc($parseresults)) {
                                 if ($row['CAT_CODE'] == $user_row[0]['APP_CAT']) {
                                    echo '<option value=' . $row['CAT_CODE'] . ' selected>' . $row['CAT_NAME'] . '</option>';
                                 } else {
                                    echo '<option value=' . $row['CAT_CODE'] . '>' . $row['CAT_NAME'] . '</option>';
                                 }
                              }
                              echo '</select>';
                              oci_free_statement($parseresults);
                              oci_close($conn);
                              ?>
                           </div>
                        </div>
                     </div>
                     <div class="col-lg-4 col-md-4 col-sm-12">
                        <div class="row">
                           <div class="col-lg-12 col-md-12 col-sm-12">
                              <img src="data:image/jpeg;base64,<?php echo $photoout; ?>" id="output_image" width="130px" height="130px"></img>
                              <input type="text" class="form-control" name="basedata" id="basedata" hidden value="<?php echo $photoout; ?>">

                           </div>
                        </div>
                     </div>
                  </div>
                  <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 class="row ">
                           <div class="col-lg-6 col-md-6 col-sm-12">
                              <label for="text" class="font-weight-bold">Application ID No.:</label>
                           </div>
                           <div class="col-lg-4 col-md-4 col-sm-12">
                              <input style="text-align: center; font-weight:bold;" type="text" name="app_roll_no" id="app_roll_no" value="<?php echo $user_row[0]['APP_ROLL_NO']; ?>">
                           </div>
                        </div>
                     </div>
                     <div class="col-lg-4 col-md-4 col-sm-12">
                     </div>
                  </div>
                  <div class="row">
                     <div class="col-lg-12 col-md-12 col-sm-12">
                        <h5 class="font-weight-bold">ফরম পূরণের নির্দেশিকাঃ ভর্তি ফরমের সকল তথ্য ফিল্ড সঠিক ও নির্ভুলভাবে পূরণ করতে হবে। তোমার পূরণকৃত তথ্য ঢাকা শিক্ষা বোর্ড ও কলেজের বিভিন্ন কাজে ব্যবহার ও সংরক্ষন করা হবে। </h5>
                     </div>
                  </div>
               </header>
               <div class="form-body">

                  <div class="row m-3">
                     <div class="col-lg-3 col-md-3 col-sm-12">
                        <div class="row">
                           <div class="">
                              <label for="text" class="font-weight-bold"><u>STUDENT'S INFORMATION:</u></label>
                           </div>
                        </div>
                     </div>
                  </div>



                  <div class="row m-3">
                     <div class="col-lg-8 col-md-7 col-sm-12">
                        <div class="row ">
                           <div class="col-lg-12 col-md-12 col-sm-12">
                              <label for="text">Please enter your name as it appears on your SSC records or other official documents:</label>
                           </div>
                           <div class="col-lg-11 col-md-7 col-sm-12">
                              <input type="text" class="form-control" placeholder="Student's name in English" name="std_name" id="std_name" value="<?php echo $user_row[0]['STD_NAME']; ?>">
                           </div>


                           <div class="col-lg-11 col-md-7 col-sm-12" style="margin-top: 10px;">
                              <input type="text" class="form-control" placeholder="Student's name in Bengali (Use Sutonny Font)" name="std_name_b" id="std_name_b" value="<?php echo $user_row[0]['STD_NAME_B']; ?>">
                           </div>
                        </div>
                     </div>
                     <div class="col-lg-4 col-md-5 col-sm-12">
                        <div class="row">
                           <div class="col-lg-12 col-md-5 col-sm-12" >
                              <label for="text" class="text-center">Nickname:</label>
                           </div>
                           <div class="col-lg-10 col-md-6 col-sm-12" style="margin-top: 22px;">
                              <input type="text" class="form-control" name="nick_name" id="nick_name" value="<?php echo $user_row[0]['NICK_NAME']; ?>">
                           </div>
                        </div>
                     </div>
                  </div>




                  <div class="row m-3">
                     
                     <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">
                                 <label for="Date" class="text-center">Date of Birth:</label>
                              </div>
                              <div class="col-lg-12 col-md-12 col-sm-12 ">
                                 <input type="Date" class="form-control" name="dob" id="dob" value="<?php if (isset($user_row[0]['DOB'])) {
                                                                                                         echo strftime('%Y-%m-%d', strtotime($user_row[0]['DOB']));
                                                                                                      } ?>">
                              </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">
                                 <label for="text" class="text-center">Birth Reg. No.:</label>
                              </div>
                              <div class="col-lg-12 col-md-12 col-sm-12">
                                 <input type="text" class="form-control" name="birth_reg_number" id="birth_reg_number" value="<?php echo $user_row[0]['BIRTH_REG_NO']; ?>">
                              </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">
                                 <label for="text" class="text-center">Blood Group:</label>
                              </div>
                              <div class="col-lg-12 col-md-12 col-sm-12">
                                 <input type="text" class="form-control" name="blood_group" id="blood_group" value="<?php echo $user_row[0]['BLOOD_GR']; ?>">
                              </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">
                                 <label for="text" class="text-center">Religion:</label>
                              </div>
                              <div class="col-lg-12 col-md-12 col-sm-12">
                                 <?php
                                 include 'connection.php';

                                 $sql = "select * from AD_RELIGION_MST";
                                 $parseresults = ociparse($conn, $sql);
                                 ociexecute($parseresults);

                                 echo '<select name="religion" id="religion" class="form-select form-control" >';
                                 echo '<option value="">Select Your Religion</option>';
                                 while ($row = oci_fetch_assoc($parseresults)) {
                                    if ($row['RG_CODE'] == $user_row[0]['RG_CODE']) {
                                       echo '<option value=' . $row['RG_CODE'] . ' selected>' . $row['RG_NAME'] . '</option>';
                                    } else {
                                       echo '<option value=' . $row['RG_CODE'] . '>' . $row['RG_NAME'] . '</option>';
                                    }
                                 }
                                 echo '</select>';
                                 oci_free_statement($parseresults);
                                 oci_close($conn);
                                 ?>
                              </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-12 col-md-12 col-sm-12">
                                 <label for="text" class="text-center">Religious Sect./Caste:</label>
                              </div>
                              <div class="col-lg-12 col-md-12 col-sm-12">
                                 <input type="text" class="form-control" name="religion_sect" id="religion_sect" value="<?php echo $user_row[0]['RG_SECT']; ?>">
                              </div>
                           </div>
                        </div>
                     </div>
                     <div class="row m-3">
                        <div class="col-lg-5 col-md-6 col-sm-12">
                           <div class="row">
                              <div class="col-lg-5 col-md-4 col-sm-12">
                                 <label for="text" class="text-center ">Student's Mobile No.:</label>
                              </div>
                              <div class="col-lg-7 col-md-8 col-sm-12">
                                 <input type="text" class="form-control" name="std_mobile_number" id="std_mobile_number" value="<?php echo $user_row[0]['STD_MOBILE_NO']; ?>">
                              </div>
                           </div>
                        </div>
                        <div class="col-lg-7 col-md-6 col-sm-12">
                           <div class="row">
                              <div class="col-lg-7 col-md-4 col-sm-12">
                                 <label for="text" class="text-center ">Preferred Phone Number for College SMS:</label>
                              </div>
                              <div class="col-lg-5 col-md-8 col-sm-12">
                                 <input type="text" class="form-control" name="sms_mobile_number" id="sms_mobile_number" value="<?php echo $user_row[0]['SMS_MOBILE_NO']; ?>">
                              </div>
                           </div>
                        </div>
                     </div>
                     <div class="row m-3">
                        <div class="">
                           <label for="text" class="font-weight-bold"><u>SSC INFORMATION:</u></label>
                        </div>
                     </div>
                     <div class="row m-3">
                        <div class="col-lg-3 col-md-12 col-sm-12">
                           <div class="row">
                              <div class="col-lg-12 col-md-2 col-sm-12">
                                 <label for="text" class="text-center ">SSC Group:</label>
                              </div>
                              <div class="col-lg-8 col-md-7 col-sm-12">

                                 <?php
                                 include 'connection.php';

                                 $sql = "select * from AD_SSC_GR";
                                 $parseresults = ociparse($conn, $sql);
                                 ociexecute($parseresults);

                                 echo '<select name="ssc_group_code" id="ssc_group_code" class="form-select form-control" >';
                                 echo '<option value="">Select SSC Group</option>';
                                 while ($row = oci_fetch_assoc($parseresults)) {
                                    if ($row['GR_CODE'] == $user_row[0]['SSC_GR_CODE']) {
                                       echo '<option value=' . $row['GR_CODE'] . ' selected>' . $row['GR_NAME'] . '</option>';
                                    } else {
                                       echo '<option value=' . $row['GR_CODE'] . '>' . $row['GR_NAME'] . '</option>';
                                    }
                                 }
                                 echo '</select>';
                                 oci_free_statement($parseresults);
                                 oci_close($conn);
                                 ?>
                              </div>
                           </div>
                        </div>
                        <div class="col-lg-4 col-md-12 col-sm-12">
                           <div class="row">
                              <div class="col-lg-10 col-md-2 col-sm-12">
                                 <label for="text" class="text-center ">School Name:</label>
                              </div>
                              <div class="col-lg-12 col-md-7 col-sm-12">
                                 <input type="text" class="form-control" name="school_name" id="school_name" value="<?php echo $user_row[0]['SCHOOL_NAME']; ?>">
                              </div>
                           </div>
                        </div>
                        <div class="col-lg-5 col-md-12 col-sm-12">
                           <div class="row">
                              <div class="col-lg-12 col-md-2 col-sm-12">
                                 <label for="text" class="text-center ">School Address:</label>
                              </div>
                              <div class="col-lg-10 col-md-7 col-sm-12">
                                 <input type="text" class="form-control" name="school_address" id="school_address" value="<?php echo $user_row[0]['SCHOOL_ADDR']; ?>">
                              </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-12 col-md-12 col-sm-12">
                                 <label for="text" class="text-center">Board:</label>
                              </div>
                              <div class="col-lg-12 col-md-12 col-sm-12 ">
                                 <?php
                                 include 'connection.php';

                                 $sql = "select * from AD_BOARD";
                                 $parseresults = ociparse($conn, $sql);
                                 ociexecute($parseresults);

                                 echo '<select name="board" id="board" class="form-select form-control" >';
                                 echo '<option value="">Select Board</option>';
                                 while ($row = oci_fetch_assoc($parseresults)) {
                                    if ($row['BOARD_CODE'] == $user_row[0]['BOARD_CODE']) {
                                       echo '<option value=' . $row['BOARD_CODE'] . ' selected>' . $row['BOARD_NAME'] . '</option>';
                                    } else {
                                       echo '<option value=' . $row['BOARD_CODE'] . '>' . $row['BOARD_NAME'] . '</option>';
                                    }
                                 }
                                 echo '</select>';
                                 oci_free_statement($parseresults);
                                 oci_close($conn);
                                 ?>
                              </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">
                                 <label for="text" class="text-center">Exam Centre:</label>
                              </div>
                              <div class="col-lg-12 col-md-12 col-sm-12">
                                 <input type="text" class="form-control" name="exam_center" id="exam_center" value="<?php echo $user_row[0]['EXAM_CENTER']; ?>">
                              </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">
                                 <label for="text" class="text-center">SSC Roll No.:</label>
                              </div>
                              <div class="col-lg-12 col-md-12 col-sm-12">
                                 <input type="text" class="form-control" name="exam_roll_number" id="exam_roll_number" value="<?php echo $user_row[0]['EXAM_ROLL_NO']; ?>">
                              </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">
                                 <label for="text" class="text-center">Exam Year:</label>
                              </div>
                              <div class="col-lg-12 col-md-12 col-sm-12">
                                 <input type="text" class="form-control" name="exam_year" id="exam_year" value="<?php echo $user_row[0]['EXAM_YEAR']; ?>">
                              </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-12 col-md-12 col-sm-12">
                                 <label for="text" class="text-center">Exam Year:</label> 
                              </div>
                              <div class="col-lg-12 col-md-12 col-sm-12">
                                 <input type="text" class="form-control" name="" id="">
                              </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">
                                 <label for="text" class="text-center">Reg. No.:</label>
                              </div>
                              <div class="col-lg-12 col-md-12 col-sm-12">
                                 <input type="text" class="form-control" name="reg_no" id="reg_no" value="<?php echo $user_row[0]['REG_NO']; ?>">
                              </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">
                                 <label for="text" class="text-center">Reg. Year/Session:</label>
                              </div>
                              <div class="col-lg-12 col-md-12 col-sm-12">
                                 <input type="text" class="form-control" name="session" id="session" value="<?php echo $user_row[0]['SESSION_NO']; ?>">
                              </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">
                                 <label for="text" class="text-center ">SSC GPA:</label>
                              </div>
                              <div class="col-lg-12 col-md-12 col-sm-12">
                                 <input type="text" class="form-control" name="ssc_gpa" id="ssc_gpa" value="<?php echo $user_row[0]['SSC_GPA']; ?>">
                              </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">
                                 <label for="text" class="text-center ">Number of A+:</label>
                              </div>
                              <div class="col-lg-12 col-md-12 col-sm-12">
                                 <input type="text" class="form-control" name="number_of_aplus" id="number_of_aplus" value="<?php echo $user_row[0]['TOTAL_APLUS']; ?>">
                              </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-12 col-md-12 col-sm-12">
                                 <label for="text" class="text-center ">Number of A+:</label>
                              </div>
                              <div class="col-lg-12 col-md-12 col-sm-12">
                                 <input type="text" class="form-control" name=""
                                    id="">
                              </div>
                           </div>
                        </div>
                     </div> -->
                     <div class="row m-3">
                        <div class="">
                           <label for="text" class="font-weight-bold"><u>SSC SUBJECTS & GPA:</u></label>
                        </div>
                     </div>


                     <div class="row " id="ssc_science">
                        <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">
                                    <label for="text" class="text-center ">Bangla:</label>
                                 </div>
                                 <div class="col-lg-12 col-md-12 col-sm-12">
                                    <input type="text" class="form-control" name="s_bangla" id="s_bangla" value="<?php echo $user_row[0]['MARKS_BANG']; ?>">
                                 </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">
                                    <label for="text" class="text-center ">English:</label>
                                 </div>
                                 <div class="col-lg-12 col-md-12 col-sm-12">
                                    <input type="text" class="form-control" name="s_english" id="s_english" value="<?php echo $user_row[0]['MARKS_ENG']; ?>">
                                 </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">
                                    <label for="text" class="text-center ">Religion:</label>
                                 </div>
                                 <div class="col-lg-12 col-md-12 col-sm-12">
                                    <input type="text" class="form-control" name="s_religion" id="s_religion" value="<?php echo $user_row[0]['MARKS_RELI']; ?>">
                                 </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">
                                    <label for="text" class="text-center ">Mathematics:</label>
                                 </div>
                                 <div class="col-lg-12 col-md-12 col-sm-12">
                                    <input type="text" class="form-control" name="s_math" id="s_math" value="<?php echo $user_row[0]['MARKS_MATH']; ?>">
                                 </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-12 col-md-12 col-sm-12">
                                    <label for="text" class="text-center ">Physics:</label>
                                 </div>
                                 <div class="col-lg-12 col-md-12 col-sm-12">
                                    <input type="text" class="form-control" name="s_physics" id="s_physics" value="<?php echo $user_row[0]['MARKS_PHY']; ?>">
                                 </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">
                                    <label for="text" class="text-center ">Chemistry:</label>
                                 </div>
                                 <div class="col-lg-12 col-md-12 col-sm-12">
                                    <input type="text" class="form-control" name="s_chemisty" id="s_chemisty" value="<?php echo $user_row[0]['MARKS_CHE']; ?>">
                                 </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">
                                    <label for="text" class="text-center ">Biology:</label>
                                 </div>
                                 <div class="col-lg-12 col-md-12 col-sm-12">
                                    <input type="text" class="form-control" name="s_biology" id="s_biology" value="<?php echo $user_row[0]['MARKS_BIO']; ?>">
                                 </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">
                                    <label for="text" class="text-center ">Higher Math:</label>
                                 </div>
                                 <div class="col-lg-12 col-md-12 col-sm-12">
                                    <input type="text" class="form-control" name="s_higher_math" id="s_higher_math" value="<?php echo $user_row[0]['MARKS_HMATH']; ?>">
                                 </div>
                              </div>
                           </div>
                        </div>



                        <h6 class="font-weight-bold">Other Subjects & Marks:</h6>

                        <div class="row m-3">
                           <div class="col-lg-3 col-md-3 col-sm-11">
                              <div class="row">
                                 <div class="col-lg-8 col-md-8 col-sm-12">
                                    <input type="text" class="form-control" name="s_subject1" id="s_subject1" value="<?php echo $user_row[0]['OTHER_SUB1_NAME']; ?>">
                                 </div>
                                 <div class="col-lg-4 col-md-4 col-sm-12">
                                    <input type="text" class="form-control" name="s_subject1_gpa" id="s_subject1_gpa" value="<?php echo $user_row[0]['MARKS_OTHER_SUB1']; ?>">
                                 </div>
                              </div>
                           </div><span class="col-lg-1 col-md-1 col-sm-1 font-weight-bold">;</span>


                           <div class="col-lg-3 col-md-3 col-sm-11">
                              <div class="row">
                                 <div class="col-lg-8 col-md-8 col-sm-12">
                                    <input type="text" class="form-control" name="s_subject2" id="s_subject2" value="<?php echo $user_row[0]['OTHER_SUB2_NAME']; ?>">
                                 </div>
                                 <div class="col-lg-4 col-md-4 col-sm-12">
                                    <input type="text" class="form-control" name="s_subject2_gpa" id="s_subject2_gpa" value="<?php echo $user_row[0]['MARKS_OTHER_SUB2']; ?>">
                                 </div>
                              </div>
                           </div>



                           <div class="col-lg-3 col-md-3 col-sm-11">
                              <div class="row">
                                 <div class="col-lg-8 col-md-8 col-sm-12">
                                    <input type="text" class="form-control" placeholder="Other Subject 3" name="s_subject3" id="s_subject2" value="<?php echo $user_row[0]['OTHER_SUB3_NAME']; ?>">
                                 </div>
                                 <div class="col-lg-4 col-md-4 col-sm-12">
                                    <input type="text" class="form-control" name="s_subject3_gpa" id="s_subject2_gpa" value="<?php echo $user_row[0]['MARKS_OTHER_SUB3']; ?>">
                                 </div>
                              </div>
                           </div>

                           <div class="col-lg-5 col-md-5 col-sm-12" style="margin-top: 20px;">
                              <div class="row">
                                 <div class="col-lg-5 col-md-5 col-sm-12">
                                    <label for="text" class="text-center ">Additional Sub. and Marks:</label>
                                 </div>
                                 <div class="col-lg-4 col-md-4 col-sm-12">
                                    <input type="text" class="form-control" name="s_additional_subject" id="s_additional_subject" value="<?php echo $user_row[0]['ADD_SUB_NAME']; ?>">
                                 </div>
                                 <div class="col-lg-3 col-md-3 col-sm-12">
                                    <input type="text" class="form-control" name="s_additional_subject_gpa" id="s_additional_subject_gpa" value="<?php echo $user_row[0]['MARKS_ADD_SUB']; ?>">
                                 </div>
                              </div>
                           </div>
                        </div>
                     </div>

                     <div class="row " id="ssc_humanities">
                        <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">
                                    <label for="text" class="text-center ">Bangla:</label>
                                 </div>
                                 <div class="col-lg-12 col-md-12 col-sm-12">
                                    <input type="text" class="form-control" name="h_bangla" id="h_bangla" value="<?php echo $user_row[0]['MARKS_BANG']; ?>">
                                 </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">
                                    <label for="text" class="text-center ">English:</label>
                                 </div>
                                 <div class="col-lg-12 col-md-12 col-sm-12">
                                    <input type="text" class="form-control" name="h_english" id="h_english" value="<?php echo $user_row[0]['MARKS_ENG']; ?>">
                                 </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">
                                    <label for="text" class="text-center ">Religion:</label>
                                 </div>
                                 <div class="col-lg-12 col-md-12 col-sm-12">
                                    <input type="text" class="form-control" name="h_religion" id="h_religion" value="<?php echo $user_row[0]['MARKS_RELI']; ?>">
                                 </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">
                                    <label for="text" class="text-center ">Mathematics:</label>
                                 </div>
                                 <div class="col-lg-12 col-md-12 col-sm-12">
                                    <input type="text" class="form-control" name="h_mathematics" id="h_mathematics" value="<?php echo $user_row[0]['MARKS_MATH']; ?>">
                                 </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-12 col-md-12 col-sm-12">
                                    <label for="text" class="text-center ">Science:</label>
                                 </div>
                                 <div class="col-lg-12 col-md-12 col-sm-12">
                                    <input type="text" class="form-control" name="h_science" id="h_science" value="<?php echo $user_row[0]['MARKS_SCIENCE']; ?>">
                                 </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">
                                    <label for="text" class="text-center ">Civics and Citizenship:</label>
                                 </div>
                                 <div class="col-lg-12 col-md-12 col-sm-12">
                                    <input type="text" class="form-control" name="h_civics" id="h_civics" value="<?php echo $user_row[0]['MARKS_CIVICS']; ?>"">
                                 </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">
                                          <label for="text" class="text-center ">Economics:</label>
                                       </div>
                                       <div class="col-lg-12 col-md-12 col-sm-12">
                                          <input type="text" class="form-control" name="h_economics" id="h_economics" value="<?php echo $user_row[0]['MARKS_ECONOMICS']; ?>">
                                       </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">
                                          <label for="text" class="text-center ">Geography and Environment:</label>
                                       </div>
                                       <div class="col-lg-12 col-md-12 col-sm-12">
                                          <input type="text" class="form-control" name="h_geography" id="h_geography" value="<?php echo $user_row[0]['MARKS_GEO_ENV']; ?>">
                                       </div>
                                    </div>
                                 </div>



                              </div>


                              <h6 class="font-weight-bold">Other Subjects & Marks:</h6>

                              <div class="row m-3">
                                 <div class="col-lg-3 col-md-3 col-sm-11">
                                    <div class="row">
                                       <div class="col-lg-8 col-md-8 col-sm-12">
                                          <input type="text" class="form-control" name="h_other_subject1" id="h_other_subject1" value="<?php echo $user_row[0]['OTHER_SUB1_NAME']; ?>">
                                       </div>
                                       <div class="col-lg-4 col-md-4 col-sm-12">
                                          <input type="text" class="form-control" name="h_other_subject1_gpa" id="h_other_subject1_gpa" value="<?php echo $user_row[0]['MARKS_OTHER_SUB1']; ?>">
                                       </div>
                                    </div>
                                 </div><span class="col-lg-1 col-md-1 col-sm-1 font-weight-bold">;</span>


                                 <div class="col-lg-3 col-md-3 col-sm-11">
                                    <div class="row">
                                       <div class="col-lg-8 col-md-8 col-sm-12">
                                          <input type="text" class="form-control" name="h_other_subject2" id="h_other_subject2" value="<?php echo $user_row[0]['OTHER_SUB2_NAME']; ?>">
                                       </div>
                                       <div class="col-lg-4 col-md-4 col-sm-12">
                                          <input type="text" class="form-control" name="h_other_subject2_gpa" id="h_other_subject2_gpa" value="<?php echo $user_row[0]['MARKS_OTHER_SUB2']; ?>">
                                       </div>
                                    </div>
                                 </div><span class="col-lg-1 col-md-1 col-sm-1 font-weight-bold">;</span>

                                 <div class="col-lg-3 col-md-3 col-sm-11">
                                    <div class="row">
                                       <div class="col-lg-8 col-md-8 col-sm-12">
                                          <input type="text" class="form-control" name="h_other_subject3" id="h_other_subject3" value="<?php echo $user_row[0]['OTHER_SUB3_NAME']; ?>">
                                       </div>
                                       <div class="col-lg-4 col-md-4 col-sm-12">
                                          <input type="text" class="form-control" name="h_other_subject3_gpa" id="h_other_subject3_gpa" value="<?php echo $user_row[0]['MARKS_OTHER_SUB3']; ?>">
                                       </div>
                                    </div>
                                 </div><span class="col-lg-1 col-md-1 col-sm-1 font-weight-bold">;</span>

                              </div>

                              <div class="row m-3">
                                 <div class="col-lg-3 col-md-3 col-sm-12">
                                    <div class="row">
                                       <div class="col-lg-8 col-md-8 col-sm-12">
                                          <input type="text" class="form-control" name="h_other_subject4" id="h_other_subject4" value="<?php echo $user_row[0]['OTHER_SUB4_NAME']; ?>">
                                       </div>
                                       <div class="col-lg-4 col-md-4 col-sm-12">
                                          <input type="text" class="form-control" name="h_other_subject4_gpa" id="h_other_subject4_gpa" value="<?php echo $user_row[0]['MARKS_OTHER_SUB4']; ?>">
                                       </div>
                                    </div>
                                 </div><span class="col-lg-1 col-md-1 col-sm-1 font-weight-bold">;</span>
                                 <div class="col-lg-6 col-md-6 col-sm-12">
                                    <div class="row">
                                       <div class="col-lg-5 col-md-5 col-sm-12">
                                          <label for="text" class="text-center ">Additional Sub. and Marks:</label>
                                       </div>
                                       <div class="col-lg-4 col-md-4 col-sm-12">
                                          <input type="text" class="form-control" name="h_addi_subject" id="h_addi_subject" value="<?php echo $user_row[0]['ADD_SUB_NAME']; ?>">
                                       </div>
                                       <div class="col-lg-3 col-md-3 col-sm-12">
                                          <input type="text" class="form-control" name="h_addi_subject_gpa" id="h_addi_subject_gpa" value="<?php echo $user_row[0]['MARKS_ADD_SUB']; ?>">
                                       </div>
                                    </div>
                                 </div>
                              </div>
                           </div>

                           <div class="row " id="ssc_business">
                              <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">
                                          <label for="text" class="text-center ">Bangla:</label>
                                       </div>
                                       <div class="col-lg-12 col-md-12 col-sm-12">
                                          <input type="text" class="form-control" name="b_bangla" id="b_bangla" value="<?php echo $user_row[0]['MARKS_BANG']; ?>">
                                       </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">
                                          <label for="text" class="text-center ">English:</label>
                                       </div>
                                       <div class="col-lg-12 col-md-12 col-sm-12">
                                          <input type="text" class="form-control" name="b_english" id="b_english" value="<?php echo $user_row[0]['MARKS_ENG']; ?>">
                                       </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">
                                          <label for="text" class="text-center ">Religion:</label>
                                       </div>
                                       <div class="col-lg-12 col-md-12 col-sm-12">
                                          <input type="text" class="form-control" name="b_religion" id="b_religion" value="<?php echo $user_row[0]['MARKS_RELI']; ?>">
                                       </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">
                                          <label for="text" class="text-center ">Mathematics:</label>
                                       </div>
                                       <div class="col-lg-12 col-md-12 col-sm-12">
                                          <input type="text" class="form-control" name="b_mathematics" id="b_mathematics" value="<?php echo $user_row[0]['MARKS_MATH']; ?>">
                                       </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-12 col-md-12 col-sm-12">
                                          <label for="text" class="text-center ">Science:</label>
                                       </div>
                                       <div class="col-lg-12 col-md-12 col-sm-12">
                                          <input type="text" class="form-control" name="b_science" id="b_science" value="<?php echo $user_row[0]['MARKS_SCIENCE']; ?>">
                                       </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">
                                          <label for="text" class="text-center ">Accounting:</label>
                                       </div>
                                       <div class="col-lg-12 col-md-12 col-sm-12">
                                          <input type="text" class="form-control" name="b_accounting" id="b_accounting" value="<?php echo $user_row[0]['MARKS_ACCNT']; ?>">
                                       </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">
                                    <label for="text" class="text-center ">ICT:</label>
                                 </div>
                                 <div class="col-lg-12 col-md-12 col-sm-12">
                                    <input type="text" class="form-control" name="b_ict"
                                       id="b_ict" value="<?php echo $user_row[0]['MARKS_ICT']; ?>">
                                 </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">
                                          <label for="text" class="text-center ">Finance & Banking:</label>
                                       </div>
                                       <div class="col-lg-12 col-md-12 col-sm-12">
                                          <input type="text" class="form-control" name="b_finance" id="b_finance" value="<?php echo $user_row[0]['MARKS_FIN_BANK']; ?>">
                                       </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">
                                          <label for="text" class="text-center ">Business Entrepreneurship:</label>
                                       </div>
                                       <div class="col-lg-12 col-md-12 col-sm-12">
                                          <input type="text" class="form-control" name="b_business" id="b_business" value="<?php echo $user_row[0]['MARKS_BUSS_ENTER']; ?>">
                                       </div>
                                    </div>
                                 </div>
                              </div>

                              <!-- <div class="row m-3">
                           <div class="col-lg-4 col-md-4 col-sm-12">
                              <div class="row">
                                 <div class="col-lg-12 col-md-12 col-sm-12">
                                    <label for="text" class="text-center ">Business Entrepreneurship:</label>
                                 </div>
                                 <div class="col-lg-12 col-md-12 col-sm-12">
                                    <input type="text" class="form-control" name="b_business"
                                       id="b_business" value="<?php echo $user_row[0]['MARKS_BUSS_ENTER']; ?>">
                                 </div>
                              </div>
                           </div>
                           <div class="col-lg-4 col-md-4 col-sm-12">
                              <div class="row">
                                 <div class="col-lg-12 col-md-12 col-sm-12">
                                    <label for="text" class="text-center ">Agriculture Studies:</label>
                                 </div>
                                 <div class="col-lg-12 col-md-12 col-sm-12">
                                    <input type="text" class="form-control" name="b_agriculture"
                                       id="b_agriculture" value="<?php echo $user_row[0]['MARKS_AGRI_STUD']; ?>">
                                 </div>
                              </div>
                           </div>
                        </div> -->

                              <h6 class="col-lg-12 col-md-12 col-sm-12 font-weight-bold">Other Subjects & Marks:</h6>

                              <div class="row m-3">
                                 <div class="col-lg-3 col-md-3 col-sm-11">
                                    <div class="row">
                                       <div class="col-lg-8 col-md-8 col-sm-12">
                                          <input type="text" class="form-control" name="b_subject1" id="b_subject1" value="<?php echo $user_row[0]['OTHER_SUB1_NAME']; ?>">
                                       </div>
                                       <div class="col-lg-4 col-md-4 col-sm-12">
                                          <input type="text" class="form-control" name="b_subject1_gpa" id="b_subject1_gpa" value="<?php echo $user_row[0]['MARKS_OTHER_SUB1']; ?>">
                                       </div>
                                    </div>
                                 </div><span class="col-lg-1 col-md-1 col-sm-1 font-weight-bold">;</span>
                                 <div class="col-lg-3 col-md-3 col-sm-11">
                                    <div class="row">
                                       <div class="col-lg-8 col-md-8 col-sm-12">
                                          <input type="text" class="form-control" name="b_subject2" id="b_subject2" value="<?php echo $user_row[0]['OTHER_SUB2_NAME']; ?>">
                                       </div>
                                       <div class="col-lg-4 col-md-4 col-sm-12">
                                          <input type="text" class="form-control" name="b_subject2_gpa" id="b_subject2_gpa" value="<?php echo $user_row[0]['MARKS_OTHER_SUB2']; ?>">
                                       </div>
                                    </div>
                                 </div>

                                 <div class="col-lg-3 col-md-3 col-sm-11">
                                    <div class="row">
                                       <div class="col-lg-8 col-md-8 col-sm-12">
                                          <input type="text" class="form-control" name="b_subject3" id="b_subject1" value="<?php echo $user_row[0]['OTHER_SUB3_NAME']; ?>">
                                       </div>
                                       <div class="col-lg-4 col-md-4 col-sm-12">
                                          <input type="text" class="form-control" name="b_subject3_gpa" id="b_subject1_gpa" value="<?php echo $user_row[0]['MARKS_OTHER_SUB3']; ?>">
                                       </div>
                                    </div>
                                 </div><span class="col-lg-1 col-md-1 col-sm-1 font-weight-bold">;</span>
                                 <div class="col-lg-3 col-md-3 col-sm-11" style="margin-top: 20px;">
                                    <div class="row">
                                       <div class="col-lg-8 col-md-8 col-sm-12">
                                          <input type="text" class="form-control" name="b_subject4" id="b_subject2" value="<?php echo $user_row[0]['OTHER_SUB4_NAME']; ?>">
                                       </div>
                                       <div class="col-lg-4 col-md-4 col-sm-12">
                                          <input type="text" class="form-control" name="b_subject4_gpa" id="b_subject2_gpa" value="<?php echo $user_row[0]['MARKS_OTHER_SUB4']; ?>">
                                       </div>
                                    </div>
                                 </div>

                                 <div class="col-lg-5 col-md-5 col-sm-12" style="margin-top: 20px;">
                                    <div class="row">
                                       <div class="col-lg-5 col-md-5 col-sm-12">
                                          <label for="text" class="text-center ">Additional Sub. and Marks:</label>
                                       </div>
                                       <div class="col-lg-4 col-md-4 col-sm-12">
                                          <input type="text" class="form-control" name="b_additional_sub" id="b_additional_sub" value="<?php echo $user_row[0]['ADD_SUB_NAME']; ?>">
                                       </div>
                                       <div class="col-lg-3 col-md-3 col-sm-12">
                                          <input type="text" class="form-control" name="b_additional_sub_gpa" id="b_additional_sub_gpa" value="<?php echo $user_row[0]['MARKS_ADD_SUB']; ?>">
                                       </div>
                                    </div>
                                 </div>
                              </div>
                           </div>

                           <div class="row m-3">
                              <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">
                                       <label for="text" class="text-center font-weight-bold">Permanent Address:</label>
                                    </div>
                                    <div class="col-lg-12 col-md-12 col-sm-12">
                                       <textarea name="permanent_address" id="permanent_address" cols="20" rows="4" value=""><?php echo $user_row[0]['PERM_ADDRS']; ?></textarea>
                                    </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">
                                       <label for="text" class="text-center font-weight-bold">Dhaka Residence Address:</label>
                                    </div>
                                    <div class="col-lg-12 col-md-12 col-sm-12">
                                       <textarea name="dhaka_resi_address" id="dhaka_resi_address" cols="20" rows="4" value=""><?php echo $user_row[0]['DHK_RES_ADDRS']; ?></textarea>
                                    </div>
                                 </div>
                              </div>
                           </div>
                           <h5 class="font-weight-bold"><u>Father's Information:</u></h5>

                           <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">
                                       <label for="text" class="text-center ">Name:</label>
                                    </div>
                                    <div class="col-lg-12 col-md-12 col-sm-12">
                                       <input type="text" class="form-control" name="f_name" id="f_name" value="<?php echo $user_row[0]['F_NAME']; ?>">
                                    </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">
                                       <label for="text" class="text-center ">Occupation:</label>
                                    </div>
                                    <div class="col-lg-12 col-md-12 col-sm-12">
                                       <input type="text" class="form-control" name="f_occupation" id="f_occupation" value="<?php echo $user_row[0]['F_OCCU']; ?>">
                                    </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">
                                       <label for="text" class="text-center ">Designation (in detail):</label>
                                    </div>
                                    <div class="col-lg-12 col-md-12 col-sm-12">
                                       <input type="text" class="form-control" name="f_designation" id="f_designation" value="<?php echo $user_row[0]['F_DESIG']; ?>">
                                    </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">
                                       <label for="text" class="text-center ">National ID Number:</label>
                                    </div>
                                    <div class="col-lg-12 col-md-12 col-sm-12">
                                       <input type="text" class="form-control" name="f_national_id_number" id="f_national_id_number" value="<?php echo $user_row[0]['F_NID']; ?>">
                                    </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 ">Name of Institution/Organization/Office with Address:</label>
                                    </div>
                                    <div class="col-lg-12 col-md-12 col-sm-12">
                                       <textarea name="f_office_Address" id="f_office_Address" cols="20" rows="4"><?php echo $user_row[0]['F_OFF_ADDRS']; ?></textarea>
                                    </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-12 col-md-12 col-sm-12">
                                       <label for="text" class="text-center ">Mobile Number:</label>
                                    </div>
                                    <div class="col-lg-12 col-md-12 col-sm-12">
                                       <input type="text" class="form-control" name="f_mobile_number" id="f_mobile_number" value="<?php echo $user_row[0]['F_MOBILE_NO']; ?>">
                                    </div>
                                 </div>
                              </div>
                              <div class="col-lg-4 col-md-4 col-sm-12">
                                 <div class="row">
                                    <div class="col-lg-12 col-md-12 col-sm-12">
                                       <label for="text" class="text-center ">Monthly Income of Parents Tk.:</label>
                                    </div>
                                    <div class="col-lg-12 col-md-12 col-sm-12">
                                       <input type="text" class="form-control" name="f_monthly_income" id="f_monthly_income" value="<?php echo $user_row[0]['MONTH_INCOME_PARENTS']; ?>">
                                    </div>
                                 </div>
                              </div>
                              <div class="col-lg-4 col-md-4 col-sm-12">
                                 <div class="row">
                                    <div class="col-lg-12 col-md-12 col-sm-12">
                                       <label for="text" class="text-center ">Total Monthly Income of Family Tk.:</label>
                                    </div>
                                    <div class="col-lg-12 col-md-12 col-sm-12">
                                       <input type="text" class="form-control" name="family_monthly_income" id="family_monthly_income" value="<?php echo $user_row[0]['TOT_FAMILY_INCOME']; ?>">
                                    </div>
                                 </div>
                              </div>
                           </div>

                           <h5 class="font-weight-bold"><u>Mother's Information:</u></h5>


                           <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">
                                       <label for="text" class="text-center ">Name:</label>
                                    </div>
                                    <div class="col-lg-12 col-md-12 col-sm-12">
                                       <input type="text" class="form-control" name="m_name" id="m_name" value="<?php echo $user_row[0]['M_NAME']; ?>">
                                    </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">
                                       <label for="text" class="text-center ">Occupation:</label>
                                    </div>
                                    <div class="col-lg-12 col-md-12 col-sm-12">
                                       <input type="text" class="form-control" name="m_occupation" id="m_occupation" value="<?php echo $user_row[0]['M_OCCU']; ?>">
                                    </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">
                                       <label for="text" class="text-center ">Designation:</label>
                                    </div>
                                    <div class="col-lg-12 col-md-12 col-sm-12">
                                       <input type="text" class="form-control" name="m_designation" id="m_designation" value="<?php echo $user_row[0]['M_DESIG']; ?>">
                                    </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">
                                       <label for="text" class="text-center ">National ID Number:</label>
                                    </div>
                                    <div class="col-lg-12 col-md-12 col-sm-12">
                                       <input type="text" class="form-control" name="m_national_id_number" id="m_national_id_number" value="<?php echo $user_row[0]['M_NID']; ?>">
                                    </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-12 col-md-12 col-sm-12">
                                       <label for="text" class="text-center ">Name of Office with Address:</label>
                                    </div>
                                    <div class="col-lg-12 col-md-12 col-sm-12">
                                       <textarea name="m_office_address" id="m_office_address" cols="20" rows="4"><?php echo $user_row[0]['M_OFF_ADDRS']; ?></textarea>
                                    </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">
                                       <label for="text" class="text-center ">Mobile Number:</label>
                                    </div>
                                    <div class="col-lg-12 col-md-12 col-sm-12">
                                       <input type="text" class="form-control" name="m_mobile_number" id="m_mobile_number" value="<?php echo $user_row[0]['M_MOBILE_NO']; ?>">
                                    </div>
                                 </div>
                              </div>
                           </div>

                           <h5><u class="font-weight-bold">Local Guardian:</u>(If parents are not in Dhaka City)</h5>

                           <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">
                                       <label for="text" class="text-center ">Name:</label>
                                    </div>
                                    <div class="col-lg-12 col-md-12 col-sm-12">
                                       <input type="text" class="form-control" name="local_name" id="local_name" value="<?php echo $user_row[0]['LG_NAME']; ?>">
                                    </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">
                                       <label for="text" class="text-center ">Relationship:</label>
                                    </div>
                                    <div class="col-lg-12 col-md-12 col-sm-12">
                                       <input type="text" class="form-control" name="local_relationship" id="local_relationship" value="<?php echo $user_row[0]['LG_RELATION']; ?>">
                                    </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">
                                       <label for="text" class="text-center ">Occupation:</label>
                                    </div>
                                    <div class="col-lg-12 col-md-12 col-sm-12">
                                       <input type="text" class="form-control" name="local_occupation" id="local_occupation" value="<?php echo $user_row[0]['LG_OCCU']; ?>">
                                    </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">
                                       <label for="text" class="text-center ">Designation(in detail):</label>
                                    </div>
                                    <div class="col-lg-12 col-md-12 col-sm-12">
                                       <input type="text" class="form-control" name="local_designation" id="local_designation" value="<?php echo $user_row[0]['LG_DESIG']; ?>">
                                    </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-12 col-md-12 col-sm-12">
                                       <label for="text" class="text-center ">Dhaka Residence Address:</label>
                                    </div>
                                    <div class="col-lg-12 col-md-12 col-sm-12">
                                       <textarea name="local_dhaka_Address" id="local_dhaka_Address" cols="20" rows="4"><?php echo $user_row[0]['LG_DHK_RES_ADDRS']; ?></textarea>
                                    </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">
                                       <label for="text" class="text-center ">Mobile Number:</label>
                                    </div>
                                    <div class="col-lg-12 col-md-12 col-sm-12">
                                       <input type="text" class="form-control" name="local_mobile_number" id="local_mobile_number" value="<?php echo $user_row[0]['LG_MOBILE_NO']; ?>">
                                    </div>
                                 </div>
                              </div>
                           </div>

                           <h5 class="font-weight-bold"><u>Progress Reports to Be Sent To:</u></h5>

                           <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">
                                 <label for="text" class="text-center ">Name:</label>
                              </div>
                              <div class="col-lg-12 col-md-12 col-sm-12">
                                 <input type="text" class="form-control" name="progress_name"
                                    id="progress_name" value="<?php echo $user_row[0]['PR_NAME']; ?>">
                              </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">
                                 <label for="text" class="text-center ">Relationship:</label>
                              </div>
                              <div class="col-lg-12 col-md-12 col-sm-12">
                                 <input type="text" class="form-control" name="progress_relationship"
                                    id="progress_relationship" value="<?php echo $user_row[0]['PR_RELATION']; ?>">
                              </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">
                                 <label for="text" class="text-center ">Address:</label>
                              </div>
                              <div class="col-lg-12 col-md-12 col-sm-12">
                                 <textarea name="progress_address" id="progress_address" cols="20" rows="4"><?php echo $user_row[0]['PR_ADDRS']; ?></textarea>
                              </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">
                                 <label for="text" class="text-center ">Mobile Number:</label>
                              </div>
                              <div class="col-lg-12 col-md-12 col-sm-12">
                                 <input type="text" class="form-control" name="progress_mobile_number"
                                    id="progress_mobile_number" value="<?php echo $user_row[0]['PR_MOBILE_NO']; ?>">
                              </div> 
                           </div>
                        </div>
                     </div>
                           <h5 class="col-lg-12 col-md-12 col-sm-12 text-center">কলেজে ৭টি বিষয় নিয়ে পড়তে হবে। তাই শুধু Additional বিষয়ে টিক চিহ্ন দিতে হবে। </h5>
                           <!-- <h5 class="col-lg-12 col-md-12 col-sm-12 text-center">Subjects you wish to study at Notre Dame College</h5> -->


                           <div class="" id="science">
                              <div class="">
                                 <div class="row m-3">
                                    <div class="col-lg-12 col-md-12 col-sm-12">
                                       <div class="row">
                                          <div class="form-check">
                                             <input class="form-check-input" type="checkbox" value="" id="flexCheckChecked" checked hidden>
                                             <label class="form-check-label" for="flexCheckChecked">
                                                Bangla
                                             </label>
                                          </div>
                                          <div class="form-check">
                                             <input class="form-check-input" type="checkbox" value="" id="flexCheckChecked" checked hidden>
                                             <label class="form-check-label" for="flexCheckChecked">
                                                English
                                             </label>
                                          </div>
                                          <div class="form-check">
                                             <input class="form-check-input" type="checkbox" value="" id="flexCheckChecked" checked hidden>
                                             <label class="form-check-label" for="flexCheckChecked">
                                                ICT(Information & Communication Technology)
                                             </label>
                                          </div>
                                          <div class="form-check">
                                             <input class="form-check-input" type="checkbox" value="" id="flexCheckChecked" checked hidden>
                                             <label class="form-check-label" for="flexCheckChecked">
                                                Physics
                                             </label>
                                          </div>
                                          <div class="form-check">
                                             <input class="form-check-input" type="checkbox" value="" id="flexCheckChecked" checked hidden>
                                             <label class="form-check-label" for="flexCheckChecked">
                                                Chemistry
                                             </label>
                                          </div>
                                          <h5 class="col-lg-12 col-md-12 col-sm-12 text-center font-weight-bold">(Choose any one as an additional subject from the below)</h5>
                                       </div>
                                    </div>
                                    <div class="col-lg-12 col-md-12 col-sm-12">
                                       <div class="row">
                                          <?php if ($user_row[0]['HIGHER_MATH'] === 'Y') {
                                          ?>
                                             <div class="form-check col-lg-4 col-md-4 col-sm-12">
                                                <input class="form-check-input" type="radio" name="scienceR" id="HigherMath" value="HigherMath" checked>
                                                <label class="form-check-label" for="HigherMath">
                                                   Higher Math
                                                </label>
                                             </div>
                                             <div class="form-check col-lg-4 col-md-4 col-sm-12">
                                                <input class="form-check-input" type="radio" name="scienceR" id="Biology" value="Biology">
                                                <label class="form-check-label" for="Biology">
                                                   Biology
                                                </label>
                                             </div>
                                          <?php
                                          } ?>

                                          <?php if ($user_row[0]['BIOLOGY'] === 'Y') {
                                          ?>
                                             <div class="form-check col-lg-4 col-md-4 col-sm-12">
                                                <input class="form-check-input" type="radio" name="scienceR" id="HigherMath" value="HigherMath">
                                                <label class="form-check-label" for="HigherMath">
                                                   Higher Math
                                                </label>
                                             </div>
                                             <div class="form-check col-lg-4 col-md-4 col-sm-12">
                                                <input class="form-check-input" type="radio" name="scienceR" id="Biology" value="Biology" checked>
                                                <label class="form-check-label" for="Biology">
                                                   Biology
                                                </label>
                                             </div>
                                          <?php
                                          } ?>

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

                           <div id="humanities">
                              <div class="row  m-3">
                                 <div class="col-lg-6 col-md-6 col-sm-12">
                                    <div class="row">
                                       <div class="col-lg-3 col-md-3 col-sm-12">
                                          <label for="text" class="text-center font-weight-bold">Groups:</label>
                                       </div>
                                       <div class="col-lg-5 col-md-5 col-sm-12">
                                          <select id="" name="SelectGroup" class="form-select form-control">
                                             <?php if ($user_row[0]['SUB_GR_CODE'] === '03') {
                                             ?>
                                                <option>Select Group</option>
                                                <option value="03" selected>Group-H</option>
                                                <option value="04">Group-W</option>
                                                <option value="05">Group-G</option>
                                                <option value="06">Group-L</option>
                                             <?php
                                             } ?>
                                             <?php if ($user_row[0]['SUB_GR_CODE'] === '04') {
                                             ?>
                                                <option>Select Group</option>
                                                <option value="03">Group-H</option>
                                                <option value="04" selected>Group-W</option>
                                                <option value="05">Group-G</option>
                                                <option value="06">Group-L</option>
                                             <?php
                                             } ?>
                                             <?php if ($user_row[0]['SUB_GR_CODE'] === '05') {
                                             ?>
                                                <option>Select Group</option>
                                                <option value="03">Group-H</option>
                                                <option value="04">Group-W</option>
                                                <option value="05" selected>Group-G</option>
                                                <option value="06">Group-L</option>
                                             <?php
                                             } ?>
                                             <?php if ($user_row[0]['SUB_GR_CODE'] === '06') {
                                             ?>
                                                <option>Select Group</option>
                                                <option value="03">Group-H</option>
                                                <option value="04">Group-W</option>
                                                <option value="05">Group-G</option>
                                                <option value="06" selected>Group-L</option>
                                             <?php
                                             } ?>

                                          </select>
                                       </div>
                                    </div>
                                 </div>
                              </div>
                              <div class="03 group">
                                 <div class="row m-3">
                                    <div class="col-lg-12 col-md-12 col-sm-12">
                                       <div class="row">
                                          <div class="form-check">
                                             <input class="form-check-input" type="checkbox" value="" id="flexCheckChecked" checked hidden>
                                             <label class="form-check-label" for="flexCheckChecked">
                                                Bangla
                                             </label>
                                          </div>
                                          <div class="form-check">
                                             <input class="form-check-input" type="checkbox" value="" id="flexCheckChecked" checked hidden>
                                             <label class="form-check-label" for="flexCheckChecked">
                                                English
                                             </label>
                                          </div>
                                          <div class="form-check">
                                             <input class="form-check-input" type="checkbox" value="" id="flexCheckChecked" checked hidden>
                                             <label class="form-check-label" for="flexCheckChecked">
                                                ICT(Information & Communication Technology)
                                             </label>
                                          </div>
                                          <div class="form-check">
                                             <input class="form-check-input" type="checkbox" value="" id="flexCheckChecked" checked hidden>
                                             <label class="form-check-label" for="flexCheckChecked">
                                                History
                                             </label>
                                          </div>
                                          <div class="form-check">
                                             <input class="form-check-input" type="checkbox" value="" id="flexCheckChecked" checked hidden>
                                             <label class="form-check-label" for="flexCheckChecked">
                                                Social Work
                                             </label>
                                          </div>
                                          <h5 class="col-lg-12 col-md-12 col-sm-12 text-center font-weight-bold">(Choose any one as an additional subject from the below)</h5>
                                       </div>
                                    </div>
                                    <div class="col-lg-12 col-md-12 col-sm-12">
                                       <div class="row">
                                          <?php if ($user_row[0]['ENCONOMICS'] === 'Y') {
                                          ?>
                                             <div class="form-check col-lg-4 col-md-4 col-sm-12">
                                                <input class="form-check-input" type="radio" name="grpH" id="Economicsh" value="Economicsh" checked>
                                                <label class="form-check-label" for="Economicsh">
                                                   Economics
                                                </label>
                                             </div>
                                             <div class="form-check col-lg-4 col-md-4 col-sm-12">
                                                <input class="form-check-input" type="radio" name="grpH" id="Logich" value="Logich">
                                                <label class="form-check-label" for="Logich">
                                                   Logic
                                                </label>
                                             </div>
                                          <?php
                                          } ?>
                                          <?php if ($user_row[0]['LOGIC'] === 'Y') {
                                          ?>
                                             <div class="form-check col-lg-4 col-md-4 col-sm-12">
                                                <input class="form-check-input" type="radio" name="grpH" id="Economicsh" value="Economicsh">
                                                <label class="form-check-label" for="Economicsh">
                                                   Economics
                                                </label>
                                             </div>
                                             <div class="form-check col-lg-4 col-md-4 col-sm-12">
                                                <input class="form-check-input" type="radio" name="grpH" id="Logich" value="Logich" checked>
                                                <label class="form-check-label" for="Logich">
                                                   Logic
                                                </label>
                                             </div>
                                          <?php
                                          } ?>


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

                              <div class="04 group">
                                 <div class="row m-3">
                                    <div class="col-lg-12 col-md-12 col-sm-12">
                                       <div class="row">
                                          <div class="form-check">
                                             <input class="form-check-input" type="checkbox" value="" id="flexCheckChecked" checked hidden>
                                             <label class="form-check-label" for="flexCheckChecked">
                                                Bangla
                                             </label>
                                          </div>
                                          <div class="form-check">
                                             <input class="form-check-input" type="checkbox" value="" id="flexCheckChecked" checked hidden>
                                             <label class="form-check-label" for="flexCheckChecked">
                                                English
                                             </label>
                                          </div>
                                          <div class="form-check">
                                             <input class="form-check-input" type="checkbox" value="" id="flexCheckChecked" checked hidden>
                                             <label class="form-check-label" for="flexCheckChecked">
                                                ICT(Information & Communication Technology)
                                             </label>
                                          </div>
                                          <div class="form-check">
                                             <input class="form-check-input" type="checkbox" value="" id="flexCheckChecked" checked hidden>
                                             <label class="form-check-label" for="flexCheckChecked">
                                                Economics
                                             </label>
                                          </div>
                                          <div class="form-check">
                                             <input class="form-check-input" type="checkbox" value="" id="flexCheckChecked" checked hidden>
                                             <label class="form-check-label" for="flexCheckChecked">
                                                Social Work
                                             </label>
                                          </div>
                                          <h5 class="col-lg-12 col-md-12 col-sm-12 text-center font-weight-bold">(Choose any one as an additional subject from the below)</h5>
                                       </div>
                                    </div>
                                    <div class="col-lg-12 col-md-12 col-sm-12">
                                       <div class="row">
                                          <?php if ($user_row[0]['LOGIC'] === 'Y') {
                                          ?>
                                             <div class="form-check col-lg-4 col-md-4 col-sm-12">
                                                <input class="form-check-input" type="radio" name="grpW" id="Logicw" value="Logicw" checked>
                                                <label class="form-check-label" for="Logicw">
                                                   Logic/Geo.
                                                </label>
                                             </div>
                                             <div class="form-check col-lg-4 col-md-4 col-sm-12">
                                                <input class="form-check-input" type="radio" name="grpW" id="Civicsw" value="Civicsw">
                                                <label class="form-check-label" for="Civicsw">
                                                   Civics
                                                </label>
                                             </div>
                                          <?php
                                          } ?>

                                          <?php if ($user_row[0]['CIVICS'] === 'Y') {
                                          ?>
                                             <div class="form-check col-lg-4 col-md-4 col-sm-12">
                                                <input class="form-check-input" type="radio" name="grpW" id="Logicw" value="Logicw">
                                                <label class="form-check-label" for="Logicw">
                                                   Logic/Geo.
                                                </label>
                                             </div>
                                             <div class="form-check col-lg-4 col-md-4 col-sm-12">
                                                <input class="form-check-input" type="radio" name="grpW" id="Civicsw" value="Civicsw" checked>
                                                <label class="form-check-label" for="Civicsw">
                                                   Civics
                                                </label>
                                             </div>
                                          <?php
                                          } ?>

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

                              <div class="05 group">
                                 <div class="row m-3">
                                    <div class="col-lg-12 col-md-12 col-sm-12">
                                       <div class="row">
                                          <div class="form-check">
                                             <input class="form-check-input" type="checkbox" value="" id="flexCheckChecked" checked hidden>
                                             <label class="form-check-label" for="flexCheckChecked">
                                                Bangla
                                             </label>
                                          </div>
                                          <div class="form-check">
                                             <input class="form-check-input" type="checkbox" value="" id="flexCheckChecked" checked hidden>
                                             <label class="form-check-label" for="flexCheckChecked">
                                                English
                                             </label>
                                          </div>
                                          <div class="form-check">
                                             <input class="form-check-input" type="checkbox" value="" id="flexCheckChecked" checked hidden>
                                             <label class="form-check-label" for="flexCheckChecked">
                                                ICT(Information & Communication Technology)
                                             </label>
                                          </div>
                                          <div class="form-check">
                                             <input class="form-check-input" type="checkbox" value="" id="flexCheckChecked" checked hidden>
                                             <label class="form-check-label" for="flexCheckChecked">
                                                Logic
                                             </label>
                                          </div>
                                          <div class="form-check">
                                             <input class="form-check-input" type="checkbox" value="" id="flexCheckChecked" checked hidden>
                                             <label class="form-check-label" for="flexCheckChecked">
                                                Geography
                                             </label>
                                          </div>
                                          <h5 class="col-lg-12 col-md-12 col-sm-12 text-center font-weight-bold">(Choose any one as an additional subject from the below)</h5>
                                       </div>
                                    </div>
                                    <div class="col-lg-12 col-md-12 col-sm-12">
                                       <div class="row">
                                          <?php if ($user_row[0]['ENCONOMICS'] === 'Y') {
                                          ?>
                                             <div class="form-check col-lg-4 col-md-4 col-sm-12">
                                                <input class="form-check-input" type="radio" name="grpG" id="Economicsg" value="Economicsg" checked>
                                                <label class="form-check-label" for="Economicsg">
                                                   Economics
                                                </label>
                                             </div>
                                             <div class="form-check col-lg-4 col-md-4 col-sm-12">
                                                <input class="form-check-input" type="radio" name="grpG" id="Civicsg" value="Civicsg">
                                                <label class="form-check-label" for="Civicsg">
                                                   Civics
                                                </label>
                                             </div>
                                          <?php
                                          } ?>
                                          <?php if ($user_row[0]['CIVICS'] === 'Y') {
                                          ?>
                                             <div class="form-check col-lg-4 col-md-4 col-sm-12">
                                                <input class="form-check-input" type="radio" name="grpG" id="Economicsg" value="Economicsg">
                                                <label class="form-check-label" for="Economicsg">
                                                   Economics
                                                </label>
                                             </div>
                                             <div class="form-check col-lg-4 col-md-4 col-sm-12">
                                                <input class="form-check-input" type="radio" name="grpG" id="Civicsg" value="Civicsg" checked>
                                                <label class="form-check-label" for="Civicsg">
                                                   Civics
                                                </label>
                                             </div>
                                          <?php
                                          } ?>

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

                           <div class="" id="business">
                              <div class="">
                                 <div class="row m-3">
                                    <div class="col-lg-12 col-md-12 col-sm-12">
                                       <div class="row">
                                          <div class="form-check">
                                             <input class="form-check-input" type="checkbox" value="" id="flexCheckChecked" checked hidden>
                                             <label class="form-check-label" for="flexCheckChecked">
                                                Bangla
                                             </label>
                                          </div>
                                          <div class="form-check">
                                             <input class="form-check-input" type="checkbox" value="" id="flexCheckChecked" checked hidden>
                                             <label class="form-check-label" for="flexCheckChecked">
                                                English
                                             </label>
                                          </div>
                                          <div class="form-check">
                                             <input class="form-check-input" type="checkbox" value="" id="flexCheckChecked" checked hidden>
                                             <label class="form-check-label" for="flexCheckChecked">
                                                ICT(Information & Communication Technology)
                                             </label>
                                          </div>
                                          <div class="form-check">
                                             <input class="form-check-input" type="checkbox" value="" id="flexCheckChecked" checked hidden>
                                             <label class="form-check-label" for="flexCheckChecked">
                                                Accounting
                                             </label>
                                          </div>
                                          <div class="form-check">
                                             <input class="form-check-input" type="checkbox" value="" id="flexCheckChecked" checked hidden>
                                             <label class="form-check-label" for="flexCheckChecked">
                                                Business Organization and Management
                                             </label>
                                          </div>
                                          <div class="form-check">
                                             <input class="form-check-input" type="checkbox" value="" id="flexCheckChecked" checked hidden>
                                             <label class="form-check-label" for="flexCheckChecked">
                                                Finance, Banking & Insurance
                                             </label>
                                          </div>
                                          <h5 class="col-lg-12 col-md-12 col-sm-12 text-center font-weight-bold">(Choose any one as an additional subject from the below)</h5>
                                       </div>
                                    </div>
                                    <div class="col-lg-12 col-md-12 col-sm-12">
                                       <div class="row">
                                          <?php if ($user_row[0]['STATISTICS'] === 'Y') {
                                          ?>
                                             <div class="form-check col-lg-4 col-md-4 col-sm-12">
                                                <input class="form-check-input" type="radio" name="busR" id="Statistics" value="Statistics" checked>
                                                <label class="form-check-label" for="Statistics">
                                                   Statistics
                                                </label>
                                             </div>
                                             <div class="form-check col-lg-4 col-md-4 col-sm-12">
                                                <input class="form-check-input" type="radio" name="busR" id="Economics" value="Economics">
                                                <label class="form-check-label" for="Economics">
                                                   Economics
                                                </label>
                                             </div>
                                          <?php
                                          } ?>

                                          <?php if ($user_row[0]['ENCONOMICS'] === 'Y') {
                                          ?>
                                             <div class="form-check col-lg-4 col-md-4 col-sm-12">
                                                <input class="form-check-input" type="radio" name="busR" id="Statistics" value="Statistics">
                                                <label class="form-check-label" for="Statistics">
                                                   Statistics
                                                </label>
                                             </div>
                                             <div class="form-check col-lg-4 col-md-4 col-sm-12">
                                                <input class="form-check-input" type="radio" name="busR" id="Economics" value="Economics" checked>
                                                <label class="form-check-label" for="Economics">
                                                   Economics
                                                </label>
                                             </div>
                                          <?php
                                          } ?>

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


                           <h5 class="font-weight-bold">Activites in which you took part while in high School:</h5>

                           <div class="col-lg-12 col-md-12 col-sm-12 m-3">
                              <div class="row">
                                 <div class="col-lg-2 col-md-2 col-sm-12">
                                    <label for="text" class="text-center ">Sports(Details):</label>
                                 </div>
                                 <div class="col-lg-8 col-md-8 col-sm-12">
                                    <input type="text" class="form-control" name="sports" id="sports" value="<?php echo $user_row[0]['SPORTS_DTLS']; ?>">
                                 </div>
                              </div>
                           </div>
                           <div class="col-lg-12 col-md-12 col-sm-12 m-3">
                              <div class="row">
                                 <div class="col-lg-1 col-md-1 col-sm-12">
                                    <label for="text" class="text-center ">Clubs:</label>
                                 </div>
                                 <div class="col-lg-9 col-md-9 col-sm-12">
                                    <input type="text" class="form-control" name="clubs" id="clubs" value="<?php echo $user_row[0]['CLUBS_DTLS']; ?>">
                                 </div>
                              </div>
                           </div>
                           <div class="col-lg-12 col-md-12 col-sm-12 m-3">
                              <div class="row">
                                 <div class="col-lg-1 col-md-1 col-sm-12">
                                    <label for="text" class="text-center ">Others:</label>
                                 </div>
                                 <div class="col-lg-9 col-md-9 col-sm-12">
                                    <input type="text" class="form-control" name="others" id="others" value="<?php echo $user_row[0]['OTHERS_DTLS']; ?>">
                                 </div>
                              </div>
                           </div>

                           <div class="row">
                              <div class="col-lg-12 col-md-12 col-sm-12">
                                 <h6 class="font-weight-bold">When the information are entered, click on the submit button, the admission form will appear. Print the
                                    displayed admission form in A4 size paper and bring it on admission day.</h6>
                              </div>
                           </div>
                           <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">
                                 <!-- <button type="button" class="btn btn-success m-3" name='submit' id='submit' style="border-radius: 0px 15px 0px 15px;" onclick="printContent('divName')">
                           Submit
                           </button> -->


                                 <div class="col text-center">
                                    <button type="submit" class="btn btn-success m-3" name='submit' id='submit'>
                                       Submit
                                    </button>
                                 </div>
                              </div>
                              <div class="col-lg-4 col-md-4 col-sm-12">
                              </div>
                           </div>

   </form>
   </div>
   </div>
   </div>
   </div>
   <!-- using online scripts -->


   <!-- 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>



   <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
   <script type='text/javascript'>
      $(document).ready(function() {
         $("select").change(function() {
            $(this).find("option:selected").each(function() {
               var optionValue = $(this).attr("value");
               if (optionValue) {
                  $(".group").not("." + optionValue).hide();
                  $("." + optionValue).show();
               } else {
                  $(".group").hide();
               }
            });
         }).change();
      });

      function preview_image(event) {
         var reader = new FileReader();
         reader.onload = function() {
            var output = document.getElementById('output_image');
            output.src = reader.result;
         }
         reader.readAsDataURL(event.target.files[0]);
      }
   </script>

   <script>
      var str = '<?php echo $user_row[0]['APP_CAT']; ?>';
      console.log(str);


      if (str == '1' || str == '2') {

         document.getElementById("ssc_business").style.display = 'none';
         document.getElementById("ssc_humanities").style.display = 'none';
         document.getElementById("business").style.display = 'none';
         document.getElementById("humanities").style.display = 'none';

      } else if (str == '3') {
         document.getElementById("ssc_business").style.display = 'none';
         document.getElementById("ssc_science").style.display = 'none';
         document.getElementById("business").style.display = 'none';
         document.getElementById("science").style.display = 'none';
      } else if (str == '4') {
         document.getElementById("ssc_science").style.display = 'none';
         document.getElementById("ssc_humanities").style.display = 'none';
         document.getElementById("science").style.display = 'none';
         document.getElementById("humanities").style.display = 'none';
      }
   </script>






</body>

</html>