JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-}JFIFICC_PROFILElcmsmntrRGB XYZ  acspMSFTsawsctrl-hand=@=@t," desc_cprt wtptrXYZ,gXYZ@bXYZTrTRCh`gTRCh`bTRCh`descuRGBtextCC0XYZ TXYZ o8XYZ bXYZ $curv*|uN  bj. C$)j.~39?FWM6Tv\dluV~,6۾ewC    #%$""!&+7/&)4)!"0A149;>>>%.DIC;C  ;("(;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?|WH?cS?Ne.r˿ޱ5\YYhFOejT7PZ[qs2c/$Ep[Gqo(Nù=QHci;OipX=Ģ8d^mQeӴm1OsL/x2];i6p!zU -/uX!=<-} .
LIBYA CYBER ARMY
Logo of a company Instagram@3g86    Server : Apache
System : Linux uta-edu.server.ly 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64
User : utripoli ( 1001)
PHP Version : 7.4.33
Disable Function : NONE
Directory :  /home/utripoli/public_html/cp/student/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/utripoli/public_html/cp/student/mytable.php
<?php 
require_once("../../connection/connect2.php");
$page_title = "الجلسات المتاحة";
$page_select = "11";
require_once("include/header.php");
require_once("include/check.php");
require_once("include/locked.php");

         
        // بيانات الطالب
        $dirsa->select_db($database_dirsa);
        $query_get_year = sprintf("SELECT * FROM tblsession where isActive=%s",
                                    GetSQLValueString(1, "int"));
        $get_year  = $dirsa->query($query_get_year) or die($dirsa->error);
        $row_get_year  = $get_year ->fetch_assoc();
        $totalRows_get_year  = $get_year ->num_rows;

        // بيانات الطالب
        $dirsa->select_db($database_dirsa);
        $query_get_time = "SELECT * FROM time";
        $get_time = $dirsa->query($query_get_time) or die($dirsa->error);
        $row_get_time = $get_time->fetch_assoc();
        $totalRows_get_time = $get_time->num_rows;

                // بيانات الطالب
                $dirsa->select_db($database_dirsa);
                $query_get_dept = sprintf("SELECT * FROM department where dep_another_id=%s",
                                    GetSQLValueString($row_users22['id_section'], "int"));
                $get_dept = $dirsa->query($query_get_dept) or die($dirsa->error);
                $row_get_dept = $get_dept->fetch_assoc();
                $totalRows_get_dept = $get_dept->num_rows;
?>
  <html
  lang="ar"
  class="light-style layout-menu-fixed"
  dir="rtl"
  data-theme="theme-default"
  data-assets-path="../assets/"
  data-template="vertical-menu-template-free"
>
  <head>
    <meta charset="utf-8" />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"
    />

    <title>لوحة التحكم</title>

    <meta name="description" content="" />

    <!-- Favicon -->
    <link rel="icon" type="image/x-icon" href="assets/img/logo.png" />

    <!-- Fonts -->
    <link rel="preconnect" href="https://fonts.googleapis.com" />
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
    <link
      href="https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@400;500;600;700&display=swap"
      rel="stylesheet"
    />

    <!-- Icons. Uncomment required icon fonts -->
    <link rel="stylesheet" href="assets/vendor/fonts/boxicons.css" />

    <!-- Core CSS -->
    <link
      rel="stylesheet"
      href="assets/vendor/css/core.css"
      class="template-customizer-core-css"
    />
    <link
      rel="stylesheet"
      href="assets/vendor/css/theme-default.css"
      class="template-customizer-theme-css"
    />
    <link rel="stylesheet" href="assets/css/demo.css" />

    <!-- Vendors CSS -->
    <link
      rel="stylesheet"
      href="assets/vendor/libs/perfect-scrollbar/perfect-scrollbar.css"
    />

    <link
      rel="stylesheet"
      href="assets/vendor/libs/apex-charts/apex-charts.css"
    />

    <!-- Page CSS -->

    <!-- Helpers -->
    <script src="assets/vendor/js/helpers.js"></script>

    <!--! Template customizer & Theme config files MUST be included after core stylesheets and helpers.js in the <head> section -->
    <!--? Config:  Mandatory theme config file contain global vars & default theme options, Set your preferred theme option in this file.  -->
    <script src="assets/js/config.js"></script>
        <!-- text editor -->
        <script
      src="https://cdn.tiny.cloud/1/no-api-key/tinymce/6/tinymce.min.js"
      referrerpolicy="origin"
    ></script>
    <script>
      tinymce.init({
        selector: "#mytextarea",
        language: "ar",
      });
    </script>
  </head>
  <br>
  <div class="container">
  <div class="card">
    <br>
  <center><h3>جدولي الدراسي </h3></center>
    <table  class="table table-bordered">
        <!--<caption>Timetable</caption>-->
        <thead class="thead-dark">
        <tr>
            <th scope="col" style="text-align:center;"><b>الأيام</b></th>
            <?php do { ?>
            <th scope="col"style="text-align:center;">
                <b><?php echo $row_get_time['timename']; ?><br><?php echo $row_get_time['fromtime']; ?>-<?php echo $row_get_time['totime']; ?></b>
            </th>
            <?php } while ($row_get_time = $get_time->fetch_assoc()); ?>
        </tr>
            </thead>
        <tr>
            <td align="center" height="50">
                <b>السبت</b></td>
            <td align="center" height="50">
                <?php 
                        // بيانات الطالب
        $dirsa->select_db($database_dirsa);
        $query_get_timetable1 = sprintf("SELECT * FROM timetable inner join courseenrollment on timetable.subjectid = courseenrollment.courseid where day=%s and timetable.timeco=%s and timetable.depid=%s and courseenrollment.studentid=%s and courseenrollment.sessionid=%s",
                             GetSQLValueString(1, "int"),
                            GetSQLValueString(1, "int"),
                             GetSQLValueString($row_users22['id_section'], "int"),
                             GetSQLValueString($row_users22['old_id_stu'], "int"),
                            GetSQLValueString($row_get_year['Id'], "text"));
        $get_timetable1 = $dirsa->query($query_get_timetable1) or die($dirsa->error);
        $row_get_timetable1 = $get_timetable1->fetch_assoc();
        $totalRows_get_timetable1 = $get_timetable1->num_rows;
            
              do {
                $dirsa->select_db($database_dirsa);
                $query_get_subject_name = sprintf("SELECT * FROM courses where id_num_local=%s",
                                     GetSQLValueString($row_get_timetable1['subjectid'], "int"));
                $get_subject_name = $dirsa->query($query_get_subject_name) or die($dirsa->error);
                $row_get_subject_name = $get_subject_name->fetch_assoc();
                $totalRows_get_subject_name = $get_subject_name->num_rows;  

                $dirsa->select_db($database_dirsa);
                $query_get_class = sprintf("SELECT * FROM room where room_id =%s",
                                     GetSQLValueString($row_get_timetable1['roomid'], "int"));
                $get_class = $dirsa->query($query_get_class) or die($dirsa->error);
                $row_get_class = $get_class->fetch_assoc();
                $totalRows_get_class = $get_class->num_rows;  
                if($totalRows_get_timetable1 > 0) { 
               echo "<b>" . $row_get_subject_name['course_name'] ."</b>" ."<br>";
               echo "(" . $row_get_class['room_name'] . ")" ."<br>";
                }
               } while ($row_get_timetable1 = $get_timetable1->fetch_assoc()); 
               ?>
            </td>
            <td align="center" height="50">
            <?php
                        // بيانات الطالب
        $dirsa->select_db($database_dirsa);
        $query_get_timetable2 = sprintf("SELECT * FROM timetable inner join courseenrollment on timetable.subjectid = courseenrollment.courseid where day=%s and timetable.timeco=%s and timetable.depid=%s and courseenrollment.studentid=%s and courseenrollment.sessionid=%s",
        GetSQLValueString(1, "int"),
       GetSQLValueString(2, "int"),
        GetSQLValueString($row_users22['id_section'], "int"),
        GetSQLValueString($row_users22['old_id_stu'], "int"),
       GetSQLValueString($row_get_year['Id'], "text"));
        $get_timetable2 = $dirsa->query($query_get_timetable2) or die($dirsa->error);
        $row_get_timetable2 = $get_timetable2->fetch_assoc();
        $totalRows_get_timetable2 = $get_timetable2->num_rows;
            
              do {
                $dirsa->select_db($database_dirsa);
                $query_get_subject_name2 = sprintf("SELECT * FROM courses where id_num_local=%s",
                                     GetSQLValueString($row_get_timetable2['subjectid'], "int"));
                $get_subject_name2 = $dirsa->query($query_get_subject_name2) or die($dirsa->error);
                $row_get_subject_name2 = $get_subject_name2->fetch_assoc();
                $totalRows_get_subject_name2 = $get_subject_name2->num_rows; 
                
                $dirsa->select_db($database_dirsa);
                $query_get_class2 = sprintf("SELECT * FROM room where room_id =%s",
                                     GetSQLValueString($row_get_timetable2['roomid'], "int"));
                $get_class2 = $dirsa->query($query_get_class2) or die($dirsa->error);
                $row_get_class2 = $get_class2->fetch_assoc();
                $totalRows_get_class2 = $get_class2->num_rows;  
                if($totalRows_get_timetable2  > 0) { 
               echo "<b>" . $row_get_subject_name2['course_name'] ."</b>" ."<br>";
               echo "(" . $row_get_class2['room_name'] . ")" ."<br>";
                }
               } while ($row_get_timetable2 = $get_timetable2->fetch_assoc()); 
               ?>
            </td>
            <td align="center" height="50"><?php
                        // بيانات الطالب
        $dirsa->select_db($database_dirsa);
        $query_get_timetable3 = sprintf("SELECT * FROM timetable inner join courseenrollment on timetable.subjectid = courseenrollment.courseid where day=%s and timetable.timeco=%s and timetable.depid=%s and courseenrollment.studentid=%s and courseenrollment.sessionid=%s",
        GetSQLValueString(1, "int"),
       GetSQLValueString(3, "int"),
        GetSQLValueString($row_users22['id_section'], "int"),
        GetSQLValueString($row_users22['old_id_stu'], "int"),
       GetSQLValueString($row_get_year['Id'], "text"));
        $get_timetable3 = $dirsa->query($query_get_timetable3) or die($dirsa->error);
        $row_get_timetable3 = $get_timetable3->fetch_assoc();
        $totalRows_get_timetable3 = $get_timetable3->num_rows;
            
              do {
                $dirsa->select_db($database_dirsa);
                $query_get_subject_name3 = sprintf("SELECT * FROM courses where id_num_local=%s",
                                     GetSQLValueString($row_get_timetable3['subjectid'], "int"));
                $get_subject_name3 = $dirsa->query($query_get_subject_name3) or die($dirsa->error);
                $row_get_subject_name3 = $get_subject_name3->fetch_assoc();
                $totalRows_get_subject_name3 = $get_subject_name3->num_rows;  
                
                $dirsa->select_db($database_dirsa);
                $query_get_class3 = sprintf("SELECT * FROM room where room_id =%s",
                                     GetSQLValueString($row_get_timetable3['roomid'], "int"));
                $get_class3 = $dirsa->query($query_get_class3) or die($dirsa->error);
                $row_get_class3 = $get_class3->fetch_assoc();
                $totalRows_get_class3 = $get_class3->num_rows;  
                if($totalRows_get_timetable3 > 0) { 
               echo "<b>" . $row_get_subject_name3['course_name'] ."</b>" ."<br>";
               echo "(" . $row_get_class3['room_name'] . ")" ."<br>";
                }
               } while ($row_get_timetable3 = $get_timetable3->fetch_assoc()); 
               ?></td>
            <td align="center" height="50"><?php
                        // بيانات الطالب
        $dirsa->select_db($database_dirsa);
        $query_get_timetable4 = sprintf("SELECT * FROM timetable inner join courseenrollment on timetable.subjectid = courseenrollment.courseid where day=%s and timetable.timeco=%s and timetable.depid=%s and courseenrollment.studentid=%s and courseenrollment.sessionid=%s",
        GetSQLValueString(1, "int"),
       GetSQLValueString(4, "int"),
        GetSQLValueString($row_users22['id_section'], "int"),
        GetSQLValueString($row_users22['old_id_stu'], "int"),
       GetSQLValueString($row_get_year['Id'], "text"));
        $get_timetable4 = $dirsa->query($query_get_timetable4) or die($dirsa->error);
        $row_get_timetable4 = $get_timetable4->fetch_assoc();
        $totalRows_get_timetable4 = $get_timetable4->num_rows;
            
              do {
                $dirsa->select_db($database_dirsa);
                $query_get_subject_name4 = sprintf("SELECT * FROM courses where id_num_local=%s",
                                     GetSQLValueString($row_get_timetable4['subjectid'], "int"));
                $get_subject_name4 = $dirsa->query($query_get_subject_name4) or die($dirsa->error);
                $row_get_subject_name4 = $get_subject_name4->fetch_assoc();
                $totalRows_get_subject_name4 = $get_subject_name4->num_rows;  
                
                $dirsa->select_db($database_dirsa);
                $query_get_class4 = sprintf("SELECT * FROM room where room_id =%s",
                                     GetSQLValueString($row_get_timetable4['roomid'], "int"));
                $get_class4 = $dirsa->query($query_get_class4) or die($dirsa->error);
                $row_get_class4 = $get_class4->fetch_assoc();
                $totalRows_get_class4 = $get_class4->num_rows;  
                if($totalRows_get_timetable4 >0) {
               echo "<b>" . $row_get_subject_name4['course_name'] ."</b>" ."<br>";
               echo "(" . $row_get_class4['room_name'] . ")" ."<br>";
                }
               } while ($row_get_timetable4 = $get_timetable4->fetch_assoc()); 
               ?></td>
            <td align="center" height="50"><?php
                        // بيانات الطالب
        $dirsa->select_db($database_dirsa);
        $query_get_timetable5 = sprintf("SELECT * FROM timetable inner join courseenrollment on timetable.subjectid = courseenrollment.courseid where day=%s and timetable.timeco=%s and timetable.depid=%s and courseenrollment.studentid=%s and courseenrollment.sessionid=%s",
        GetSQLValueString(1, "int"),
       GetSQLValueString(5, "int"),
        GetSQLValueString($row_users22['id_section'], "int"),
        GetSQLValueString($row_users22['old_id_stu'], "int"),
       GetSQLValueString($row_get_year['Id'], "text"));
        $get_timetable5 = $dirsa->query($query_get_timetable5) or die($dirsa->error);
        $row_get_timetable5 = $get_timetable5->fetch_assoc();
        $totalRows_get_timetable5 = $get_timetable5->num_rows;
            
              do {
                $dirsa->select_db($database_dirsa);
                $query_get_subject_name5 = sprintf("SELECT * FROM courses where id_num_local=%s",
                                     GetSQLValueString($row_get_timetable5['subjectid'], "int"));
                $get_subject_name5 = $dirsa->query($query_get_subject_name5) or die($dirsa->error);
                $row_get_subject_name5 = $get_subject_name5->fetch_assoc();
                $totalRows_get_subject_name5 = $get_subject_name5->num_rows;  
                
                $dirsa->select_db($database_dirsa);
                $query_get_class5 = sprintf("SELECT * FROM room where room_id =%s",
                                     GetSQLValueString($row_get_timetable5['roomid'], "int"));
                $get_class5 = $dirsa->query($query_get_class5) or die($dirsa->error);
                $row_get_class5 = $get_class5->fetch_assoc();
                $totalRows_get_class5 = $get_class5->num_rows;  
                if($totalRows_get_timetable5 > 0) {
               echo "<b>" . $row_get_subject_name5['course_name'] ."</b>" ."<br>";
               echo "(" . $row_get_class5['room_name'] . ")" ."<br>";
              }
               } while ($row_get_timetable5 = $get_timetable5->fetch_assoc()); 
               ?></td>
        </tr>
        <tr>
            <td align="center" height="50">
                <b>الأحد</b></td>
            <td align="center" height="50">
                <?php 
                        // بيانات الطالب
        $dirsa->select_db($database_dirsa);
        $query_get_timetable1_1 = sprintf("SELECT * FROM timetable inner join courseenrollment on timetable.subjectid = courseenrollment.courseid where day=%s and timetable.timeco=%s and timetable.depid=%s and courseenrollment.studentid=%s and courseenrollment.sessionid=%s",
        GetSQLValueString(2, "int"),
       GetSQLValueString(1, "int"),
        GetSQLValueString($row_users22['id_section'], "int"),
        GetSQLValueString($row_users22['old_id_stu'], "int"),
       GetSQLValueString($row_get_year['Id'], "text"));
        $get_timetable1_1 = $dirsa->query($query_get_timetable1_1) or die($dirsa->error);
        $row_get_timetable1_1 = $get_timetable1_1->fetch_assoc();
        $totalRows_get_timetable1_1 = $get_timetable1_1->num_rows;
            
              do {
                $dirsa->select_db($database_dirsa);
                $query_get_subject_name1_1 = sprintf("SELECT * FROM courses where id_num_local=%s",
                                     GetSQLValueString($row_get_timetable1_1['subjectid'], "int"));
                $get_subject_name1_1 = $dirsa->query($query_get_subject_name1_1) or die($dirsa->error);
                $row_get_subject_name1_1 = $get_subject_name1_1->fetch_assoc();
                $totalRows_get_subject_name1_1 = $get_subject_name1_1->num_rows;  
                
                $dirsa->select_db($database_dirsa);
                $query_get_class1_1 = sprintf("SELECT * FROM room where room_id =%s",
                                     GetSQLValueString($row_get_timetable1_1['roomid'], "int"));
                $get_class1_1 = $dirsa->query($query_get_class1_1) or die($dirsa->error);
                $row_get_class1_1 = $get_class1_1->fetch_assoc();
                $totalRows_get_class1_1 = $get_class1_1->num_rows;  
                if($totalRows_get_timetable1_1 > 0) { 
               echo "<b>" . $row_get_subject_name1_1['course_name'] ."</b>" ."<br>";
               echo "(" . $row_get_class1_1['room_name'] . ")" ."<br>";
                }
               } while ($row_get_timetable1_1 = $get_timetable1_1->fetch_assoc()); 
               ?>
            </td>
            <td align="center" height="50">
            <?php
                        // بيانات الطالب
        $dirsa->select_db($database_dirsa);
        $query_get_timetable2_1 = sprintf("SELECT * FROM timetable inner join courseenrollment on timetable.subjectid = courseenrollment.courseid where day=%s and timetable.timeco=%s and timetable.depid=%s and courseenrollment.studentid=%s and courseenrollment.sessionid=%s",
        GetSQLValueString(2, "int"),
       GetSQLValueString(2, "int"),
        GetSQLValueString($row_users22['id_section'], "int"),
        GetSQLValueString($row_users22['old_id_stu'], "int"),
       GetSQLValueString($row_get_year['Id'], "text"));
        $get_timetable2_1 = $dirsa->query($query_get_timetable2_1) or die($dirsa->error);
        $row_get_timetable2_1 = $get_timetable2_1->fetch_assoc();
        $totalRows_get_timetable2_1 = $get_timetable2_1->num_rows;
            
              do {
                $dirsa->select_db($database_dirsa);
                $query_get_subject_name2_1 = sprintf("SELECT * FROM courses where id_num_local=%s",
                                     GetSQLValueString($row_get_timetable2_1['subjectid'], "int"));
                $get_subject_name2_1 = $dirsa->query($query_get_subject_name2_1) or die($dirsa->error);
                $row_get_subject_name2_1 = $get_subject_name2_1->fetch_assoc();
                $totalRows_get_subject_name2_1 = $get_subject_name2_1->num_rows;  
                
                $dirsa->select_db($database_dirsa);
                $query_get_class2_1 = sprintf("SELECT * FROM room where room_id =%s",
                                     GetSQLValueString($row_get_timetable2_1['roomid'], "int"));
                $get_class2_1 = $dirsa->query($query_get_class2_1) or die($dirsa->error);
                $row_get_class2_1 = $get_class2_1->fetch_assoc();
                $totalRows_get_class2_1 = $get_class2_1->num_rows;  
                if($totalRows_get_timetable2_1 > 0) { 
               echo "<b>" . $row_get_subject_name2_1['course_name'] ."</b>" ."<br>";
               echo "(" . $row_get_class2_1['room_name'] . ")" ."<br>";
                }
               } while ($row_get_timetable2_1 = $get_timetable2_1->fetch_assoc()); 
               ?>
            </td>
            <td align="center" height="50"><?php
                        // بيانات الطالب
        $dirsa->select_db($database_dirsa);
        $query_get_timetable3_1 = sprintf("SELECT * FROM timetable inner join courseenrollment on timetable.subjectid = courseenrollment.courseid where day=%s and timetable.timeco=%s and timetable.depid=%s and courseenrollment.studentid=%s and courseenrollment.sessionid=%s",
        GetSQLValueString(2, "int"),
       GetSQLValueString(3, "int"),
        GetSQLValueString($row_users22['id_section'], "int"),
        GetSQLValueString($row_users22['old_id_stu'], "int"),
       GetSQLValueString($row_get_year['Id'], "text"));
        $get_timetable3_1 = $dirsa->query($query_get_timetable3_1) or die($dirsa->error);
        $row_get_timetable3_1 = $get_timetable3_1->fetch_assoc();
        $totalRows_get_timetable3_1 = $get_timetable3_1->num_rows;
            
              do {
                $dirsa->select_db($database_dirsa);
                $query_get_subject_name3_1 = sprintf("SELECT * FROM courses where id_num_local=%s",
                                     GetSQLValueString($row_get_timetable3_1['subjectid'], "int"));
                $get_subject_name3_1 = $dirsa->query($query_get_subject_name3_1) or die($dirsa->error);
                $row_get_subject_name3_1 = $get_subject_name3_1->fetch_assoc();
                $totalRows_get_subject_name3_1 = $get_subject_name3_1->num_rows;  
                
                $dirsa->select_db($database_dirsa);
                $query_get_class3_1 = sprintf("SELECT * FROM room where room_id =%s",
                                     GetSQLValueString($row_get_timetable3_1['roomid'], "int"));
                $get_class3_1 = $dirsa->query($query_get_class3_1) or die($dirsa->error);
                $row_get_class3_1 = $get_class3_1->fetch_assoc();
                $totalRows_get_class3_1 = $get_class3_1->num_rows;  
                if($totalRows_get_timetable3_1 > 0) { 
               echo "<b>" . $row_get_subject_name3_1['course_name'] ."</b>" ."<br>";
               echo "(" . $row_get_class3_1['room_name'] . ")" ."<br>";
                }
               } while ($row_get_timetable3_1 = $get_timetable3_1->fetch_assoc()); 
               ?></td>
            <td align="center" height="50"><?php
                        // بيانات الطالب
        $dirsa->select_db($database_dirsa);
        $query_get_timetable4_1 = sprintf("SELECT * FROM timetable inner join courseenrollment on timetable.subjectid = courseenrollment.courseid where day=%s and timetable.timeco=%s and timetable.depid=%s and courseenrollment.studentid=%s and courseenrollment.sessionid=%s",
        GetSQLValueString(2, "int"),
       GetSQLValueString(4, "int"),
        GetSQLValueString($row_users22['id_section'], "int"),
        GetSQLValueString($row_users22['old_id_stu'], "int"),
       GetSQLValueString($row_get_year['Id'], "text"));
        $get_timetable4_1 = $dirsa->query($query_get_timetable4_1) or die($dirsa->error);
        $row_get_timetable4_1 = $get_timetable4_1->fetch_assoc();
        $totalRows_get_timetable4_1 = $get_timetable4_1->num_rows;
            
              do {
                $dirsa->select_db($database_dirsa);
                $query_get_subject_name4_1 = sprintf("SELECT * FROM courses where id_num_local=%s",
                                     GetSQLValueString($row_get_timetable4_1['subjectid'], "int"));
                $get_subject_name4_1 = $dirsa->query($query_get_subject_name4_1) or die($dirsa->error);
                $row_get_subject_name4_1 = $get_subject_name4_1->fetch_assoc();
                $totalRows_get_subject_name4_1 = $get_subject_name4_1->num_rows;  
                
                $dirsa->select_db($database_dirsa);
                $query_get_class4_1 = sprintf("SELECT * FROM room where room_id =%s",
                                     GetSQLValueString($row_get_timetable4_1['roomid'], "int"));
                $get_class4_1 = $dirsa->query($query_get_class4_1) or die($dirsa->error);
                $row_get_class4_1 = $get_class4_1->fetch_assoc();
                $totalRows_get_class4_1 = $get_class4_1->num_rows;  
                if($totalRows_get_timetable4_1 > 0) { 
               echo "<b>" . $row_get_subject_name4_1['course_name'] ."</b>" ."<br>";
               echo "(" . $row_get_class4_1['room_name'] . ")" ."<br>";
                }

               } while ($row_get_timetable4_1 = $get_timetable4_1->fetch_assoc()); 
               ?></td>
            <td align="center" height="50"><?php
                        // بيانات الطالب
        $dirsa->select_db($database_dirsa);
        $query_get_timetable5_1 = sprintf("SELECT * FROM timetable inner join courseenrollment on timetable.subjectid = courseenrollment.courseid where day=%s and timetable.timeco=%s and timetable.depid=%s and courseenrollment.studentid=%s and courseenrollment.sessionid=%s",
        GetSQLValueString(2, "int"),
       GetSQLValueString(5, "int"),
        GetSQLValueString($row_users22['id_section'], "int"),
        GetSQLValueString($row_users22['old_id_stu'], "int"),
       GetSQLValueString($row_get_year['Id'], "text"));
        $get_timetable5_1 = $dirsa->query($query_get_timetable5_1) or die($dirsa->error);
        $row_get_timetable5_1 = $get_timetable5_1->fetch_assoc();
        $totalRows_get_timetable5_1 = $get_timetable5_1->num_rows;
            
              do {
                $dirsa->select_db($database_dirsa);
                $query_get_subject_name5_1 = sprintf("SELECT * FROM courses where id_num_local=%s",
                                     GetSQLValueString($row_get_timetable5_1['subjectid'], "int"));
                $get_subject_name5_1 = $dirsa->query($query_get_subject_name5_1) or die($dirsa->error);
                $row_get_subject_name5_1 = $get_subject_name5_1->fetch_assoc();
                $totalRows_get_subject_name5_1 = $get_subject_name5_1->num_rows;  
                
                $dirsa->select_db($database_dirsa);
                $query_get_class5_1 = sprintf("SELECT * FROM room where room_id =%s",
                                     GetSQLValueString($row_get_timetable5_1['roomid'], "int"));
                $get_class5_1 = $dirsa->query($query_get_class5_1) or die($dirsa->error);
                $row_get_class5_1 = $get_class5_1->fetch_assoc();
                $totalRows_get_class5_1 = $get_class5_1->num_rows;  
                if($totalRows_get_timetable5_1 > 0) { 
               echo "<b>" . $row_get_subject_name5_1['course_name'] ."</b>" ."<br>";
               echo "(" . $row_get_class5_1['room_name'] . ")" ."<br>";
                }
               } while ($row_get_timetable5_1 = $get_timetable5_1->fetch_assoc()); 
               ?></td>
        </tr>
        <tr>
            <td align="center" height="50">
                <b>الإثنين</b></td>
            <td align="center" height="50">
                <?php 
                        // بيانات الطالب
        $dirsa->select_db($database_dirsa);
        $query_get_timetable1_2 = sprintf("SELECT * FROM timetable inner join courseenrollment on timetable.subjectid = courseenrollment.courseid where day=%s and timetable.timeco=%s and timetable.depid=%s and courseenrollment.studentid=%s and courseenrollment.sessionid=%s",
        GetSQLValueString(3, "int"),
       GetSQLValueString(1, "int"),
        GetSQLValueString($row_users22['id_section'], "int"),
        GetSQLValueString($row_users22['old_id_stu'], "int"),
       GetSQLValueString($row_get_year['Id'], "text"));
        $get_timetable1_2 = $dirsa->query($query_get_timetable1_2) or die($dirsa->error);
        $row_get_timetable1_2 = $get_timetable1_2->fetch_assoc();
        $totalRows_get_timetable1_2 = $get_timetable1_2->num_rows;
            
              do {
                $dirsa->select_db($database_dirsa);
                $query_get_subject_name1_2 = sprintf("SELECT * FROM courses where id_num_local=%s",
                                     GetSQLValueString($row_get_timetable1_2['subjectid'], "int"));
                $get_subject_name1_2 = $dirsa->query($query_get_subject_name1_2) or die($dirsa->error);
                $row_get_subject_name1_2 = $get_subject_name1_2->fetch_assoc();
                $totalRows_get_subject_name1_2 = $get_subject_name1_2->num_rows;  
                
                $dirsa->select_db($database_dirsa);
                $query_get_class1_2 = sprintf("SELECT * FROM room where room_id =%s",
                                     GetSQLValueString($row_get_timetable1_2['roomid'], "int"));
                $get_class1_2 = $dirsa->query($query_get_class1_2) or die($dirsa->error);
                $row_get_class1_2 = $get_class1_2->fetch_assoc();
                $totalRows_get_class1_2 = $get_class1_2->num_rows;  
                if($totalRows_get_timetable1_2 > 0) { 
               echo "<b>" . $row_get_subject_name1_2['course_name'] ."</b>" ."<br>";
               echo "(" . $row_get_class1_2['room_name'] . ")" ."<br>";
                }
               } while ($row_get_timetable1_2 = $get_timetable1_2->fetch_assoc()); 
               ?>
            </td>
            <td align="center" height="50">
            <?php
                        // بيانات الطالب
        $dirsa->select_db($database_dirsa);
        $query_get_timetable2_2 = sprintf("SELECT * FROM timetable inner join courseenrollment on timetable.subjectid = courseenrollment.courseid where day=%s and timetable.timeco=%s and timetable.depid=%s and courseenrollment.studentid=%s and courseenrollment.sessionid=%s",
        GetSQLValueString(3, "int"),
       GetSQLValueString(2, "int"),
        GetSQLValueString($row_users22['id_section'], "int"),
        GetSQLValueString($row_users22['old_id_stu'], "int"),
       GetSQLValueString($row_get_year['Id'], "text"));
        $get_timetable2_2 = $dirsa->query($query_get_timetable2_2) or die($dirsa->error);
        $row_get_timetable2_2 = $get_timetable2_2->fetch_assoc();
        $totalRows_get_timetable2_2 = $get_timetable2_2->num_rows;
            
              do {
                $dirsa->select_db($database_dirsa);
                $query_get_subject_name2_2 = sprintf("SELECT * FROM courses where id_num_local=%s",
                                     GetSQLValueString($row_get_timetable2_2['subjectid'], "int"));
                $get_subject_name2_2 = $dirsa->query($query_get_subject_name2_2) or die($dirsa->error);
                $row_get_subject_name2_2 = $get_subject_name2_2->fetch_assoc();
                $totalRows_get_subject_name2_2 = $get_subject_name2_2->num_rows;  
                
                $dirsa->select_db($database_dirsa);
                $query_get_class2_2 = sprintf("SELECT * FROM room where room_id =%s",
                                     GetSQLValueString($row_get_timetable2_2['roomid'], "int"));
                $get_class2_2 = $dirsa->query($query_get_class2_2) or die($dirsa->error);
                $row_get_class2_2 = $get_class2_2->fetch_assoc();
                $totalRows_get_class2_2 = $get_class2_2->num_rows;  
                if($totalRows_get_timetable2_2 > 0) { 
               echo "<b>" . $row_get_subject_name2_2['course_name'] ."</b>" ."<br>";
               echo "(" . $row_get_class2_2['room_name'] . ")" ."<br>";
                }
               } while ($row_get_timetable2_2 = $get_timetable2_2->fetch_assoc()); 
               ?>
            </td>
            <td align="center" height="50"><?php
                        // بيانات الطالب
        $dirsa->select_db($database_dirsa);
        $query_get_timetable3_2 = sprintf("SELECT * FROM timetable inner join courseenrollment on timetable.subjectid = courseenrollment.courseid where day=%s and timetable.timeco=%s and timetable.depid=%s and courseenrollment.studentid=%s and courseenrollment.sessionid=%s",
        GetSQLValueString(3, "int"),
       GetSQLValueString(3, "int"),
        GetSQLValueString($row_users22['id_section'], "int"),
        GetSQLValueString($row_users22['old_id_stu'], "int"),
       GetSQLValueString($row_get_year['Id'], "text"));
        $get_timetable3_2 = $dirsa->query($query_get_timetable3_2) or die($dirsa->error);
        $row_get_timetable3_2 = $get_timetable3_2->fetch_assoc();
        $totalRows_get_timetable3_2 = $get_timetable3_2->num_rows;
            
              do {
                $dirsa->select_db($database_dirsa);
                $query_get_subject_name3_2 = sprintf("SELECT * FROM courses where id_num_local=%s",
                                     GetSQLValueString($row_get_timetable3_2['subjectid'], "int"));
                $get_subject_name3_2 = $dirsa->query($query_get_subject_name3_2) or die($dirsa->error);
                $row_get_subject_name3_2 = $get_subject_name3_2->fetch_assoc();
                $totalRows_get_subject_name3_2 = $get_subject_name3_2->num_rows;  
                
                $dirsa->select_db($database_dirsa);
                $query_get_class3_2 = sprintf("SELECT * FROM room where room_id =%s",
                                     GetSQLValueString($row_get_timetable3_2['roomid'], "int"));
                $get_class3_2 = $dirsa->query($query_get_class3_2) or die($dirsa->error);
                $row_get_class3_2 = $get_class3_2->fetch_assoc();
                $totalRows_get_class3_2 = $get_class3_2->num_rows;  
                if($totalRows_get_timetable3_2 > 0) { 
               echo "<b>" . $row_get_subject_name3_2['course_name'] ."</b>" ."<br>";
               echo "(" . $row_get_class3_2['room_name'] . ")" ."<br>";
                }
               } while ($row_get_timetable3_2 = $get_timetable3_2->fetch_assoc()); 
               ?></td>
            <td align="center" height="50"><?php
                        // بيانات الطالب
        $dirsa->select_db($database_dirsa);
        $query_get_timetable4_2 = sprintf("SELECT * FROM timetable inner join courseenrollment on timetable.subjectid = courseenrollment.courseid where day=%s and timetable.timeco=%s and timetable.depid=%s and courseenrollment.studentid=%s and courseenrollment.sessionid=%s",
        GetSQLValueString(3, "int"),
       GetSQLValueString(4, "int"),
        GetSQLValueString($row_users22['id_section'], "int"),
        GetSQLValueString($row_users22['old_id_stu'], "int"),
       GetSQLValueString($row_get_year['Id'], "text"));
        $get_timetable4_2 = $dirsa->query($query_get_timetable4_2) or die($dirsa->error);
        $row_get_timetable4_2 = $get_timetable4_2->fetch_assoc();
        $totalRows_get_timetable4_2 = $get_timetable4_2->num_rows;
            
              do {
                $dirsa->select_db($database_dirsa);
                $query_get_subject_name4_2 = sprintf("SELECT * FROM courses where id_num_local=%s",
                                     GetSQLValueString($row_get_timetable4_2['subjectid'], "int"));
                $get_subject_name4_2 = $dirsa->query($query_get_subject_name4_2) or die($dirsa->error);
                $row_get_subject_name4_2 = $get_subject_name4_2->fetch_assoc();
                $totalRows_get_subject_name4_2 = $get_subject_name4_2->num_rows;  
                
                $dirsa->select_db($database_dirsa);
                $query_get_class4_2 = sprintf("SELECT * FROM room where room_id =%s",
                                     GetSQLValueString($row_get_timetable4_2['roomid'], "int"));
                $get_class4_2 = $dirsa->query($query_get_class4_2) or die($dirsa->error);
                $row_get_class4_2 = $get_class4_2->fetch_assoc();
                $totalRows_get_class4_2 = $get_class4_2->num_rows;  
                if($totalRows_get_timetable4_2 > 0) { 
               echo "<b>" . $row_get_subject_name4_2['course_name'] ."</b>" ."<br>";
               echo "(" . $row_get_class4_2['room_name'] . ")" ."<br>";
                }

               } while ($row_get_timetable4_2 = $get_timetable4_2->fetch_assoc()); 
               ?></td>
            <td align="center" height="50"><?php
                        // بيانات الطالب
        $dirsa->select_db($database_dirsa);
        $query_get_timetable5_2 = sprintf("SELECT * FROM timetable inner join courseenrollment on timetable.subjectid = courseenrollment.courseid where day=%s and timetable.timeco=%s and timetable.depid=%s and courseenrollment.studentid=%s and courseenrollment.sessionid=%s",
        GetSQLValueString(3, "int"),
       GetSQLValueString(5, "int"),
        GetSQLValueString($row_users22['id_section'], "int"),
        GetSQLValueString($row_users22['old_id_stu'], "int"),
       GetSQLValueString($row_get_year['Id'], "text"));
        $get_timetable5_2 = $dirsa->query($query_get_timetable5_2) or die($dirsa->error);
        $row_get_timetable5_2 = $get_timetable5_2->fetch_assoc();
        $totalRows_get_timetable5_2 = $get_timetable5_2->num_rows;
            
              do {
                $dirsa->select_db($database_dirsa);
                $query_get_subject_name5_2 = sprintf("SELECT * FROM courses where id_num_local=%s",
                                     GetSQLValueString($row_get_timetable5_2['subjectid'], "int"));
                $get_subject_name5_2 = $dirsa->query($query_get_subject_name5_2) or die($dirsa->error);
                $row_get_subject_name5_2 = $get_subject_name5_2->fetch_assoc();
                $totalRows_get_subject_name5_2 = $get_subject_name5_2->num_rows;  
                
                $dirsa->select_db($database_dirsa);
                $query_get_class5_2 = sprintf("SELECT * FROM room where room_id =%s",
                                     GetSQLValueString($row_get_timetable5_2['roomid'], "int"));
                $get_class5_2 = $dirsa->query($query_get_class5_2) or die($dirsa->error);
                $row_get_class5_2 = $get_class5_2->fetch_assoc();
                $totalRows_get_class5_2 = $get_class5_2->num_rows;  
                if($totalRows_get_timetable5_2 > 0) { 
               echo "<b>" . $row_get_subject_name5_2['course_name'] ."</b>" ."<br>";
               echo "(" . $row_get_class5_2['room_name'] . ")" ."<br>";
                }
               } while ($row_get_timetable5_2 = $get_timetable5_2->fetch_assoc()); 
               ?></td>
        </tr>
        <tr>
            <td align="center" height="50">
                <b>الثلاثاء</b></td>
            <td align="center" height="50">
                <?php 
                        // بيانات الطالب
        $dirsa->select_db($database_dirsa);
        $query_get_timetable1_3 = sprintf("SELECT * FROM timetable inner join courseenrollment on timetable.subjectid = courseenrollment.courseid where day=%s and timetable.timeco=%s and timetable.depid=%s and courseenrollment.studentid=%s and courseenrollment.sessionid=%s",
        GetSQLValueString(4, "int"),
       GetSQLValueString(1, "int"),
        GetSQLValueString($row_users22['id_section'], "int"),
        GetSQLValueString($row_users22['old_id_stu'], "int"),
       GetSQLValueString($row_get_year['Id'], "text"));
        $get_timetable1_3 = $dirsa->query($query_get_timetable1_3) or die($dirsa->error);
        $row_get_timetable1_3 = $get_timetable1_3->fetch_assoc();
        $totalRows_get_timetable1_3 = $get_timetable1_3->num_rows;
            
              do {
                $dirsa->select_db($database_dirsa);
                $query_get_subject_name1_3 = sprintf("SELECT * FROM courses where id_num_local=%s",
                                     GetSQLValueString($row_get_timetable1_3['subjectid'], "int"));
                $get_subject_name1_3 = $dirsa->query($query_get_subject_name1_3) or die($dirsa->error);
                $row_get_subject_name1_3 = $get_subject_name1_3->fetch_assoc();
                $totalRows_get_subject_name1_3 = $get_subject_name1_3->num_rows;  
                
                $dirsa->select_db($database_dirsa);
                $query_get_class1_3 = sprintf("SELECT * FROM room where room_id =%s",
                                     GetSQLValueString($row_get_timetable1_3['roomid'], "int"));
                $get_class1_3 = $dirsa->query($query_get_class1_3) or die($dirsa->error);
                $row_get_class1_3 = $get_class1_3->fetch_assoc();
                $totalRows_get_class1_3 = $get_class1_3->num_rows;  
                if($totalRows_get_timetable1_3 > 0) { 
               echo "<b>" . $row_get_subject_name1_3['course_name'] ."</b>" ."<br>";
               echo "(" . $row_get_class1_3['room_name'] . ")" ."<br>";
                }
               } while ($row_get_timetable1_3 = $get_timetable1_3->fetch_assoc()); 
               ?>
            </td>
            <td align="center" height="50">
            <?php
                        // بيانات الطالب
        $dirsa->select_db($database_dirsa);
        $query_get_timetable2_3 = sprintf("SELECT * FROM timetable inner join courseenrollment on timetable.subjectid = courseenrollment.courseid where day=%s and timetable.timeco=%s and timetable.depid=%s and courseenrollment.studentid=%s and courseenrollment.sessionid=%s",
        GetSQLValueString(4, "int"),
       GetSQLValueString(2, "int"),
        GetSQLValueString($row_users22['id_section'], "int"),
        GetSQLValueString($row_users22['old_id_stu'], "int"),
       GetSQLValueString($row_get_year['Id'], "text"));
        $get_timetable2_3 = $dirsa->query($query_get_timetable2_3) or die($dirsa->error);
        $row_get_timetable2_3 = $get_timetable2_3->fetch_assoc();
        $totalRows_get_timetable2_3 = $get_timetable2_3->num_rows;
            
              do {
                $dirsa->select_db($database_dirsa);
                $query_get_subject_name2_3 = sprintf("SELECT * FROM courses where id_num_local=%s",
                                     GetSQLValueString($row_get_timetable2_3['subjectid'], "int"));
                $get_subject_name2_3 = $dirsa->query($query_get_subject_name2_3) or die($dirsa->error);
                $row_get_subject_name2_3 = $get_subject_name2_3->fetch_assoc();
                $totalRows_get_subject_name2_3 = $get_subject_name2_3->num_rows;  
                
                $dirsa->select_db($database_dirsa);
                $query_get_class2_3 = sprintf("SELECT * FROM room where room_id =%s",
                                     GetSQLValueString($row_get_timetable2_3['roomid'], "int"));
                $get_class2_3 = $dirsa->query($query_get_class2_3) or die($dirsa->error);
                $row_get_class2_3 = $get_class2_3->fetch_assoc();
                $totalRows_get_class2_3 = $get_class2_3->num_rows;  
                if($totalRows_get_timetable2_3 > 0) { 
               echo "<b>" . $row_get_subject_name2_3['course_name'] ."</b>" ."<br>";
               echo "(" . $row_get_class2_3['room_name'] . ")" ."<br>";
                }
               } while ($row_get_timetable2_3 = $get_timetable2_3->fetch_assoc()); 
               ?>
            </td>
            <td align="center" height="50"><?php
                        // بيانات الطالب
        $dirsa->select_db($database_dirsa);
        $query_get_timetable3_3 = sprintf("SELECT * FROM timetable inner join courseenrollment on timetable.subjectid = courseenrollment.courseid where day=%s and timetable.timeco=%s and timetable.depid=%s and courseenrollment.studentid=%s and courseenrollment.sessionid=%s",
        GetSQLValueString(4, "int"),
       GetSQLValueString(3, "int"),
        GetSQLValueString($row_users22['id_section'], "int"),
        GetSQLValueString($row_users22['old_id_stu'], "int"),
       GetSQLValueString($row_get_year['Id'], "text"));
        $get_timetable3_3 = $dirsa->query($query_get_timetable3_3) or die($dirsa->error);
        $row_get_timetable3_3 = $get_timetable3_3->fetch_assoc();
        $totalRows_get_timetable3_3 = $get_timetable3_3->num_rows;
            
              do {
                $dirsa->select_db($database_dirsa);
                $query_get_subject_name3_3 = sprintf("SELECT * FROM courses where id_num_local=%s",
                                     GetSQLValueString($row_get_timetable3_3['subjectid'], "int"));
                $get_subject_name3_3 = $dirsa->query($query_get_subject_name3_3) or die($dirsa->error);
                $row_get_subject_name3_3 = $get_subject_name3_3->fetch_assoc();
                $totalRows_get_subject_name3_3 = $get_subject_name3_3->num_rows;  
                
                $dirsa->select_db($database_dirsa);
                $query_get_class3_3 = sprintf("SELECT * FROM room where room_id =%s",
                                     GetSQLValueString($row_get_timetable3_3['roomid'], "int"));
                $get_class3_3 = $dirsa->query($query_get_class3_3) or die($dirsa->error);
                $row_get_class3_3 = $get_class3_3->fetch_assoc();
                $totalRows_get_class3_3 = $get_class3_3->num_rows;  
                if($totalRows_get_timetable3_3 > 0) { 
               echo "<b>" . $row_get_subject_name3_3['course_name'] ."</b>" ."<br>";
               echo "(" . $row_get_class3_3['room_name'] . ")" ."<br>";
                }
               } while ($row_get_timetable3_3 = $get_timetable3_3->fetch_assoc()); 
               ?></td>
            <td align="center" height="50"><?php
                        // بيانات الطالب
        $dirsa->select_db($database_dirsa);
        $query_get_timetable4_3 = sprintf("SELECT * FROM timetable inner join courseenrollment on timetable.subjectid = courseenrollment.courseid where day=%s and timetable.timeco=%s and timetable.depid=%s and courseenrollment.studentid=%s and courseenrollment.sessionid=%s",
        GetSQLValueString(4, "int"),
       GetSQLValueString(4, "int"),
        GetSQLValueString($row_users22['id_section'], "int"),
        GetSQLValueString($row_users22['old_id_stu'], "int"),
       GetSQLValueString($row_get_year['Id'], "text"));
        $get_timetable4_3 = $dirsa->query($query_get_timetable4_3) or die($dirsa->error);
        $row_get_timetable4_3 = $get_timetable4_3->fetch_assoc();
        $totalRows_get_timetable4_3 = $get_timetable4_3->num_rows;
            
              do {
                $dirsa->select_db($database_dirsa);
                $query_get_subject_name4_3 = sprintf("SELECT * FROM courses where id_num_local=%s",
                                     GetSQLValueString($row_get_timetable4_3['subjectid'], "int"));
                $get_subject_name4_3 = $dirsa->query($query_get_subject_name4_3) or die($dirsa->error);
                $row_get_subject_name4_3 = $get_subject_name4_3->fetch_assoc();
                $totalRows_get_subject_name4_3 = $get_subject_name4_3->num_rows;  
                
                $dirsa->select_db($database_dirsa);
                $query_get_class4_3 = sprintf("SELECT * FROM room where room_id =%s",
                                     GetSQLValueString($row_get_timetable4_3['roomid'], "int"));
                $get_class4_3 = $dirsa->query($query_get_class4_3) or die($dirsa->error);
                $row_get_class4_3 = $get_class4_3->fetch_assoc();
                $totalRows_get_class4_3 = $get_class4_3->num_rows;  
                if($totalRows_get_timetable4_3 > 0) { 
               echo "<b>" . $row_get_subject_name4_3['course_name'] ."</b>" ."<br>";
               echo "(" . $row_get_class4_3['room_name'] . ")" ."<br>";
                }

               } while ($row_get_timetable4_3 = $get_timetable4_3->fetch_assoc()); 
               ?></td>
            <td align="center" height="50"><?php
                        // بيانات الطالب
        $dirsa->select_db($database_dirsa);
        $query_get_timetable5_3 = sprintf("SELECT * FROM timetable inner join courseenrollment on timetable.subjectid = courseenrollment.courseid where day=%s and timetable.timeco=%s and timetable.depid=%s and courseenrollment.studentid=%s and courseenrollment.sessionid=%s",
        GetSQLValueString(4, "int"),
       GetSQLValueString(5, "int"),
        GetSQLValueString($row_users22['id_section'], "int"),
        GetSQLValueString($row_users22['old_id_stu'], "int"),
       GetSQLValueString($row_get_year['Id'], "text"));
        $get_timetable5_3 = $dirsa->query($query_get_timetable5_3) or die($dirsa->error);
        $row_get_timetable5_3 = $get_timetable5_3->fetch_assoc();
        $totalRows_get_timetable5_3 = $get_timetable5_3->num_rows;
            
              do {
                $dirsa->select_db($database_dirsa);
                $query_get_subject_name5_3 = sprintf("SELECT * FROM courses where id_num_local=%s",
                                     GetSQLValueString($row_get_timetable5_3['subjectid'], "int"));
                $get_subject_name5_3 = $dirsa->query($query_get_subject_name5_3) or die($dirsa->error);
                $row_get_subject_name5_3 = $get_subject_name5_3->fetch_assoc();
                $totalRows_get_subject_name5_3 = $get_subject_name5_3->num_rows;  
                
                $dirsa->select_db($database_dirsa);
                $query_get_class5_3 = sprintf("SELECT * FROM room where room_id =%s",
                                     GetSQLValueString($row_get_timetable5_3['roomid'], "int"));
                $get_class5_3 = $dirsa->query($query_get_class5_3) or die($dirsa->error);
                $row_get_class5_3 = $get_class5_3->fetch_assoc();
                $totalRows_get_class5_3 = $get_class5_3->num_rows;  
                if($totalRows_get_timetable5_3 > 0) { 
               echo "<b>" . $row_get_subject_name5_3['course_name'] ."</b>" ."<br>";
               echo "(" . $row_get_class5_3['room_name'] . ")" ."<br>";
                }
               } while ($row_get_timetable5_3 = $get_timetable5_3->fetch_assoc()); 
               ?></td>
        </tr>
        <tr>
            <td align="center" height="50">
                <b>الإربعاء</b></td>
            <td align="center" height="50">
                <?php 
                        // بيانات الطالب
        $dirsa->select_db($database_dirsa);
        $query_get_timetable1_4 = sprintf("SELECT * FROM timetable inner join courseenrollment on timetable.subjectid = courseenrollment.courseid where day=%s and timetable.timeco=%s and timetable.depid=%s and courseenrollment.studentid=%s and courseenrollment.sessionid=%s",
        GetSQLValueString(5, "int"),
       GetSQLValueString(1, "int"),
        GetSQLValueString($row_users22['id_section'], "int"),
        GetSQLValueString($row_users22['old_id_stu'], "int"),
       GetSQLValueString($row_get_year['Id'], "text"));
        $get_timetable1_4 = $dirsa->query($query_get_timetable1_4) or die($dirsa->error);
        $row_get_timetable1_4 = $get_timetable1_4->fetch_assoc();
        $totalRows_get_timetable1_4 = $get_timetable1_4->num_rows;
            
              do {
                $dirsa->select_db($database_dirsa);
                $query_get_subject_name1_4 = sprintf("SELECT * FROM courses where id_num_local=%s",
                                     GetSQLValueString($row_get_timetable1_4['subjectid'], "int"));
                $get_subject_name1_4 = $dirsa->query($query_get_subject_name1_4) or die($dirsa->error);
                $row_get_subject_name1_4 = $get_subject_name1_4->fetch_assoc();
                $totalRows_get_subject_name1_4 = $get_subject_name1_4->num_rows;  
                
                $dirsa->select_db($database_dirsa);
                $query_get_class1_4 = sprintf("SELECT * FROM room where room_id =%s",
                                     GetSQLValueString($row_get_timetable1_4['roomid'], "int"));
                $get_class1_4 = $dirsa->query($query_get_class1_4) or die($dirsa->error);
                $row_get_class1_4 = $get_class1_4->fetch_assoc();
                $totalRows_get_class1_4 = $get_class1_4->num_rows;  
                if($totalRows_get_timetable1_4 > 0) { 
               echo "<b>" . $row_get_subject_name1_4['course_name'] ."</b>" ."<br>";
               echo "(" . $row_get_class1_4['room_name'] . ")" ."<br>";
                }
               } while ($row_get_timetable1_4 = $get_timetable1_4->fetch_assoc()); 
               ?>
            </td>
            <td align="center" height="50">
            <?php
                        // بيانات الطالب
        $dirsa->select_db($database_dirsa);
        $query_get_timetable2_4 = sprintf("SELECT * FROM timetable inner join courseenrollment on timetable.subjectid = courseenrollment.courseid where day=%s and timetable.timeco=%s and timetable.depid=%s and courseenrollment.studentid=%s and courseenrollment.sessionid=%s",
        GetSQLValueString(5, "int"),
       GetSQLValueString(2, "int"),
        GetSQLValueString($row_users22['id_section'], "int"),
        GetSQLValueString($row_users22['old_id_stu'], "int"),
       GetSQLValueString($row_get_year['Id'], "text"));
        $get_timetable2_4 = $dirsa->query($query_get_timetable2_4) or die($dirsa->error);
        $row_get_timetable2_4 = $get_timetable2_4->fetch_assoc();
        $totalRows_get_timetable2_4 = $get_timetable2_4->num_rows;
            
              do {
                $dirsa->select_db($database_dirsa);
                $query_get_subject_name2_4 = sprintf("SELECT * FROM courses where id_num_local=%s",
                                     GetSQLValueString($row_get_timetable2_4['subjectid'], "int"));
                $get_subject_name2_4 = $dirsa->query($query_get_subject_name2_4) or die($dirsa->error);
                $row_get_subject_name2_4 = $get_subject_name2_4->fetch_assoc();
                $totalRows_get_subject_name2_4 = $get_subject_name2_4->num_rows;  
                
                $dirsa->select_db($database_dirsa);
                $query_get_class2_4 = sprintf("SELECT * FROM room where room_id =%s",
                                     GetSQLValueString($row_get_timetable2_4['roomid'], "int"));
                $get_class2_4 = $dirsa->query($query_get_class2_4) or die($dirsa->error);
                $row_get_class2_4 = $get_class2_4->fetch_assoc();
                $totalRows_get_class2_4 = $get_class2_4->num_rows;  
                if($totalRows_get_timetable2_4 > 0) { 
               echo "<b>" . $row_get_subject_name2_4['course_name'] ."</b>" ."<br>";
               echo "(" . $row_get_class2_4['room_name'] . ")" ."<br>";
                }
               } while ($row_get_timetable2_4 = $get_timetable2_4->fetch_assoc()); 
               ?>
            </td>
            <td align="center" height="50"><?php
                        // بيانات الطالب
        $dirsa->select_db($database_dirsa);
        $query_get_timetable3_4 = sprintf("SELECT * FROM timetable inner join courseenrollment on timetable.subjectid = courseenrollment.courseid where day=%s and timetable.timeco=%s and timetable.depid=%s and courseenrollment.studentid=%s and courseenrollment.sessionid=%s",
        GetSQLValueString(5, "int"),
       GetSQLValueString(3, "int"),
        GetSQLValueString($row_users22['id_section'], "int"),
        GetSQLValueString($row_users22['old_id_stu'], "int"),
       GetSQLValueString($row_get_year['Id'], "text"));
        $get_timetable3_4 = $dirsa->query($query_get_timetable3_4) or die($dirsa->error);
        $row_get_timetable3_4 = $get_timetable3_4->fetch_assoc();
        $totalRows_get_timetable3_4 = $get_timetable3_4->num_rows;
            
              do {
                $dirsa->select_db($database_dirsa);
                $query_get_subject_name3_4 = sprintf("SELECT * FROM courses where id_num_local=%s",
                                     GetSQLValueString($row_get_timetable3_4['subjectid'], "int"));
                $get_subject_name3_4 = $dirsa->query($query_get_subject_name3_4) or die($dirsa->error);
                $row_get_subject_name3_4 = $get_subject_name3_4->fetch_assoc();
                $totalRows_get_subject_name3_4 = $get_subject_name3_4->num_rows;  
                
                $dirsa->select_db($database_dirsa);
                $query_get_class3_4 = sprintf("SELECT * FROM room where room_id =%s",
                                     GetSQLValueString($row_get_timetable3_4['roomid'], "int"));
                $get_class3_4 = $dirsa->query($query_get_class3_4) or die($dirsa->error);
                $row_get_class3_4 = $get_class3_4->fetch_assoc();
                $totalRows_get_class3_4 = $get_class3_4->num_rows;  
                if($totalRows_get_timetable3_4 > 0) { 
               echo "<b>" . $row_get_subject_name3_4['course_name'] ."</b>" ."<br>";
               echo "(" . $row_get_class3_4['room_name'] . ")" ."<br>";
                }
               } while ($row_get_timetable3_4 = $get_timetable3_4->fetch_assoc()); 
               ?></td>
            <td align="center" height="50"><?php
                        // بيانات الطالب
        $dirsa->select_db($database_dirsa);
        $query_get_timetable4_4 = sprintf("SELECT * FROM timetable inner join courseenrollment on timetable.subjectid = courseenrollment.courseid where day=%s and timetable.timeco=%s and timetable.depid=%s and courseenrollment.studentid=%s and courseenrollment.sessionid=%s",
        GetSQLValueString(5, "int"),
       GetSQLValueString(4, "int"),
        GetSQLValueString($row_users22['id_section'], "int"),
        GetSQLValueString($row_users22['old_id_stu'], "int"),
       GetSQLValueString($row_get_year['Id'], "text"));
        $get_timetable4_4 = $dirsa->query($query_get_timetable4_4) or die($dirsa->error);
        $row_get_timetable4_4 = $get_timetable4_4->fetch_assoc();
        $totalRows_get_timetable4_4 = $get_timetable4_4->num_rows;
            
              do {
                $dirsa->select_db($database_dirsa);
                $query_get_subject_name4_4 = sprintf("SELECT * FROM courses where id_num_local=%s",
                                     GetSQLValueString($row_get_timetable4_4['subjectid'], "int"));
                $get_subject_name4_4 = $dirsa->query($query_get_subject_name4_4) or die($dirsa->error);
                $row_get_subject_name4_4 = $get_subject_name4_4->fetch_assoc();
                $totalRows_get_subject_name4_4 = $get_subject_name4_4->num_rows;  
                
                $dirsa->select_db($database_dirsa);
                $query_get_class4_4 = sprintf("SELECT * FROM room where room_id =%s",
                                     GetSQLValueString($row_get_timetable4_4['roomid'], "int"));
                $get_class4_4 = $dirsa->query($query_get_class4_4) or die($dirsa->error);
                $row_get_class4_4 = $get_class4_4->fetch_assoc();
                $totalRows_get_class4_4 = $get_class4_4->num_rows;  
                if($totalRows_get_timetable4_4 > 0) { 
               echo "<b>" . $row_get_subject_name4_4['course_name'] ."</b>" ."<br>";
               echo "(" . $row_get_class4_4['room_name'] . ")" ."<br>";
                }

               } while ($row_get_timetable4_4 = $get_timetable4_4->fetch_assoc()); 
               ?></td>
            <td align="center" height="50"><?php
                        // بيانات الطالب
        $dirsa->select_db($database_dirsa);
        $query_get_timetable5_4 = sprintf("SELECT * FROM timetable inner join courseenrollment on timetable.subjectid = courseenrollment.courseid where day=%s and timetable.timeco=%s and timetable.depid=%s and courseenrollment.studentid=%s and courseenrollment.sessionid=%s",
        GetSQLValueString(5, "int"),
       GetSQLValueString(5, "int"),
        GetSQLValueString($row_users22['id_section'], "int"),
        GetSQLValueString($row_users22['old_id_stu'], "int"),
       GetSQLValueString($row_get_year['Id'], "text"));
        $get_timetable5_4 = $dirsa->query($query_get_timetable5_4) or die($dirsa->error);
        $row_get_timetable5_4 = $get_timetable5_4->fetch_assoc();
        $totalRows_get_timetable5_4 = $get_timetable5_4->num_rows;
            
              do {
                $dirsa->select_db($database_dirsa);
                $query_get_subject_name5_4 = sprintf("SELECT * FROM courses where id_num_local=%s",
                                     GetSQLValueString($row_get_timetable5_4['subjectid'], "int"));
                $get_subject_name5_4 = $dirsa->query($query_get_subject_name5_4) or die($dirsa->error);
                $row_get_subject_name5_4 = $get_subject_name5_4->fetch_assoc();
                $totalRows_get_subject_name5_4 = $get_subject_name5_4->num_rows;  
                
                $dirsa->select_db($database_dirsa);
                $query_get_class5_4 = sprintf("SELECT * FROM room where room_id =%s",
                                     GetSQLValueString($row_get_timetable5_4['roomid'], "int"));
                $get_class5_4 = $dirsa->query($query_get_class5_4) or die($dirsa->error);
                $row_get_class5_4 = $get_class5_4->fetch_assoc();
                $totalRows_get_class5_4 = $get_class5_4->num_rows;  
                if($totalRows_get_timetable5_4 > 0) { 
               echo "<b>" . $row_get_subject_name5_4['course_name'] ."</b>" ."<br>";
               echo "(" . $row_get_class5_4['room_name'] . ")" ."<br>";
                }
               } while ($row_get_timetable5_4 = $get_timetable5_4->fetch_assoc()); 
               ?></td>
        </tr>
        <tr>
            <td align="center" height="50">
                <b>الخميس</b></td>
            <td align="center" height="50">
                <?php 
                        // بيانات الطالب
        $dirsa->select_db($database_dirsa);
        $query_get_timetable1_5 = sprintf("SELECT * FROM timetable inner join courseenrollment on timetable.subjectid = courseenrollment.courseid where day=%s and timetable.timeco=%s and timetable.depid=%s and courseenrollment.studentid=%s and courseenrollment.sessionid=%s",
        GetSQLValueString(6, "int"),
       GetSQLValueString(1, "int"),
        GetSQLValueString($row_users22['id_section'], "int"),
        GetSQLValueString($row_users22['old_id_stu'], "int"),
       GetSQLValueString($row_get_year['Id'], "text"));
        $get_timetable1_5 = $dirsa->query($query_get_timetable1_5) or die($dirsa->error);
        $row_get_timetable1_5 = $get_timetable1_5->fetch_assoc();
        $totalRows_get_timetable1_5 = $get_timetable1_5->num_rows;
            
              do {
                $dirsa->select_db($database_dirsa);
                $query_get_subject_name1_5 = sprintf("SELECT * FROM courses where id_num_local=%s",
                                     GetSQLValueString($row_get_timetable1_5['subjectid'], "int"));
                $get_subject_name1_5 = $dirsa->query($query_get_subject_name1_5) or die($dirsa->error);
                $row_get_subject_name1_5 = $get_subject_name1_5->fetch_assoc();
                $totalRows_get_subject_name1_5 = $get_subject_name1_5->num_rows;  
                
                $dirsa->select_db($database_dirsa);
                $query_get_class1_5 = sprintf("SELECT * FROM room where room_id =%s",
                                     GetSQLValueString($row_get_timetable1_5['roomid'], "int"));
                $get_class1_5 = $dirsa->query($query_get_class1_5) or die($dirsa->error);
                $row_get_class1_5 = $get_class1_5->fetch_assoc();
                $totalRows_get_class1_5 = $get_class1_5->num_rows;  
                if($totalRows_get_timetable1_5 > 0) { 
               echo "<b>" . $row_get_subject_name1_5['course_name'] ."</b>" ."<br>";
               echo "(" . $row_get_class1_5['room_name'] . ")" ."<br>";
                }
               } while ($row_get_timetable1_5 = $get_timetable1_5->fetch_assoc()); 
               ?>
            </td>
            <td align="center" height="50">
            <?php
                        // بيانات الطالب
        $dirsa->select_db($database_dirsa);
        $query_get_timetable2_5 = sprintf("SELECT * FROM timetable inner join courseenrollment on timetable.subjectid = courseenrollment.courseid where day=%s and timetable.timeco=%s and timetable.depid=%s and courseenrollment.studentid=%s and courseenrollment.sessionid=%s",
        GetSQLValueString(6, "int"),
       GetSQLValueString(2, "int"),
        GetSQLValueString($row_users22['id_section'], "int"),
        GetSQLValueString($row_users22['old_id_stu'], "int"),
       GetSQLValueString($row_get_year['Id'], "text"));
        $get_timetable2_5 = $dirsa->query($query_get_timetable2_5) or die($dirsa->error);
        $row_get_timetable2_5 = $get_timetable2_5->fetch_assoc();
        $totalRows_get_timetable2_5 = $get_timetable2_5->num_rows;
            
              do {
                $dirsa->select_db($database_dirsa);
                $query_get_subject_name2_5 = sprintf("SELECT * FROM courses where id_num_local=%s",
                                     GetSQLValueString($row_get_timetable2_5['subjectid'], "int"));
                $get_subject_name2_5 = $dirsa->query($query_get_subject_name2_5) or die($dirsa->error);
                $row_get_subject_name2_5 = $get_subject_name2_5->fetch_assoc();
                $totalRows_get_subject_name2_5 = $get_subject_name2_5->num_rows;  
                
                $dirsa->select_db($database_dirsa);
                $query_get_class2_5 = sprintf("SELECT * FROM room where room_id =%s",
                                     GetSQLValueString($row_get_timetable2_5['roomid'], "int"));
                $get_class2_5 = $dirsa->query($query_get_class2_5) or die($dirsa->error);
                $row_get_class2_5 = $get_class2_5->fetch_assoc();
                $totalRows_get_class2_5 = $get_class2_5->num_rows;  
                if($totalRows_get_timetable2_5 > 0) { 
               echo "<b>" . $row_get_subject_name2_5['course_name'] ."</b>" ."<br>";
               echo "(" . $row_get_class2_5['room_name'] . ")" ."<br>";
                }
               } while ($row_get_timetable2_5 = $get_timetable2_5->fetch_assoc()); 
               ?>
            </td>
            <td align="center" height="50"><?php
                        // بيانات الطالب
        $dirsa->select_db($database_dirsa);
        $query_get_timetable3_5 = sprintf("SELECT * FROM timetable inner join courseenrollment on timetable.subjectid = courseenrollment.courseid where day=%s and timetable.timeco=%s and timetable.depid=%s and courseenrollment.studentid=%s and courseenrollment.sessionid=%s",
        GetSQLValueString(6, "int"),
       GetSQLValueString(3, "int"),
        GetSQLValueString($row_users22['id_section'], "int"),
        GetSQLValueString($row_users22['old_id_stu'], "int"),
       GetSQLValueString($row_get_year['Id'], "text"));
        $get_timetable3_5 = $dirsa->query($query_get_timetable3_5) or die($dirsa->error);
        $row_get_timetable3_5 = $get_timetable3_5->fetch_assoc();
        $totalRows_get_timetable3_5 = $get_timetable3_5->num_rows;
            
              do {
                $dirsa->select_db($database_dirsa);
                $query_get_subject_name3_5 = sprintf("SELECT * FROM courses where id_num_local=%s",
                                     GetSQLValueString($row_get_timetable3_5['subjectid'], "int"));
                $get_subject_name3_5 = $dirsa->query($query_get_subject_name3_5) or die($dirsa->error);
                $row_get_subject_name3_5 = $get_subject_name3_5->fetch_assoc();
                $totalRows_get_subject_name3_5 = $get_subject_name3_5->num_rows;  
                
                $dirsa->select_db($database_dirsa);
                $query_get_class3_5 = sprintf("SELECT * FROM room where room_id =%s",
                                     GetSQLValueString($row_get_timetable3_5['roomid'], "int"));
                $get_class3_5 = $dirsa->query($query_get_class3_5) or die($dirsa->error);
                $row_get_class3_5 = $get_class3_5->fetch_assoc();
                $totalRows_get_class3_5 = $get_class3_5->num_rows;  
                if($totalRows_get_timetable3_5 > 0) { 
               echo "<b>" . $row_get_subject_name3_5['course_name'] ."</b>" ."<br>";
               echo "(" . $row_get_class3_5['room_name'] . ")" ."<br>";
                }
               } while ($row_get_timetable3_5 = $get_timetable3_5->fetch_assoc()); 
               ?></td>
            <td align="center" height="50"><?php
                        // بيانات الطالب
        $dirsa->select_db($database_dirsa);
        $query_get_timetable4_5 = sprintf("SELECT * FROM timetable inner join courseenrollment on timetable.subjectid = courseenrollment.courseid where day=%s and timetable.timeco=%s and timetable.depid=%s and courseenrollment.studentid=%s and courseenrollment.sessionid=%s",
        GetSQLValueString(6, "int"),
       GetSQLValueString(4, "int"),
        GetSQLValueString($row_users22['id_section'], "int"),
        GetSQLValueString($row_users22['old_id_stu'], "int"),
       GetSQLValueString($row_get_year['Id'], "text"));
        $get_timetable4_5 = $dirsa->query($query_get_timetable4_5) or die($dirsa->error);
        $row_get_timetable4_5 = $get_timetable4_5->fetch_assoc();
        $totalRows_get_timetable4_5 = $get_timetable4_5->num_rows;
            
              do {
                $dirsa->select_db($database_dirsa);
                $query_get_subject_name4_5 = sprintf("SELECT * FROM courses where id_num_local=%s",
                                     GetSQLValueString($row_get_timetable4_5['subjectid'], "int"));
                $get_subject_name4_5 = $dirsa->query($query_get_subject_name4_5) or die($dirsa->error);
                $row_get_subject_name4_5 = $get_subject_name4_5->fetch_assoc();
                $totalRows_get_subject_name4_5 = $get_subject_name4_5->num_rows;  
                
                $dirsa->select_db($database_dirsa);
                $query_get_class4_5 = sprintf("SELECT * FROM room where room_id =%s",
                                     GetSQLValueString($row_get_timetable4_5['roomid'], "int"));
                $get_class4_5 = $dirsa->query($query_get_class4_5) or die($dirsa->error);
                $row_get_class4_5 = $get_class4_5->fetch_assoc();
                $totalRows_get_class4_5 = $get_class4_5->num_rows;  
                if($totalRows_get_timetable4_5 > 0) { 
               echo "<b>" . $row_get_subject_name4_5['course_name'] ."</b>" ."<br>";
               echo "(" . $row_get_class4_5['room_name'] . ")" ."<br>";
                }

               } while ($row_get_timetable4_5 = $get_timetable4_5->fetch_assoc()); 
               ?></td>
            <td align="center" height="50"><?php
                        // بيانات الطالب
        $dirsa->select_db($database_dirsa);
        $query_get_timetable5_5 = sprintf("SELECT * FROM timetable inner join courseenrollment on timetable.subjectid = courseenrollment.courseid where day=%s and timetable.timeco=%s and timetable.depid=%s and courseenrollment.studentid=%s and courseenrollment.sessionid=%s",
        GetSQLValueString(6, "int"),
       GetSQLValueString(5, "int"),
        GetSQLValueString($row_users22['id_section'], "int"),
        GetSQLValueString($row_users22['old_id_stu'], "int"),
       GetSQLValueString($row_get_year['Id'], "text"));
        $get_timetable5_5 = $dirsa->query($query_get_timetable5_5) or die($dirsa->error);
        $row_get_timetable5_5 = $get_timetable5_5->fetch_assoc();
        $totalRows_get_timetable5_5 = $get_timetable5_5->num_rows;
            
              do {
                $dirsa->select_db($database_dirsa);
                $query_get_subject_name5_5 = sprintf("SELECT * FROM courses where id_num_local=%s",
                                     GetSQLValueString($row_get_timetable5_5['subjectid'], "int"));
                $get_subject_name5_5 = $dirsa->query($query_get_subject_name5_5) or die($dirsa->error);
                $row_get_subject_name5_5 = $get_subject_name5_5->fetch_assoc();
                $totalRows_get_subject_name5_5 = $get_subject_name5_5->num_rows;  
                
                $dirsa->select_db($database_dirsa);
                $query_get_class5_5 = sprintf("SELECT * FROM room where room_id =%s",
                                     GetSQLValueString($row_get_timetable5_5['roomid'], "int"));
                $get_class5_5 = $dirsa->query($query_get_class5_5) or die($dirsa->error);
                $row_get_class5_5 = $get_class5_5->fetch_assoc();
                $totalRows_get_class5_5 = $get_class5_5->num_rows;  
                if($totalRows_get_timetable5_5 > 0) { 
               echo "<b>" . $row_get_subject_name5_5['course_name'] ."</b>" ."<br>";
               echo "(" . $row_get_class5_5['room_name'] . ")" ."<br>";
                }
               } while ($row_get_timetable5_5 = $get_timetable5_5->fetch_assoc()); 
               ?></td>
        </tr>
    </table>
            </div>
            </div>
</body>
 
</html>

3g86 2022