/lenasys/trunk

To get this branch, use:
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
6
<?php
7
	//$userName
8
	//$userType
9
	if($userName==''){
10
	
11
	echo '<span class="userConfig" id="loginLink" >
64.1.1 by b11johgu
ExamplesController:
12
	<p class="userLink" title="Click to login">1</p>
52.1.1 by b11johgu
Added controllers for examplepage, templatelayout.
13
	<span class="userInformation">Login</span>
14
	</span>';
15
	}
16
	else if($userName!=''){
17
	
18
	echo '<span class="userConfig" id="popoutLink">
64.1.1 by b11johgu
ExamplesController:
19
	<p class="userLink" title="Configuration">1</p>	
20
	<span class="userInformation">'.$userName.'</span>
52.1.1 by b11johgu
Added controllers for examplepage, templatelayout.
21
	</span>';
22
	}
23
?>
24
</div>
25
26
<div class="invisHeader">
27
	<div id="popoutMenu">
28
		<ul><!--[if IE]>Using IE! You piece of shit!<![endif]-->
29
			<a href="#"><li>Settings</li></a>
30
			<a href="javascript:expandCourses();"><li class="expander">Courses</li></a>
31
			<ul id="expandedCourses"> 
32
				<li class="expanded">JavaScript - DA113G</li>
33
				<li class="expanded">AJAX API - DA235H</li>
34
				<li class="expanded">SQL Database - CP666A</li>
35
			</ul>
36
			<a href="#"><li>Add User</li></a>
37
			<li name="changePwd" title="Click to change password">Change Password</li>
38
			<a href="<?php echo base_url(); ?>logout"><li>Logout</li></a>
39
		</ul>
40
	</div>
41
</div>
42
43
	<div id="passwordChanger">
44
		<p class="passwordHeader">Change password</p><p class="passwordHeaderBorder"></p>
45
		<form id="changePassword" onsubmit="return confirm('<?php echo base_url(); ?>'); return false;">
46
			<p>Current password:
47
				<span class="errorMessage" name="currentPwd" title="Enter your current password.">#</span>
48
				<input type="password" id="currentPwd"/>
49
			</p>
50
			<p>New password:
51
				<span class="errorMessage" name="newPwd" title="Password can only use: a-z A-Z 0-9 _ - and must be of minimum 6 characters.">#</span>
52
				<input type="password" id="newPwd" onkeyup="validNewPwd(), validRepeatedPwd();"/>
53
			</p>
54
			<p>Repeat password:
55
				<span class="errorMessage" name="repeatPwd" title="Passwords don't match!">#</span>
56
				<input type="password" id="repeatPwd" onkeyup="validRepeatedPwd();"/>
57
			</p>
58
			<p>Password hint:
59
				<span class="errorMessage" name="hintPwd" title="This hint should be cool!">#</span>
60
				<input type="text" id="hintPwd"/>
61
			</p>
62
			<input type="button" class="button" value="Cancel" onclick="cancelPasswordChange();"/>
63
			<input type="button" class="button" value="Ok" onclick="confirm('<?php echo base_url(); ?>');"/>
64
		</form>
65
	</div>
66
		<div id="loginFormContainer" hidden="hidden">
57.3.1 by Simon Bergöö
Merged from trunk, statred working on the popups model.
67
		<h2 class="loginTitle">Login<button type="button" id="popupxButton" onClick="loginButtonHide()">x</button></h2>
68
		<?php echo form_open('login/validate'); ?>
52.1.1 by b11johgu
Added controllers for examplepage, templatelayout.
69
		<div class="inputarea">
70
			<input class="text" type="text" size="20" id="username" name="username" placeholder="username"/><br>
71
			<input class="text" type="password" size="20" id="password" name="password" placeholder="password"/><br>
72
		
64.1.1 by b11johgu
ExamplesController:
73
		
74
75
		</div>
52.1.1 by b11johgu
Added controllers for examplepage, templatelayout.
76
		<div>
77
			<input class="hint btn" type="button" onclick="passwordHint('<?php echo base_url(); ?>');"/>
64.1.1 by b11johgu
ExamplesController:
78
			<input class="submit btn" type="submit" value="Login"/>
79
			<div id='hinttext'></div>
80
		</div>
52.1.1 by b11johgu
Added controllers for examplepage, templatelayout.
81
		</form>
82
	</div>
83
	
84