blob: c742688bbc6b003a1c2ca9c6656976619316a380 (
plain)
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
|
<!DOCTYPE html>
<html lang='en'>
<head>{$myHeaders}</head>
{if $config->_thisScript == "/"}
<body onload='getElement("searchForm").searchString.focus();'>
{else}
<body>
{/if}
<div id='header'>
<div id='headerLeft'>
<a href='{$config->_rootUri}/' style='color: #ffffff;'>Nutri<span style="color: #b5e7bd;">DB</span></a>
<span style="font-size: 75%;">... an online food and recipe nutrition calculator</span>
</div>
{if isset($isLoggedIn)}
<div id='headerRight'>
Hi {$smarty.session.user.username|escape:"html"}.<br />
[<a href='logout'>Logout</a>]
</div>
{else}
<div id='headerRight'>
<form action='login' method='post' id='loginForm' onsubmit='return validateLoginFields();'>
<div id='loginLeft'>
Login <input type='text' name='username' id='username' size='15' maxlength='25' /><br />
Password <input type='password' name='password' id='password' size='15' maxlength='25' />
</div>
<div id='loginRight'>
<input type='submit' name='doLogin' value='Login' style='margin-bottom: 1ex;' /><br />
<a href='register'>Register</a>.
</div>
</form>
</div>
{/if}
<div id='headerLinkBar'>
<div id='headerLinks'>
<a href='{$config->_rootUri}' title='Home/Search Page'>Search</a> |
<a href='about' title='About nutridb.org'>About</a> |
<a href='guide' title='A brief guide'>Guide</a> |
<a href='faq' title='FAQ'>FAQ</a> |
<a href='download' title='Download'>Download</a> |
<a href='contact' title='Contact'>Contact</a>
</div>
<div id='systemMsgs'>{$systemMsg}</div>
</div>
</div>
|