/lenasys/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/lenasys/trunk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!-- header.php -->
<div id="header">
	<span class="title">Läran om Gson - D1POPCRN (7.5hp)</span>
	<a href="#" class="logo" title="Back to startpage">haha poo xD!</a>

<?php
	//$userName
	//$userType
	if($userName==''){
	
	echo '<span class="userConfig" id="loginLink" >
	<p class="userLink" title="Click to login">1</p>
	<span class="userInformation">Login</span>
	</span>';
	}
	else if($userName!=''){
	
	echo '<span class="userConfig" id="popoutLink">
	<p class="userLink" title="Configuration">1</p>	
	<span class="userInformation">'.$userName.'</span>
	</span>';
	}
?>
</div>

<div class="invisHeader">
	<div id="popoutMenu">
		<ul><!--[if IE]>Using IE! You piece of shit!<![endif]-->
			<a href="#"><li>Settings</li></a>
			<a href="javascript:expandCourses();"><li class="expander">Courses</li></a>
			<ul id="expandedCourses"> 
				<li class="expanded">JavaScript - DA113G</li>
				<li class="expanded">AJAX API - DA235H</li>
				<li class="expanded">SQL Database - CP666A</li>
			</ul>
			<a href="#"><li>Add User</li></a>
			<li name="changePwd" title="Click to change password">Change Password</li>
			<a href="<?php echo base_url(); ?>logout"><li>Logout</li></a>
		</ul>
	</div>
</div>

	<div id="passwordChanger">
		<p class="passwordHeader">Change password</p><p class="passwordHeaderBorder"></p>
		<form id="changePassword" onsubmit="return confirm('<?php echo base_url(); ?>'); return false;">
			<p>Current password:
				<span class="errorMessage" name="currentPwd" title="Enter your current password.">#</span>
				<input type="password" id="currentPwd"/>
			</p>
			<p>New password:
				<span class="errorMessage" name="newPwd" title="Password can only use: a-z A-Z 0-9 _ - and must be of minimum 6 characters.">#</span>
				<input type="password" id="newPwd" onkeyup="validNewPwd(), validRepeatedPwd();"/>
			</p>
			<p>Repeat password:
				<span class="errorMessage" name="repeatPwd" title="Passwords don't match!">#</span>
				<input type="password" id="repeatPwd" onkeyup="validRepeatedPwd();"/>
			</p>
			<p>Password hint:
				<span class="errorMessage" name="hintPwd" title="This hint should be cool!">#</span>
				<input type="text" id="hintPwd"/>
			</p>
			<input type="button" class="button" value="Cancel" onclick="cancelPasswordChange();"/>
			<input type="button" class="button" value="Ok" onclick="confirm('<?php echo base_url(); ?>');"/>
		</form>
	</div>
		<div id="loginFormContainer" hidden="hidden">
		<h2 class="loginTitle">Login<button type="button" id="popupxButton" onClick="loginButtonHide()">x</button></h2>
		<?php echo form_open('login/validate'); ?>
		<div class="inputarea">
			<input class="text" type="text" size="20" id="username" name="username" placeholder="username"/><br>
			<input class="text" type="password" size="20" id="password" name="password" placeholder="password"/><br>
		
		

		</div>
		<div>
			<input class="hint btn" type="button" onclick="passwordHint('<?php echo base_url(); ?>');"/>
			<input class="submit btn" type="submit" value="Login"/>
			<div id='hinttext'></div>
		</div>
		</form>
	</div>