| 1 |
lars |
1 |
<!doctype html public "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
|
2 |
|
|
|
3 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
|
4 |
<head>
|
|
|
5 |
<title>Prado Chat Demo Login</title>
|
|
|
6 |
<link rel="stylesheet" type="text/css" href="<%~ style.css %>" />
|
|
|
7 |
</head>
|
|
|
8 |
|
|
|
9 |
<body>
|
|
|
10 |
|
|
|
11 |
<com:TForm>
|
|
|
12 |
<h1 class="login">Prado Chat Demo Login</h1>
|
|
|
13 |
<fieldset class="login">
|
|
|
14 |
<legend>Please enter your name:</legend>
|
|
|
15 |
<div class="username">
|
|
|
16 |
<com:TLabel ForControl="username" Text="Username:" />
|
|
|
17 |
<com:TTextBox ID="username" MaxLength="20" />
|
|
|
18 |
<com:TRequiredFieldValidator
|
|
|
19 |
ControlToValidate="username"
|
|
|
20 |
Display="Dynamic"
|
|
|
21 |
ErrorMessage="Please provide a username." />
|
|
|
22 |
<com:TCustomValidator
|
|
|
23 |
ControlToValidate="username"
|
|
|
24 |
Display="Dynamic"
|
|
|
25 |
OnServerValidate="checkUsername"
|
|
|
26 |
ErrorMessage="The username is already taken." />
|
|
|
27 |
</div>
|
|
|
28 |
|
|
|
29 |
<div class="login-button">
|
|
|
30 |
<com:TButton Text="Login" OnClick="createNewUser" />
|
|
|
31 |
</div>
|
|
|
32 |
</com:TForm>
|
|
|
33 |
|
|
|
34 |
</body>
|
|
|
35 |
</html>
|