-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrdLogon.jsp
More file actions
152 lines (137 loc) · 3.2 KB
/
rdLogon.jsp
File metadata and controls
152 lines (137 loc) · 3.2 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
147
148
149
150
151
152
<html>
<head>
<META name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Logon</title>
<style type="text/css">
BODY
{
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
margin:50px 0px; padding:0px;
background-color: #F1F6D7;
}
TABLE
{
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
}
#rdUserName, #rdPassword
{
width: 150px;
}
#mainTable
{
margin: 0px;
padding: 0px;
width: 100%;
height: 100%;
}
#mainCell
{
text-align: center;
}
#logonPanel
{
width: 300px;
margin: auto;
background-color: #FBFDF1;
border: solid #99C91E 1px;
/* Rounding */
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
}
#logonPanel table
{
margin: 0px;
padding: 0px;
width: 100%;
}
#logonHeaderCell
{
margin: 0px;
padding: 6px;
background-color: #99C91E;
}
.LogonHeader
{
font-size: 150%;
font-weight: bold;
color: #FFFFFF;
}
#formCell
{
padding: 20px 20px 5px 20px;
}
.LabelCell
{
text-align: right;
}
#errorCell
{
text-align: center;
padding-top: 5px;
color: #790619;
}
</style>
</head>
<%
String returnUrl = request.getQueryString();
if ((returnUrl == null) || (returnUrl.trim().length() == 0)) {
session.setAttribute("rdLogonReturnUrl",(Object)"rdPage.aspx");
}
else {
session.setAttribute("rdLogonReturnUrl",(Object)returnUrl);
}
%>
<body onkeypress="if (event.keyCode==13){frmLogon.submit()}" onload="document.getElementById('rdUsername').focus()" >
<table id="mainTable" cellspacing="0" >
<tr>
<td id="mainCell" >
<div id="logonPanel" >
<table cellspacing="0" >
<tr>
<td id="logonHeaderCell" ><span class="LogonHeader">Logon</span></td>
</tr>
<tr>
<td id="formCell">
<form id="frmLogon" action='<%= (String)session.getAttribute("rdLogonReturnUrl") %>' method="post">
<table>
<tr>
<td class="LabelCell" >Username:</td>
<td>
<input id="rdUsername" type="text" name="rdUsername"/>
<input id="rdFormLogon" type="hidden" name="rdFormLogon" value="True"/>
</td>
</tr>
<tr>
<td class="LabelCell" >Password:</td>
<td><input id="rdPassword" type="password" name="rdPassword"/></td>
</tr>
<tr>
<td></td>
<td><input id="Submit1" type="submit" value="Logon" name="Submit1"/>
</td>
</tr>
<tr>
<td id="errorCell" colSpan="2" >
<% String sMessage = (String)session.getAttribute("rdLogonFailMessage");
if (sMessage == null) {
sMessage = "";
}
out.print(sMessage);
%>
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</body>
</html>