Ejemplo n.º 1
0
ob_start();
include "conn.php";
include "../class/constant.php";
include "../class/htmlFactory.php";
$login = new userAuth();
$login->userLoginAuth();
$htmlFactory = new htmlFactory();
$studentLogin = false;
if (isset($_SESSION['userInfo'])) {
    $userInfo = $_SESSION['userInfo'];
    $userType = $userInfo->userType;
    if ($userType == "student") {
        $registrationId = $userInfo->registrationId;
        $studentLogin = true;
        $studentInfo = $htmlFactory->getStudentInfoById($registrationId);
        //var_dump($studentInfo);
    }
}
?>
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Admin</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    
    <!-- Bootstrap 3.3.5 -->
    <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">