/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 index.php

  • Committer: Daniel Johansson
  • Date: 2013-04-13 19:42:41 UTC
  • Revision ID: maila@danieljohansson.nu-20130413194241-7f2xjsttrcvdu2w0
Derping around

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html>
1
2
<html>
2
3
<?PHP
3
4
        session_start();
21
22
    You should have received a copy of the GNU Affero General Public License
22
23
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
23
24
-->
24
 
        <header>
 
25
        <head>
25
26
                <title>Lunchdating</title>
26
27
                <link rel="stylesheet" type="text/css" href="css/main.css"/>
27
28
                <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
28
 
        </header>
 
29
        </head>
29
30
        <?PHP
30
31
        if(isset($_SESSION ['userName'])){
31
32
        $username = $_SESSION ['userName'];
40
41
        <body id="wrapper">
41
42
                <div id="profile">
42
43
                        <div id="profileheader">
43
 
                        <div id="logo">
 
44
                        <div class="logo">
44
45
                                <img src="img/logo.png"/>
45
46
                        </div>
46
 
                                <p id="profilename"><?php echo $firstName . " " . $surName;?></p>
 
47
                                <form action="./logout.php" method="POST">
 
48
                                        <table id="logout">
 
49
                                                <tr>
 
50
                                                        <td><input id="inputbutton1" type="Submit" value="Logga ut"/></td>
 
51
                                                </tr>
 
52
                                        </table>
 
53
                                </form>
47
54
                        </div>
48
55
                        <div id="profileimg">
49
56
                                <img src="img/profilemockup.jpg"/>
50
 
                                <p id="smallheader">Personer jag vill träffa:</p>
51
 
                                <p id="profilelink">Herp Derp</p>
52
 
                                <p id="profilelink">Jane Doe</p>
53
 
                                <p id="smallheader">Personer som vill träffa mig:</p>
54
 
                                <p id="profilelink">Jane Doe</p>
 
57
                                <p class="profilename"><?php echo $firstName . " " . $surName;?></p>
 
58
                                <p class="smallheader">Personer jag vill träffa:</p>
 
59
                                <p class="profilelink">Herp Derp</p>
 
60
                                <p class="profilelink">Jane Doe</p>
 
61
                                <p class="smallheader">Personer som vill träffa mig:</p>
 
62
                                <p class="profilelink">Jane Doe</p>
55
63
                        </div>
56
64
                        <div id="wallflow">
57
65
                        </div>
63
71
        <body id="wrapper">
64
72
                <div id="profile">
65
73
                        <div id="profileheader">
66
 
                                <div id="logo">
 
74
                                <div class="logo">
67
75
                                        <img src="img/logo.png"/>
68
76
                                </div>
69
77
                                <form action="./login.php" method="POST">
70
78
                                        <table id="login">
71
79
                                                <tr>
72
 
                                                        <td><label for="Username">Användarnamn:</label></td>
73
 
                                                        <td><input id="input" type="input" name="username" value="Username"/></td>
74
 
                                                </tr>
75
 
                                                <tr>
76
 
                                                        <td><label for="Password">Lösenord:</label></td>
77
 
                                                        <td><input id="input" type="password" name="password" value="Password"/></td>
78
 
                                                </tr>
79
 
                                                <tr>
80
 
                                                        <td></td>
81
 
                                                        <td><input id="inputbutton1" type="Submit" value="Logga in" action="./login.php"/><input id="inputbutton2" type="Submit" value="Registera mig" action="./adduser.php"/></td>
 
80
                                                        <td><label for="username">Användarnamn:</label></td>
 
81
                                                        <td><input id="username" class="input" type="input" name="username"/></td>
 
82
                                                </tr>
 
83
                                                <tr>
 
84
                                                        <td><label for="password">Lösenord:</label></td>
 
85
                                                        <td><input id="password" class="input" type="password" name="password"/></td>
 
86
                                                </tr>
 
87
                                                <tr>
 
88
                                                        <td><input id="inputbutton1" type="Submit" value="Logga in"/></td>
 
89
                                                        <td><a href="adduser.php">Registera dig</td>
82
90
                                                </tr>
83
91
                                        </table>
84
92
                                </form>
85
 
 
86
93
                        </div>
87
94
                        <div id="profileimg">
88
95
                        </div>