login_reset.smarty
6.23 KB
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>{i18n arg_appname="$appname"}Login | #appname#{/i18n}</title>
{foreach from=$css item=item}
<link rel='stylesheet' href='{$rootUrl}{$item}' type='text/css' />
{/foreach}
<link rel='stylesheet' href='{$rootUrl}/resources/css/kt-login.css' type='text/css' />
<link rel='icon' href='{$rootUrl}/resources/favicon.ico' type='image/x-icon'>
<link rel='shortcut icon' href='{$rootUrl}/resources/favicon.ico' type='image/x-icon'>
<link rel='stylesheet' href='{$rootUrl}/resources/css/kt-ie-icons.css' type='text/css' />
<!--
<script type='text/javascript' src='{$rootUrl}/thirdpartyjs/curvycorners/rounded_corners.inc.js'> </script>
-->
{foreach from=$js item=item}
<script type='text/javascript' src='{$rootUrl}{$item}'> </script>
{/foreach}
</head>
<body>
<div id='loginbox_outer' {if ($disclaimer)} class='hasDisclaimer' {/if}>
<div id="{if $config->get("ui/poweredByDisabled") == '0'}loginbox_skin{else}loginbox{/if}" {if ($disclaimer)} class='hasDisclaimer' {/if}>
<div id='formbox'>
<form action='{$smarty.server.PHP_SELF}' method='POST' name='login'>
<input type='hidden' name='action' value='login' />
<input type='hidden' name='cookieverify' value='{$cookietest}' />
<input type='hidden' name='redirect' value='{$redirect}' />
{if $config->get('ui/mainLogo') != ''}
<img src="{$config->get("ui/mainLogo")}" alt="{$config->get("ui/mainLogoTitle")}" class='logoimage'/><br />
{else}
<img src='{$rootUrl}/resources/graphics/ktlogo-topbar-right.png' alt='{$appname}' class='logoimage' /><br />
{/if}
{if $smallVersion == 'Community Edition'}
<span class='communityLabel'><h2>{i18n}Community Edition{/i18n}</h2></span>
{/if}
<div id='messages' class='ktErrorMessage'></div>
<div id='login_form'>
{if ($errorMessage == null)}
<p class='descriptiveText'>{i18n}Please enter your details below to login.{/i18n}</p>
{else}
<div class='ktErrorMessage'><span>
{if ($errorMessage == $errorMessageConfirm)}
{$errorMessage}
{else}
{$errorMessage|sanitize}
{/if}
</span></div>
{/if}
<label for='username'>{i18n}Username{/i18n}</label>
<input type='text' id='username' name='username'/>
<label for='password'>{i18n}Password{/i18n}</label>
<input type='password' id='password' name='password'/>
<label for='language'>{i18n}Language{/i18n}</label>
<select id='language' name='language'>
{foreach from=$languages key=sLang item=sLanguageName}
<option value='{$sLang}' {if $sLang == $selected_language}SELECTED='yes'{/if}>{$sLanguageName}</option>
{/foreach}
</select>
<div class='form_actions'>
<input type='submit' value='{i18n}Login{/i18n}' />
<p class='smaller'><a href='#' onclick='showBox();'>{i18n}Forgot your password?{/i18n}</a></p>
</div>
</div>
</form>
</div>
<div id='forgot_box'>
<form name='forgot_form' action='' method='POST'>
<p class='descriptiveText'>{i18n}Enter your username and email address. A link will be mailed to you in order to verify your email address.{/i18n}</p>
<label for='reset_username'>{i18n}Username{/i18n}</label>
<input type='text' id='reset_username' name='reset_username' />
<br />
<label for='reset_email'>{i18n}Email Address{/i18n}</label>
<input type='text' id='reset_email' name='reset_email' />
<br />
<div class='form_actions'>
<input type='button' onclick='javascript: sendEmailRequest("{$sUrl}sendResetRequest");' value="{i18n}Send password link{/i18n}" />
<input type='button' onclick='javascript: hideBox();' value='{i18n}Back{/i18n}' />
</div>
</form>
<br />
<br />
<br />
</div>
<div id='reset_box'>
<form name='reset_form' action='' method='POST'>
<p class='descriptiveText'>{i18n}Please enter your username and email address.{/i18n}</p>
<label for='new_username'>{i18n}Username{/i18n}</label>
<input type='text' id='new_username' name='new_username' /><br />
<label for='new_email'>{i18n}Email Address{/i18n}</label>
<input type='text' id='new_email' name='new_email' /><br />
<label for='new_password'>{i18n}New password{/i18n}</label>
<input type='password' id='new_password' name='new_password' /><br />
<label for='new_password_repeat'>{i18n}Confirm new password{/i18n}</label>
<input type='password' id='new_password_repeat' name='new_password_repeat'><br />
<div class='form_actions'>
<input type='button' onclick='javascript: resetPassword("{$sUrl}resetPassword");' value='{i18n}Reset password{/i18n}' />
<input type='button' onclick='javascript: hideResetBox();' value='{i18n}Cancel{/i18n}' />
</div>
</form>
</div>
{if ($disclaimer)}
<div id='disclaimerbox'>
<p>{$disclaimer}</p>
</div>
{/if}
<p class='descriptiveText version'>
<br>
{i18n arg_appname="$appname"}#appname# Version{/i18n} {$versionName}<br/>
{i18n}<a href="http://www.knowledgetree.com/">Document Management Software</a>{/i18n}<br>
{i18n}© 2008-2010 <a href="http://www.knowledgetree.com/">KnowledgeTree Inc.</a>{/i18n}<br><br>
{if ($smallVersion == 'Community Edition')}
{i18n}This program is free software and published under the <a href=" http://www.gnu.org/licenses/">GNU General Public License version 3</a>{/i18n}<br>
{else}
{i18n}All rights reserved.{/i18n}<br>
{/if}
</p>
<br />
<div id='bottomspacer'></div>
<div class='floatClear'></div>
</div>
</div>
{if $reset_password}
<script type='text/javascript'>showResetBox();</script>
{else}
<script type='text/javascript'>hideResetBox(); document.getElementById('username').focus();</script>
{/if}
</body>
</html>