-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathQuizSignUp.aspx
168 lines (137 loc) · 8.52 KB
/
QuizSignUp.aspx
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="QuizSignUp.aspx.vb" Inherits="QuizSignUp" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script type="text/javascript" lang="javascript">
function clearTextBox() {
document.getElementByID('txtboxFullName').value = "";
document.getElementByID('txtboxEmail').value = "";
document.getElementByID('txtboxAccessCode').value = "";
document.getElementByID('txtboxDepartmentName').value = "";
document.getElementByID('txtboxPhoneNumber').value = "";
document.getElementByID('txtboxSemesterNumber').value = "";
document.getElementByID('txtBoxGradeScale').value = "";
}
</script>
<style>
*{
margin: 0;
padding:0;
box-sizing: border-box;
}
body {
text-align: center;
background-image: url("back.jpg");
}
form {
display: inline-block;
background-color: azure;
border-radius: 10px;
margin-top: 10px;
background: rgba(240,255,255,0.9);
}
div.transbox {
margin: 15px;
}
.gray-btn {
padding: 10px;
background-color: white;
color: black;
text-align:center;
font-size: medium;
border: 2px solid #e7e7e7;
text-align: center;
display: inline-block;
}
.gray-btn:hover { background-color: darkturquoise; }
</style>
</head>
<body>
<form id="form1" runat="server" style="align-content:center;font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif" >
<div class="transbox">
<h1>Create Account</h1>
<br /> <br />
<span> Full Name
</span>
<asp:TextBox ID="txtboxFullName" runat="server" style="" Width="230px"></asp:TextBox>
<asp:RequiredFieldValidator ID="rqfFullName" runat="server" SetFocusOnError="true" Style=" color:red; width: 16px;" ErrorMessage="Full Name is
mandatory"
ControlToValidate="txtboxFullName">*</asp:RequiredFieldValidator>
<!-- Validator for Full Name -->
<asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" Style=" color:red;"
ControlToValidate="txtboxFullName" ErrorMessage="Please enter a valid name."
ValidationExpression="^([A-z][A-Za-z]*\s+[A-Za-z]*)|([A-z][A-Za-z]*)$">!</asp:RegularExpressionValidator>
<br /> <br />
<span>Address</span>
<asp:TextBox ID="txtboxAddress" runat="server" style="" Width="230px"></asp:TextBox>
<asp:RequiredFieldValidator ID="rqfAddress" runat="server" SetFocusOnError="true" Style=" position: absolute;color:red;" ErrorMessage="Address is
mandatory" ControlToValidate="txtboxAddress">*</asp:RequiredFieldValidator>
<br /> <br />
<span>Phone Number</span>
<asp:TextBox ID="txtboxPhoneNumber" runat="server" TextMode="Phone" style="" Width="232px"></asp:TextBox>
<asp:RequiredFieldValidator ID="rqfPhoneNumber" SetFocusOnError="true" runat="server" Style=" position: absolute;color:red; width: 22px;" ErrorMessage="Phone Number is
mandatory"
ControlToValidate="txtboxPhoneNumber">*</asp:RequiredFieldValidator>
<!-- Validator for Phone Number -->
<asp:RegularExpressionValidator ID="RegularExpressionValidator2"
runat="server" ErrorMessage="Please enter a valid Phone Number" SetFocusOnError="true" ControlToValidate="txtboxPhoneNumber" ValidationExpression= "^([0-9\(\)\/\+ \-]*)$">!</asp:RegularExpressionValidator>
<br /> <br />
<span >Email Address</span>
<asp:TextBox ID="txtboxEmail" runat="server" TextMode="Email" style="" Width="230px"></asp:TextBox>
<asp:RequiredFieldValidator ID="rqfEmail" SetFocusOnError="true" runat="server" Style=" position: absolute;color:red; width: 12px;" ErrorMessage="Email is
mandatory"
ControlToValidate="txtboxEmail">*</asp:RequiredFieldValidator>
<!--Validator for Email -->
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" SetFocusOnError="true" runat="server" Style=" position: absolute; height: 22px; width: 177px"
ErrorMessage="Please enter a valid Email." ControlToValidate="txtboxEmail"
ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">!</asp:RegularExpressionValidator>
<br /> <br />
<span >Password</span>
<asp:TextBox ID="txtboxPassword1" runat="server" TextMode="Password" style="" Width="230px" MinLength="8" MaxLength="100"></asp:TextBox>
<asp:RequiredFieldValidator ID="rqfPassword" runat="server" SetFocusOnError="true" Style=" position: absolute;color:red; " ErrorMessage="Password is mandatory"
ControlToValidate="txtboxPassword1">*</asp:RequiredFieldValidator>
<br /> <br />
<span>Confirm Password
</span>
<asp:TextBox ID="txtboxPassword2" runat="server" TextMode="Password" style="" Width="230px" MinLength="8" MaxLength="100" ></asp:TextBox>
<asp:RequiredFieldValidator ID="rqfConfirmPassword" runat="server" Style=" position: absolute;color:red; width: 14px;" ErrorMessage="Please confirm your password."
ControlToValidate="txtboxPassword2" >*</asp:RequiredFieldValidator>
<br \ />
<asp:CompareValidator ID="cmpVPassword" runat="server" SetFocusOnError="true" Style="position: absolute;color:red" ErrorMessage="Passwords don't match."
ControlToValidate="txtboxPassword2" ControlToCompare="txtboxPassword1" Display="Dynamic"></asp:CompareValidator>
<br /> <br />
<span>Confirm Role:</span>
       
