aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/footer.php5
-rw-r--r--templates/header.php10
-rw-r--r--templates/panel.php28
3 files changed, 43 insertions, 0 deletions
diff --git a/templates/footer.php b/templates/footer.php
new file mode 100644
index 0000000..38ed8a6
--- /dev/null
+++ b/templates/footer.php
@@ -0,0 +1,5 @@
+<hr>
+<p><a href='index.php'>index</a></p>
+<p><a href='license/agpl-3.0-standalone.html'>AGPL 3.0</a>; Dobromir Petrov</p>
+</body>
+</html>
diff --git a/templates/header.php b/templates/header.php
new file mode 100644
index 0000000..3a228e1
--- /dev/null
+++ b/templates/header.php
@@ -0,0 +1,10 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+
+<html lang="en">
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <title>localhost: ~red</title>
+ <link rel="stylesheet" href="style.css">
+</head>
+
+<body>
diff --git a/templates/panel.php b/templates/panel.php
new file mode 100644
index 0000000..b670442
--- /dev/null
+++ b/templates/panel.php
@@ -0,0 +1,28 @@
+<div id='login_box'>
+<?php
+session_start();
+
+if (isset($_SESSION['user_id']) && $_SESSION['user_id'] != "") {
+ echo "Welcome, $_SESSION[user_name] <a href='user/logout.php'>logout</a>";
+ echo "<p>Create | View new issues | View active issues</p>";
+} else {
+?>
+<form action="user/login.php" method="post">
+ <input name="username" type="text" >
+ <input name="password" type="password" >
+ <input type="submit" value="login" >
+</form>
+<?php
+}
+?>
+</div>
+
+<form action="index.php" method="get">
+ <input name="term" type="text" >
+ <input type="submit" value="search" >
+</form>
+
+<p>_GET: <?php print_r($_GET); ?></p>
+<p>_SESSION: <?php print_r($_SESSION); ?></p>
+<hr>
+