| 1 |
lars |
1 |
<com:TPanel CssClass="login" DefaultButton="LoginButton">
|
|
|
2 |
<h4>Login to Site</h4>
|
|
|
3 |
<com:TLabel
|
|
|
4 |
ForControl="Username"
|
|
|
5 |
Text="User Name"
|
|
|
6 |
CssClass="label"/>
|
|
|
7 |
<com:TTextBox ID="Username"
|
|
|
8 |
AccessKey="u"
|
|
|
9 |
ValidationGroup="login"
|
|
|
10 |
CssClass="textbox"/>
|
|
|
11 |
<com:TRequiredFieldValidator
|
|
|
12 |
ControlToValidate="Username"
|
|
|
13 |
ValidationGroup="login"
|
|
|
14 |
Display="Dynamic"
|
|
|
15 |
ErrorMessage="*"/>
|
|
|
16 |
|
|
|
17 |
<com:TLabel
|
|
|
18 |
ForControl="Password"
|
|
|
19 |
Text="Password"
|
|
|
20 |
CssClass="label"/>
|
|
|
21 |
<com:TTextBox ID="Password"
|
|
|
22 |
AccessKey="p"
|
|
|
23 |
CssClass="textbox"
|
|
|
24 |
ValidationGroup="login"
|
|
|
25 |
TextMode="Password"/>
|
|
|
26 |
<com:TCustomValidator
|
|
|
27 |
ControlToValidate="Password"
|
|
|
28 |
ValidationGroup="login"
|
|
|
29 |
Text="...invalid"
|
|
|
30 |
Display="Dynamic"
|
|
|
31 |
OnServerValidate="validateUser" />
|
|
|
32 |
|
|
|
33 |
<div>
|
|
|
34 |
<com:TCheckBox ID="RememberMe" Text="Remember me next time"/>
|
|
|
35 |
</div>
|
|
|
36 |
|
|
|
37 |
<com:TImageButton ID="LoginButton"
|
|
|
38 |
OnClick="loginButtonClicked"
|
|
|
39 |
ImageUrl="<%=$this->Page->Theme->BaseUrl.'/images/button-login.gif'%>"
|
|
|
40 |
ValidationGroup="login"
|
|
|
41 |
CssClass="button"/>
|
|
|
42 |
or
|
|
|
43 |
<a href="<%=$this->Service->constructUrl('Register')%>" class="button"><img src="<%=$this->Page->Theme->BaseUrl.'/images/button-create.gif'%>" alt="Create a new account"/></a>
|
|
|
44 |
</com:TPanel>
|