new
This commit is contained in:
3
server/templates/admin_menu.inc
Normal file
3
server/templates/admin_menu.inc
Normal file
@ -0,0 +1,3 @@
|
||||
<ul>
|
||||
<li><a href="/person">Person</a></li>
|
||||
</ul>
|
4
server/templates/any_menu.inc
Normal file
4
server/templates/any_menu.inc
Normal file
@ -0,0 +1,4 @@
|
||||
<ul>
|
||||
<li><a href="/change_password">Change password</a></li>
|
||||
<li><a href="/logout">Logout</a></li>
|
||||
</ul>
|
4
server/templates/footer.inc
Normal file
4
server/templates/footer.inc
Normal file
@ -0,0 +1,4 @@
|
||||
</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
42
server/templates/header.inc
Normal file
42
server/templates/header.inc
Normal file
@ -0,0 +1,42 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>YaDyn</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="head">
|
||||
</div>
|
||||
|
||||
<div id="goodmsg">
|
||||
#if $session and $session.goodmsg
|
||||
<p>
|
||||
<font color="green">$session.goodmsg</font>
|
||||
</p>
|
||||
#end if
|
||||
</div>
|
||||
|
||||
<div id="badmsg">
|
||||
#if $session and $session.badmsg
|
||||
<p>
|
||||
<font color="red">$session.badmsg</font>
|
||||
</p>
|
||||
#end if
|
||||
</div>
|
||||
|
||||
<div id="menu">
|
||||
<p>
|
||||
#if $session
|
||||
#include "templates/any_menu.inc"
|
||||
#end if
|
||||
|
||||
#if $session and $session.role == "user"
|
||||
#include "templates/user_menu.inc"
|
||||
#end if
|
||||
|
||||
#if $session and $session.role == "admin"
|
||||
#include "templates/admin_menu.inc"
|
||||
#end if
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="main">
|
||||
<p>
|
17
server/templates/login.tmpl
Normal file
17
server/templates/login.tmpl
Normal file
@ -0,0 +1,17 @@
|
||||
#include "templates/header.inc"
|
||||
|
||||
|
||||
<form method="POST">
|
||||
<table>
|
||||
<tr>
|
||||
<td>Username:</td><td><input type="text" name="username" value=""/></td>
|
||||
</tr><tr>
|
||||
<td>Password:</td><td><input type="password" name="password" value=""/></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br/>
|
||||
<input type="submit" name="action" value="Login"/>
|
||||
</form>
|
||||
|
||||
|
||||
#include "templates/footer.inc"
|
1
server/templates/logout.tmpl
Normal file
1
server/templates/logout.tmpl
Normal file
@ -0,0 +1 @@
|
||||
bye
|
3
server/templates/user_menu.inc
Normal file
3
server/templates/user_menu.inc
Normal file
@ -0,0 +1,3 @@
|
||||
<ul>
|
||||
<li><a href="/personal_statistics">View your personal statistics</a></li>
|
||||
</ul>
|
Reference in New Issue
Block a user