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/show_course.php
<?php
// اتصال بقاعدة بيانات
require_once("../../connection/connect2.php");
require_once("../../connection/connect4.php");
$page_title = "عرض دروس";
$page_select = "12";
require_once("include/header.php");
require_once("include/check.php");
require_once("include/locked.php");



$dirsa3->select_db($database_dirsa3);
$query_coursegroup = sprintf("SELECT * FROM course_group where group_id=%s",
    GetSQLValueString($_GET['id'], "int"));
$coursegroup = $dirsa3->query($query_coursegroup) or die($dirsa3->error);
$row_coursegroup = $coursegroup->fetch_assoc();
$totalRows_coursegroup = $coursegroup->num_rows;


$dirsa3->select_db($database_dirsa3);
$query_activite = sprintf("SELECT * FROM lessons where lessons_course_group=%s and is_deleted is null",
    GetSQLValueString($_GET['id'], "int"));
$activite = $dirsa3->query($query_activite) or die($dirsa3->error);
$row_activite = $activite->fetch_assoc();
$totalRows_activite = $activite->num_rows;

$dirsa3->select_db($database_dirsa3);
$query_activite1 = sprintf("SELECT * FROM homeworks where hw_course_group=%s and is_deleted is null",
    GetSQLValueString($_GET['id'], "int"));
$activite1 = $dirsa3->query($query_activite1) or die($dirsa3->error);
$row_activite1 = $activite1->fetch_assoc();
$totalRows_activite1 = $activite1->num_rows;


$dirsa3->select_db($database_dirsa3);
$query_activite2 = sprintf("SELECT * FROM exam_tbl where cou_id=%s and ex_state = 1",
    GetSQLValueString($_GET['id'], "int"));
$activite2 = $dirsa3->query($query_activite2) or die($dirsa3->error);
$row_activite2 = $activite2->fetch_assoc();
$totalRows_activite2 = $activite2->num_rows;

$dirsa3->select_db($database_dirsa3);
$query_activite3 = sprintf("SELECT * FROM exam_tbl where cou_id=%s and ex_state=%s",
    GetSQLValueString($_GET['id'], "int"),
    GetSQLValueString(1, "int"));
$activite3 = $dirsa3->query($query_activite3) or die($dirsa3->error);
$row_activite3 = $activite3->fetch_assoc();
$totalRows_activite3 = $activite3->num_rows;

$dirsa3->select_db($database_dirsa3);
$query_activite5 = sprintf("SELECT * FROM zoom where is_deleted is null and zoom_course_g=%s",
    GetSQLValueString($_GET['id'], "int"));
$activite5 = $dirsa3->query($query_activite5) or die($dirsa3->error);
$row_activite5 = $activite5->fetch_assoc();
$totalRows_activite5 = $activite5->num_rows;


$dirsa3->select_db($database_dirsa3);
$query_notification = sprintf("SELECT * FROM notfication where notfication_group=%s and is_deleted=0 and notfication_state = 1",
    GetSQLValueString($_GET['id'], "int"));
$notification = $dirsa3->query($query_notification) or die($dirsa3->error);
$row_notification = $notification->fetch_assoc();
$totalRows_notification = $notification->num_rows;


$dirsa3->select_db($database_dirsa3);
$query_get_course = sprintf("SELECT * FROM coruse_booking where co_group_id=%s and co_stu_id=%s",
                    GetSQLValueString($_GET['id'], "int"),
                    GetSQLValueString($row_users22['username'], "text"));
$get_course = $dirsa3->query($query_get_course) or die($dirsa3->error);
$row_get_course = $get_course->fetch_assoc();
$totalRows_get_course = $get_course->num_rows;  

if($totalRows_get_course > 0) {
    
    if($row_get_course['co_state'] == 0) {
        $insertGoTo = "startcourse.php";
             header(sprintf("Location: %s", $insertGoTo));
    } else {
              
    }
} else {
    
     $insertSQL = sprintf("INSERT INTO coruse_booking 
        (co_group_id,
        co_course_id,
        co_section,
        co_stu_id,
        co_teacher,
        co_date_reg,
        co_state) VALUES 
        (%s,
        %s,
        %s,
        %s,
        %s,
        NOW(),
        %s)",
                             GetSQLValueString($row_coursegroup['group_id'], "int"),
                             GetSQLValueString($row_coursegroup['group_id_course'], "text"),
                             GetSQLValueString($row_coursegroup['co_section'], "text"),
                             GetSQLValueString($row_users22['username'], "text"),
                            GetSQLValueString($row_coursegroup['teacher_id'], "int"),
                            GetSQLValueString("0", "int"));
      
        $dirsa3->select_db($database_dirsa3);
        $Result1 = $dirsa3->query($insertSQL) or die($dirsa3->error);
        
                  $insertGoTo = "startcourse.php";
             header(sprintf("Location: %s", $insertGoTo));
    
}


