bzr branch
http://gegoxaren.bato24.eu/bzr/lenasys/trunk
|
52.1.1
by b11johgu
Added controllers for examplepage, templatelayout. |
1 |
<!-- header.php -->
|
2 |
<div id="header"> |
|
3 |
<span class="title">Läran om Gson - D1POPCRN (7.5hp)</span> |
|
4 |
<a href="#" class="logo" title="Back to startpage">haha poo xD!</a> |
|
5 |
<span class="outerBorder"></span> |
|
6 |
||
7 |
<?php
|
|
8 |
//$userName
|
|
9 |
//$userType
|
|
10 |
if($userName==''){ |
|
11 |
||
12 |
echo '<span class="userConfig notLoggedIn" id="loginLink" > |
|
13 |
<p class="userLink" title="Click to login">1</p>
|
|
14 |
<span class="userInformation">Login</span>
|
|
15 |
</span>'; |
|
16 |
}
|
|
17 |
else if($userName!=''){ |
|
18 |
||
19 |
echo '<span class="userConfig loggedIn" id="popoutLink"> |
|
20 |
<p class="userLink" title="Configuration">#</p>
|
|
21 |
<span class="userInformation">'.$userName.'</span> |
|
22 |
</span>'; |
|
23 |
}
|
|
24 |
?>
|
|
25 |
</div>
|
|
26 |
||
27 |
<div class="invisHeader"> |
|
28 |
<div id="popoutMenu"> |
|
29 |
<ul><!--[if IE]>Using IE! You piece of shit!<![endif]--> |
|
30 |
<a href="#"><li>Settings</li></a> |
|
31 |
<a href="javascript:expandCourses();"><li class="expander">Courses</li></a> |
|
32 |
<ul id="expandedCourses"> |
|
33 |
<li class="expanded">JavaScript - DA113G</li> |
|
34 |
<li class="expanded">AJAX API - DA235H</li> |
|
35 |
<li class="expanded">SQL Database - CP666A</li> |
|
36 |
</ul> |
|
37 |
<a href="#"><li>Add User</li></a> |
|
38 |
<li name="changePwd" title="Click to change password">Change Password</li> |
|
39 |
<a href="<?php echo base_url(); ?>logout"><li>Logout</li></a> |
|
40 |
</ul> |
|
41 |
</div> |
|
42 |
</div>
|
|
43 |
||
44 |
<div id="passwordChanger"> |
|
45 |
<p class="passwordHeader">Change password</p><p class="passwordHeaderBorder"></p> |
|
46 |
<form id="changePassword" onsubmit="return confirm('<?php echo base_url(); ?>'); return false;"> |
|
47 |
<p>Current password: |
|
48 |
<span class="errorMessage" name="currentPwd" title="Enter your current password.">#</span> |
|
49 |
<input type="password" id="currentPwd"/> |
|
50 |
</p> |
|
51 |
<p>New password: |
|
52 |
<span class="errorMessage" name="newPwd" title="Password can only use: a-z A-Z 0-9 _ - and must be of minimum 6 characters.">#</span> |
|
53 |
<input type="password" id="newPwd" onkeyup="validNewPwd(), validRepeatedPwd();"/> |
|
54 |
</p> |
|
55 |
<p>Repeat password: |
|
56 |
<span class="errorMessage" name="repeatPwd" title="Passwords don't match!">#</span> |
|
57 |
<input type="password" id="repeatPwd" onkeyup="validRepeatedPwd();"/> |
|
58 |
</p> |
|
59 |
<p>Password hint: |
|
60 |
<span class="errorMessage" name="hintPwd" title="This hint should be cool!">#</span> |
|
61 |
<input type="text" id="hintPwd"/> |
|
62 |
</p> |
|
63 |
<input type="button" class="button" value="Cancel" onclick="cancelPasswordChange();"/> |
|
64 |
<input type="button" class="button" value="Ok" onclick="confirm('<?php echo base_url(); ?>');"/> |
|
65 |
</form> |
|
66 |
</div> |
|
67 |
<div id="formContainer" hidden="hidden"> |
|
68 |
<h2 class="loginTitle">Login</h2> |
|
69 |
<?php echo form_open('login/validate'); ?> |
|
70 |
<div class="inputarea"> |
|
71 |
<input class="text" type="text" size="20" id="username" name="username" placeholder="username"/><br> |
|
72 |
<input class="text" type="password" size="20" id="password" name="password" placeholder="password"/><br> |
|
73 |
</div> |
|
74 |
<div> |
|
75 |
<input class="hint" type="button"/> |
|
76 |
<input class="submit" type="submit" value="Login"/> |
|
77 |
</div> |
|
78 |
</form> |
|
79 |
</div> |
|
80 |
|
|
81 |