<?php 
    if(isset($_GET['page']))
    {
        $page=$_GET['page'];
    }
    else
    {
        $page='home';
    }
    
    switch($page)
    {
        case "home":
        {
            include('dashboard.php');
        }
        break;
        
        case "users":
        {
            include('users.php');
        }
        break;
        
        case "add_user":
        {
            include('add_user.php');
        }
        break;
        
        case "update_user":
        {
            include('add_user.php');
        }
        break;
        
        case "students":
        {
            include('students.php');
        }
        break;
        
        case "add_student":
        {
            include('add_student.php');
        }
        break;
        
        case "update_student":
        {
            include('update_student.php');
        }
        break;
        case "add_parent":
        {
            include('add_parent.php');
        }
        break;
        
        case "parent":
        {
            include('parent.php');
        }
        break;

        case "feedback":
        {
            include('feedback.php');
        }
        break;
        
        case "faculties":
        {
            include('faculties.php');
        }
        break;
        
        case "add_faculty":
        {
            include('add_faculty.php');
        }
        break;
        
        case "update_faculty":
        {
            include('update_faculty.php');
        }
        break;
        
        case "questions":
        {
            include('questions.php');
        }
        break;
        
        case "add_question":
        {
            include('add_question.php');
        }
        break;
        
        case "update_question":
        {
            include('update_question.php');
        }
        break;
        
        case "results":
        {
            include('results.php');
        }
        break;
        
        case "view_result":
        {
            include('view_result.php');
        }
        break;
        
        case "settings":
        {
            include('settings.php');
        }
        break;
        case "my_uploads":
        {
            include('my_uploads.php');
        }
        break;
        case "my_upload":
        {
            include('my_upload.php');
        }
        break;
        case "uploadlist":
        {
            include('uploadlist.php');
        }
        break;
        case "upload":
        {
            include('upload.php');
        }
        break;
         case "att":
        {
            include('att.php');
        }
        break;
          case "update_user_status":
        {
            include('update_user_status.php');
        }
        break;  case "get_user_status":
        {
            include('get_user_status.php');
        }
        break;
        case "logout":
        {
            if(isset($_SESSION['user']))
            {
                unset($_SESSION['user']);
            header('location:'.SITEURL.'admin/login.php');
            }
            
        }
        break;
        
        default:
        {
            include('dashboard.php');
        }
    }
?>