/lenasys/trunk

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

« back to all changes in this revision

Viewing changes to codeigniter/application/views/header.php

  • Committer: Simon Bergöö
  • Date: 2013-05-15 12:41:14 UTC
  • mfrom: (66 lenasys_b)
  • mto: This revision was merged to the branch mainline in revision 67.
  • Revision ID: a11simbe@student.his.se-20130515124114-d9fctkf2rkqq6xg6
Merged from trunk, statred working on the popups model.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
<div id="header">
4
4
        <span class="title">Läran om Gson - D1POPCRN (7.5hp)</span>
5
5
        <a href="#" class="logo" title="Back to startpage">haha poo xD!</a>
6
 
        <span class="outerBorder"></span>
7
6
 
8
7
<?php
9
8
        //$userName
10
9
        //$userType
11
10
        if($userName==''){
12
11
        
13
 
        echo '<span class="userConfig notLoggedIn" id="loginLink" >
 
12
        echo '<span class="userConfig" id="loginLink" >
14
13
        <p class="userLink" title="Click to login">1</p>
15
14
        <span class="userInformation">Login</span>
16
15
        </span>';
17
16
        }
18
17
        else if($userName!=''){
19
18
        
20
 
        echo '<span class="userConfig loggedIn" id="popoutLink">
21
 
        <p class="userLink" title="Configuration">#</p> 
 
19
        echo '<span class="userConfig" id="popoutLink">
 
20
        <p class="userLink" title="Configuration">1</p> 
22
21
        <span class="userInformation">'.$userName.'</span>
23
22
        </span>';
24
23
        }
65
64
                        <input type="button" class="button" value="Ok" onclick="confirm('<?php echo base_url(); ?>');"/>
66
65
                </form>
67
66
        </div>
68
 
        <div id="formContainer" hidden="hidden">
69
 
                <h2 class="loginTitle">Login</h2>
 
67
                <div id="loginFormContainer" hidden="hidden">
 
68
                <h2 class="loginTitle">Login<button type="button" id="popupxButton" onClick="loginButtonHide()">x</button></h2>
70
69
                <?php echo form_open('login/validate'); ?>
71
70
                <div class="inputarea">
72
71
                        <input class="text" type="text" size="20" id="username" name="username" placeholder="username"/><br>
73
72
                        <input class="text" type="password" size="20" id="password" name="password" placeholder="password"/><br>
 
73
                
 
74
                
 
75
 
74
76
                </div>
75
77
                <div>
76
 
                        <input class="hint" type="button"/>
77
 
                        <input class="submit" type="submit" value="Login"/>
 
78
                        <input class="hint btn" type="button" onclick="passwordHint('<?php echo base_url(); ?>');"/>
 
79
                        <input class="submit btn" type="submit" value="Login"/>
 
80
                        <div id='hinttext'></div>
78
81
                </div>
79
82
                </form>
80
83
        </div>