<!DOCTYPE html> <html xml:lang="en" lang="en"> <head> <title>Courses Information</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <link rel="stylesheet" href="../css/bootstrap.min.css"> <link rel="stylesheet" href="../css/bootstrap-theme.min.css"> </head> <body class="container"> <div class="panel panel-default"> <div class="panel-heading"> <strong><span style="font: bold 30px sans-serif;">Course Details</span></strong> <?php if (get_flag($userName) == 1) { echo '<a href="." style="float:right;">Back to home</a>'; } else { echo '<a href="logout.php" style="float:right;">Log out</a>'; } ?> </div> <div class="panel-body"> <form action="#" method="POST" enctype="multipart/form-data" class="form-inline" role="form"> <div class="form-group"> <div class="input-group"> <label class="sr-only" for="courseNo">CS252</label> <div class="input-group-addon">Course No.</div> <input type="text" class="form-control" id="courseNo" placeholder="CS252" name="course" required> </div> </div>
<?php require '../core/init.php'; if (!logged_in()) { header('Location: ../'); } else { $type = $_SESSION['type']; $userName = $_SESSION['userName']; if ($type == 'fac') { header('Location: ../fac/'); } $flag = get_flag($userName); if ($flag == 0) { header('Location: update_student.php'); } } ?> <!DOCTYPE html> <html xmlns:ng="http://angularjs.org" id="ng-app" ng-app="CAL"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Academic Calendar</title> <link rel="stylesheet" href="../css/bootstrap.min.css"> <link rel="stylesheet" href="../css/bootstrap-theme.min.css"> <link rel="stylesheet" href="../css/custom.css"> </head> <body ng-controller="monthCtrl">
ini_set("mbstring.internal_encoding", "UTF-8"); ini_set("mbstring.func_overload", 7); if (!ini_get('date.timezone') && function_exists('date_default_timezone_set')) { date_default_timezone_set('America/Argentina/Buenos_Aires'); } /* Correct Apache charset */ header('Content-Type: text/html; charset=utf-8'); //header('Access-Control-Allow-Origin: *'); define('PATH_CTRL', '../app/controllers/'); define('PATH_MDL', '../app/models/'); define('PATH_LOCALE', '../app/locale/'); define('PATH_UPLOAD', '../public/upload/'); define('PATH_WEBCAM', PATH_UPLOAD . 'webcams/'); define('LOCALE_DEFAULT', 'es'); function get_flag() { $locale = isset($_SESSION['language']) ? $_SESSION['language'] : (isset($_COOKIE['language']) ? $_COOKIE['language'] : LOCALE_DEFAULT); if (isset($_REQUEST['lang'])) { if (isset($_SESSION['language'])) { unset($_SESSION['language']); } $locale = $_REQUEST['lang']; $_SESSION['language'] = $locale; } return $locale; } $flag = get_flag(); define('LOCALE', $flag); if (is_file(PATH_LOCALE . LOCALE . '.php')) { include PATH_LOCALE . LOCALE . '.php'; }