403Webshell
Server IP : 172.64.80.1  /  Your IP : 172.70.50.62
Web Server : Apache
System : Linux mail.federalpolyede.edu.ng 5.10.0-32-amd64 #1 SMP Debian 5.10.223-1 (2024-08-10) x86_64
User : federalpolyede.edu.ng_idh35skikv ( 10000)
PHP Version : 7.4.33
Disable Function : opcache_get_status
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/vhosts/federalpolyede.edu.ng/httpdocs_backup/eClass/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/vhosts/federalpolyede.edu.ng/httpdocs_backup/eClass/staff_main.php
<script type="text/javascript" language="javascript" src="../js/jquery-1.7.1.js"></script>
<script type="text/javascript" language="javascript" src="../js/scriptFileLong.js"></script>
<?php
session_start();
if(!isset($_SESSION['username'])){
    header('location:staff_login.php');
}
$staffID=$_SESSION['staffID'];
require_once('../connect.php');
                                    $db=db_connect();
/**
 * Created by PhpStorm.
 * User: fpe
 * Date: 5/16/2020
 * Time: 10:31 PM
 */
require_once('header_eclass.php');
?>
<p></p>
    <div style="height: 100px" ></div>

        <?php
echo '<div style="font-size: 20px; font-style: italic" class="alert alert-primary">Welcome '.$_SESSION['fullname'] .' - '.'<a href="logout.php"> (Logout)</a></div>';




if(isset($_GET['id'])) {
    if ($_GET['id'] == 30) {
        echo ' <script> alert("Record Deleted Successfully"); </script>';
    } elseif ($_GET['id'] == 30)  {
        echo ' <script>    alert("Record failed to Delete");</script>';

    }
}


?>
<div class="col-lg-12">
    <div class="col-lg-10 offset-1">
        <div class="panel-body">
            <div class="dataTable_wrapper">
                <div> Course Materials - <a href="new_material.php"> <b style="color: green">New Material</b></a> <hr></div>
                <table class="table table-striped table-bordered table-hover" id="dataTables-example">
                    <thead>
                    <tr>
                        <th><strong>S/N</strong></td>
                        <th><strong>School</strong></td>
                        <th><strong>Department</strong></td>
                        <th><strong>Semester</strong></td>
                        <th><strong>Level</strong></td>
                        <th><strong>Course Code</strong></td>
                        <th><strong>File Type</strong></td>
                        <th><strong>Date Uploaded</strong></td>
                        <th><strong>Action</strong></td>
                    </tr>
                    </thead>
                    <tbody>
                    <?php
                    $kk_aspoa="select * from uploading_tb where staffID='$staffID' and mode='1'";
                    $sql =  $db->query($kk_aspoa);
                    $num = $sql->rowCount();
                    $i = 0;
                    if ($num > 0) {
                        while ($row = $sql->fetch(PDO::FETCH_BOTH)) {
                            $b=$i+1;
                            $id=$row['sn'];
                            echo $courseID=$row['courseID'];
//                    $kA=$row['dOption'];
//                    $kB=$row['ndft'];
//                            die();

//                           echo "select * from coursepool where sn='$courseID'";
                            $course_detail=$db->query("select * from coursepool where sn='$courseID'");
                            $course_fetch=$course_detail->fetch(PDO::FETCH_BOTH);
                            $levelID=$course_fetch['levelID'];
//                            die();
                            switch ($levelID) {
                                case '1':
                                    $levelName = 'ND 1 FT';
                                    break;
                                case '2':
                                    $levelName = 'ND 2 FT';
                                    break;
                                case '3':
                                    $levelName = 'HND 1 FT';
                                    break;
                                case '4':
                                    $levelName = 'HND 2 FT';
                                    break;
                                case '5':
                                    $levelName = 'ND PT YR 1';
                                    break;
                                case '6':
                                    $levelName = 'ND PT YR 2';
                                    break;
                                case '7':
                                    $levelName = 'ND PT YR 3';
                                    break;
                                case '8':
                                    $levelName = 'ND 1 DPT';
                                    break;
                                case '9':
                                    $levelName = 'ND 2 DPT';
                                    break;
                                case '10':
                                    $levelName = 'Pre ND';
                                    break;
                                case '11':
                                    $levelName = 'HND 1 DPT';
                                    break;
                                case '12':
                                    $levelName = 'HND 2 DPT';
                                    break;
                            }
                            $aspoa=explode('/',$row['filename']);
                            $lik=$row['filename'];
                            echo ' <tr>
            <td>'.$b.'</td>
            <td>'.$course_fetch['school'].'</td>
            <td>'.$course_fetch['dept'].'</td>
            <td>'.$course_fetch['semester'].'</td>
            <td>'.$levelName.'</td>
            <td>'.$course_fetch['courseCode'].'</td>
            <td>'.$aspoa[1].'</td>
            <td>'.$row['timeFrom'].'</td>

             <td><a href="delete_course.php?id='.$id.'&lin='.$lik.'">Remove</a></td>


        </tr>';


//                    <td><a href="nd_ft_quota.php?ID=1&IDD='.$kA.'&IDDD='.$kB.'"><i class="far fa-edit"></i></a></td>
//echo "select * from stddata where formNo='$formNo' and admStatus=2";
                            ++$i;
                        }
                        ?>


                    <?php

                    } else {
                    ?>
                    <tr>
                        <td colspan="4"><?php echo "No Course Material Added Yet!";
                            }
                            ?></td>
                    </tr>
                    </tbody>

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