?>
<div class="container-xxl">
    <div class="authentication-wrapper authentication-basic container-p-y">
            <h6 class="text-muted">الدروس المتاحة</h6>
            <div class="nav-align-top mb-4">
                <ul class="nav nav-tabs" role="tablist">
                      <li class="nav-item">
                        <button type="button" class="nav-link active" role="tab" data-bs-toggle="tab" data-bs-target="#navs-top-ads" aria-controls="navs-top-ads" aria-selected="true">
                           إعلانات
                        </button>
                    </li>
                    <li class="nav-item">
                        <button type="button" class="nav-link" role="tab" data-bs-toggle="tab" data-bs-target="#navs-top-home" aria-controls="navs-top-home" aria-selected="true">
                            الدروس
                        </button>
                    </li>
                    <li class="nav-item">
                        <button type="button" class="nav-link" role="tab" data-bs-toggle="tab" data-bs-target="#navs-top-profile" aria-controls="navs-top-profile" aria-selected="false">
                            الواجبات
                        </button>
                    </li>
                    <li class="nav-item">
                        <button type="button" class="nav-link" role="tab" data-bs-toggle="tab" data-bs-target="#navs-top-messages" aria-controls="navs-top-messages" aria-selected="false">
                          الجلسات المباشرة
                        </button>
                    </li>
                    <li class="nav-item">
                        <button type="button" class="nav-link" role="tab" data-bs-toggle="tab" data-bs-target="#navs-top-exam" aria-controls="navs-top-messages" aria-selected="false">
                            الامتحانات
                        </button>
                    </li>
                </ul>
                <div class="tab-content">
                    
                              <div class="tab-pane fade show active" id="navs-top-ads" role="tabpanel">
                        <table class="table">
                            <thead>
                            <tr>
                                <th>عنوان الإعلان</th>
                                <th>أهمية الإعلان</th>
                                <th>تاريخ الإعلان</th>
                                <th>الإجراء</th>
                            </tr>
                            </thead>
                            <tbody class="table-border-bottom-0">
                            <?php
                            if($totalRows_notification > 0) {
                            do {  ?>
                            <tr>
                                <td><?php echo $row_notification['notfication_title']; ?></td>
                                <td><?php if($row_notification['notfication_type'] == 1) { ?>
                                <span class="badge rounded-pill bg-danger">مهم جدا</span>
                                <?php } else if($row_notification['notfication_type'] == 2) { ?>
                                <span class="badge rounded-pill bg-success">مهم</span>
                                <?php } else { ?>
                                <span class="badge rounded-pill bg-primary">عادي</span>
                                
                                <?php } ?>
                                </td>
                                <td><?php echo $row_notification['notfication_date_insert']; ?></td>
                                     <td>
                                    <a href="show_notification.php?id=<?php echo $row_notification['notfication_id']; ?>">
                                    <button type="button" class="btn btn-primary">عرض</button></a></td>
                            </tr>
                            <?php } while ($row_notification = $notification->fetch_assoc());
                            }?>
                            </tbody>
                        </table>
                    </div>
                    
                    <div class="tab-pane fade" id="navs-top-home" role="tabpanel">
                        <table class="table">
                            <thead>
                            <tr>
                                <th>عنوان الدرس</th>
                                <th>نوع المرفق</th>
                                <th>الإجراء</th>
                            </tr>
                            </thead>
                            <tbody class="table-border-bottom-0">
                            <?php
                            if($totalRows_activite > 0) {
                            do {  ?>
                            <tr>
                                <td><i class="fab fa-angular fa-lg text-danger me-3"></i> <strong><?php echo $row_activite['lessons_title']; ?></strong></td>
                                    <td><?php if($row_activite['lessons_type_file'] == 1) { ?>
                                        <i class='bx bxs-camera-movie' title="فيديو"></i>
                                    <?php } else if($row_activite['lessons_type_file'] == 2) {  ?>
                                         <i class='bx bxs-file-doc' title="مستند"></i>
                                    <?php } else if($row_activite['lessons_type_file'] == 3) { ?>
                                        <i class='bx bxs-volume-full' title="ملف صوتي"></i>
                                    <?php } else if ($row_activite['lessons_type_file'] == 4) { ?>
                                        <i class='bx bx-menu-alt-right' title="نص"></i>
                                    <?php } ?></td>
                                     <td>
                                    <a href="show_lesson.php?id=<?php echo $row_activite['lessons_id']; ?>">
                                    <button type="button" class="btn btn-primary">عرض</button></a></td>
                            </tr>
                            <?php } while ($row_activite = $activite->fetch_assoc());
                            }?>
                            </tbody>
                        </table>
                    </div>
                    <div class="tab-pane fade" id="navs-top-profile" role="tabpanel">
                        <table class="table">
                            <thead>
                            <tr>
                                <th>عنوان الواجب</th>
                                <th>الملف</th>
                                <th>الإجراء</th>
                            </tr>
                            </thead>
                            <tbody class="table-border-bottom-0">
                            <?php
                            if($totalRows_activite1 > 0) {
                                do {  ?>
                                    <tr>
                                        <td><strong><?php echo $row_activite1['hw_name']; ?></strong></td>
                                        <td>
                                            <?php if(!empty($row_activite1['hw_file'])) { ?>
                                            <a href="../teacher/uploads/homework/<?php echo htmlspecialchars($row_activite1['hw_file']); ?>" class="btn btn-primary btn-sm">تحميل</a>
                                            <?php } else { ?>
                                            <span class="badge bg-warning text-dark">لا يوجد ملف</span>
                                            <?php } ?>
                                        </td>
                                        <td>
                                            <a href="show_homework.php?id=<?php echo $row_activite1['hw_id']; ?>">
                                                <button type="button" class="btn btn-primary">عرض</button></a></td>
                                    </tr>
                                <?php } while ($row_activite1 = $activite1->fetch_assoc());
                            }?>
                            </tbody>
                        </table>
                    </div>
                    <div class="tab-pane fade" id="navs-top-messages" role="tabpanel">
                        <table class="table">
                            <thead>
                            <tr>
                                <th>عنوان البث</th>
                                <th>Meeting id</th>
                                <th>Password</th>
                                <th>موعد البث</th>
                                <th>رابط البث</th>
                                <th>الإجراء</th>
                            </tr>
                            </thead>
                            <tbody class="table-border-bottom-0">
                            <?php
                            if($totalRows_activite5 > 0) {
                                do {  ?>
                                    <tr>
                                        <td><?php echo $row_activite5['zoom_title']; ?></td>
                                        <td><?php echo $row_activite5['zoom_meetid']; ?></td>
                                        <td><?php echo $row_activite5['zoom_password']; ?></td>
                                        <td><?php echo $row_activite5['zoom_date']; ?>-<?php echo $row_activite5['zoom_time']; ?></td>
                                        <td><?php echo $row_activite5['zoom_url']; ?></td>
                                        <td>
                                            <a href="<?php echo $row_activite5['zoom_url']; ?>">
                                            <button type="button" class="btn btn-primary">الانتقال للبث</button></a></td>
                                    </tr>
                                <?php } while ($row_activite5 = $activite5->fetch_assoc());
                            }?>
                            </tbody>
                        </table>
                    </div>

                    <div class="tab-pane fade" id="navs-top-exam" role="tabpanel">
                        <table class="table">
                            <thead>
                            <tr>
                                <th>عنوان الامتحان</th>
                                <th>التوقيت</th>
                                <th>الإجراء</th>
                            </tr>
                            </thead>
                            <tbody class="table-border-bottom-0">
                            <?php
                            if($totalRows_activite2 > 0) {
                                do {  ?>
                                    <tr>
                                        <td><?php echo $row_activite2['ex_title']; ?></td>
                                        <td><?php echo $row_activite2['ex_time_limit']; ?></td>
                                        <td>

                                                <button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal<?php echo $row_activite2['ex_id']; ?>">بدء الامتحان</button></td>
                                    </tr>
                                <?php } while ($row_activite2 = $activite2->fetch_assoc());
                            }?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
</div>

<?php do { ?>
<!-- Modal -->
<div class="modal fade" id="exampleModal<?php echo $row_activite3['ex_id']; ?>" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="exampleModalLabel">هل انت متأكد أنك تريد البدء في اجراء الامتحان</h5>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <div class="modal-body">
               ملاحظة : عند البدء في اجراء الامتحان سوف يتم احتساب امتحانك ولا تستطيع تراجع بعد ذلك
            </div>
            <div class="modal-footer">
                <a href="start_exam.php?id=<?php echo $row_activite3['ex_id']; ?>&&q=1">
                <button type="button" class="btn btn-primary">بدء الامتحان</button></a>
                <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">لا، لأريد</button>
            </div>
        </div>
    </div>
</div>
<?php } while ($row_activite3 = $activite3->fetch_assoc()); ?>
<?php require_once("include/footer.php"); ?>

3g86 2022