aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/index.php
blob: fbe4d8d4392b5996111f5923cdbe344fb9feddc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
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';
}