/extremedating/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/extremedating/trunk

« back to all changes in this revision

Viewing changes to wall.php

  • Committer: Gustav Hartvigsson
  • Date: 2013-04-15 17:15:56 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20130415171556-q5zcc5mdle93vm1q
code cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE html>
2
 
<?PHP
3
 
        session_start();
4
 
?>
5
 
 
6
 
<?PHP
7
 
        include 'php/db.php';
8
 
        $userinfo = $db->query("SELECT firstName from Users WHERE loginName="$username);
9
 
        $self = $userinfo->fetchAll();
10
 
        $firstName = $self [0]['firstName'];
11
 
        $userinfo = $db->query("SELECT surName from Users WHERE loginName="$username);
12
 
        $self = $userinfo->fetchAll();
13
 
        $surName = $self [0]['surName'];
14
 
?>
15
 
 
16
 
<html>
17
 
<!--
18
 
    ExtremeDating - a Hackathon 2013 project.
19
 
    Copyright (C) 2013 Gustav Hartvigsson <gustav.hartvigsson@gmail.com>
20
 
    Copyright (C) 2013 Daniel Johansson <maila@danieljohansson.nu>
21
 
 
22
 
 
23
 
    This program is free software: you can redistribute it and/or modify
24
 
    it under the terms of the GNU Affero General Public License as
25
 
    published by the Free Software Foundation, either version 3 of the
26
 
    License, or (at your option) any later version.
27
 
 
28
 
    This program is distributed in the hope that it will be useful,
29
 
    but WITHOUT ANY WARRANTY; without even the implied warranty of
30
 
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
31
 
    GNU Affero General Public License for more details.
32
 
 
33
 
    You should have received a copy of the GNU Affero General Public License
34
 
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
35
 
-->
36
 
        <header>
37
 
                <title>Lunchdating</title>
38
 
                <link rel="stylesheet" type="text/css" href="css/main.css"/>
39
 
                <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
40
 
        </header>
41
 
        <body id="wrapper">
42
 
                <div id="profile">
43
 
                        <div id="profileheader">
44
 
                        <div id="logo">
45
 
                                <img src="img/logo.png"/>
46
 
                        </div>
47
 
                                <p id="profilename"><?php echo $firstName . " " . $surName;?></p>
48
 
                        </div>
49
 
                        <div id="profileimg">
50
 
                                <img src="img/profilemockup.jpg"/>
51
 
                                <p id="smallheader">Personer jag vill träffa:</p>
52
 
                                <p id="profilelink">Herp Derp</p>
53
 
                                <p id="profilelink">Jane Doe</p>
54
 
                                <p id="smallheader">Personer som vill träffa mig:</p>
55
 
                                <p id="profilelink">Jane Doe</p>
56
 
                        </div>
57
 
                        <div id="wallflow">
58
 
                        </div>
59
 
                </div>
60
 
        </body>
61
 
</html>