7
ExtremeDating - a Hackathon 2013 project.
8
Copyright (C) 2013 Gustav Hartvigsson <gustav.hartvigsson@gmail.com>
9
Copyright (C) 2013 Daniel Johansson <maila@danieljohansson.nu>
12
This program is free software: you can redistribute it and/or modify
13
it under the terms of the GNU Affero General Public License as
14
published by the Free Software Foundation, either version 3 of the
15
License, or (at your option) any later version.
17
This program is distributed in the hope that it will be useful,
18
but WITHOUT ANY WARRANTY; without even the implied warranty of
19
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
GNU Affero General Public License for more details.
22
You should have received a copy of the GNU Affero General Public License
23
along with this program. If not, see <http://www.gnu.org/licenses/>.
26
<title>Lunchdating</title>
27
<link rel="stylesheet" type="text/css" href="css/main.css"/>
28
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
29
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/css/bootstrap-combined.min.css" rel="stylesheet">
30
<link rel="stylesheet" type="text/css" media="screen"
31
href="http://tarruda.github.com/bootstrap-datetimepicker/assets/css/bootstrap-datetimepicker.min.css">
32
<script type="text/javascript"
33
src="http://cdnjs.cloudflare.com/ajax/libs/jquery/1.8.3/jquery.min.js">
35
<script type="text/javascript"
36
src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/js/bootstrap.min.js">
38
<script type="text/javascript"
39
src="http://tarruda.github.com/bootstrap-datetimepicker/assets/js/bootstrap-datetimepicker.min.js">
43
if(isset($_SESSION ['userName'])){
44
$username = $_SESSION ['userName'];
46
$userinfo = $db->query("SELECT firstName from Users WHERE loginName='$username'");
47
$self = $userinfo->fetchAll();
48
$firstName = $self [0]['firstName'];
49
$userinfo = $db->query("SELECT surName from Users WHERE loginName='$username'");
50
$self = $userinfo->fetchAll();
51
$surName = $self [0]['surName'];
55
<div id="profileheader">
58
<img src="img/logo.png"/>
61
<form action="./logout.php" method="POST">
64
<td><input id="inputbutton1" type="Submit" value="Logga ut"/></td>
70
<?PHP include './php/sidepanel.php'; ?>
73
<?PHP include './php/feed.php'; ?>
82
<div id="profileheader">
85
<img src="img/logo.png"/>
88
<form action="./login.php" method="POST">
91
<td><label for="username">Användarnamn:</label></td>
92
<td><input id="username" class="input" type="input" name="username"/></td>
95
<td><label for="password">Lösenord:</label></td>
96
<td><input id="password" class="input" type="password" name="password"/></td>
99
<td><input id="inputbutton1" type="Submit" value="Logga in"/></td>
100
<td><a href="adduser.php">Registera dig</td>
105
<div id="profileimg">