Added proper lock and favicon
Implemented not being able to go to ticket_submit if not unlocked. Also added favicon to display in address bar (from csg-germering.de). Deleted unnessecary files.
This commit is contained in:
BIN
img/favicon.ico
Normal file
BIN
img/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
@@ -5,6 +5,7 @@
|
|||||||
<meta name="viewport" content="width=device-width initial-scale=1.0"/>
|
<meta name="viewport" content="width=device-width initial-scale=1.0"/>
|
||||||
<title>CSG Ticketsystem</title>
|
<title>CSG Ticketsystem</title>
|
||||||
<link rel="stylesheet" href="./css/style.css"/>
|
<link rel="stylesheet" href="./css/style.css"/>
|
||||||
|
<link rel="icon" type="image/x-icon" href="./img/favicon.ico">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>Login</title>
|
<title>Login</title>
|
||||||
<link rel="stylesheet" href="../css/style.css" />
|
<link rel="stylesheet" href="../css/style.css" />
|
||||||
|
<link rel="icon" type="image/x-icon" href="/img/favicon.ico">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ if (!isset($_SESSION["loggedIn"])) {
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>Admin Dashboard</title>
|
<title>Admin Dashboard</title>
|
||||||
<link rel="stylesheet" href="../css/style.css">
|
<link rel="stylesheet" href="../css/style.css">
|
||||||
|
<link rel="icon" type="image/x-icon" href="/img/favicon.ico">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|||||||
@@ -1,10 +0,0 @@
|
|||||||
<?php
|
|
||||||
session_start();
|
|
||||||
if (!isset($_SESSION['unlocked'])) {
|
|
||||||
header("Location: ../index.html");
|
|
||||||
exit;
|
|
||||||
} else {
|
|
||||||
header("Location: ../pages/ticket_submit.html");
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
@@ -1,46 +1,55 @@
|
|||||||
<!DOCTYPE html>
|
<?php
|
||||||
<html lang="de">
|
session_start();
|
||||||
<head>
|
if (!isset($_SESSION["unlocked"])) {
|
||||||
<meta charset="UTF-8" />
|
header("Location: ../index.html");
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
exit;
|
||||||
<title>Schul-IT Ticketsystem</title>
|
}
|
||||||
<link rel="stylesheet" href="../css/style.css" />
|
?>
|
||||||
</head>
|
|
||||||
<body>
|
<!DOCTYPE html>
|
||||||
<div class="container">
|
<html lang="de">
|
||||||
<div class="header-with-image">
|
<head>
|
||||||
<h2>CSG IT Ticket System</h2>
|
<meta charset="UTF-8" />
|
||||||
<img src="../img/csg.png" width="100" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
</div>
|
<title>Schul-IT Ticketsystem</title>
|
||||||
|
<link rel="stylesheet" href="../css/style.css" />
|
||||||
<form action="../php/save_ticket.php" method="post">
|
<link rel="icon" type="image/x-icon" href="/img/favicon.ico">
|
||||||
<label for="title">Betreff</label>
|
</head>
|
||||||
<input type="text" id="title" name="title" required />
|
<body>
|
||||||
|
<div class="container">
|
||||||
<label for="description">Problem-Beschreibung</label>
|
<div class="header-with-image">
|
||||||
<textarea id="description" name="description" rows="5" required></textarea>
|
<h2>CSG IT Ticket System</h2>
|
||||||
|
<img src="../img/csg.png" width="100" />
|
||||||
<label for="room">Raum</label>
|
</div>
|
||||||
<input type="number" id="room" name="room" required />
|
|
||||||
|
<form action="../php/save_ticket.php" method="post">
|
||||||
<label for="name">Name, Vorname</label>
|
<label for="title">Betreff</label>
|
||||||
<input type="text" id="name" name="name" required>
|
<input type="text" id="title" name="title" required />
|
||||||
|
|
||||||
<label for="category">Kategorie</label>
|
<label for="description">Problem-Beschreibung</label>
|
||||||
<select id="category" name="category">
|
<textarea id="description" name="description" rows="5" required></textarea>
|
||||||
<option value="Whiteboard">Whiteboard</option>
|
|
||||||
<option value="Internet">Internet</option>
|
<label for="room">Raum</label>
|
||||||
<option value="Schülerportal">Schülerportal</option>
|
<input type="number" id="room" name="room" required />
|
||||||
<option value="Ipad(Koffer)">Ipad(Koffer)</option>
|
|
||||||
<option value="Apple TV">Apple TV</option>
|
<label for="name">Name, Vorname</label>
|
||||||
<option value="DocuCam">Docu Kamera</option>
|
<input type="text" id="name" name="name" required>
|
||||||
<option value="Sonstiges">Sonstiges</option>
|
|
||||||
</select>
|
<label for="category">Kategorie</label>
|
||||||
|
<select id="category" name="category">
|
||||||
<button type="submit">Ticket absenden</button>
|
<option value="Whiteboard">Whiteboard</option>
|
||||||
<a href="./login.html" class="login-btn">Admin Login</a>
|
<option value="Internet">Internet</option>
|
||||||
|
<option value="Schülerportal">Schülerportal</option>
|
||||||
</form>
|
<option value="Ipad(Koffer)">Ipad(Koffer)</option>
|
||||||
</div>
|
<option value="Apple TV">Apple TV</option>
|
||||||
</body>
|
<option value="DocuCam">Docu Kamera</option>
|
||||||
</html>
|
<option value="Sonstiges">Sonstiges</option>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<button type="submit">Ticket absenden</button>
|
||||||
|
<a href="../pages/login.html" class="login-btn">Admin Login</a>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -11,7 +11,7 @@ if ($pass === $try) {
|
|||||||
|
|
||||||
if ($unlocked) {
|
if ($unlocked) {
|
||||||
$_SESSION['unlocked'] = true;
|
$_SESSION['unlocked'] = true;
|
||||||
header("Location: ./ticket_lock.php");
|
header("Location: ./ticket_submit.php");
|
||||||
exit;
|
exit;
|
||||||
} else {
|
} else {
|
||||||
header("Location: ../index.html?error=1");
|
header("Location: ../index.html?error=1");
|
||||||
|
|||||||
Reference in New Issue
Block a user