<div class="col-lg-10 offset-1">
<div class="panel-body">
    <div class="dataTable_wrapper">
        Assignment(s) - <a href="new_assignment.php"> <b style="color: green">New Assignment</b></a></b>
        <hr>
        <table class="table table-striped table-bordered table-hover" id="dataTables-example">
            <thead>
            <tr>
                <th><strong>S/N</strong></td>
                <th><strong>School</strong></td>
                <th><strong>Department</strong></td>
                <th><strong>Semester</strong></td>
                <th><strong>Level</strong></td>
                <th><strong>Course Code</strong></td>
                <th><strong>File Name</strong></td>
                <th><strong>Date Uploaded</strong></td>
                <th><strong>Deadline Date </strong></td>
                <th><strong>Submitted</strong></td>

                <th><strong>Action</strong></td>
            </tr>
            </thead>
            <tbody>
            <?php
            $kk_aspoa="select * from uploading_tb where staffID='$staffID' and mode='2'";
            $sql =  $db->query($kk_aspoa);
            $num = $sql->rowCount();
            $i = 0;
            if ($num > 0) {
                while ($row = $sql->fetch(PDO::FETCH_BOTH)) {
                    $b=$i+1;
                    $id=$row['sn'];
                    $courseID=$row['courseID'];
//                    $kA=$row['dOption'];
//                    $kB=$row['ndft'];

                    $course_detail=$db->query("select * from coursepool where sn='$courseID'");
                    $course_fetch=$course_detail->fetch(PDO::FETCH_BOTH);
                    $levelID=$course_fetch['levelID'];
                    switch ($levelID) {
                        case '1':
                            $levelName = 'ND 1 FT';
                            break;
                        case '2':
                            $levelName = 'ND 2 FT';
                            break;
                        case '3':
                            $levelName = 'HND 1 FT';
                            break;
                        case '4':
                            $levelName = 'HND 2 FT';
                            break;
                        case '5':
                            $levelName = 'ND PT YR 1';
                            break;
                        case '6':
                            $levelName = 'ND PT YR 2';
                            break;
                        case '7':
                            $levelName = 'ND PT YR 3';
                            break;
                        case '8':
                            $levelName = 'ND 1 DPT';
                            break;
                        case '9':
                            $levelName = 'ND 2 DPT';
                            break;
                        case '10':
                            $levelName = 'Pre ND';
                            break;
                        case '11':
                            $levelName = 'HND 1 DPT';
                            break;
                        case '12':
                            $levelName = 'HND 2 DPT';
                            break;
                    }
                    $aspoa=explode('/',$row['filename']);
//                    $aspoa=explode('/',$row['filename']);
                    $lik=$row['filename'];

                    $adisa=$db->query("select * from assignmentsubmission where courseID='$courseID'");
                    $adisa_count=$adisa->rowCount();
                    echo ' <tr>
            <td>'.$b.'</td>
            <td>'.$course_fetch['school'].'</td>
            <td>'.$course_fetch['dept'].'</td>
            <td>'.$course_fetch['semester'].'</td>
            <td>'.$levelName.'</td>
            <td>'.$course_fetch['courseCode'].'</td>
            <td>'.$aspoa[1].'</td>
            <td>'.$row['timeFrom'].'</td>
            <td>'.$row['timeTo'].'</td>
            <td>['.$adisa_count.']-<a href="staff_assignment_download.php?id='.$courseID.'&lin='.$lik.'">View Submitted</a></td>

             <td><a href="delete_course.php?id='.$id.'&lin='.$lik.'">Remove</a></td>


        </tr>';


//                    <td><a href="nd_ft_quota.php?ID=1&IDD='.$kA.'&IDDD='.$kB.'"><i class="far fa-edit"></i></a></td>
//echo "select * from stddata where formNo='$formNo' and admStatus=2";
                    ++$i;
                }
                ?>


            <?php

            } else {
            ?>
            <tr>
                <td colspan="4"><?php echo "No Assignment Given Yet!";
                    }
                    ?></td>
            </tr>
            </tbody>

        </table>
    </div>
</div>
</div>
</div>
<br>
<div class="col-lg-12">
<?php
require_once('footer_eclass.php');
?></div>

Youez - 2016 - github.com/yon3zu
LinuXploit