<asp:RadioButton ID="radiobtnAdmin" Checked="true" AutoPostBack="true" Text="Admin" GroupName="Role" runat="server" />
     
<asp:RadioButton ID="radiobtnInstructor" AutoPostBack="true" Text="Examiner" GroupName="Role" runat="server" />
     
<asp:RadioButton ID="radiobtnStudent" AutoPostBack="true" Text="Student" GroupName="Role" runat="server" />
<div id="addElements" runat="server"></div>
<br id="space11" runat="server"/>
<span id="AccessCodeTitle" Visible= "true" runat="server">Access Code:</span>
<asp:TextBox ID="txtboxAccessCode" runat="server" Visible="true" TextMode="Password" style="" Width="230px"></asp:TextBox>
<br id="space21" Visible= "false" runat="server"/>
<span id="departmentNameTitle" Visible= "false" runat="server">Department Name:</span>
<asp:TextBox ID="txtboxDepartmentName" Visible= "false" runat="server" TextMode="SingleLine" style="" Width="230px"></asp:TextBox>
<br id="space31" Visible= "false" runat="server"/>
<span ID="semesterNumberTitle" Visible= "false" runat="server">Semester Number:</span>
<asp:TextBox ID="txtboxSemesterNumber" Visible= "false" runat="server" TextMode="Number" style="" Width="230px"></asp:TextBox>
<br id="space41" Visible= "false" runat="server"/>
<span Id="gradeScaleTitle" Visible= "false" runat="server">Enter Grade Scale</span>
<asp:TextBox ID="txtBoxGradeScale" Visible= "false" runat="server" TextMode="SingleLine" style="" Width="230px"></asp:TextBox>
<br /> <br />
<asp:Button ID="btnSignUp" runat="server" CssClass="gray-btn" Text="Create Account"/>
   
<asp:Button ID="btnClear" runat="server" AutoPostBack="false" OnClientClick="clearTextBox()" CssClass="gray-btn" Text="Clear" CausesValidation="False"/>
<br /><br />
<asp:Label ID="showErrorMessages" runat="server"></asp:Label>
<!-- Validation Summary -->
<asp:ValidationSummary ID="ValidationSummary1" runat="server" Style="color:red;text-align:left;" />
<br />
Already Have Account <a href="Default.aspx"> Sign In</a>
</div>
</form>
</body>
</html>