forked from mrlan/LRR
242 lines
8.2 KiB
Plaintext
242 lines
8.2 KiB
Plaintext
diff a/Header.php b/Header.php (rejected hunks)
|
|
@@ -18,138 +18,36 @@ if (mysqli_connect_errno()) {
|
|
<html>
|
|
|
|
<head>
|
|
+
|
|
+ <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
|
|
+ <link href="./font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" /><!-- Font-awesome CSS -->
|
|
+ <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous"><!-- Bootstrap CSS -->
|
|
|
|
- <link href="./css/bootstrap.min.css" rel="stylesheet" type="text/css" />
|
|
- <link href="./font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
|
|
- <link href="./css/bootstrap.min.css" rel="stylesheet" type="text/css" />
|
|
+ <link href="./css/styles.css" rel="stylesheet" type="text/css" />
|
|
|
|
<script src="./css/jquery.min.js" type="text/javascript"></script>
|
|
- <script src="./css/bootsrap.min.js" type="text/javascript"></script>
|
|
+ <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
|
|
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
|
|
+ <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
|
|
+
|
|
<script src="./css/jquery.datetimepicker.min.js" type="text/javascript"></script>
|
|
+ <script src="./js/CustomDropdown.js" type="text/javascript"></script>
|
|
+
|
|
+ <style>
|
|
+ .bd-placeholder-img {
|
|
+ font-size: 1.125rem;
|
|
+ text-anchor: middle;
|
|
+ -webkit-user-select: none;
|
|
+ -moz-user-select: none;
|
|
+ user-select: none;
|
|
+ }
|
|
|
|
-</head>
|
|
-
|
|
-<body>
|
|
-
|
|
- <nav class="navbar navbar-expand-lg navbar-dark bg-dark" style="padding-left:150px;padding-right:150px;margin:auto;">
|
|
- <a class="navbar-brand" href="~\..\index.php"> <img src="logo.png" style="width:30px;height:30px;"> LRR </a>
|
|
- <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarColor02" aria-controls="navbarColor02" aria-expanded="false" aria-label="Toggle navigation">
|
|
- <span class="navbar-toggler-icon"></span>
|
|
- </button>
|
|
-
|
|
- <div class="collapse navbar-collapse" id="navbarColor02">
|
|
- <ul class="navbar-nav mr-auto">
|
|
- <li class="nav-item active">
|
|
-
|
|
- <li class="nav-item active">
|
|
- <!-- <a class='nav-link' href='~\..\Visitors.php'> <i class='fa fa-globe'></i> Visitor Portal <span class='sr-only'>(current)</span></a> -->
|
|
- </li>
|
|
- <?php
|
|
- if (isset($_SESSION["user_fullname"])) {
|
|
-
|
|
- echo " <a class='nav-link' href='~\..\Courses.php'><i class='fa fa-book'></i> Courses <span class='sr-only'>(current)</span></a>";
|
|
- ?>
|
|
- </li>
|
|
- </ul>
|
|
- <form class="form-inline my-2 my-lg-0" style="color:#fff;">
|
|
- Welcome <b> <?php echo $_SESSION['user_fullname']; ?> </b>
|
|
-
|
|
- <?php
|
|
- $c_date = date("Y-m-d H:i");
|
|
- if (isset($_SESSION['user_student_id']))
|
|
- echo "(" . $_SESSION['user_type'] . " - " . $_SESSION['user_student_id'] . ") ";
|
|
- else
|
|
- echo "(" . $_SESSION['user_type'] . ") ";
|
|
- ?>
|
|
-
|
|
- <?php
|
|
- if ($_SESSION['user_type'] == "Lecturer") {
|
|
- echo " <i class=\"fa fa-cog\" style=\"color:#fff;\"> </i> <a style='color:#fff !important' href=\"~\..\Admin.php\">Admin </a>";
|
|
- }
|
|
- ?>
|
|
-
|
|
- <i class="fa fa-user" style="color:#fff;"> </i>
|
|
- <a href="#" style='color:#fff !important' onclick="updatePass(<?php echo $_SESSION['user_id']; ?>)">Update password</a>
|
|
- <i class="fa fa-lock" style="color:#fff;"> </i> <a style='color:#fff !important' href="~\..\logout.php">Logout </a>
|
|
-
|
|
- <?php
|
|
+ @media (min-width: 768px) {
|
|
+ .bd-placeholder-img-lg {
|
|
+ font-size: 3.5rem;
|
|
}
|
|
- ?>
|
|
- </form>
|
|
- </div>
|
|
- </nav>
|
|
-
|
|
- <style>
|
|
- .nav-item {
|
|
- border-color: #00ff66;
|
|
- }
|
|
-
|
|
- .nav-tabs {
|
|
- border-color: #00ff66;
|
|
- }
|
|
-
|
|
- .btn-default {
|
|
- border: 2px solid #00ff66;
|
|
- width: 100%;
|
|
- text-align: left;
|
|
- margin: 3px auto;
|
|
- font-weight: bold;
|
|
- font-size: 13pt;
|
|
- }
|
|
-
|
|
- .table-bordered {
|
|
- padding: 5px !important;
|
|
- }
|
|
-
|
|
- .alert {
|
|
- font-weight: bold;
|
|
- }
|
|
-
|
|
- h1,
|
|
- h2,
|
|
- h3,
|
|
- h4 {
|
|
- color: #03407B;
|
|
- }
|
|
-
|
|
- a {
|
|
- color: #03407B;
|
|
- }
|
|
-
|
|
- .break-word {
|
|
- word-wrap: break-word;
|
|
- white-space: -moz-pre-wrap !important;
|
|
- /* Mozilla, since 1999 */
|
|
- white-space: -pre-wrap;
|
|
- /* Opera 4-6 */
|
|
- white-space: -o-pre-wrap;
|
|
- /* Opera 7 */
|
|
- white-space: pre-wrap;
|
|
- /* css-3 */
|
|
- word-wrap: break-word;
|
|
- /* Internet Explorer 5.5+ */
|
|
- white-space: -webkit-pre-wrap;
|
|
- /* Newer versions of Chrome/Safari*/
|
|
- word-break: break-all;
|
|
- white-space: normal;
|
|
- }
|
|
-
|
|
- .ui-widget-content.ui-dialog {
|
|
- border: 2px solid #03488B;
|
|
-
|
|
- }
|
|
-
|
|
- .ui-dialog>.ui-widget-header {
|
|
- background: #03488B;
|
|
- color: white
|
|
- }
|
|
-
|
|
- .ui-button {
|
|
- background: #03488B;
|
|
- color: white
|
|
- }
|
|
- </style>
|
|
-
|
|
+ }
|
|
+ </style>
|
|
<script>
|
|
function updatePass(id) {
|
|
|
|
@@ -168,4 +66,73 @@ if (mysqli_connect_errno()) {
|
|
}
|
|
window.location.href = "\Script.php\?action=statuschange&uid=" + id + "&status=" + status;
|
|
}
|
|
- </script>
|
|
\ No newline at end of file
|
|
+ </script>
|
|
+</head>
|
|
+
|
|
+<body>
|
|
+
|
|
+
|
|
+<nav class="navbar navbar-expand-md navbar-dark bg-primary sticky-top">
|
|
+ <div class="container-fluid">
|
|
+ <a class="navbar-brand" href="~\..\index.php"> <img src="logo.png" width="30" height="30"> LRR </a>
|
|
+
|
|
+ <?php
|
|
+ if (isset($_SESSION["user_fullname"]))
|
|
+ {
|
|
+ ?>
|
|
+ <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive">
|
|
+ <span class="navbar-toggler-icon"></span>
|
|
+ </button>
|
|
+
|
|
+ <?php
|
|
+ }
|
|
+ ?>
|
|
+
|
|
+ <div class="collapse navbar-collapse" id="navbarResponsive">
|
|
+
|
|
+ <?php
|
|
+ if (isset($_SESSION["user_fullname"])) {
|
|
+ echo "<ul class=\"navbar-nav mr-auto\">";
|
|
+ echo "<li class=\"nav-item active\">";
|
|
+ echo "<a class='nav-link' href='~\..\Courses.php'><i class='fa fa-book'></i> Courses</a>";
|
|
+ echo "</li></ul>";
|
|
+ ?>
|
|
+
|
|
+ <ul class="nav navbar-nav navbar-right">
|
|
+ <li class="nav-item">
|
|
+ <a class="nav-link text-light" href="#">Welcome <b> <?php echo $_SESSION['user_fullname']; ?> </b>
|
|
+
|
|
+ <?php
|
|
+ $c_date = date("Y-m-d H:i");
|
|
+ if (isset($_SESSION['user_student_id']))
|
|
+ echo "(" . $_SESSION['user_type'] . " - " . $_SESSION['user_student_id'] . ") ";
|
|
+ else
|
|
+ echo "(" . $_SESSION['user_type'] . ") ";
|
|
+ ?>
|
|
+ </a>
|
|
+ </li>
|
|
+ <li class="nav-item dropdown">
|
|
+ <a class="nav-link dropdown-toggle text-light" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> Menu </a>
|
|
+ <div class="dropdown-menu" aria-labelledby="navbarDropdown">
|
|
+ <a href="#" class="dropdown-item" onclick="updatePass(<?php echo $_SESSION['user_id']; ?>)"><i class="fa fa-user ">Update passwor</i></a>
|
|
+
|
|
+ <?php
|
|
+ if ($_SESSION['user_type'] == "Lecturer") {
|
|
+ echo "<a class=\"dropdown-item\" href=\"~\..\Admin.php\"><i class=\"fa fa-cog\" >Admin</i> </a>";
|
|
+ }
|
|
+ ?>
|
|
+ </div>
|
|
+ </li>
|
|
+ <li class="nav-item">
|
|
+ <a class="nav-link text-light" href="~\..\logout.php"><i class="fa fa-lock" > Logout</i> </a>
|
|
+ </li>
|
|
+ </ul>
|
|
+
|
|
+ <?php
|
|
+ }
|
|
+ ?>
|
|
+
|
|
+ </div>
|
|
+
|
|
+ </div>
|
|
+</nav>
|
|
\ No newline at end of file
|