full coding.pdf
Post on 27-Feb-2018
225 Views
Preview:
TRANSCRIPT
-
7/25/2019 Full Coding.pdf
1/305
1. addNewCity.jsp
addNewDistrict | UniqueID
function valid()
{
if(document.newcity.city.value=="")
{
alert("Please enter city name");
document.newcity.city.focus();
document.newcity.city.select();
return false;
}
if(document.newcity.stateID.value=="")
{
alert("Please select state..");
return false;
}
if(document.newcity.districtID.value=="")
{
alert("Please selct districtID ");
return false;
}
-
7/25/2019 Full Coding.pdf
2/305
if(document.newcity.cityID.value=="")
{
alert("Please enter city name");
document.newcity.cityID.focus();
document.newcity.cityID.select();
return false;
}
return true;
}
function ajax(str,str2)
{
var de;
if(str=="la")
{
de="getstate.jsp"
}
else if(str=="dist")
{
de="getdistrict.jsp?val="+str2
}
else
{
de="getCityForAddCity.jsp?val="+str2
}
var xmlhttp;
if (window.XMLHttpRequest)
-
7/25/2019 Full Coding.pdf
3/305
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById(str).innerHTML=xmlhttp.responseText;
}
}
xmlhttp.open("GET",de,true);
xmlhttp.send();
}
-
7/25/2019 Full Coding.pdf
4/305
Add new City to Unicus database
Admin Home
-
7/25/2019 Full Coding.pdf
5/305
Select State:*
Select District:*
City Name:*
City ID:*
-
7/25/2019 Full Coding.pdf
6/305
Please Use One Higher value of first CityID :>>
Cityes will be listed here...
2. AddNewCityProcess.jsp
-
7/25/2019 Full Coding.pdf
7/305
Add New City Process | UniqueID
-
7/25/2019 Full Coding.pdf
8/305
Welcome to Add New City
Process
Add New City Following Complete.
-
7/25/2019 Full Coding.pdf
9/305
State ID
District ID
City ID
City/Techsil
click here to go
back
Add New City Faild !!!
click here to go back
-
7/25/2019 Full Coding.pdf
10/305
3.
addNewDistrict.jsp
addNewDistrict | UniqueID
-
7/25/2019 Full Coding.pdf
11/305
function valid()
{
if(document.newdistrict.district.value=="")
{
alert("Please enter district name");
document.newdistrict.district.focus();
document.newdistrict.district.select();
return false;
}
if(document.newdistrict.stateID.value=="")
{
alert("Please select state..");
return false;
}
if(document.newdistrict.districtID.value=="")
{
alert("Please enter districtID ");
document.newdistrict.districtID.focus();
document.newdistrict.districtID.select();
return false;
}
return true;
}
function ajax(str,str2)
{
var de;
if(str=="la")
-
7/25/2019 Full Coding.pdf
12/305
{
de="getstate.jsp"
}
else
{
de="getDistrictForAddDistrict.jsp?q="+str2
}
var xmlhttp;
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById(str).innerHTML=xmlhttp.responseText;
}
}
xmlhttp.open("GET",de,true);
xmlhttp.send();
}
-
7/25/2019 Full Coding.pdf
13/305
Add new District to Unicus database
-
7/25/2019 Full Coding.pdf
14/305
Admin Home
Select State:*
District Name:*
District ID:*
-
7/25/2019 Full Coding.pdf
15/305
Please Use One Higher value of first DistrictID :>>
Districts will be listed here...
-
7/25/2019 Full Coding.pdf
16/305
4.
AddNewDistrictProcess.jsp
Add New District Process | UniqueID
-
7/25/2019 Full Coding.pdf
17/305
Welcome to Add New District
Process
-
7/25/2019 Full Coding.pdf
18/305
Add New District Complete.
State ID
District ID
District Name:
click here to go
back
Add New District Faild !!!
click here to go
back
-
7/25/2019 Full Coding.pdf
19/305
5.
addNewState.jsp
-
7/25/2019 Full Coding.pdf
20/305
addNewState | UniqueID
function valid()
{
if(document.newstate.state.value=="")
{
alert("Please enter state name");
document.newstate.state.focus();
document.newstate.state.select();
return false;
}
if(document.newstate.stateID.value=="")
{
alert("Please enter stateID ");
document.newstate.stateID.focus();
document.newstate.stateID.select();
return false;
}
return true;
}
function ajax()
{
var xmlhttp;
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
-
7/25/2019 Full Coding.pdf
21/305
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById("dis").innerHTML=xmlhttp.responseText;
}
}
xmlhttp.open("GET","getStateForAddState.jsp",true);
xmlhttp.send();
}
-
7/25/2019 Full Coding.pdf
22/305
Welcome to Add New State
to Unicus Database
Admin Home
-
7/25/2019 Full Coding.pdf
23/305
State Name:*
State ID:*
Please Use One Higher value for stateID from display
StateID :>>
-
7/25/2019 Full Coding.pdf
24/305
6. AddNewStateProcess.jsp
addNewState | UniqueID
function valid()
{
if(document.newstate.state.value=="")
{
alert("Please enter state name");
document.newstate.state.focus();
-
7/25/2019 Full Coding.pdf
25/305
document.newstate.state.select();
return false;
}
if(document.newstate.stateID.value=="")
{
alert("Please enter stateID ");
document.newstate.stateID.focus();
document.newstate.stateID.select();
return false;
}
return true;
}
function ajax()
{
var xmlhttp;
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById("dis").innerHTML=xmlhttp.responseText;
-
7/25/2019 Full Coding.pdf
26/305
}
}
xmlhttp.open("GET","getStateForAddState.jsp",true);
xmlhttp.send();
}
Welcome to Add New Stateto Unicus Database
-
7/25/2019 Full Coding.pdf
27/305
Admin Home
State Name:*
State ID:*
-
7/25/2019 Full Coding.pdf
28/305
Please Use One Higher value for stateID from display
StateID :>>
-
7/25/2019 Full Coding.pdf
29/305
7. AdminHome.jsp
Admin | UniqueID
function validuid()
{
if(document.form1.uid.value=="")
{
alert("Unique ID can't blank....enter value must...");
document.form1.uid.focus();
return false;
}
var pq=/^\d{18}$/
if(document.form1.uid.value.search(pq)==-1)
{
alert("Unique ID Not valid !!!! ");
document.form1.uid.focus();
return false;
}
-
7/25/2019 Full Coding.pdf
30/305
return true;
}
-
7/25/2019 Full Coding.pdf
31/305
Welcome >>
ChangePassword
Welcome to Admin Home of
Unicus
Resident Section
New Resident
-
7/25/2019 Full Coding.pdf
32/305
The name of the project is UNICUS. A
UNICUS project as a means for residents to clearly and uniquely verify their identity
anywhere in the country.
UNICUS provide UID which is a universal number.
UNICUS can be used in any system which needs to establish the identity of a resident and/or
provide secure access for the resident to services/benefits offered by the system.
Agencies and services can contact the UNICUS database from anywhere in
the country to confirm a beneficiarys identity.
Search Resident
-
7/25/2019 Full Coding.pdf
33/305
By UniqueID:
User Section
Add New Users
-
7/25/2019 Full Coding.pdf
34/305
Location Section
Add New State
Add New District
Add New City
-
7/25/2019 Full Coding.pdf
35/305
8.
ApplicantElectricitysupply.jsp
Applicant Electricity Supply
-
7/25/2019 Full Coding.pdf
36/305
Welcome >>
ChangePassword
Welcome to
Electricity Supply Application
-
7/25/2019 Full Coding.pdf
37/305
ResultSet rsDatabaseOrg = stDatabaseOrg.executeQuery("select * from electricitysupply where
status='false'");
Connection conResident=DriverManager.getConnection("jdbc:odbc:Resident");
Statement stResident = conResident.createStatement();
String UniqueID="";
%>
UniqueID
Name
Status
Payment
-
7/25/2019 Full Coding.pdf
38/305
out.println(""
+rsDatabaseOrg.getString(2)+"");
out.println(""
+rsDatabaseOrg.getString(3)+"");
out.println("Confirm");
out.println("");
}
%>
9. ApplicantGas.jsp
-
7/25/2019 Full Coding.pdf
39/305
Applicant Gas
Welcome >>
ChangePassword
-
7/25/2019 Full Coding.pdf
40/305
Welcome to Gas
Application
-
7/25/2019 Full Coding.pdf
41/305
UniqueID
Name
Status
Payment
-
7/25/2019 Full Coding.pdf
42/305
10.
ApplicantPhone.jsp
Applicant Phone
-
7/25/2019 Full Coding.pdf
43/305
Welcome >>
ChangePassword
Welcome to Phone
Application
-
7/25/2019 Full Coding.pdf
44/305
UniqueID
Name
Status
Payment
-
7/25/2019 Full Coding.pdf
45/305
ResultSet rsResident =
stResident.executeQuery("select firstname, lastname from BasicDetails where
UniqueID='"+UniqueID+"'");
rsResident.next();
Stringname=rsResident.getString(1)+" "+rsResident.getString(2);
out.println("");
out.println("" +UniqueID+"");
out.println(""
+name+"");
out.println(""
+rsDatabaseOrg.getString(2)+"");
out.println(""+rsDatabaseOrg.getString(3)+"");
out.println("Confirm");
out.println("");
}
%>
-
7/25/2019 Full Coding.pdf
46/305
11.
ApplicantVisaPassport.jsp
Applicant Visa Passport
-
7/25/2019 Full Coding.pdf
47/305
Welcome >>
ChangePassword
Welcome to Visa
Passport Application
-
7/25/2019 Full Coding.pdf
48/305
Statement stResident = conResident.createStatement();
String UniqueID="";
%>
UniqueID
Name
Status
Payment
-
7/25/2019 Full Coding.pdf
49/305
out.println(""
+rsDatabaseOrg.getString(3)+"");
out.println("Confirm");
out.println("");
}
%>
12. ApplicantWaterSupply.jsp
Applicant Water Supply
-
7/25/2019 Full Coding.pdf
50/305
.style1 {
font-size: 24px;
color: #0000FF;
}
-->
Welcome >>
ChangePassword
Welcome to
Water Supply Application
-
7/25/2019 Full Coding.pdf
51/305
UniqueID
Name
Status
-
7/25/2019 Full Coding.pdf
52/305
Payment
-
7/25/2019 Full Coding.pdf
53/305
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}
%>
13. ApplyElectricityConnection.jsp
Appy new Electricity Connection
-
7/25/2019 Full Coding.pdf
54/305
font-size: 36px;
color: #FF0000;
}
.style5 {color: #FF0000}
-->
-
7/25/2019 Full Coding.pdf
55/305
%>
Welcome >>
Welcome to Apply
Electricity Connection of Unicus
Apply to Electricity supply is successfull. !!!!!!!!!!
-
7/25/2019 Full Coding.pdf
56/305
Apply to Electricity supply faild...
14. ApplyGasConnection.jsp
Appy new Gas Connection
-
7/25/2019 Full Coding.pdf
57/305
.style1 {
font-size: 24px;
color: #0000FF;
}
.style2 {
font-size: 36px;
color: #006633;
}
.style3 {color: #006633}
.style4 {
font-size: 36px;
color: #FF0000;
}
.style5 {color: #FF0000}
-->
-
7/25/2019 Full Coding.pdf
58/305
Statement stPass = conPass.createStatement();
ResultSet rsPass = stPass.executeQuery("select UniqueID from Resident where UserName='"+user+"'");
String UniqueID="";
while(rsPass.next())
{
UniqueID=rsPass.getString(1);
}
Statement st = conDatabaseOrg.createStatement();
int success=st.executeUpdate("insert into gas values('"+UniqueID+"','false','100')");
%>
Welcome >>
Welcome to Apply Gas
Connection of Unicus
-
7/25/2019 Full Coding.pdf
59/305
Apply to Gas connection is successfull. !!!!!!!!!!
Apply to Gas connection faild...
-
7/25/2019 Full Coding.pdf
60/305
15.
ApplyPhoneConnection.jsp
Appy new Phone Connection
-
7/25/2019 Full Coding.pdf
61/305
Welcome >>
-
7/25/2019 Full Coding.pdf
62/305
Welcome to Apply
Phone Connection of Unicus
Apply to Phone connection is successfull. !!!!!!!!!!
Apply to Phone connection faild...
-
7/25/2019 Full Coding.pdf
63/305
16.
ApplyVisaPassportConnection.jsp
Appy Visa Passport Connection
-
7/25/2019 Full Coding.pdf
64/305
.style3 {color: #006633}
.style4 {
font-size: 36px;
color: #FF0000;
}
.style5 {color: #FF0000}
-->
-
7/25/2019 Full Coding.pdf
65/305
Statement st = conDatabaseOrg.createStatement();
int success=st.executeUpdate("insert into VisaPassport values('"+UniqueID+"','false','100')");
%>
Welcome >>
Welcome to Apply
Visa Passport
Apply to Visa Passport is successfull. !!!!!!!!!!
-
7/25/2019 Full Coding.pdf
66/305
{
%>
Apply to Visa Passport faild...
17. ApplyWaterConnection.jsp
Appy new Water supply Connection
-
7/25/2019 Full Coding.pdf
67/305
-
7/25/2019 Full Coding.pdf
68/305
Connection conPass=DriverManager.getConnection("jdbc:odbc:Pass");
Connection conDatabaseOrg=DriverManager.getConnection("jdbc:odbc:DatabaseOrg");
Statement stPass = conPass.createStatement();
ResultSet rsPass = stPass.executeQuery("select UniqueID from Resident where UserName='"+user+"'");
String UniqueID="";
while(rsPass.next())
{
UniqueID=rsPass.getString(1);
}
Statement st = conDatabaseOrg.createStatement();
int success=st.executeUpdate("insert into watersupply values('"+UniqueID+"','false','100')");
%>
Welcome >>
Welcome to Apply
Water Connection of Unicus
-
7/25/2019 Full Coding.pdf
69/305
Apply to water supply is successfull. !!!!!!!!!!
Apply to water supply faild...
-
7/25/2019 Full Coding.pdf
70/305
18. BasicDetails.jsp
Details Of Resident | UniqueID
-
7/25/2019 Full Coding.pdf
71/305
Resident Details as Following :-
Basic Details:
UniqueID
First Name
Last Name
Nick Name
-
7/25/2019 Full Coding.pdf
72/305
Gender
Meritial Status
Date of Birth
age
-
7/25/2019 Full Coding.pdf
73/305
%>
show Personal Details.....
show Contact Details......
19. ChangePassword.jsp
ChangePassword
function validation()
{
if(document.form1.PasswordOld.value=="")
{
alert("Old Password can't blank");
document.form1.PasswordOld.focus();
return false;
-
7/25/2019 Full Coding.pdf
74/305
}
if(document.form1.PasswordNew.value=="")
{
alert("New Password can't blank....enter value must...");
document.form1.PasswordNew.focus();
return false;
}
if(document.form1.PasswordNewR.value=="")
{
alert("Re-enter New Password can't blank....enter value must...");
document.form1.PasswordNewR.focus();
return false;
}
if(document.form1.PasswordNewR.value!=document.form1.PasswordNew.value)
{
alert("New Password and Re-enter new Password dont' match.....please enter both same");
document.form1.PasswordNewR.focus();
return false;
}
return true;
}
-
7/25/2019 Full Coding.pdf
75/305
font-size: 24px;
color: #0000FF;
}
-->
Welcome >>
ChangePassword
-
7/25/2019 Full Coding.pdf
76/305
Change Password
Enter Old Password:
Enter New Password:
-
7/25/2019 Full Coding.pdf
77/305
Re-enter New Password:
-
7/25/2019 Full Coding.pdf
78/305
{
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}
%>
20. ChangePasswordProcess.jsp
Change Password Process
-
7/25/2019 Full Coding.pdf
79/305
-
7/25/2019 Full Coding.pdf
80/305
while(rs.next())
{
String Topass=rs.getString(1);
}
%>
Your Password changed sucessfully!!!!!.
New Password is send as mail to your mail account.
Check your mail account for new password.
-
7/25/2019 Full Coding.pdf
81/305
Data Updation Faild.
You may enter worong old password
21. CheckUidAvil.jsp
-
7/25/2019 Full Coding.pdf
82/305
String uid=request.getParameter("uid");
String utype=request.getParameter("utype");
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conResident=DriverManager.getConnection("jdbc:odbc:Resident");
Connection conPass=DriverManager.getConnection("jdbc:odbc:Pass");
Statement stResident = conResident.createStatement();
ResultSet rsResident = stResident.executeQuery("select UniqueID from BasicDetails");
Statement stPass = conPass.createStatement();
ResultSet rsPass = stPass.executeQuery("select UniqueID from "+utype);
boolean aResident=false;
while(rsResident.next())
{
if(rsResident.getString(1).equals(uid))
{
aResident=true;
break;
}
}
boolean aPass=false;
while(rsPass.next())
{
if(rsPass.getString(1).equals(uid))
{
aPass=true;
-
7/25/2019 Full Coding.pdf
83/305
break;
}
}
if(aResident==true && aPass==false)
{
%>
UniqueID is Avilable.Proceed
UniqueID is already have Username or password
UniqueID not Created sorry.
22. CheckUserAvil.jsp
-
7/25/2019 Full Coding.pdf
84/305
Check User Avil. | UniqueID
-
7/25/2019 Full Coding.pdf
85/305
{
if(rs.getString(1).equals(uname))
{
avi=true;
break;
}
}
if(uname.length()
Length of user name is not valid
User Name Not avilable. try different
Good User Name is Avilable.Proceed
-
7/25/2019 Full Coding.pdf
86/305
23. ConfirmElectricitysupplyConnection.jsp
Confirm electricity supply Connection
-
7/25/2019 Full Coding.pdf
87/305
}
%>
24.
ConfirmGasConnection.jsp
Confirm Gas Connection
-
7/25/2019 Full Coding.pdf
88/305
{
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}
%>
25. ConfirmPhoneConnection.jsp
Confirm Water Supply Connection
-
7/25/2019 Full Coding.pdf
89/305
response.setHeader("Refresh", "; URL = ApplicantPhone.jsp");
}else
{
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}
%>
26.
ConfirmVisaPassport.jsp
Confirm Visa Passport Connection
-
7/25/2019 Full Coding.pdf
90/305
stDatabaseOrg.executeUpdate("UPDATE VisaPassport SET status='true' where
UniqueID='"+UniqueID+"'");
response.setHeader("Refresh", "; URL = ApplicantVisaPassport.jsp");
}else
{
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}
%>
27. ConfirmWaterSupplyConnection.jsp
Confirm Water Supply Connection
-
7/25/2019 Full Coding.pdf
91/305
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conDatabaseOrg=DriverManager.getConnection("jdbc:odbc:DatabaseOrg");
Statement stDatabaseOrg = conDatabaseOrg.createStatement();
stDatabaseOrg.executeUpdate("UPDATE watersupply SET status='true' whereUniqueID='"+UniqueID+"'");
response.setHeader("Refresh", "; URL = ApplicantWaterSupply.jsp");
}else
{
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}
%>
28. Contact US.jsp
Email Example
-
7/25/2019 Full Coding.pdf
92/305
.style2 { font-size: 36px;
color: #33FF66;
}
.style4 {color: #0000FF}
.style5 {
font-size: medium;
color: #009966;
}
.style6 {color: #FF0000}
-->
function valid()
{
if(document.form1.to.value=="")
{
alert("Email can't blank...");
document.form1.to.focus();
document.form1.to.style.backgroundColor = "#FF9966";
document.form1.to.select();
return false;
}
if(document.form1.subject.value=="")
{
alert("Subject can't blank...");
document.form1.subject.focus();
document.form1.subject.style.backgroundColor = "#FF9966";
-
7/25/2019 Full Coding.pdf
93/305
document.form1.subject.select();
return false;
}
if(document.form1.body.value=="")
{
alert("Message can't blank...");
document.form1.body.focus();
document.form1.body.style.backgroundColor = "#FF9966";
document.form1.body.select();
return false;
}
return true;
}
Welcome toUnicus
-
7/25/2019 Full Coding.pdf
94/305
If you have any suggestion, query,
questions,or if you would like to contact me for a quote, please use the form below and we will get back
to you as soon as possible.
Email:*
Subject:*
-
7/25/2019 Full Coding.pdf
95/305
Message:*
-
7/25/2019 Full Coding.pdf
96/305
29. ContactDetails.jsp
Untitled Document
function goback()
{
history.back();
}
-
7/25/2019 Full Coding.pdf
97/305
Statement st = conResident.createStatement();
String uid=(session.getAttribute("uid")).toString();
ResultSet rsContact=null ;
rsContact = st.executeQuery("select * from ContactDetails where
UniqueID='"+uid+"'");
if(rsContact.next()==false)
{
out.print("No Result Found..............Sorry !!!! ");
}
else
{
%>
Contact Details:
UniqueID
address
-
7/25/2019 Full Coding.pdf
98/305
pincode
stateID
districtID
cityID
email
mobileno
phoneno
-
7/25/2019 Full Coding.pdf
99/305
30. CutElectricitysupplyConnection.jsp
Cut Electricity supply Connection
-
7/25/2019 Full Coding.pdf
100/305
response.setHeader("Refresh", "; URL = SubscriberElectricitysupply.jsp");
}else
{
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}
%>
31. CutGasConnection.jsp
Cut Gas Connection
-
7/25/2019 Full Coding.pdf
101/305
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conDatabaseOrg=DriverManager.getConnection("jdbc:odbc:DatabaseOrg");
Statement stDatabaseOrg = conDatabaseOrg.createStatement();
stDatabaseOrg.executeUpdate("UPDATE gas SET status='false' where UniqueID='"+UniqueID+"'");
response.setHeader("Refresh", "; URL = SubscriberGas.jsp");
}else
{
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}
%>
32. CutPhoneConnection.jsp
Untitled Document
-
7/25/2019 Full Coding.pdf
102/305
if(session.getAttribute("userid")!=null)
{
String UniqueID = request.getParameter("UniqueID").toString();
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conDatabaseOrg=DriverManager.getConnection("jdbc:odbc:DatabaseOrg");
Statement stDatabaseOrg = conDatabaseOrg.createStatement();
stDatabaseOrg.executeUpdate("UPDATE phone SET status='false' where UniqueID='"+UniqueID+"'");
response.setHeader("Refresh", "; URL = SubscriberPhone.jsp");
}else
{
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}
%>
33. CutVisaPassport.jsp
Cut Visa Passport
-
7/25/2019 Full Coding.pdf
103/305
34. CutWaterSupplyConnection.jsp
-
7/25/2019 Full Coding.pdf
104/305
Untitled Document
-
7/25/2019 Full Coding.pdf
105/305
35. DetailsOfResident.jsp
Details Of Resident | UniqueID
-
7/25/2019 Full Coding.pdf
106/305
-
7/25/2019 Full Coding.pdf
107/305
%>
Resident Details as Following :-
UniqueID
First Name
Last Name
Nick Name
Gender
Meritial Status
Date of Birth
age
-
7/25/2019 Full Coding.pdf
108/305
out.println("");
}while (rs.next());
%>
36. Electricitysupply.jsp
electricity supply
-
7/25/2019 Full Coding.pdf
109/305
-->
Welcome >>
ChangePassword
Logout
Welcome to Electricity
Supply
-
7/25/2019 Full Coding.pdf
110/305
Applicant
Search
Resident
By UniqueID:
By Name:
-
7/25/2019 Full Coding.pdf
111/305
Subscriber
37. EmailsendProcess.jsp
-
7/25/2019 Full Coding.pdf
112/305
JSP JavaMail Example
-
7/25/2019 Full Coding.pdf
113/305
Session mailSession = Session.getInstance(props, new javax.mail.Authenticator() {protected
PasswordAuthentication getPasswordAuthentication() {return new
PasswordAuthentication("bharatkumardhaker@gmail.com", "9928817490");
}
});
// Set debug on the Session
// Passing false will not echo debug info, and passing True will.
mailSession.setDebug(sessionDebug);
// Instantiate a new MimeMessage and fill it with the
// required information.
Message msg = new MimeMessage(mailSession);
msg.setFrom(new InternetAddress(from));
InternetAddress[] address = {new InternetAddress(to)};
msg.setRecipients(Message.RecipientType.TO, address);
msg.setSubject(subject);
msg.setSentDate(new Date());
msg.setText(messageText);
// Hand the message to the default transport service
// for delivery.
-
7/25/2019 Full Coding.pdf
114/305
Transport transport = mailSession.getTransport("smtp");
transport.connect(host, "bharatkumardhaker", "9928817490");
transport.sendMessage(msg, msg.getAllRecipients());
//transport.send(msg);
out.println("Mail was sent to " + to);
out.println(" from " + from);
out.println(" using host " + host + ".");
%>
38.
ErrorOccurred.jsp
Error Occurred
function goback()
{
history.back();
}
-
7/25/2019 Full Coding.pdf
115/305
Error !!!!!!!!!!!!!!
An error occurred while processing your request.
Your page generated an error:
Please contact the System Administrator for advices.
39. Faq.jsp
-
7/25/2019 Full Coding.pdf
116/305
FAQ
Welcome
to Unicus
-
7/25/2019 Full Coding.pdf
117/305
Question 1.
40.
Footer.jsp
Untitled Document
Home
Privacy Policy
Term of Use
FAQ
Gallery
Contact Us
-
7/25/2019 Full Coding.pdf
118/305
Copyright 2012 UNICUS All Rights
Reserved.This website is best viewed in 1024x768 screen resolution.
41.
For_Uname_password.jsp
New UserName Pass | UniqueID
function valid()
{
if(document.res.uid.value=="")
{
alert("Unique ID can't blank....enter value must...");
document.res.uid.focus();
document.res.uid.style.backgroundColor = "#FF9966";
document.res.uid.select();
return false;
}
-
7/25/2019 Full Coding.pdf
119/305
var pq=/^\d{18}$/
if(document.res.uid.value.search(pq)==-1)
{
alert("Unique ID Not valid !!!! ");
document.res.uid.focus();
document.res.uid.style.backgroundColor = "#FF9966";
document.res.uid.select();
return false;
}
/*
if(document.res.one.value!="yes")
{
alert("Check Alert on UniqueID");
document.res.uid.focus();
return false;
}
*/
if(document.res.UserName.value=="")
{
alert("User Name must provide !!!");
document.res.UserName.focus();
document.res.UserName.style.backgroundColor="#FF9966";
document.res.UserName.select();
return false;
}
if((document.res.UserName.value)
-
7/25/2019 Full Coding.pdf
120/305
document.res.UserName.focus();
return false;
}
/*
if(document.res.two.value!="yes")
{
alert("Check Alert on UserName");
return false;
}
*/
if(document.res.email.value=="")
{
//window.write("email must provide !!!");
return false;
}
if (document.res.email.value.indexOf("@")
-
7/25/2019 Full Coding.pdf
121/305
{
alert("Not a valid mobile no");
document.res.mobileno.focus();
document.res.mobileno.select();
document.res.mobileno.style.backgroundColor="#FF9966";
return false;
}
if(confirm("Are You Sure ????"))
{
return true;
}
else
{
return false;
}
}
function ajax(v1,ck)
{
var des;
if(ck=="uidcheck")
{
des="CheckUidAvil.jsp?utype=Resident&uid="+v1;
}
else
{
-
7/25/2019 Full Coding.pdf
122/305
des="CheckUserAvil.jsp?utype=Resident&uname="+v1;
}
var xmlhttp;
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById(ck).innerHTML=xmlhttp.responseText;
}
}
xmlhttp.open("GET",des,true);
xmlhttp.send();
}
-
7/25/2019 Full Coding.pdf
123/305
Welcome to Registration For User Name
or Password
-
7/25/2019 Full Coding.pdf
124/305
Unique ID: *
User Name: *
E-mail:*
Mobile No:*
-
7/25/2019 Full Coding.pdf
125/305
42.
Forgot.jsp
Forgot | UniqueID
-
7/25/2019 Full Coding.pdf
126/305
UserName
Password
User Type
-
7/25/2019 Full Coding.pdf
127/305
Click here to goto Login Page
No Result found associated with This email
address or UserType
Click here to go back
43. ForgotPassword.jsp
ForgotPassword | UniqueID
-
7/25/2019 Full Coding.pdf
128/305
body {
background-image: url();
background-repeat: repeat;
}
.style1 {color: #FF0000}
.style2 {font-size: 24px}
.style3 {
font-size: 36px;
color: #0000FF;
}
-->
function valid()
{
if(document.forgot.email.value=="")
{
alert("UserName can't blank...");
document.forgot.email.focus();
document.forgot.email.style.backgroundColor = "#FF9966";
document.forgot.email.select();
return false;
}
return true;
}
-
7/25/2019 Full Coding.pdf
129/305
Welcome
to Unicus
Forgot your UserName or password?
To reset your UserName or password, type the email address.
Email Address :*
User Type :
Admin
-
7/25/2019 Full Coding.pdf
130/305
Special_User
Resident
2012
-
7/25/2019 Full Coding.pdf
131/305
44. Gas.jsp
Gas
-
7/25/2019 Full Coding.pdf
132/305
Welcome >>
ChangePassword
Logout
Welcome to Special User of
Unicus
Applicant
Search
Resident
By UniqueID:
-
7/25/2019 Full Coding.pdf
133/305
By Name:
Subscriber
-
7/25/2019 Full Coding.pdf
134/305
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}
%>
45.
Getcity.jsp
getCity | UniqueID
-
7/25/2019 Full Coding.pdf
135/305
Select
46.
getCityForAddCity.jsp
getDistrict | UniqueID
-
7/25/2019 Full Coding.pdf
136/305
ResultSet rs=pstmt.executeQuery();
%>
City ID
City
47.
getdistrict.jsp
-
7/25/2019 Full Coding.pdf
137/305
getDistrict | UniqueID
Select
48.
getDistrictForAddDistrict.jsp
-
7/25/2019 Full Coding.pdf
138/305
getDistrict | UniqueID
district ID
district
-
7/25/2019 Full Coding.pdf
139/305
}
%>
49.
getstate.jsp
getState | UniqueID
Select
-
7/25/2019 Full Coding.pdf
140/305
out.println(" value="+rs.getString(1)+">"+rs.getString(2)+"");
}
%>
50.
getStateForAddState.jsp
getState | UniqueID
State ID
-
7/25/2019 Full Coding.pdf
141/305
stateName
51.
getStatus.jsp
getStatus | UniqueID
-
7/25/2019 Full Coding.pdf
142/305
font-size: 24px;
}
.style3 {
color: #0000FF;
font-size: xx-large;
}
-->
Unique ID Management
-
7/25/2019 Full Coding.pdf
143/305
To Conform Your Submission
Enter your name:
Date of birth
Date
1
2
3
4
5
6
7
8
9
10
11
12
-
7/25/2019 Full Coding.pdf
144/305
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Month
January
February
March
April
-
7/25/2019 Full Coding.pdf
145/305
May
June
July
August
Septmber
October
November
December
Year
2011
2010
2009
2008
2007
2006
2005
2004
2003
2002
2001
2000
1999
1998
1997
-
7/25/2019 Full Coding.pdf
146/305
1996
1995
1994
1993
1992
1991
1990
1989
1988
1987
1986
1985
1984
1983
1982
1981
1980
1979
1978
1977
1976
1975
1974
1973
1972
1971
1970
1969
-
7/25/2019 Full Coding.pdf
147/305
1968
1967
1966
1965
1964
1963
1962
1961
1960
1959
1958
1957
1956
1955
1954
1953
1952
1951
1950
1949
1948
1947
1946
1945
1944
1943
1942
1941
-
7/25/2019 Full Coding.pdf
148/305
1940
1939
1938
1937
1936
1935
1934
1933
1932
1931
1930
1929
1928
1927
1926
1925
1924
1923
1922
1921
1920
1919
1918
1917
1916
1915
1914
1913
-
7/25/2019 Full Coding.pdf
149/305
1912
1911
1910
1909
1908
1907
1906
1905
1904
1903
1902
1901
1900
-
7/25/2019 Full Coding.pdf
150/305
52. header.html
Header
Home
-
7/25/2019 Full Coding.pdf
151/305
Check Status
Help
Enrollment Form
Required
Documents
Updation
Form
Add New General User
FAQ
Contact Us
53. Home.jsp
Home | UniqueID
-
7/25/2019 Full Coding.pdf
152/305
-
7/25/2019 Full Coding.pdf
153/305
Welcome to Unicus
-
7/25/2019 Full Coding.pdf
154/305
The name of the project is UNICUS. A
UNICUS project as a means for residents to clearly and uniquely verify their identity
anywhere in the country.
UNICUS provide UID which is a universal number.
UNICUS can be used in any system which needs to establish the identity of a resident
and/or provide secure access for the resident to services/benefits offered by the system.
Agencies and services can contact the UNICUS database from anywhere
in the country to confirm a beneficiarys identity.
Quick Links
Enrollment Form :
download click here
Required Documents :
download click here
-
7/25/2019 Full Coding.pdf
155/305
Updation Form :
download click here
E-Applications
To get UserName and Password Through UID
-
7/25/2019 Full Coding.pdf
156/305
54.
Jquery.min.js
/*
* jQuery 1.2.6 - New Wave Javascript
*
* Copyright (c) 2008 John Resig (jquery.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* $Date: 2008/05/26 $
-
7/25/2019 Full Coding.pdf
157/305
-
7/25/2019 Full Coding.pdf
158/305
clone=this.cloneNode(true),container=document.createElement("div");container.appendChild(clone);retur
n jQuery.clean([container.innerHTML])[0];}else
return this.cloneNode(true);});var
clone=ret.find("*").andSelf().each(function(){if(this[expando]!=undefined)this[expando]=null;});if(events
===true)this.find("*").andSelf().each(function(i){if(this.nodeType==3)return;var
events=jQuery.data(this,"events");for(var type in events)for(var handler inevents[type])jQuery.event.add(clone[i],type,events[type][handler],events[type][handler].data);});return
ret;},filter:function(selector){return
this.pushStack(jQuery.isFunction(selector)&&jQuery.grep(this,function(elem,i){return
selector.call(elem,i);})||jQuery.multiFilter(selector,this));},not:function(selector){if(selector.constructor==
String)if(isSimple.test(selector))return this.pushStack(jQuery.multiFilter(selector,this,true));else
selector=jQuery.multiFilter(selector,this);var isArrayLike=selector.length&&selector[selector.length-
1]!==undefined&&!selector.nodeType;return this.filter(function(){return
isArrayLike?jQuery.inArray(this,selector)0;},hasClass:function(selector){return
this.is("."+selector);},val:function(value){if(value==undefined){if(this.length){var
elem=this[0];if(jQuery.nodeName(elem,"select")){var
index=elem.selectedIndex,values=[],options=elem.options,one=elem.type=="select-
one";if(index=0);else
if(jQuery.nodeName(this,"select")){var
values=jQuery.makeArray(value);jQuery("option",this).each(function(){this.selected=(jQuery.inArray(thi
s.value,values)>=0||jQuery.inArray(this.text,values)>=0);});if(!values.length)this.selectedIndex=-1;}else
this.value=value;});},html:function(value){return
value==undefined?(this[0]?this[0].innerHTML:null):this.empty().append(value);},replaceWith:function(v
alue){return this.after(value).remove();},eq:function(i){return this.slice(i,i+1);},slice:function(){return
this.pushStack(Array.prototype.slice.apply(this,arguments));},map:function(callback){return
this.pushStack(jQuery.map(this,function(elem,i){return
callback.call(elem,i,elem);}));},andSelf:function(){return
this.add(this.prevObject);},data:function(key,value){var
parts=key.split(".");parts[1]=parts[1]?"."+parts[1]:"";if(value===undefined){vardata=this.triggerHandler("getData"+parts[1]+"!",[parts[0]]);if(data===undefined&&this.length)data=jQue
ry.data(this[0],key);return data===undefined&&parts[1]?this.data(parts[0]):data;}else
return
this.trigger("setData"+parts[1]+"!",[parts[0],value]).each(function(){jQuery.data(this,key,value);});},remo
veData:function(key){return
this.each(function(){jQuery.removeData(this,key);});},domManip:function(args,table,reverse,callback){v
ar clone=this.length>1,elems;return
-
7/25/2019 Full Coding.pdf
159/305
this.each(function(){if(!elems){elems=jQuery.clean(args,this.ownerDocument);if(reverse)elems.reverse();
}var
obj=this;if(table&&jQuery.nodeName(this,"table")&&jQuery.nodeName(elems[0],"tr"))obj=this.getElem
entsByTagName("tbody")[0]||this.appendChild(this.ownerDocument.createElement("tbody"));var
scripts=jQuery([]);jQuery.each(elems,function(){var
elem=clone?jQuery(this).clone(true)[0]:this;if(jQuery.nodeName(elem,"script"))scripts=scripts.add(elem);
else{if(elem.nodeType==1)scripts=scripts.add(jQuery("script",elem).remove());callback.call(obj,elem);}}
);scripts.each(evalScript);});}};jQuery.fn.init.prototype=jQuery.fn;function
evalScript(i,elem){if(elem.src)jQuery.ajax({url:elem.src,async:false,dataType:"script"});else
jQuery.globalEval(elem.text||elem.textContent||elem.innerHTML||"");if(elem.parentNode)elem.parentNod
e.removeChild(elem);}function now(){return+new Date;}jQuery.extend=jQuery.fn.extend=function(){var
target=arguments[0]||{},i=1,length=arguments.length,deep=false,options;if(target.constructor==Boolean){
deep=target;target=arguments[1]||{};i=2;}if(typeof target!="object"&&typeof
target!="function")target={};if(length==i){target=this;--
i;}for(;i
-
7/25/2019 Full Coding.pdf
160/305
value&&value.constructor==Number&&type=="curCSS"&&!exclude.test(name)?value+"px":value;},cla
ssName:{add:function(elem,classNames){jQuery.each((classNames||"").split(/\s+/),function(i,className)
{if(elem.nodeType==1&&!jQuery.className.has(elem.className,className))elem.className+=(elem.
className?"
":"")+className;});},remove:function(elem,classNames){if(elem.nodeType==1)elem.className=classN
ames!=undefined?jQuery.grep(elem.className.split(/\s+/),function(className){return!jQuery.className
.has(classNames,className);}).join(" "):"";},has:function(elem,className){return
jQuery.inArray(className,(elem.className||elem).toString().split(/\s+/))>-
1;}},swap:function(elem,options,callback){var old={};for(var name in
options){old[name]=elem.style[name];elem.style[name]=options[name];}callback.call(elem);for(var name
in
options)elem.style[name]=old[name];},css:function(elem,name,force){if(name=="width"||name=="height
"){var
val,props={position:"absolute",visibility:"hidden",display:"block"},which=name=="width"?["Left","Right
"]:["Top","Bottom"];function getWH(){val=name=="width"?elem.offsetWidth:elem.offsetHeight;var
padding=0,border=0;jQuery.each(which,function(){padding+=parseFloat(jQuery.curCSS(elem,"padding"
+this,true))||0;border+=parseFloat(jQuery.curCSS(elem,"border"+this+"Width",true))||0;});val-
=Math.round(padding+border);}if(jQuery(elem).is(":visible"))getWH();else
jQuery.swap(elem,props,getWH);return Math.max(0,val);}return
jQuery.curCSS(elem,name,force);},curCSS:function(elem,name,force){var ret,style=elem.style;function
color(elem){if(!jQuery.browser.safari)return false;var
ret=defaultView.getComputedStyle(elem,null);return!ret||ret.getPropertyValue("color")=="";}if(name=="
opacity"&&jQuery.browser.msie){ret=jQuery.attr(style,"opacity");return
ret==""?"1":ret;}if(jQuery.browser.opera&&name=="display"){var save=style.outline;style.outline="0
solid
black";style.outline=save;}if(name.match(/float/i))name=styleFloat;if(!force&&style&&style[name])ret=s
tyle[name];else
if(defaultView.getComputedStyle){if(name.match(/float/i))name="float";name=name.replace(/([A-
Z])/g,"-$1").toLowerCase();varcomputedStyle=defaultView.getComputedStyle(elem,null);if(computedStyle&&!color(elem))ret=comput
edStyle.getPropertyValue(name);else{var
swap=[],stack=[],a=elem,i=0;for(;a&&color(a);a=a.parentNode)stack.unshift(a);for(;i
-
7/25/2019 Full Coding.pdf
161/305
multiple='multiple'>",""]||!tags.indexOf("
-
7/25/2019 Full Coding.pdf
162/305
e)[\/:
]([\d.]+)/)||[])[1],safari:/webkit/.test(userAgent),opera:/opera/.test(userAgent),msie:/msie/.test(userAgent)
&&!/opera/.test(userAgent),mozilla:/mozilla/.test(userAgent)&&!/(compatible|webkit)/.test(userAgent)};v
ar
styleFloat=jQuery.browser.msie?"styleFloat":"cssFloat";jQuery.extend({boxModel:!jQuery.browser.msie||
document.compatMode=="CSS1Compat",props:{"for":"htmlFor","class":"className","float":styleFloat,c
ssFloat:styleFloat,styleFloat:styleFloat,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpa
cing"}});jQuery.each({parent:function(elem){return elem.parentNode;},parents:function(elem){return
jQuery.dir(elem,"parentNode");},next:function(elem){return
jQuery.nth(elem,2,"nextSibling");},prev:function(elem){return
jQuery.nth(elem,2,"previousSibling");},nextAll:function(elem){return
jQuery.dir(elem,"nextSibling");},prevAll:function(elem){return
jQuery.dir(elem,"previousSibling");},siblings:function(elem){return
jQuery.sibling(elem.parentNode.firstChild,elem);},children:function(elem){return
jQuery.sibling(elem.firstChild);},contents:function(elem){return
jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.makeA
rray(elem.childNodes);}},function(name,fn){jQuery.fn[name]=function(selector){var
ret=jQuery.map(this,fn);if(selector&&typeof selector=="string")ret=jQuery.multiFilter(selector,ret);returnthis.pushStack(jQuery.unique(ret));};});jQuery.each({appendTo:"append",prependTo:"prepend",insertBef
ore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(name,original){jQuery.fn[name]=func
tion(){var args=arguments;return this.each(function(){for(var
i=0,length=args.length;i
-
7/25/2019 Full Coding.pdf
163/305
jQuery.nth(a.parentNode.lastChild,1,"previousSibling")==a;},"only-
child":function(a){return!jQuery.nth(a.parentNode.lastChild,2,"previousSibling");},parent:function(a){ret
urn
a.firstChild;},empty:function(a){return!a.firstChild;},contains:function(a,i,m){return(a.textContent||a.inne
rText||jQuery(a).text()||"").indexOf(m[3])>=0;},visible:function(a){return"hidden"!=a.type&&jQuery.css(
a,"display")!="none"&&jQuery.css(a,"visibility")!="hidden";},hidden:function(a){return"hidden"==a.type
||jQuery.css(a,"display")=="none"||jQuery.css(a,"visibility")=="hidden";},enabled:function(a){return!a.dis
abled;},disabled:function(a){return a.disabled;},checked:function(a){return
a.checked;},selected:function(a){return
a.selected||jQuery.attr(a,"selected");},text:function(a){return"text"==a.type;},radio:function(a){return"radi
o"==a.type;},checkbox:function(a){return"checkbox"==a.type;},file:function(a){return"file"==a.type;},pa
ssword:function(a){return"password"==a.type;},submit:function(a){return"submit"==a.type;},image:funct
ion(a){return"image"==a.type;},reset:function(a){return"reset"==a.type;},button:function(a){return"butto
n"==a.type||jQuery.nodeName(a,"button");},input:function(a){return/input|select|textarea|button/i.test(a.no
deName);},has:function(a,i,m){return
jQuery.find(m[3],a).length;},header:function(a){return/h\d/i.test(a.nodeName);},animated:function(a){ret
urn jQuery.grep(jQuery.timers,function(fn){return a==fn.elem;}).length;}}},parse:[/^(\[) *@?([\w-]+)
*([!*$^~=]*) *('?"?)(.*?)\4 *\]/,/^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,newRegExp("^([:.#]*)("+chars+"+)")],multiFilter:function(expr,elems,not){var
old,cur=[];while(expr&&expr!=old){old=expr;var
f=jQuery.filter(expr,elems,not);expr=f.t.replace(/^\s*,\s*/,"");cur=not?elems=f.r:jQuery.merge(cur,f.r);}ret
urn cur;},find:function(t,context){if(typeof
t!="string")return[t];if(context&&context.nodeType!=1&&context.nodeType!=9)return[];context=context|
|document;var ret=[context],done=[],last,nodeName;while(t&&last!=t){var
r=[];last=t;t=jQuery.trim(t);var
foundToken=false,re=quickChild,m=re.exec(t);if(m){nodeName=m[1].toUpperCase();for(var
i=0;ret[i];i++)for(var
c=ret[i].firstChild;c;c=c.nextSibling)if(c.nodeType==1&&(nodeName=="*"||c.nodeName.toUpperCase()
==nodeName))r.push(c);ret=r;t=t.replace(re,"");if(t.indexOf("
")==0)continue;foundToken=true;}else{re=/^([>+~])\s*(\w*)/i;if((m=re.exec(t))!=null){r=[];var
merge={};nodeName=m[2].toUpperCase();m=m[1];for(var j=0,rl=ret.length;j
-
7/25/2019 Full Coding.pdf
164/305
i=0;r[i];i++){var pass=(" "+r[i].className+"
").indexOf(m)>=0;if(!not&&pass||not&&!pass)tmp.push(r[i]);}return tmp;},filter:function(t,r,not){var
last;while(t&&t!=last){last=t;var p=jQuery.parse,m;for(var
i=0;p[i];i++){m=p[i].exec(t);if(m){t=t.substring(m[0].length);m[2]=m[2].replace(/\\/g,"");break;}}if(!m)br
eak;if(m[1]==":"&&m[2]=="not")r=isSimple.test(m[3])?jQuery.filter(m[3],r,true).r:jQuery(r).not(m[3]);el
se if(m[1]==".")r=jQuery.classFilter(r,m[2],not);else if(m[1]=="["){var tmp=[],type=m[3];for(var
i=0,rl=r.length;i=0)^not)tmp.push(a);}r=tmp;}else
if(m[1]==":"&&m[2]=="nth-child"){var merge={},tmp=[],test=/(-?)(\d*)n((?:\+|-
)?\d*)/.exec(m[3]=="even"&&"2n"||m[3]=="odd"&&"2n+1"||!/\D/.test(m[3])&&"0n+"+m[3]||m[3]),first=
(test[1]+(test[2]||1))-0,last=test[3]-0;for(var i=0,rl=r.length;i=0)add=true;if(add^not)tmp.push(node);}r=tmp;}else{varfn=jQuery.expr[m[1]];if(typeof fn=="object")fn=fn[m[2]];if(typeof
fn=="string")fn=eval("false||function(a,i){return "+fn+";}");r=jQuery.grep(r,function(elem,i){return
fn(elem,i,m,r);},not);}}return{r:r,t:t};},dir:function(elem,dir){var
matched=[],cur=elem[dir];while(cur&&cur!=document){if(cur.nodeType==1)matched.push(cur);cur=cur[
dir];}return matched;},nth:function(cur,result,dir,elem){result=result||1;var
num=0;for(;cur;cur=cur[dir])if(cur.nodeType==1&&++num==result)break;return
cur;},sibling:function(n,elem){var
r=[];for(;n;n=n.nextSibling){if(n.nodeType==1&&n!=elem)r.push(n);}return
r;}});jQuery.event={add:function(elem,types,handler,data){if(elem.nodeType==3||elem.nodeType==8)ret
urn;if(jQuery.browser.msie&&elem.setInterval)elem=window;if(!handler.guid)handler.guid=this.guid++;i
f(data!=undefined){var fn=handler;handler=this.proxy(fn,function(){return
fn.apply(this,arguments);});handler.data=data;}var
events=jQuery.data(elem,"events")||jQuery.data(elem,"events",{}),handle=jQuery.data(elem,"handle")||jQ
uery.data(elem,"handle",function(){if(typeof jQuery!="undefined"&&!jQuery.event.triggered)return
jQuery.event.handle.apply(arguments.callee.elem,arguments);});handle.elem=elem;jQuery.each(types.spli
t(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];handler.type=parts[1];var
handlers=events[type];if(!handlers){handlers=events[type]={};if(!jQuery.event.special[type]||jQuery.even
t.special[type].setup.call(elem)===false){if(elem.addEventListener)elem.addEventListener(type,handle,fa
lse);else
if(elem.attachEvent)elem.attachEvent("on"+type,handle);}}handlers[handler.guid]=handler;jQuery.event.
global[type]=true;});elem=null;},guid:1,global:{},remove:function(elem,types,handler){if(elem.nodeType
==3||elem.nodeType==8)return;var
events=jQuery.data(elem,"events"),ret,index;if(events){if(types==undefined||(typeoftypes=="string"&&types.charAt(0)=="."))for(var type in
events)this.remove(elem,type+(types||""));else{if(types.type){handler=types.handler;types=types.type;}jQ
uery.each(types.split(/\s+/),function(index,type){var
parts=type.split(".");type=parts[0];if(events[type]){if(handler)delete events[type][handler.guid];else
for(handler in events[type])if(!parts[1]||events[type][handler].type==parts[1])delete
events[type][handler];for(ret in
events[type])break;if(!ret){if(!jQuery.event.special[type]||jQuery.event.special[type].teardown.call(elem)=
-
7/25/2019 Full Coding.pdf
165/305
==false){if(elem.removeEventListener)elem.removeEventListener(type,jQuery.data(elem,"handle"),false)
;else if(elem.detachEvent)elem.detachEvent("on"+type,jQuery.data(elem,"handle"));}ret=null;delete
events[type];}}});}for(ret in events)break;if(!ret){var
handle=jQuery.data(elem,"handle");if(handle)handle.elem=null;jQuery.removeData(elem,"events");jQuer
y.removeData(elem,"handle");}}},trigger:function(type,data,elem,donative,extra){data=jQuery.makeArra
y(data);if(type.indexOf("!")>=0){type=type.slice(0,-1);var
exclusive=true;}if(!elem){if(this.global[type])jQuery("*").add([window,document]).trigger(type,data);}el
se{if(elem.nodeType==3||elem.nodeType==8)return undefined;var
val,ret,fn=jQuery.isFunction(elem[type]||null),event=!data[0]||!data[0].preventDefault;if(event){data.unshi
ft({type:type,target:elem,preventDefault:function(){},stopPropagation:function(){},timeStamp:now()});da
ta[0][expando]=true;}data[0].type=type;if(exclusive)data[0].exclusive=true;var
handle=jQuery.data(elem,"handle");if(handle)val=handle.apply(elem,data);if((!fn||(jQuery.nodeName(ele
m,'a')&&type=="click"))&&elem["on"+type]&&elem["on"+type].apply(elem,data)===false)val=false;if(
event)data.shift();if(extra&&jQuery.isFunction(extra)){ret=extra.apply(elem,val==null?data:data.concat(v
al));if(ret!==undefined)val=ret;}if(fn&&donative!==false&&val!==false&&!(jQuery.nodeName(elem,'a')
&&type=="click")){this.triggered=true;try{elem[type]();}catch(e){}}this.triggered=false;}return
val;},handle:function(event){var
val,ret,namespace,all,handlers;event=arguments[0]=jQuery.event.fix(event||window.event);namespace=event.type.split(".");event.type=namespace[0];namespace=namespace[1];all=!namespace&&!event.exclusiv
e;handlers=(jQuery.data(this,"events")||{})[event.type];for(var j in handlers){var
handler=handlers[j];if(all||handler.type==namespace){event.handler=handler;event.data=handler.data;ret=
handler.apply(this,arguments);if(val!==false)val=ret;if(ret===false){event.preventDefault();event.stopPro
pagation();}}}return val;},fix:function(event){if(event[expando]==true)return event;var
originalEvent=event;event={originalEvent:originalEvent};var props="altKey attrChange attrName
bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase
fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode
relatedTarget screenX screenY shiftKey srcElement target timeStamp toElement type view wheelDelta
which".split(" ");for(var i=props.length;i;i--
)event[props[i]]=originalEvent[props[i]];event[expando]=true;event.preventDefault=function(){if(original
Event.preventDefault)originalEvent.preventDefault();originalEvent.returnValue=false;};event.stopPropag
ation=function(){if(originalEvent.stopPropagation)originalEvent.stopPropagation();originalEvent.cancelB
ubble=true;};event.timeStamp=event.timeStamp||now();if(!event.target)event.target=event.srcElement||do
cument;if(event.target.nodeType==3)event.target=event.target.parentNode;if(!event.relatedTarget&&even
t.fromElement)event.relatedTarget=event.fromElement==event.target?event.toElement:event.fromElemen
t;if(event.pageX==null&&event.clientX!=null){var
doc=document.documentElement,body=document.body;event.pageX=event.clientX+(doc&&doc.scrollLe
ft||body&&body.scrollLeft||0)-
(doc.clientLeft||0);event.pageY=event.clientY+(doc&&doc.scrollTop||body&&body.scrollTop||0)-
(doc.clientTop||0);}if(!event.which&&((event.charCode||event.charCode===0)?event.charCode:event.key
Code))event.which=event.charCode||event.keyCode;if(!event.metaKey&&event.ctrlKey)event.metaKey=e
vent.ctrlKey;if(!event.which&&event.button)event.which=(event.button&1?1:(event.button&2?3:(event.button&4?2:0)));return
event;},proxy:function(fn,proxy){proxy.guid=fn.guid=fn.guid||proxy.guid||this.guid++;return
proxy;},special:{ready:{setup:function(){bindReady();return;},teardown:function(){return;}},mouseenter:
{setup:function(){if(jQuery.browser.msie)return
false;jQuery(this).bind("mouseover",jQuery.event.special.mouseenter.handler);return
true;},teardown:function(){if(jQuery.browser.msie)return
false;jQuery(this).unbind("mouseover",jQuery.event.special.mouseenter.handler);return
true;},handler:function(event){if(withinElement(event,this))return true;event.type="mouseenter";return
-
7/25/2019 Full Coding.pdf
166/305
jQuery.event.handle.apply(this,arguments);}},mouseleave:{setup:function(){if(jQuery.browser.msie)retur
n false;jQuery(this).bind("mouseout",jQuery.event.special.mouseleave.handler);return
true;},teardown:function(){if(jQuery.browser.msie)return
false;jQuery(this).unbind("mouseout",jQuery.event.special.mouseleave.handler);return
true;},handler:function(event){if(withinElement(event,this))return true;event.type="mouseleave";return
jQuery.event.handle.apply(this,arguments);}}}};jQuery.fn.extend({bind:function(type,data,fn){return
type=="unload"?this.one(type,data,fn):this.each(function(){jQuery.event.add(this,type,fn||data,fn&&data);
});},one:function(type,data,fn){var
one=jQuery.event.proxy(fn||data,function(event){jQuery(this).unbind(event,one);return(fn||data).apply(thi
s,arguments);});return
this.each(function(){jQuery.event.add(this,type,one,fn&&data);});},unbind:function(type,fn){return
this.each(function(){jQuery.event.remove(this,type,fn);});},trigger:function(type,data,fn){return
this.each(function(){jQuery.event.trigger(type,data,this,true,fn);});},triggerHandler:function(type,data,fn)
{return this[0]&&jQuery.event.trigger(type,data,this[0],false,fn);},toggle:function(fn){var
args=arguments,i=1;while(i=0){var
selector=url.slice(off,url.length);url=url.slice(0,off);}callback=callback||function(){};var
type="GET";if(params)if(jQuery.isFunction(params)){callback=params;params=null;}else{params=jQuer
y.param(params);type="POST";}var
self=this;jQuery.ajax({url:url,type:type,dataType:"html",data:params,complete:function(res,status){if(stat
us=="success"||status=="notmodified")self.html(selector?jQuery("").append(res.responseText.repla
-
7/25/2019 Full Coding.pdf
167/305
ce(//g,"")).find(selector):res.responseText);self.each(callback,[res.responseText,stat
us,res]);}});return this;},serialize:function(){return
jQuery.param(this.serializeArray());},serializeArray:function(){return this.map(function(){return
jQuery.nodeName(this,"form")?jQuery.makeArray(this.elements):this;}).filter(function(){return
this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password/i.
test(this.type));}).map(function(i,elem){var val=jQuery(this).val();return
val==null?null:val.constructor==Array?jQuery.map(val,function(val,i){return{name:elem.name,value:val
};}):{name:elem.name,value:val};}).get();}});jQuery.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,aja
xSuccess,ajaxSend".split(","),function(i,o){jQuery.fn[o]=function(f){return this.bind(o,f);};});var
jsc=now();jQuery.extend({get:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;
data=null;}return
jQuery.ajax({type:"GET",url:url,data:data,success:callback,dataType:type});},getScript:function(url,callb
ack){return jQuery.get(url,null,callback,"script");},getJSON:function(url,data,callback){return
jQuery.get(url,data,callback,"json");},post:function(url,data,callback,type){if(jQuery.isFunction(data)){cal
lback=data;data={};}return
jQuery.ajax({type:"POST",url:url,data:data,success:callback,dataType:type});},ajaxSetup:function(setting
s){jQuery.extend(jQuery.ajaxSettings,settings);},ajaxSettings:{url:location.href,global:true,type:"GET",ti
meout:0,contentType:"application/x-www-form-urlencoded",processData:true,async:true,data:null,username:null,password:null,accepts:{xml:"application/
xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json,
text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(s){s=jQuery.extend(true,s,
jQuery.extend(true,{},jQuery.ajaxSettings,s));var
jsonp,jsre=/=\?(&|$)/g,status,data,type=s.type.toUpperCase();if(s.data&&s.processData&&typeof
s.data!="string")s.data=jQuery.param(s.data);if(s.dataType=="jsonp"){if(type=="GET"){if(!s.url.match(js
re))s.url+=(s.url.match(/\?/)?"&":"?")+(s.jsonp||"callback")+"=?";}else
if(!s.data||!s.data.match(jsre))s.data=(s.data?s.data+"&":"")+(s.jsonp||"callback")+"=?";s.dataType="json";
}if(s.dataType=="json"&&(s.data&&s.data.match(jsre)||s.url.match(jsre))){jsonp="jsonp"+jsc++;if(s.data)
s.data=(s.data+"").replace(jsre,"="+jsonp+"$1");s.url=s.url.replace(jsre,"="+jsonp+"$1");s.dataType="scri
pt";window[jsonp]=function(tmp){data=tmp;success();complete();window[jsonp]=undefined;try{delete
window[jsonp];}catch(e){}if(head)head.removeChild(script);};}if(s.dataType=="script"&&s.cache==null
)s.cache=false;if(s.cache===false&&type=="GET"){var ts=now();var
ret=s.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+ts+"$2");s.url=ret+((ret==s.url)?(s.url.match(/\?/)?"&":"?")+"
_="+ts:"");}if(s.data&&type=="GET"){s.url+=(s.url.match(/\?/)?"&":"?")+s.data;s.data=null;}if(s.global
&&!jQuery.active++)jQuery.event.trigger("ajaxStart");var
remote=/^(?:\w+:)?\/\/([^\/?#]+)/;if(s.dataType=="script"&&type=="GET"&&remote.test(s.url)&&remote
.exec(s.url)[1]!=location.host){var head=document.getElementsByTagName("head")[0];var
script=document.createElement("script");script.src=s.url;if(s.scriptCharset)script.charset=s.scriptCharset;i
f(!jsonp){var
done=false;script.onload=script.onreadystatechange=function(){if(!done&&(!this.readyState||this.readySt
ate=="loaded"||this.readyState=="complete")){done=true;success();complete();head.removeChild(script);}
};}head.appendChild(script);return undefined;}var requestDone=false;varxhr=window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new
XMLHttpRequest();if(s.username)xhr.open(type,s.url,s.async,s.username,s.password);else
xhr.open(type,s.url,s.async);try{if(s.data)xhr.setRequestHeader("Content-
Type",s.contentType);if(s.ifModified)xhr.setRequestHeader("If-Modified-
Since",jQuery.lastModified[s.url]||"Thu, 01 Jan 1970 00:00:00 GMT");xhr.setRequestHeader("X-
Requested-
With","XMLHttpRequest");xhr.setRequestHeader("Accept",s.dataType&&s.accepts[s.dataType]?s.accept
-
7/25/2019 Full Coding.pdf
168/305
s[s.dataType]+",
*/*":s.accepts._default);}catch(e){}if(s.beforeSend&&s.beforeSend(xhr,s)===false){s.global&&jQuery.a
ctive--;xhr.abort();return false;}if(s.global)jQuery.event.trigger("ajaxSend",[xhr,s]);var
onreadystatechange=function(isTimeout){if(!requestDone&&xhr&&(xhr.readyState==4||isTimeout=="ti
meout")){requestDone=true;if(ival){clearInterval(ival);ival=null;}status=isTimeout=="timeout"&&"time
out"||!jQuery.httpSuccess(xhr)&&"error"||s.ifModified&&jQuery.httpNotModified(xhr,s.url)&&"notmodi
fied"||"success";if(status=="success"){try{data=jQuery.httpData(xhr,s.dataType,s.dataFilter);}catch(e){sta
tus="parsererror";}}if(status=="success"){var modRes;try{modRes=xhr.getResponseHeader("Last-
Modified");}catch(e){}if(s.ifModified&&modRes)jQuery.lastModified[s.url]=modRes;if(!jsonp)success()
;}else
jQuery.handleError(s,xhr,status);complete();if(s.async)xhr=null;}};if(s.async){var
ival=setInterval(onreadystatechange,13);if(s.timeout>0)setTimeout(function(){if(xhr){xhr.abort();if(!requ
estDone)onreadystatechange("timeout");}},s.timeout);}try{xhr.send(s.data);}catch(e){jQuery.handleError
(s,xhr,null,e);}if(!s.async)onreadystatechange();function
success(){if(s.success)s.success(data,status);if(s.global)jQuery.event.trigger("ajaxSuccess",[xhr,s]);}functi
on
complete(){if(s.complete)s.complete(xhr,status);if(s.global)jQuery.event.trigger("ajaxComplete",[xhr,s]);i
f(s.global&&!--jQuery.active)jQuery.event.trigger("ajaxStop");}return
xhr;},handleError:function(s,xhr,status,e){if(s.error)s.error(xhr,status,e);if(s.global)jQuery.event.trigger("a
jaxError",[xhr,s,e]);},active:0,httpSuccess:function(xhr){try{return!xhr.status&&location.protocol=="file:
"||(xhr.status>=200&&xhr.status=0,data=xml?xhr.responseXML:xhr.response
Text;if(xml&&data.documentElement.tagName=="parsererror")throw"parsererror";if(filter)data=filter(dat
a,type);if(type=="script")jQuery.globalEval(data);if(type=="json")data=eval("("+data+")");return
data;},param:function(a){vars=[];if(a.constructor==Array||a.jquery)jQuery.each(a,function(){s.push(encodeURIComponent(this.name)
+"="+encodeURIComponent(this.value));});else
for(var j in
a)if(a[j]&&a[j].constructor==Array)jQuery.each(a[j],function(){s.push(encodeURIComponent(j)+"="+en
codeURIComponent(this));});else
s.push(encodeURIComponent(j)+"="+encodeURIComponent(jQuery.isFunction(a[j])?a[j]():a[j]));return
s.join("&").replace(/%20/g,"+");}});jQuery.fn.extend({show:function(speed,callback){return
speed?this.animate({height:"show",width:"show",opacity:"show"},speed,callback):this.filter(":hidden").ea
ch(function(){this.style.display=this.oldblock||"";if(jQuery.css(this,"display")=="none"){var
elem=jQuery("").appendTo("body");this.style.display=elem.css("display");if(this.style.display=="none")this.style.displ
ay="block";elem.remove();}}).end();},hide:function(speed,callback){return
speed?this.animate({height:"hide",width:"hide",opacity:"hide"},speed,callback):this.filter(":visible").each(
function(){this.oldblock=this.oldblock||jQuery.css(this,"display");this.style.display="none";}).end();},_tog
gle:jQuery.fn.toggle,toggle:function(fn,fn2){return
jQuery.isFunction(fn)&&jQuery.isFunction(fn2)?this._toggle.apply(this,arguments):fn?this.animate({heig
ht:"toggle",width:"toggle",opacity:"toggle"},fn,fn2):this.each(function(){jQuery(this)[jQuery(this).is(":hid
-
7/25/2019 Full Coding.pdf
169/305
den")?"show":"hide"]();});},slideDown:function(speed,callback){return
this.animate({height:"show"},speed,callback);},slideUp:function(speed,callback){return
this.animate({height:"hide"},speed,callback);},slideToggle:function(speed,callback){return
this.animate({height:"toggle"},speed,callback);},fadeIn:function(speed,callback){return
this.animate({opacity:"show"},speed,callback);},fadeOut:function(speed,callback){return
this.animate({opacity:"hide"},speed,callback);},fadeTo:function(speed,to,callback){return
this.animate({opacity:to},speed,callback);},animate:function(prop,speed,easing,callback){var
optall=jQuery.speed(speed,easing,callback);return
this[optall.queue===false?"each":"queue"](function(){if(this.nodeType!=1)return false;var
opt=jQuery.extend({},optall),p,hidden=jQuery(this).is(":hidden"),self=this;for(p in
prop){if(prop[p]=="hide"&&hidden||prop[p]=="show"&&!hidden)return
opt.complete.call(this);if(p=="height"||p=="width"){opt.display=jQuery.css(this,"display");opt.overflow=t
his.style.overflow;}}if(opt.overflow!=null)this.style.overflow="hidden";opt.curAnim=jQuery.extend({},p
rop);jQuery.each(prop,function(name,val){var e=new
jQuery.fx(self,opt,name);if(/toggle|show|hide/.test(val))e[val=="toggle"?hidden?"show":"hide":val](prop);
else{var parts=val.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),start=e.cur(true)||0;if(parts){var
end=parseFloat(parts[2]),unit=parts[3]||"px";if(unit!="px"){self.style[name]=(end||1)+unit;start=((end||1)/e
.cur(true))*start;self.style[name]=start+unit;}if(parts[1])end=((parts[1]=="-="?-1:1)*end)+start;e.custom(start,end,unit);}else
e.custom(start,val,"");}});return
true;});},queue:function(type,fn){if(jQuery.isFunction(type)||(type&&type.constructor==Array)){fn=type;
type="fx";}if(!type||(typeof type=="string"&&!fn))return queue(this[0],type);return
this.each(function(){if(fn.constructor==Array)queue(this,type,fn);else{queue(this,type).push(fn);if(queue(
this,type).length==1)fn.call(this);}});},stop:function(clearQueue,gotoEnd){var
timers=jQuery.timers;if(clearQueue)this.queue([]);this.each(function(){for(var i=timers.length-1;i>=0;i--
)if(timers[i].elem==this){if(gotoEnd)timers[i](true);timers.splice(i,1);}});if(!gotoEnd)this.dequeue();retur
n this;}});var queue=function(elem,type,array){if(elem){type=type||"fx";var
q=jQuery.data(elem,type+"queue");if(!q||array)q=jQuery.data(elem,type+"queue",jQuery.makeArray(arra
y));}return q;};jQuery.fn.dequeue=function(type){type=type||"fx";return this.each(function(){varq=queue(this,type);q.shift();if(q.length)q[0].call(this);});};jQuery.extend({speed:function(speed,easing,fn)
{var
opt=speed&&speed.constructor==Object?speed:{complete:fn||!fn&&easing||jQuery.isFunction(speed)&&
speed,duration:speed,easing:fn&&easing||easing&&easing.constructor!=Function&&easing};opt.duration
=(opt.duration&&opt.duration.constructor==Number?opt.duration:jQuery.fx.speeds[opt.duration])||jQuery
.fx.speeds.def;opt.old=opt.complete;opt.complete=function(){if(opt.queue!==false)jQuery(this).dequeue()
;if(jQuery.isFunction(opt.old))opt.old.call(this);};return
opt;},easing:{linear:function(p,n,firstNum,diff){return
firstNum+diff*p;},swing:function(p,n,firstNum,diff){return((-
Math.cos(p*Math.PI)/2)+0.5)*diff+firstNum;}},timers:[],timerId:null,fx:function(elem,options,prop){this.
options=options;this.elem=elem;this.prop=prop;if(!options.orig)options.orig={};}});jQuery.fx.prototype=
{update:function(){if(this.options.step)this.options.step.call(this.elem,this.now,this);(jQuery.fx.step[this.pr
op]||jQuery.fx.step._default)(this);if(this.prop=="height"||this.prop=="width")this.elem.style.display="bloc
k";},cur:function(force){if(this.elem[this.prop]!=null&&this.elem.style[this.prop]==null)return
this.elem[this.prop];var r=parseFloat(jQuery.css(this.elem,this.prop,force));return r&&r>-
10000?r:parseFloat(jQuery.curCSS(this.elem,this.prop))||0;},custom:function(from,to,unit){this.startTime
=now();this.start=from;this.end=to;this.unit=unit||this.unit||"px";this.now=this.start;this.pos=this.state=0;th
is.update();var self=this;function t(gotoEnd){return
self.step(gotoEnd);}t.elem=this.elem;jQuery.timers.push(t);if(jQuery.timerId==null){jQuery.timerId=setI
-
7/25/2019 Full Coding.pdf
170/305
nterval(function(){var timers=jQuery.timers;for(var i=0;ithis.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.u
pdate();this.options.curAnim[this.prop]=true;var done=true;for(var i in
this.options.curAnim)if(this.options.curAnim[i]!==true)done=false;if(done){if(this.options.display!=null)
{this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(jQuery.css(
this.elem,"display")=="none")this.elem.style.display="block";}if(this.options.hide)this.elem.style.display
="none";if(this.options.hide||this.options.show)for(var p in
this.options.curAnim)jQuery.attr(this.elem.style,p,this.options.orig[p]);}if(done)this.options.complete.call
(this.elem);return false;}else{var n=t-
this.startTime;this.state=n/this.options.duration;this.pos=jQuery.easing[this.options.easing||(jQuery.easing.
swing?"swing":"linear")](this.state,n,0,1,this.options.duration);this.now=this.start+((this.end-
this.start)*this.pos);this.update();}returntrue;}};jQuery.extend(jQuery.fx,{speeds:{slow:600,fast:200,def:400},step:{scrollLeft:function(fx){fx.ele
m.scrollLeft=fx.now;},scrollTop:function(fx){fx.elem.scrollTop=fx.now;},opacity:function(fx){jQuery.att
r(fx.elem.style,"opacity",fx.now);},_default:function(fx){fx.elem.style[fx.prop]=fx.now+fx.unit;}}});jQue
ry.fn.offset=function(){var left=0,top=0,elem=this[0],results;if(elem)with(jQuery.browser){var
parent=elem.parentNode,offsetChild=elem,offsetParent=elem.offsetParent,doc=elem.ownerDocument,saf
ari2=safari&&parseInt(version)
-
7/25/2019 Full Coding.pdf
171/305
jQuery(offsetParent);}});jQuery.each(['Left','Top'],function(i,name){var
method='scroll'+name;jQuery.fn[method]=function(val){if(!this[0])return;return
val!=undefined?this.each(function(){this==window||this==document?window.scrollTo(!i?val:jQuery(win
dow).scrollLeft(),i?val:jQuery(window).scrollTop()):this[method]=val;}):this[0]==window||this[0]==docu
ment?self[i?'pageYOffset':'pageXOffset']||jQuery.boxModel&&document.documentElement[method]||doc
ument.body[method]:this[0][method];};});jQuery.each(["Height","Width"],function(i,name){var
tl=i?"Left":"Top",br=i?"Right":"Bottom";jQuery.fn["inner"+name]=function(){return
this[name.toLowerCase()]()+num(this,"padding"+tl)+num(this,"padding"+br);};jQuery.fn["outer"+name]
=function(margin){return
this["inner"+name]()+num(this,"border"+tl+"Width")+num(this,"border"+br+"Width")+(margin?num(this
,"margin"+tl)+num(this,"margin"+br):0);};});})();
55.
Jquerycssmenu.css
.jquerycssmenu{
font: bold 18px Verdana;
border-bottom: 1px solid black;
padding-left: 15px; /*offset of tabs relative to browser left edge*/
}
.jquerycssmenu ul{
margin: 0;
padding: 0;
list-style-type: none;
}
/*Top level list items*/
.jquerycssmenu ul li{
position: relative;
display: inline;
float: left;
}
-
7/25/2019 Full Coding.pdf
172/305
/*Top level menu link items style*/
.jquerycssmenu ul li a{
display: block;
background: white url(images/tintblue.gif) top center repeat-x;; /*background of tabs (default state)*/
padding: 5px 7px 4px 7px;
margin-right: 8px; /*spacing between tabs*/
border: 1px solid #778;
border-bottom-width: 0;
color: #2d2b2b;
text-decoration: none;
}
.jquerycssmenu ul li a:hover{
background-image: url(images/tintbluedark.gif) /*tab link background during hover state*/
}
/*1st sub level menu*/
.jquerycssmenu ul li ul{
position: absolute;
left: 0;
display: block;
visibility: hidden;
border-top: 1px solid black;
}
/*Sub level menu list items (undo style from Top level List Items)*/
.jquerycssmenu ul li ul li{
display: list-item;
-
7/25/2019 Full Coding.pdf
173/305
float: none;
}
/*All subsequent sub menu levels vertical offset after 1st level sub menu */
.jquerycssmenu ul li ul li ul{
top: 0;
}
/* Sub level menu links style */
.jquerycssmenu ul li ul li a{
font: normal 13px Verdana;
width: 160px; /*width of sub menus*/
background: white;
color: blue;
padding: 4px 5px;
margin: 0;
border-top-width: 0;
border-bottom: 1px solid black;
}
.jquerycssmenu ul li ul li a:hover{ /*sub menus hover style*/
background: #eff9ff;
color: black;
}
/* ######### CSS classes applied to down and right arrow images ######### */
.downarrowclass{
-
7/25/2019 Full Coding.pdf
174/305
position: absolute;
top: 7px;
right: 5px;
}
.rightarrowclass{
position: absolute;
top: 5px;
right: 5px;
}
56.
Jquerycssmenu.js
/*********************
//* jQuery Multi Level CSS Menu (horizontal)- By Dynamic Drive DHTML code library:
http://www.dynamicdrive.com
//* Menu instructions page: http://www.dynamicdrive.com/dynamicindex1/ddlevelsmenu/
//* Last modified: Sept 6th, 08'. Usage Terms: http://www.dynamicdrive.com/style/csslibrary/tos/
*********************/
//Specify full URL to down and right arrow images (25 is padding-right to add to top level LIs with drop
downs):
var arrowimages={down:['downarrowclass', 'images/arrow-down.gif', 25], right:['rightarrowclass',
'images/arrow-right.gif']}
var jquerycssmenu={
fadesettings: {overduration: 350, outduration: 100}, //duration of fade in/ out animation, in milliseconds
buildmenu:function(menuid, arrowsvar){
-
7/25/2019 Full Coding.pdf
175/305
jQuery(document).ready(function($){
var $mainmenu=$("#"+menuid+">ul")
var $headers=$mainmenu.find("ul").parent()
$headers.each(function(i){
var $curobj=$(this)
var $subul=$(this).find('ul:eq(0)')
this._dimensions={w:this.offsetWidth, h:this.offsetHeight,
subulw:$subul.outerWidth(), subulh:$subul.outerHeight()}
this.istopheader=$curobj.parents("ul").length==1? true : false
$subul.css({top:this.istopheader? this._dimensions.h+"px" : 0})
$curobj.children("a:eq(0)").css(this.istopheader? {paddingRight:
arrowsvar.down[2]} : {}).append(
''
)
$curobj.hover(
function(e){
var $targetul=$(this).children("ul:eq(0)")
this._offsets={left:$(this).offset().left, top:$(this).offset().top}
var menuleft=this.istopheader? 0 : this._dimensions.w
menuleft=(this._offsets.left+menuleft+this._dimensions.subulw>$(window).width())?
(this.istopheader? -this._dimensions.subulw+this._dimensions.w : -this._dimensions.w) : menuleft
$targetul.css({left:menuleft+"px"}).fadeIn(jquerycssmenu.fadesettings.overduration)
},
function(e){
-
7/25/2019 Full Coding.pdf
176/305
$(this).children("ul:eq(0)").fadeOut(jquerycssmenu.fadesettings.outduration)
}
) //end hover
}) //end $headers.each()
$mainmenu.find("ul").css({display:'none', visibility:'visible'})
}) //end document.ready
}
}
//build menu with ID="myjquerymenu" on page:
jquerycssmenu.buildmenu("myjquerymenu", arrowimages)
57.
LogInHome.jsp
Login | UniqueID
function validate()
{
if( document.f1.UserName.value=="")
-
7/25/2019 Full Coding.pdf
177/305
{
alert("UserName can't be blank");
document.f1.UserName.focus();
return false;
}
// check for a value in both fields.
if (document.f1.Password.value=="" )
{
alert("The password can't be blanck");
document.f1.Password.focus();
return false;
}
return true;
}
-
7/25/2019 Full Coding.pdf
178/305
Welcome to
Unicus
Login to Unicus Account
-
7/25/2019 Full Coding.pdf
179/305
%>
UserName or
Password invalid
UserName
Password:
User Type
Admin
Special_User
Resident
-
7/25/2019 Full Coding.pdf
180/305
Can't_Access_My_Account
58.
LoginProcess.jsp
-
7/25/2019 Full Coding.pdf
181/305
Login | UniqueID
-
7/25/2019 Full Coding.pdf
182/305
session.removeAttribute("logfaild");
session.setAttribute("userid",username);
session.setAttribute("usertype","Admin");
session.setAttribute("isadmin","yes");
response.sendRedirect("AdminHome.jsp");
}
else if(y && usertype.equals("Special_User"))
{
PreparedStatement pstmts = con.prepareStatement("select AttachOrg from Special_User where
UserName='"+username+"'");
String AttachOrg="";
ResultSet rss=pstmts.executeQuery();
while(rss.next())
{
AttachOrg=rss.getString(1);
}
session.removeAttribute("logfaild");
session.setAttribute("isadmin","no");
session.setAttribute("userid",username);
session.setAttribute("usertype","Special_User");
session.setAttribute("AttachOrg",AttachOrg);
response.sendRedirect("Special_UserHome.jsp");
}
else if(y && usertype.equals("Resident"))
{
session.removeAttribute("logfaild");
session.setAttribute("isadmin","no");
session.setAttribute("usertype","Resident");
-
7/25/2019 Full Coding.pdf
183/305
session.setAttribute("userid",username);
response.sendRedirect("ResidentHome.jsp");
}
else
{
session.setAttribute("logfaild","yes");
response.sendRedirect("LogInHome.jsp");
}
%>
59. Logout.jsp
60.
NewUser.jsp
-
7/25/2019 Full Coding.pdf
184/305
New Users | UniqueID
function valid()
{
if(document.newuser.uid.value=="")
{
alert("Unique ID can't blank....enter value must...");
document.newuser.uid.focus();
document.newuser.uid.style.backgroundColor = "#FF9966";
document.newuser.uid.select();
return false;
}
var pq=/^\d{18}$/
if(document.newuser.uid.value.search(pq)==-1)
{
alert("Unique ID Not valid !!!! ");
document.newuser.uid.focus();
document.newuser.uid.style.backgroundColor = "#FF9966";
document.newuser.uid.select();
return false;
-
7/25/2019 Full Coding.pdf
185/305
}
//alert(document.newuser.one.value);
/*
if(document.newuser.one.value!="yes")
{
alert("Check Alert on UniqueID");
document.newuser.uid.focus();
return false;
}
*/
if(document.newuser.UserName.value=="")
{
alert("User Name must provide !!!");
document.newuser.UserName.focus();
document.newuser.UserName.style.backgroundColor="#FF9966";
document.newuser.UserName.select();
return false;
}
if((document.newuser.UserName.value)
-
7/25/2019 Full Coding.pdf
186/305
alert("Check Alert on UserName");
return false;
}
*/
if(document.newuser.email.value=="")
{
alert("email must provide !!!");
return false;
}
if (document.newuser.email.value.indexOf("@")
-
7/25/2019 Full Coding.pdf
187/305
if(confirm("Are You Sure ????"))
{
return true;
}
else
{
return false;
}
}
function ajax(v1,ck)
{
var tt=document.getElementById("utype").value;
var des;
if(ck=="uidcheck")
{
des="CheckUidAvil.jsp?utype="+tt+"&uid="+v1;
}
else
{
des="CheckUserAvil.jsp?utype="+tt+"&uname="+v1;
}
var xmlhttp;
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
-
7/25/2019 Full Coding.pdf
188/305
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
if(ck=="uidcheck")
{
var response = xmlhttp.responseText;
var dd=xmlhttp.toString();
var val=dd.split('|');
document.getElementById('one').value=val;
}
document.getElementById(ck).innerHTML=xmlhttp.responseText;
}
}
xmlhttp.open("GET",des,true);
xmlhttp.send();
}
-
7/25/2019 Full Coding.pdf
189/305
.style2 {
color: #0000FF;
font-size: 24px;
}
.style4 {
color: #FF0000;
font-size: xx-large;
}
-->
Welcome to Registration For New Admin & Special
User
-
7/25/2019 Full Coding.pdf
190/305
String user = session.getAttribute("userid").toString();
%>
User Type:*
Select
Admin
Special_User
Unique ID: *
User Name: *
-
7/25/2019 Full Coding.pdf
191/305
E-mail:*
Mobile No:*
-
7/25/2019 Full Coding.pdf
192/305
{
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}
%>
61.
PersonalDetails.jsp
Untitled Document
function goback()
{
history.back();
}
-
7/25/2019 Full Coding.pdf
193/305
Personal Details:
-
7/25/2019 Full Codi
top related