aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/index.php
diff options
context:
space:
mode:
authorHorus32014-09-23 20:16:17 +0200
committerHorus32014-09-23 20:16:17 +0200
commit790524e3dee3ddcf5a8250adc8b38853d0014c9f (patch)
tree2965207a742727b3a10eb0b32dbca5c61b9ef372 /bootstrap/index.php
parent3c94eb3f608f9bf0dc8d19583abe273b3a67e5ff (diff)
downloadjungegemeinde-790524e3dee3ddcf5a8250adc8b38853d0014c9f.tar.gz
rebuild with bootstrap
Diffstat (limited to 'bootstrap/index.php')
-rw-r--r--bootstrap/index.php72
1 files changed, 72 insertions, 0 deletions
diff --git a/bootstrap/index.php b/bootstrap/index.php
new file mode 100644
index 0000000..fbe4d8d
--- /dev/null
+++ b/bootstrap/index.php
@@ -0,0 +1,72 @@
+<?php
+
+require_once( dirname(__FILE__) . '/bootstrap.php');
+ob_start();
+
+$db = new db();
+$user = new jg();
+?>
+<!doctype html>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>Junge Gemeinde Adlershof</title>
+ <link rel='shortcut icon' href='/favicon.ico' type='image/x-icon'>
+ <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <noscript><style>.navbar{margin-bottom:0;}</style></noscript>
+</head>
+<?php
+require_once 'static/header.php';
+?>
+<div class="container">
+ <div class="text-center">
+ <div class="row">
+<?php
+if ( ! $user->isLoggedIn() ){
+?>
+<form class="form-horizontal">
+<fieldset>
+
+<!-- Form Name -->
+<legend><h1>Junge Gemeinde Adlershof</h1></legend>
+
+<!-- Text input-->
+<div class="form-group">
+ <label class="col-md-4 control-label" for="name">Username:</label>
+ <div class="col-md-5">
+ <input id="name" name="name" placeholder="Put your username here." class="form-control input-md" required="" type="text">
+ <span class="help-block">Required for login.</span>
+ </div>
+</div>
+
+<!-- Password input-->
+<div class="form-group">
+ <label class="col-md-4 control-label" for="password">Password:</label>
+ <div class="col-md-5">
+ <input id="password" name="password" placeholder="Put your password here." class="form-control input-md" required="" type="password">
+ <span class="help-block">Required for login.</span>
+ </div>
+</div>
+
+<!-- Button -->
+<div class="form-group">
+ <label class="col-md-4 control-label" for="submit"></label>
+ <div class="col-md-4">
+ <button id="submit" name="submit" class="btn btn-info">Log In</button>
+ </div>
+</div>
+
+</fieldset>
+</form>
+<?php
+} else {
+?>
+ <h1>Junge Gemeinde Adlershof</h1>
+ </div>
+ <div class="row">
+ <p>Welcome!</p>
+ </div>
+<?php
+require_once 'static/footer.php';
+}