Anda di halaman 1dari 306

1. addNewCity.

jsp
<%@ page language="java" import="java.sql.*;" errorPage="ErrorOccurred.jsp"%>
<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>addNewDistrict | UniqueID</title>
<script language="javascript" type="text/javascript">
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;
}

1.0

Transitional//EN"

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)

{// 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();
}
</script>
<style type="text/css">
<!-.style1 {color: #FF0000}
.style2 {color: #0000FF}
.style9 {
font-size: 24px;
color: #0000FF;
}
-->
</style>

</head>

<body onload="ajax('la','null')">
<%
if(session.getAttribute("userid")!=null && session.getAttribute("isadmin")=="yes")
{
String user = session.getAttribute("userid").toString();
%>
<form name="newcity" method="post" action="AddNewCityProcess.jsp" onsubmit="return valid()">
<table width="100%" border="0" align="center">

<tr>
<td height="11"><img src="images/indiaflag.gif" width="140" height="105" />

</td>

<td height="11" colspan="5"><div align="center" class="style9">Add new City to Unicus database


</div></td>
</tr>
<tr>
<td height="11" colspan="6"><%@ include file="header.html"%></td>
</tr>
<tr>
<td width="55" height="24"><a href="Home.jsp"></a></td>
<td width="104"><a href="AdminHome.jsp">Admin Home</a></td>
<td width="171">&nbsp;</td>
<td width="30">&nbsp;</td>
<td width="29">&nbsp;</td>
<td height="24">&nbsp;</td>
</tr>
<tr>

<td height="179" colspan="5"><table width="314" border="0" align="center">


<tr>
<td width="111"><div align="right">Select State:<span class="style1">*</span></div></td>
<td width="193"><select name="stateID" id="la" onchange="ajax('dist',this.value)">
</select></td>
</tr>

<tr>
<td><div align="right">Select District:<span class="style1">*</span> </div></td>
<td><select name="districtID" id="dist" onchange="ajax('dis',this.value)">
</select>

</td>

</tr>
<tr>
<td><div align="right">City Name:<span class="style1">*</span> </div></td>
<td><input name="city" type="text" id="city" /></td>
</tr>
<tr>
<td><div align="right">City ID:<span class="style1">*</span> </div></td>
<td><input name="cityID" type="text" id="cityID" /></td>
</tr>
<tr>

<td colspan="2"><div align="center">


<input type="submit" name="Submit" value="Submit" />
</div>
</tr>
<tr>

</td>

<td colspan="2"><span class="style2">Please Use One Higher value of first CityID :&gt;&gt;
</span></td>
</tr>
</table></td>
<td width="438" height="179"><div id="dis" align="center">Cityes will be listed here...</div></td>
</tr>
<tr>
<td height="25" colspan="6">&nbsp;</td>
</tr>
<tr>

<td colspan="6"></td>
</tr>
</table>
</form>
<p>
<%
}
else
{
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}
%>

</body>
</html>

2. AddNewCityProcess.jsp

<%@ page contentType="text/html;


errorPage="ErrorOccurred.jsp" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

1.0

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Add New City Process | UniqueID</title>
<style type="text/css">
<!-.style1 {font-size: 36px}
.style3 {font-size: 36px; color: #FF0000; }
.style4 {color: #009966}
.style5 {
font-size: 24px;
color: #0000FF;
}
-->
</style>
</head>

<body>
<%
if(session.getAttribute("userid")!=null && session.getAttribute("isadmin")=="yes")
{
%>
<table width="100%" border="0">
<tr>

import="java.sql.*"

Transitional//EN"

<td width="8%"><img src="images/indiaflag.gif" alt="Unicus" width="125" height="88"


longdesc="Home.jsp" /></td>
<td width="92%"><div align="center"><span class="style5">Welcome to Add New City
Process</span> </div></td>
</tr>
<tr>
<td colspan="2"><%@ include file="header.html" %></td>
</tr>
<tr>
<td colspan="2"><p>
<%
String stateID=request.getParameter("stateID");
String districtID=request.getParameter("districtID");
String city=request.getParameter("city");
String cityID=request.getParameter("cityID");
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:StateDistrictCity");
String addcity="insert into city values(?,?,?,?)";
PreparedStatement ps= con.prepareStatement(addcity);
ps.setString(1,cityID);
ps.setString(2,districtID);
ps.setString(3,stateID);
ps.setString(4,city);
int done=ps.executeUpdate();
if(done==1)
{
%>
</p>
<p align="center" class="style1">Add New City Following Complete.</p>

<p></p>
<table width="260" height="123" border="1" align="center">
<tr>
<td width="175"><span class="style4">State ID</span></td>
<td width="69"><%=stateID%></td>
</tr>
<tr>
<td><span class="style4">District ID</span></td>
<td><p><%=districtID%></p></td>
</tr>
<tr>
<td><span class="style4">City ID</span></td>
<td><%=cityID%></td>
</tr>
<tr>
<td><span class="style4">City/Techsil</span> </td>
<td><%=city%></td>
</tr>
</table>
<p align="center"><span class="style1"><a href="addNewCity.jsp">click here to go
back</a></span> </p>
<%
}
else
{
%>
<p align="center"><span class="style3">Add New City Faild !!! </span></p>
<p align="center"><a href="addNewCity.jsp" class="style1">click here to go back</a> </p>

<%
}
%></td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
</table>
<%
}
else
{
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}
%>

</body>
</html>

3.

addNewDistrict.jsp

<%@ page language="java" import="java.sql.*;" errorPage="ErrorOccurred.jsp"%>


<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>addNewDistrict | UniqueID</title>
<script language="javascript" type="text/javascript">

1.0

Transitional//EN"

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")

{
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();
}
</script>
<style type="text/css">

<!-.style1 {color: #FF0000}


.style2 {color: #0000FF}
.style4 {
font-size: 24px;
color: #0000FF;
}
-->
</style>
</head>

<body onload="ajax('la','null')">
<%
if(session.getAttribute("userid")!=null && session.getAttribute("isadmin")=="yes")
{
String user = session.getAttribute("userid").toString();
%>
<form name="newdistrict"
valid()">

method="post"

action="AddNewDistrictProcess.jsp"

onsubmit="return

<table width="101%" border="0" align="center">

<tr>
<td width="312" height="24"><img src="images/indiaflag.gif" width="140" height="105" /></td>
<td height="24" colspan="2" class="style4"><div align="center">Add new District to Unicus database
</div></td>
</tr>
<tr>
<td colspan="3"><%@ include file="header.html"%></td>
</tr>

<tr>
<td colspan="3"><a href="AdminHome.jsp">Admin Home</a></td>
</tr>

<tr>
<td height="179" colspan="2">
<table width="314" border="0" align="center">
<tr>
<td width="110"><div align="right">Select State:<span class="style1">*</span></div></td>
<td width="194"><select name="stateID" id="la" onchange="ajax('dis',this.value)">
</select></td>
</tr>

<tr>
<td><div align="right">District Name:<span class="style1">*</span> </div></td>
<td><input name="district" type="text" id="district" /></td>
</tr>
<tr>
<td><div align="right">District ID:<span class="style1">*</span> </div></td>
<td><input name="districtID" type="text" id="districtID" /></td>
</tr>
<tr>

<td colspan="2"><div align="center">


<input type="submit" name="Submit" value="Submit" />
</div>
</tr>
<tr>

</td>

<td colspan="2"><span class="style2">Please Use One Higher value of first DistrictID :&gt;&gt;
</span></td>
</tr>
</table></td>
<td width="357" height="179"><div id="dis" align="center">Districts will be listed here...</div></td>
</tr>
<tr>
<td height="25" colspan="2">&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>

<td colspan="3"></td>
</tr>
</table>
</form>
<p>
<%
}
else
{
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}
%>

</body>
</html>

4.

AddNewDistrictProcess.jsp

<%@ page contentType="text/html;


errorPage="ErrorOccurred.jsp" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

1.0

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Add New District Process | UniqueID</title>
<style type="text/css">
<!-.style1 {font-size: 36px}
.style3 {color: #FF0000; font-size: 36px; }
.style4 {color: #009966}
.style5 {
font-size: 24px;
color: #0000FF;
}
-->
</style>
</head>

<body>
<%
if(session.getAttribute("userid")!=null && session.getAttribute("isadmin")=="yes")
{
%>

<table width="100%" border="0">

import="java.sql.*"

Transitional//EN"

<tr>
<td width="13%" rowspan="2"><img src="images/indiaflag.gif" alt="Unicus" width="145"
height="83" /></td>
<td width="87%">&nbsp;</td>
</tr>
<tr>
<td height="21"><div align="center"><span class="style5">Welcome to Add New District
Process</span> </div></td>
</tr>
<tr>
<td colspan="2"><%@ include file="header.html"%></td>
</tr>
<tr>
<td colspan="2"><p>
<%
String stateID=request.getParameter("stateID");
String districtID=request.getParameter("districtID");
String district=request.getParameter("district");
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:StateDistrictCity");
String adddistrict="insert into district values(?,?,?)";
PreparedStatement ps= con.prepareStatement(adddistrict);
ps.setString(1,districtID);
ps.setString(2,stateID);
ps.setString(3,district);
int done=ps.executeUpdate();
if(done==1)
{
%>

</p>
<p align="center" class="style1">Add New District Complete. </p>
</p>
<table width="192" height="90" border="0" align="center">
<tr>
<td><span class="style4">State ID</span></td>
<td><%=stateID%></td>
</tr>
<tr>
<td height="29"><span class="style4">District ID</span></td>
<td><%=districtID%></td>
</tr>
<tr>
<td height="30" class="style4">District Name: </td>
<td><%=district%></td>
</tr>
</table>
<p align="center"><span class="style1"><a href="addNewDistrict.jsp">click here to go
back</a></span></p>
<p>
<%
}
else
{
%>
</p>
<p align="center" class="style3">Add New District Faild !!! </p>
<p align="center"><span class="style3"><a href="addNewDistrict.jsp">click here to go
back</a></span> </p>

<p> </p>
<p>
<%
}
%>
</p></td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
</table>
<%
}
else
{
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}
%>

</body>
</html>

5.

addNewState.jsp

<%@ page language="java" import="java.sql.*;" errorPage="ErrorOccurred.jsp"%>


<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

1.0

Transitional//EN"

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />


<title>addNewState | UniqueID</title>
<script type="text/javascript" language="javascript" >
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();
}

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();
}
</script>
<style type="text/css">
<!-.style1 {color: #FF0000}
.style2 {color: #0000FF}
.style4 {color: #FF0000; font-size: 36px; }
.style5 {
font-size: xx-large;
color: #0000FF;
}
-->
</style>
</head>

<body onload="ajax()">
<table width="100%" border="0">
<tr>
<th width="16%" scope="col"><img src="images/indiaflag.gif" width="140" height="105" /></th>
<th width="84%" scope="col"><div align="center"><span class="style5">Welcome to Add New State
to Unicus Database</span> </div></th>
</tr>
<tr>
<th colspan="2" scope="col"><%@ include file="header.html"%></th>
</tr>
<tr>
<th colspan="2" scope="col"><a href="AdminHome.jsp">Admin Home</a></th>
</tr>
</table>
<p>
<%
if(session.getAttribute("userid")!=null && session.getAttribute("isadmin")=="yes")
{
String user = session.getAttribute("userid").toString();
%>
</p>
<form name="newstate" method="post" action="AddNewStateProcess.jsp" onsubmit="return valid()">
<table width="100%" border="0" align="center">

<tr>
<td width="404" height="179">
<table width="100%" border="0" align="center">

<tr>
<td width="93"><div align="right">State Name:<span class="style1">*</span> </div></td>
<td width="205"><input name="state" type="text" id="state" /></td>
</tr>
<tr>
<td><div align="right">State ID:<span class="style1">*</span> </div></td>
<td><input name="stateID" type="text" id="stateID" /></td>
</tr>
<tr>

<td colspan="2"><div align="center">


<input type="submit" name="Submit" value="Submit" />
</div>

</td>

</tr>
<tr>
<td colspan="2"><span class="style2">Please Use One Higher value for stateID from display
StateID :&gt;&gt; </span></td>
</tr>
</table></td>
<td width="439" height="179"><div id="dis" align="center"></div></td>
</tr>
<tr>
<td colspan="2"></td>
</tr>
</table>
</form>

<p>
<%
}
else
{
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}
%>

</body>
</html>

6.

AddNewStateProcess.jsp

<%@ page language="java" import="java.sql.*;" errorPage="ErrorOccurred.jsp"%>


<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>addNewState | UniqueID</title>
<script type="text/javascript" language="javascript" >
function valid()
{
if(document.newstate.state.value=="")
{
alert("Please enter state name");
document.newstate.state.focus();

1.0

Transitional//EN"

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;

}
}
xmlhttp.open("GET","getStateForAddState.jsp",true);
xmlhttp.send();
}
</script>
<style type="text/css">
<!-.style1 {color: #FF0000}
.style2 {color: #0000FF}
.style4 {color: #FF0000; font-size: 36px; }
.style5 {
font-size: xx-large;
color: #0000FF;
}
-->
</style>
</head>

<body onload="ajax()">
<table width="100%" border="0">
<tr>
<th width="16%" scope="col"><img src="images/indiaflag.gif" width="140" height="105" /></th>
<th width="84%" scope="col"><div align="center"><span class="style5">Welcome to Add New State
to Unicus Database</span> </div></th>
</tr>
<tr>
<th colspan="2" scope="col"><%@ include file="header.html"%></th>

</tr>
<tr>
<th colspan="2" scope="col"><a href="AdminHome.jsp">Admin Home</a></th>
</tr>
</table>
<p>
<%
if(session.getAttribute("userid")!=null && session.getAttribute("isadmin")=="yes")
{
String user = session.getAttribute("userid").toString();
%>
</p>
<form name="newstate" method="post" action="AddNewStateProcess.jsp" onsubmit="return valid()">
<table width="100%" border="0" align="center">

<tr>
<td width="404" height="179">
<table width="100%" border="0" align="center">
<tr>
<td width="93"><div align="right">State Name:<span class="style1">*</span> </div></td>
<td width="205"><input name="state" type="text" id="state" /></td>
</tr>
<tr>
<td><div align="right">State ID:<span class="style1">*</span> </div></td>
<td><input name="stateID" type="text" id="stateID" /></td>
</tr>
<tr>

<td colspan="2"><div align="center">


<input type="submit" name="Submit" value="Submit" />
</div>

</td>

</tr>
<tr>
<td colspan="2"><span class="style2">Please Use One Higher value for stateID from display
StateID :&gt;&gt; </span></td>
</tr>
</table></td>
<td width="439" height="179"><div id="dis" align="center"></div></td>
</tr>
<tr>
<td colspan="2"></td>
</tr>
</table>
</form>

<p>
<%
}
else
{
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}
%>

</body>
</html>

7.

AdminHome.jsp

<%@ page language="java" import="java.sql.*;" errorPage="ErrorOccurred.jsp"%>


<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Admin | UniqueID</title>
<script type="text/javascript" language="javascript">
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;
}

1.0

Transitional//EN"

return true;
}
</script>
<style type="text/css">
<!-.style3 {
font-size: 24px;
color: #0000FF;
}
.style6 {color: #FF0000; font-size: 24px; }
body {
background-color: #FFFFFF;
}
.style7 {color: #FF00FF}
.style15 {color: #FF0000; font-size: 36px; }
-->
</style>
</head>

<body>
<p>
<%
if(session.getAttribute("userid")!=null && session.getAttribute("isadmin")=="yes")
{
String user = session.getAttribute("userid").toString();
%>

</p>

<table width="100%" border="0" align="center">


<tr>
<th height="55" rowspan="2" scope="col"><div align="left"><img src="images/indiaflag.gif"
width="140" height="105" /></div></th>
<th width="338" height="41" scope="col"><div align="center" class="style7">Welcome &gt;&gt; <
%=user%> </div></th>
<th
width="114"
scope="col"><div
href="ChangePassword.jsp">ChangePassword</a></div></th>
<th
width="288"
scope="col"><div
align="right"><a
src="images/LogOutIcon.PNG" width="58" height="35" /></a></div></th>

align="right"><a

href="logout.jsp"><img

</tr>
<tr>
<th height="57" colspan="3" scope="col"><span class="style3">Welcome to Admin Home of
Unicus</span></th>
</tr>

<tr>
<th colspan="4" scope="col"><%@ include file="header.html"%></th>
</tr>

<tr>
<th width="200" height="181" scope="col"><span class="style6">Resident Section</span>
<hr />
<table width="200" border="0" align="center">
<tr>
<th scope="col"><div align="center"><a href="Registration.jsp">New Resident </a></div></th>
</tr>
<tr>
<th scope="col">&nbsp;</th>

</tr>
<tr>

</tr>

</table>
<hr /></th>
<th height="181" colspan="2" rowspan="3" scope="col"><table width="100%" height="100%"
border="0" align="center">
<tr>
<td height="204"><img src="images/UID.jpg" alt="UNICUS" width="475" height="200"
longdesc="home.jsp" /></td>
</tr>
<tr>
<td><marquee direction="up" loop="true" scrollamount="2">
<div align="justify">
<p>The name of the project is &ldquo;<strong>UNICUS</strong>&rdquo;. A
<strong>UNICUS</strong> project as a means for residents to clearly and uniquely verify their identity
anywhere in the country.</p>
<p><strong>UNICUS</strong> provide UID which is a universal number. </p>
<p>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. </p>
<p>Agencies and services can contact the <strong>UNICUS</strong> database from anywhere in
the country to confirm a beneficiary&rsquo;s identity. </p>
</div>
</marquee>
</td>
</tr>
</table></th>
<th height="181" rowspan="3" scope="col"><table width="288" border="0" align="center">
<tr>
<th colspan="3" scope="col"><div align="center" class="style3">Search Resident</div></th>
</tr>

<form id="form1" name="form1" method="post" action="BasicDetails.jsp" onsubmit="return


validuid()">
<tr>
<th width="160" scope="col"><div align="right">By UniqueID: </div></th>
<th width="170" scope="col"><div align="left">
<input name="uid" type="text" id="uid" />
</div></th>
<th width="255" scope="col"> <div align="left">
<input type="submit" name="Submit" value="Submit" />
</div></th>
</tr>
</form>
<tr>

</tr>
<tr>
<th colspan="3" scope="col">&nbsp;</th>
</tr>
</table></th>
</tr>
<tr>
<th height="89" scope="col"><span class="style6">User Section</span>
<hr />
<table width="200" border="0" align="center">
<tr>
<td height="32"><div align="center"><a href="NewUser.jsp">Add New Users</a></div></td>
</tr>
</table>

</th>

</tr>
<tr>
<th height="141" scope="col"><hr />
<span class="style6">Location Section</span>
<hr />
<table width="200" border="0" align="center">
<tr>
<td><div align="center"><a href="addNewState.jsp">Add New State </a></div></td>
</tr>
<tr>
<td><div align="center"><a href="addNewDistrict.jsp">Add New District </a></div></td>
</tr>
<tr>
<td><div align="center"><a href="addNewCity.jsp">Add New City </a></div></td>
</tr>
</table></th>
</tr>
</table>
<p><%@ include file="footer.jsp"%></p>
<p>
<%
}
else
{
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}
%>
</p>

</body>
</html>

8.

ApplicantElectricitysupply.jsp

<%@ page contentType="text/html;


errorPage="" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Applicant Electricity Supply</title>
<style type="text/css">
<!-.style2 {font-size: 24px}
.style3 {color: #0000FF}
-->
</style>
</head>

<body>
<table width="100%" border="0" align="center">
<%
if(session.getAttribute("userid")!=null)
{
String user = session.getAttribute("userid").toString();

%>
<tr>

1.0

import="java.sql.*"

Transitional//EN"

<td width="146" height="83" rowspan="2"><img src="images/indiaflag.gif" width="140"


height="105" /></td>
<td width="367"><div align="center"><span class="style5">Welcome &gt;&gt;</span> <%=user
%></div></td>
<td
width="318"><div
href="ChangePassword.jsp">ChangePassword</a></div></td>

align="center"><a

<td width="126"><a href="logout.jsp"><img src="images/LogOutIcon.PNG" width="58" height="35"


/></a></td>
</tr>
<tr>
<td height="5" colspan="3"><div align="center"><span class="style7 style2 style3">Welcome to
Electricity Supply Application</span></div></td>
</tr>
<tr>
<td height="6" colspan="4"><%@ include file="header.html"%>&nbsp;</td>
</tr>
<tr>
<td height="14" colspan="4">

<FORM>
<div align="right">
<input type="button" value="Reload Page" onClick="window.location.reload()">
</div>
</FORM>
<p>
<%
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conDatabaseOrg=DriverManager.getConnection("jdbc:odbc:DatabaseOrg");
Statement stDatabaseOrg = conDatabaseOrg.createStatement();
ResultSet rsDatabaseOrg = stDatabaseOrg.executeQuery("select * from
status='false'");

electricitysupply where

Connection conResident=DriverManager.getConnection("jdbc:odbc:Resident");
Statement stResident = conResident.createStatement();
String UniqueID="";
%>
</p>
<table width="100%" border="2" align="center" >
<tr>
<td width="152"><div align="center" class="style2">UniqueID</div></td>
<td width="152"><div align="center" class="style2">Name</div></td>
<td width="119"><div align="center" class="style2">Status</div></td>
<td width="124"><div align="center" class="style2">Payment</div></td>
</tr>
<%

while (rsDatabaseOrg.next())
{

UniqueID=rsDatabaseOrg.getString(1);

stResident.executeQuery("select
UniqueID='"+UniqueID+"'");

firstname,

lastname

from

ResultSet rsResident =
BasicDetails
where

rsResident.next();
String
name=rsResident.getString(1)+" "+rsResident.getString(2);
out.println("<tr>");
out.println("<td>" +UniqueID+"</td>");
out.println("<td>"
+name+"</td>");
out.println("<td>"
+rsDatabaseOrg.getString(2)+"</td>");

out.println("<td>"
+rsDatabaseOrg.getString(3)+"</td>");
out.println("<td><a
href='ConfirmElectricitysupplyConnection.jsp?UniqueID="+UniqueID+"'>Confirm</a></td>");
out.println("</tr>");
}
%>
</table>
<p>
<%
}else
{
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}
%>
</p>
<p>&nbsp; </p></td>
</tr>
</table>
</body>
</html>

9.

ApplicantGas.jsp

<%@ page contentType="text/html;


errorPage="" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

1.0

import="java.sql.*"

Transitional//EN"

<title>Applicant Gas</title>
<style type="text/css">
<!-.style1 {
font-size: 24px;
color: #0000FF;
}
.style2 {color: #0000FF}
-->
</style>
</head>

<body>
<table width="100%" border="0" align="center">
<%
if(session.getAttribute("userid")!=null)
{
String user = session.getAttribute("userid").toString();

%>
<tr>
<td width="146" height="83" rowspan="2"><img src="images/indiaflag.gif" width="140"
height="105" /></td>
<td width="367"><div align="center"><span class="style5">Welcome &gt;&gt;</span> <%=user
%></div></td>
<td
width="318"><div
href="ChangePassword.jsp">ChangePassword</a></div></td>

align="center"><a

<td width="126"><a href="logout.jsp"><img src="images/LogOutIcon.PNG" width="58" height="35"


/></a></td>
</tr>

<tr>
<td height="5" colspan="3"><div align="center"><span class="style7 style1">Welcome to Gas
Application</span></div></td>
</tr>
<tr>
<td height="6" colspan="4"><%@ include file="header.html"%>&nbsp;</td>
</tr>
<tr>
<td height="14" colspan="4"><FORM>
<div align="right">
<input type="button" value="Reload Page" onClick="window.location.reload()">
</div>
</FORM>
<p>
<%
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conDatabaseOrg=DriverManager.getConnection("jdbc:odbc:DatabaseOrg");
Statement stDatabaseOrg = conDatabaseOrg.createStatement();
ResultSet rsDatabaseOrg = stDatabaseOrg.executeQuery("select * from gas where status='false'");
Connection conResident=DriverManager.getConnection("jdbc:odbc:Resident");
Statement stResident = conResident.createStatement();
String UniqueID="";
%>
</p>
<table width="100%" border="2" align="center" >
<tr>
<td width="152"><div align="center" class="style2">UniqueID</div></td>
<td width="152"><div align="center" class="style2">Name</div></td>

<td width="119"><div align="center" class="style2">Status</div></td>


<td width="124"><div align="center" class="style2">Payment</div></td>
</tr>
<%

while (rsDatabaseOrg.next())
{

UniqueID=rsDatabaseOrg.getString(1);

stResident.executeQuery("select
UniqueID='"+UniqueID+"'");

firstname,

lastname

from

ResultSet rsResident =
BasicDetails
where

rsResident.next();
String
name=rsResident.getString(1)+" "+rsResident.getString(2);
out.println("<tr>");
out.println("<td>" +UniqueID+"</td>");
out.println("<td>"
+name+"</td>");
out.println("<td>"
+rsDatabaseOrg.getString(2)+"</td>");
out.println("<td>"
+rsDatabaseOrg.getString(3)+"</td>");
out.println("<td><a
href='ConfirmGasConnection.jsp?UniqueID="+UniqueID+"'>Confirm</a></td>");
out.println("</tr>");
}
%>
</table>
<%
}else

{
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}
%></td>
</tr>
</table>
</body>
</html>

10. ApplicantPhone.jsp
<%@ page contentType="text/html;
errorPage="" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Applicant Phone</title>
<style type="text/css">
<!-.style1 {
font-size: 24px;
color: #0000FF;
}
.style2 {color: #0000FF}
-->
</style>
</head>

1.0

import="java.sql.*"

Transitional//EN"

<body>
<table width="100%" border="0" align="center">
<%
if(session.getAttribute("userid")!=null)
{
String user = session.getAttribute("userid").toString();

%>
<tr>
<td width="146" height="83" rowspan="2"><img src="images/indiaflag.gif" width="140"
height="105" /></td>
<td width="367"><div align="center"><span class="style5">Welcome &gt;&gt;</span> <%=user
%></div></td>
<td
width="318"><div
href="ChangePassword.jsp">ChangePassword</a></div></td>

align="center"><a

<td width="126"><a href="logout.jsp"><img src="images/LogOutIcon.PNG" width="58" height="35"


/></a></td>
</tr>
<tr>
<td height="5" colspan="3"><div align="center"><span class="style7 style1">Welcome to Phone
Application</span></div></td>
</tr>
<tr>
<td height="6" colspan="4"><%@ include file="header.html"%>&nbsp;</td>
</tr>
<tr>
<td height="14" colspan="4"><FORM>
<div align="right">
<input type="button" value="Reload Page" onClick="window.location.reload()">
</div>

</FORM>
<p>
<%
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conDatabaseOrg=DriverManager.getConnection("jdbc:odbc:DatabaseOrg");
Statement stDatabaseOrg = conDatabaseOrg.createStatement();
ResultSet rsDatabaseOrg = stDatabaseOrg.executeQuery("select * from phone where status='false'");
Connection conResident=DriverManager.getConnection("jdbc:odbc:Resident");
Statement stResident = conResident.createStatement();
String UniqueID="";
%>
</p>
<table width="100%" border="2" align="center" >
<tr>
<td width="152"><div align="center" class="style2">UniqueID</div></td>
<td width="152"><div align="center" class="style2">Name</div></td>
<td width="119"><div align="center" class="style2">Status</div></td>
<td width="124"><div align="center" class="style2">Payment</div></td>
</tr>
<%

while (rsDatabaseOrg.next())
{

UniqueID=rsDatabaseOrg.getString(1);

stResident.executeQuery("select
UniqueID='"+UniqueID+"'");

firstname,

lastname

from

ResultSet rsResident =
BasicDetails
where

rsResident.next();

String
name=rsResident.getString(1)+" "+rsResident.getString(2);
out.println("<tr>");
out.println("<td>" +UniqueID+"</td>");
out.println("<td>"
+name+"</td>");
out.println("<td>"
+rsDatabaseOrg.getString(2)+"</td>");
out.println("<td>"
+rsDatabaseOrg.getString(3)+"</td>");
out.println("<td><a
href='ConfirmPhoneConnection.jsp?UniqueID="+UniqueID+"'>Confirm</a></td>");
out.println("</tr>");
}
%>
</table>
<%
}else
{
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}
%></td>
</tr>
</table>
</body>
</html>

11. ApplicantVisaPassport.jsp
<%@ page contentType="text/html;
errorPage="" %>

charset=iso-8859-1"

language="java"

import="java.sql.*"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

1.0

Transitional//EN"

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Applicant Visa Passport</title>
<style type="text/css">
<!-.style1 {
font-size: 24px;
color: #0000FF;
}
.style2 {color: #0000FF}
-->
</style>
</head>

<body>
<table width="100%" border="0" align="center">
<%
if(session.getAttribute("userid")!=null)
{
String user = session.getAttribute("userid").toString();

%>
<tr>
<td width="146" height="83" rowspan="2"><img src="images/indiaflag.gif" width="140"
height="105" /></td>

<td width="367"><div align="center"><span class="style5">Welcome &gt;&gt;</span> <%=user


%></div></td>
<td
width="318"><div
href="ChangePassword.jsp">ChangePassword</a></div></td>

align="center"><a

<td width="126"><a href="logout.jsp"><img src="images/LogOutIcon.PNG" width="58" height="35"


/></a></td>
</tr>
<tr>
<td height="5" colspan="3"><div align="center"><span class="style7 style1">Welcome to Visa
Passport Application</span></div></td>
</tr>
<tr>
<td height="6" colspan="4"><%@ include file="header.html"%>&nbsp;</td>
</tr>
<tr>
<td height="14" colspan="4"><FORM>
<div align="right">
<input type="button" value="Reload Page" onClick="window.location.reload()">
</div>
</FORM>
<p>
<%
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conDatabaseOrg=DriverManager.getConnection("jdbc:odbc:DatabaseOrg");
Statement stDatabaseOrg = conDatabaseOrg.createStatement();
ResultSet rsDatabaseOrg = stDatabaseOrg.executeQuery("select * from
status='false'");
Connection conResident=DriverManager.getConnection("jdbc:odbc:Resident");
Statement stResident = conResident.createStatement();

VisaPassport where

String UniqueID="";
%>
</p>
<table width="100%" border="2" align="center" >
<tr>
<td width="152"><div align="center" class="style2">UniqueID</div></td>
<td width="152"><div align="center" class="style2">Name</div></td>
<td width="119"><div align="center" class="style2">Status</div></td>
<td width="124"><div align="center" class="style2">Payment</div></td>
</tr>
<%

while (rsDatabaseOrg.next())
{

UniqueID=rsDatabaseOrg.getString(1);

stResident.executeQuery("select
UniqueID='"+UniqueID+"'");

firstname,

lastname

from

ResultSet rsResident =
BasicDetails
where

rsResident.next();
String
name=rsResident.getString(1)+" "+rsResident.getString(2);
out.println("<tr>");
out.println("<td>" +UniqueID+"</td>");
out.println("<td>"
+name+"</td>");
out.println("<td>"
+rsDatabaseOrg.getString(2)+"</td>");
out.println("<td>"
+rsDatabaseOrg.getString(3)+"</td>");

out.println("<td><a
href='ConfirmVisaPassport.jsp?UniqueID="+UniqueID+"'>Confirm</a></td>");
out.println("</tr>");
}
%>
</table>
<%
}else
{
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}
%></td>
</tr>
</table>
</body>
</html>

12. ApplicantWaterSupply.jsp
<%@ page contentType="text/html;
errorPage="" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Applicant Water Supply</title>
<style type="text/css">
<!-.style1 {

1.0

import="java.sql.*"

Transitional//EN"

font-size: 24px;
color: #0000FF;
}
-->
</style>
</head>

<body>
<table width="100%" border="0" align="center">
<%
if(session.getAttribute("userid")!=null)
{
String user = session.getAttribute("userid").toString();

%>
<tr>
<td width="146" height="83" rowspan="2"><img src="images/indiaflag.gif" width="140"
height="105" /></td>
<td width="367"><div align="center"><span class="style5">Welcome &gt;&gt;</span> <%=user
%></div></td>
<td
width="318"><div
href="ChangePassword.jsp">ChangePassword</a></div></td>

align="center"><a

<td width="126"><a href="logout.jsp"><img src="images/LogOutIcon.PNG" width="58" height="35"


/></a></td>
</tr>
<tr>
<td height="5" colspan="3"><div align="center" class="style1"><span class="style7">Welcome to
Water Supply Application</span></div></td>
</tr>
<tr>

<td height="6" colspan="4"><%@ include file="header.html"%>&nbsp;</td>


</tr>
<tr>
<td height="14" colspan="4"><FORM>
<div align="right">
<input type="button" value="Reload Page" onClick="window.location.reload()">
</div>
</FORM>
<p>
<%
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conDatabaseOrg=DriverManager.getConnection("jdbc:odbc:DatabaseOrg");
Statement stDatabaseOrg = conDatabaseOrg.createStatement();
ResultSet rsDatabaseOrg = stDatabaseOrg.executeQuery("select * from
status='false'");

Connection conResident=DriverManager.getConnection("jdbc:odbc:Resident");
Statement stResident = conResident.createStatement();

String UniqueID="";
%>
</p>
<table width="100%" border="2" align="center" >
<tr>
<td width="152"><div align="center" class="style2">UniqueID</div></td>
<td width="152"><div align="center" class="style2">Name</div></td>
<td width="119"><div align="center" class="style2">Status</div></td>
<td width="124"><div align="center" class="style2">Payment</div></td>

watersupply where

</tr>
<%

while (rsDatabaseOrg.next())
{

UniqueID=rsDatabaseOrg.getString(1);

stResident.executeQuery("select
UniqueID='"+UniqueID+"'");

firstname,

lastname

from

ResultSet rsResident =
BasicDetails
where

rsResident.next();
String
name=rsResident.getString(1)+" "+rsResident.getString(2);
out.println("<tr>");
out.println("<td>" +UniqueID+"</td>");
out.println("<td>"
+name+"</td>");
out.println("<td>"
+rsDatabaseOrg.getString(2)+"</td>");
out.println("<td>"
+rsDatabaseOrg.getString(3)+"</td>");
out.println("<td><a
href='ConfirmWaterSupplyConnection.jsp?UniqueID="+UniqueID+"'>Confirm</a></td>");
out.println("</tr>");
}
%>
</table>
<%
}else
{
response.setHeader("Refresh", "; URL = LogInHome.jsp");

}
%></td>
</tr>
</table>
</body>
</html>

13. ApplyElectricityConnection.jsp
<%@ page contentType="text/html;
errorPage="ErrorOccurred.jsp" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Appy new Electricity Connection</title>
<style type="text/css">
<!-.style1 {
font-size: 24px;
color: #0000FF;
}
.style2 {
font-size: 36px;
color: #006633;
}
.style3 {color: #006633}
.style4 {
font-size: 36px;

1.0

import="java.sql.*"

Transitional//EN"

color: #FF0000;
}
.style5 {color: #FF0000}
-->
</style>
</head>

<body>
<table width="100%" height="127" border="0" align="center">
<%
if(session.getAttribute("userid")!=null)
{
String user = session.getAttribute("userid").toString();

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
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 electricitysupply values('"+UniqueID+"','false','100')");

%>
<tr>
<td width="208" height="107" rowspan="2"><img src="images/indiaflag.gif" width="140"
height="105" /></td>
<td width="314" height="21"><div align="center"><span class="style5">Welcome &gt;&gt;</span> <
%=user%></div></td>
<td width="315"><div align="center"><a href="ChangePassword.jsp"></a></div></td>
<td width="100"><a href="logout.jsp"></a></td>
</tr>
<tr>
<td height="29" colspan="3"><div align="center"><span class="style3 style1">Welcome to Apply
Electricity Connection of Unicus</span></div></td>
</tr>
<tr>
<td height="26" colspan="4"><%@ include file="header.html"%></td>
</tr>
<tr>
<td height="26" colspan="4">
<%if(success==1)
{
%>
<span class="style2">Apply to Electricity supply is successfull. !!!!!!!!!!</span>

<%
}
else
{
%>
<span class="style4">

Apply to Electricity supply faild...</span>

<%
}
%>
</td>
</tr>
<tr> </tr>
</table>
<%
}else
{
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}
%>
</body>
</html>

14. ApplyGasConnection.jsp
<%@ page contentType="text/html;
errorPage="ErrorOccurred.jsp" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Appy new Gas Connection</title>
<style type="text/css">
<!-.style1 {

1.0

import="java.sql.*"

Transitional//EN"

font-size: 24px;
color: #0000FF;
}
.style2 {
font-size: 36px;
color: #006633;
}
.style3 {color: #006633}
.style4 {
font-size: 36px;
color: #FF0000;
}
.style5 {color: #FF0000}
-->
</style>
</head>

<body>
<table width="100%" height="127" border="0" align="center">
<%
if(session.getAttribute("userid")!=null)
{
String user = session.getAttribute("userid").toString();

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
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 gas values('"+UniqueID+"','false','100')");

%>
<tr>
<td width="208" height="107" rowspan="2"><img src="images/indiaflag.gif" width="140"
height="105" /></td>
<td width="314" height="21"><div align="center"><span class="style5">Welcome &gt;&gt;</span> <
%=user%></div></td>
<td width="315"><div align="center"><a href="ChangePassword.jsp"></a></div></td>
<td width="100"><a href="logout.jsp"></a></td>
</tr>
<tr>
<td height="29" colspan="3"><div align="center"><span class="style3 style1">Welcome to Apply Gas
Connection of Unicus</span></div></td>
</tr>
<tr>
<td height="26" colspan="4"><%@ include file="header.html"%></td>
</tr>
<tr>
<td height="26" colspan="4">
<%if(success==1)

{
%>
<span class="style2">Apply to Gas connection is successfull. !!!!!!!!!!</span>

<%
}
else
{
%>
<span class="style4">

Apply to Gas connection faild...</span>

<%
}
%>
</td>
</tr>
<tr> </tr>
</table>
<%
}else
{
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}
%>
</body>
</html>

15. ApplyPhoneConnection.jsp

<%@ page contentType="text/html;


errorPage="ErrorOccurred.jsp" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Appy new Phone Connection</title>
<style type="text/css">
<!-.style1 {
font-size: 24px;
color: #0000FF;
}
.style2 {
font-size: 36px;
color: #006633;
}
.style3 {color: #006633}
.style4 {
font-size: 36px;
color: #FF0000;
}
.style5 {color: #FF0000}
-->
</style>
</head>

<body>

1.0

import="java.sql.*"

Transitional//EN"

<table width="100%" height="127" border="0" align="center">


<%
if(session.getAttribute("userid")!=null)
{
String user = session.getAttribute("userid").toString();

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
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 phone values('"+UniqueID+"','false','100')");

%>
<tr>
<td width="208" height="107" rowspan="2"><img src="images/indiaflag.gif" width="140"
height="105" /></td>
<td width="314" height="21"><div align="center"><span class="style5">Welcome &gt;&gt;</span> <
%=user%></div></td>
<td width="315"><div align="center"><a href="ChangePassword.jsp"></a></div></td>
<td width="100"><a href="logout.jsp"></a></td>
</tr>

<tr>
<td height="29" colspan="3"><div align="center"><span class="style3 style1">Welcome to Apply
Phone Connection of Unicus</span></div></td>
</tr>
<tr>
<td height="26" colspan="4"><%@ include file="header.html"%></td>
</tr>
<tr>
<td height="26" colspan="4">
<%if(success==1)
{
%>
<span class="style2">Apply to Phone connection is successfull. !!!!!!!!!!</span>

<%
}
else
{
%>
<span class="style4">

<%
}
%>
</td>
</tr>
<tr> </tr>
</table>

Apply to Phone connection faild...</span>

<%
}else
{
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}
%>
</body>
</html>

16. ApplyVisaPassportConnection.jsp
<%@ page contentType="text/html;
errorPage="ErrorOccurred.jsp" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Appy Visa Passport Connection</title>
<style type="text/css">
<!-.style1 {
font-size: 24px;
color: #0000FF;
}
.style2 {
font-size: 36px;
color: #006633;
}
.style3 {color: #006633}

1.0

import="java.sql.*"

Transitional//EN"

.style4 {
font-size: 36px;
color: #FF0000;
}
.style5 {color: #FF0000}
-->
</style>
</head>

<body>
<table width="100%" height="127" border="0" align="center">
<%
if(session.getAttribute("userid")!=null)
{
String user = session.getAttribute("userid").toString();

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
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 VisaPassport values('"+UniqueID+"','false','100')");

%>
<tr>
<td width="208" height="107" rowspan="2"><img src="images/indiaflag.gif" width="140"
height="105" /></td>
<td width="314" height="21"><div align="center"><span class="style5">Welcome &gt;&gt;</span> <
%=user%></div></td>
<td width="315"><div align="center"><a href="ChangePassword.jsp"></a></div></td>
<td width="100"><a href="logout.jsp"></a></td>
</tr>
<tr>
<td height="29" colspan="3"><div align="center"><span class="style3 style1">Welcome to Apply Visa
Passport </span></div></td>
</tr>
<tr>
<td height="26" colspan="4"><%@ include file="header.html"%></td>
</tr>
<tr>
<td height="26" colspan="4">
<%if(success==1)
{
%>
<span class="style2">Apply to Visa Passport is successfull. !!!!!!!!!!</span>

<%
}
else
{

%>
<span class="style4">

Apply to Visa Passport faild...</span>

<%
}
%>
</td>
</tr>
<tr> </tr>
</table>
<%
}else
{
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}
%>
</body>
</html>

17. ApplyWaterConnection.jsp
<%@ page contentType="text/html;
errorPage="ErrorOccurred.jsp" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Appy new Water supply Connection</title>
<style type="text/css">

1.0

import="java.sql.*"

Transitional//EN"

<!-.style1 {
font-size: 24px;
color: #0000FF;
}
.style2 {
font-size: 36px;
color: #006633;
}
.style3 {color: #006633}
.style4 {
font-size: 36px;
color: #FF0000;
}
.style5 {color: #FF0000}
-->
</style>
</head>

<body>
<table width="100%" height="127" border="0" align="center">
<%
if(session.getAttribute("userid")!=null)
{
String user = session.getAttribute("userid").toString();

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
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')");

%>
<tr>
<td width="208" height="107" rowspan="2"><img src="images/indiaflag.gif" width="140"
height="105" /></td>
<td width="314" height="21"><div align="center"><span class="style5">Welcome &gt;&gt;</span> <
%=user%></div></td>
<td width="315"><div align="center"><a href="ChangePassword.jsp"></a></div></td>
<td width="100"><a href="logout.jsp"></a></td>
</tr>
<tr>
<td height="29" colspan="3"><div align="center"><span class="style3 style1">Welcome to Apply
Water Connection of Unicus</span></div></td>
</tr>
<tr>
<td height="26" colspan="4"><%@ include file="header.html"%></td>
</tr>
<tr>

<td height="26" colspan="4">


<%if(success==1)
{
%>
<span class="style2">Apply to water supply is successfull. !!!!!!!!!!</span>

<%
}
else
{
%>
<span class="style4">

Apply to water supply faild...</span>

<%
}
%>
</td>
</tr>
<tr> </tr>
</table>
<%
}else
{
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}
%>
</body>
</html>

18. BasicDetails.jsp
<%@ page contentType="text/html;
errorPage="ErrorOccurred.jsp" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Details Of Resident | UniqueID</title>
<style type="text/css">
<!-.style1 {
font-size: 36px;
color: #0000FF;
}
.style2 {color: #0000FF}
.style3 {font-size: 24px}
-->
</style>
</head>

<body>

<table width="100%" border="0" align="center">


<tr>
<th scope="col">&nbsp;<%@ include file="header.html"%></th>
</tr>
</table>

1.0

import="java.sql.*"

Transitional//EN"

<p align="center">&nbsp;</p>
<p align="center"><span class="style1">Resident Details as Following :-</span></p>
<p>
<%
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conResident=DriverManager.getConnection("jdbc:odbc:Resident");
Statement st = conResident.createStatement();

String uid=request.getParameter("uid");
ResultSet rsBasic=null ;

rsBasic = st.executeQuery("select * from BasicDetails where UniqueID='"+uid+"'");


if(rsBasic.next()==false)
{
out.print("No Result Found..............Sorry !!!! ");
}
else
{
%>
</p>
<p align="center" class="style3 style2">Basic Details: </p>
<table width="945" border="2" align="center" bordercolor="#009966" >
<tr>
<td width="178"><div align="center" class="style2">UniqueID</div></td>
<td width="129"><div align="center" class="style2">First Name </div></td>
<td width="140"><div align="center" class="style2">Last Name </div></td>
<td width="103"><div align="center" class="style2">Nick Name </div></td>
<td width="45"><div align="center"><span class="style2">Gender</span></div></td>

<td width="102"><div align="center" class="style2">Meritial Status </div></td>


<td width="142"><div align="center" class="style2">Date of Birth </div></td>
<td width="52"><div align="center" class="style2">age</div></td>
</tr>
<%
do{

out.println("<tr>");
out.println("<td>" +rsBasic.getString("UniqueID")+"</td>");
out.println("<td>"
+rsBasic.getString("firstname")+"</td>");

out.println("<td>" +rsBasic.getString("lastname")+"</td>");

out.println("<td>" +rsBasic.getString("nickname")+"</td>");

out.println("<td>" +rsBasic.getString("gender")+"</td>");
out.println("<td>" +rsBasic.getString("marriedornot")+"</td>");
out.println("<td>" +rsBasic.getString("dob")+"</td>");
out.println("<td>" +rsBasic.getInt("age")+"</td>");

out.println("</tr>");
}while (rsBasic.next());
%>
</table>
<p>
<%

session.setAttribute("uid",uid);
%>

</p>
<p align="center"><a href="PersonalDetails.jsp">show Personal Details.....</a> </p>
<p align="center"><a href="ContactDetails.jsp">show Contact Details......</a></p>
<p>
<%
}
%>
</p>
</body>
</html>

19. ChangePassword.jsp
<%@ page contentType="text/html;
errorPage="ErrorOccurred.jsp"%>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>ChangePassword</title>
<script type="text/javascript" language="javascript">
function validation()
{
if(document.form1.PasswordOld.value=="")
{
alert("Old Password can't blank");
document.form1.PasswordOld.focus();
return false;
}

1.0

import="java.sql.*"

Transitional//EN"

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;
}
</script>
<style type="text/css">
<!-body {
background-image: url();
}
.style16 {
font-size: 24px;

color: #0000FF;
}
-->
</style>
</head>

<body>
<table width="100%" height="575" border="0">
<tr>
<td height="133"><table width="100%" border="0" align="center">
<%
if(session.getAttribute("userid")!=null)
{
String user = session.getAttribute("userid").toString();
String usertype = session.getAttribute("usertype").toString();

%>
<tr>
<td width="146" height="52" rowspan="2"><img src="images/indiaflag.gif" width="140"
height="105" /></td>
<td width="367"><div align="center"><span class="style5">Welcome &gt;&gt;</span> <%=user
%></div></td>
<td
width="318"><div
href="ChangePassword.jsp">ChangePassword</a></div></td>
<td width="126"><a href="logout.jsp"><img
height="35" /></a></td>

align="center"><a

src="images/LogOutIcon.PNG" width="58"

</tr>
<tr>
<td colspan="3"><div align="center"><span class="style3 style16">Change Password
</span></div></td>

</tr>
<tr>
<td height="18" colspan="4"><%@ include file="header.html"%></td>
</tr>
</table></td>
</tr>
<tr>
<td height="427"><table
bordercolor="#F0F0F0">

width="487"

height="214"

border="0"

align="center"

<form id="form1" name="form1" method="post" action="ChangePasswordProcess.jsp"


onsubmit="return validation()">
<tr>
<td colspan="3"><label>
<input type="hidden" name="select" id="select"value='<%=usertype%>'/>
</label></td>
</tr>
<tr>
<td width="170"><div align="right">Enter Old Password: </div></td>
<td colspan="2"><label>
<input name="PasswordOld" type="password" id="PasswordOld" />
</label></td>
</tr>
<tr>
<td><div align="right">Enter New Password: </div></td>
<td colspan="2"><label>
<input name="PasswordNew" type="password" id="PasswordNew" />
</label></td>
</tr>
<tr>

<td><div align="right">Re-enter New Password: </div></td>


<td colspan="2"><label>
<input name="PasswordNewR" type="password" id="PasswordNewR" />
</label></td>
</tr>
<tr>
<td>&nbsp;</td>
<td width="101"><label>
<input type="submit" name="Submit" value="Submit" />
</label>

</td>

<td width="143"><label>
<input type="reset" name="Submit2" value="Reset" />
</label></td>
</tr>
</form>
</table></td>
</tr>
<tr>
<td></td>
</tr>
</table>
<p>&nbsp;</p>
<p>
<%
}
else
{
response.setHeader("Refresh", "; URL = LogInHome.jsp");

}
%>

</body>
</html>

20. ChangePasswordProcess.jsp
<%@ page contentType="text/html;
errorPage="ErrorOccurred.jsp" %>

charset=iso-8859-1"

language="java"

import="java.sql.*"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
1.0
Transitional//EN"
"http://www.w3.org/TR/xerrorPage="ErrorOccurred.jsp" html1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Change Password Process</title>
<style type="text/css">
<!-.style1 {
font-size: x-large;
color: #009966;
}
.style2 {
font-size: x-large;
color: #FF0000;
}
.style3 {color: #009933}
-->
</style>
</head>

<body>
<p>&nbsp;<%@ include file="header.html"%></p>
<p>
<%

String user = session.getAttribute("userid").toString();

String usertype=request.getParameter("select");
String PasswordOld=request.getParameter("PasswordOld");
String PasswordNew=request.getParameter("PasswordNew");
//String PasswordNewR=request.getParameter("PasswordNewR");
String str="update "+usertype+" set Password='"+PasswordNew+"' where UserName='"+user+"' and
Password='"+PasswordOld+"'";
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conPass=DriverManager.getConnection("jdbc:odbc:Pass");
PreparedStatement st = conPass.prepareStatement(str);

String stemail="select Email from "+usertype+" where UserName='"+user+"'";


PreparedStatement pstmt = conPass.prepareStatement(stemail);
ResultSet rs=pstmt.executeQuery();

if(st.executeUpdate()==1)
{
String subject="Password change of Unicus System User!!!!!!";
String body="Your New password in Unicus System is "+PasswordNew+" for user name "+user+" and
User type "+usertype+"";

while(rs.next())
{
String Topass=rs.getString(1);
}
%>
</p>
<p class="style1">Your Password changed sucessfully!!!!!. </p>
<p><span class="style1">New Password is send as mail to your mail account. </span></p>

<form id="form1" name="form1" method="post" action="ChangePasswordProcess.jsp">


<label>
<input type="hidden" name="to" value="bharatkumardhaker@gmail.com" />
<input type="hidden" name="body" value="<%=body%>" />
<input type="hidden" name="subject" value="<%=subject%>"/>
<input type="submit" name="Confirm to change" value="Confirm to change" />
</label>
</form>

<p><span class="style1">Check your mail account for new password.</span> </p>


<p>
<%
}
else
{
%>
</p>
<table width="736" height="158" border="1">
<tr>

<th height="33" scope="col"><span class="style2">Data Updation Faild.</span></th>


</tr>
<tr>
<th scope="col"><p class="style2">&nbsp;</p>
<p class="style2">You may enter worong old password</p></th>
</tr>
</table>
<p class="style2">&nbsp;</p>
<p>
<%
}
%>
</p>
</body>
</html>

21. CheckUidAvil.jsp
<%@ page contentType="text/html;
errorPage="ErrorOccurred.jsp" %>

charset=iso-8859-1"

<style type="text/css">
<!-.style1 {color: #FF0000}
-->
</style>
<body>
<%
String uid=request.getParameter("uid");
String utype=request.getParameter("utype");

language="java"

import="java.sql.*"

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;
break;
}

}
if(aResident==true && aPass==false)
{

%>
<td>UniqueID is Avilable.Proceed</td>
<%
}
else if(aResident==true && aPass==true)
{
%>
<td><span class="style1">UniqueID is already have Username or password</span></td>
<%
}
else if(aResident==false)
{
%>
<td><span class="style1">UniqueID not Created sorry</span>.</td>
<%
}
%>
</body>
</html>

22. CheckUserAvil.jsp
<%@ page contentType="text/html;
errorPage="ErrorOccurred.jsp" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

1.0

import="java.sql.*"

Transitional//EN"

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Check User Avil. | UniqueID</title>
<style type="text/css">
<!-.style4 {color: #FF0000}
body {
background-color: #FFFFFF;
}
.style7 {color: #339900}
-->
</style>
</head>

<body>
<%
String utype=request.getParameter("utype");
String uname=request.getParameter("uname");
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conPass=DriverManager.getConnection("jdbc:odbc:Pass");
Statement st = conPass.createStatement();
ResultSet rs = st.executeQuery("select UserName from "+utype);
boolean avi=false;
while(rs.next())
{
if(rs.getString(1).equals(uname))
{

avi=true;
break;
}

}
if(uname.length()<=8)
{
%>
<td align="left"><span class="style4">Length of user name is not valid</span>&nbsp;</td>
<%
}
else if(avi)
{
%>
<td align="left"><span class="style4">User Name Not avilable. try different</span>&nbsp;</td>
<%
}else
{
%>

<td align="left"><span class="style7">Good User Name is Avilable.Proceed</span>&nbsp;</td>


<%
}
%>
</body>
</html>

23. ConfirmElectricitysupplyConnection.jsp

<%@ page contentType="text/html;


errorPage="" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

import="java.sql.*"

1.0

Transitional//EN"

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Confirm electricity supply Connection</title>
</head>

<body>
<%
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
UniqueID='"+UniqueID+"'");

electricitysupply

SET

response.setHeader("Refresh", "; URL = ApplicantElectricitysupply.jsp");


}else
{
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}
%>
</body>

status='true'

where

</html>

24. ConfirmGasConnection.jsp
<%@ page contentType="text/html;
errorPage="" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

import="java.sql.*"

1.0

Transitional//EN"

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Confirm Gas Connection</title>
</head>

<body>
<%
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 gas SET status='true' where UniqueID='"+UniqueID+"'");

response.setHeader("Refresh", "; URL = ApplicantGas.jsp");


}else
{
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}

%>
</body>
</html>

25. ConfirmPhoneConnection.jsp
<%@ page contentType="text/html;
errorPage="" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

import="java.sql.*"

1.0

Transitional//EN"

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Confirm Water Supply Connection</title>
</head>

<body>
<%
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='true' where UniqueID='"+UniqueID+"'");

response.setHeader("Refresh", "; URL = ApplicantPhone.jsp");


}else
{

response.setHeader("Refresh", "; URL = LogInHome.jsp");


}
%>
</body>
</html>

26. ConfirmVisaPassport.jsp
<%@ page contentType="text/html;
errorPage="" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

import="java.sql.*"

1.0

Transitional//EN"

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Confirm Visa Passport Connection</title>
</head>

<body>
<%
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
UniqueID='"+UniqueID+"'");

VisaPassport

SET

status='true'

where

response.setHeader("Refresh", "; URL = ApplicantVisaPassport.jsp");


}else
{
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}
%>
</body>
</html>

27. ConfirmWaterSupplyConnection.jsp
<%@ page contentType="text/html;
errorPage="" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

import="java.sql.*"

1.0

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Confirm Water Supply Connection</title>
</head>

<body>
<%
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();

Transitional//EN"

stDatabaseOrg.executeUpdate("UPDATE
UniqueID='"+UniqueID+"'");

watersupply

SET

status='true'

where

response.setHeader("Refresh", "; URL = ApplicantWaterSupply.jsp");


}else
{
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}
%>
</body>
</html>

28. Contact US.jsp


<%@ page contentType="text/html;
errorPage="" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Email Example</title>
<style type="text/css">
<!-body {
background-image: url();
}
.style2 { font-size: 36px;
color: #33FF66;
}

1.0

import="java.sql.*"

Transitional//EN"

.style4 {color: #0000FF}


.style5 {
font-size: medium;
color: #009966;
}
.style6 {color: #FF0000}
-->
</style>

<script type="text/javascript" language="javascript">


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";
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;
}
</script>
</head>

<body>
<table width="100%" height="100%" border="0" align="center">
<tr>

<th width="100%" scope="col"><table width="100%" height="100%" border="0">


<tr>
<td width="109" height="107"><img src="images/indiaflag.gif" width="140" height="105" /></td>
<td width="776"><div align="center"><span class="style2"> <span class="style4"> Welcome to
Unicus </span> </span></div></td>
</tr>

</table>

</th>

</tr>
<tr>
<th scope="col"><%@ include file="header.html"%></th>

</tr>
<tr>
<th scope="col">&nbsp;</th>
</tr>
<tr>
<th scope="col"><table width="501" height="282" border="0" align="center">
<form name="form1" method="post" action="EmailsendProcess.jsp" onsubmit="return valid()">
<tr>
<th colspan="3" scope="col"><label><span class="style5">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.</span></label></th>
</tr>
<tr>
<th width="79" scope="col"><div align="right">Email:<span class="style6">*</span></div></th>
<th colspan="2" scope="col"><div align="left">
<label>
<input name="to" type="text" size="50%" />
</label>
</div></th>
</tr>
<tr>
<th scope="row"><div align="right">Subject:<span class="style6">*</span></div></th>
<td colspan="2"><label></label>
<div align="left">
<label>
<input name="subject" type="text" size="50%" />
</label>
</div></td>
</tr>

<tr>
<th height="127"
class="style6">*</span></div></th>

scope="row"><div

align="right">Message:<span

<td colspan="2"><div align="left">


<textarea name="body" cols="50%" wrap="off" ></textarea>
</div></td>
</tr>
<tr>
<th scope="row">&nbsp;</th>
<td width="107"><input type="submit" name="Submit" value="Submit" /></td>
<td width="301"><input type="reset" name="Submit2" value="Reset" /></td>
</tr>
</form>
</table></th>
</tr>
<tr>
<th scope="col"></th>
</tr>
<tbody>
</tbody>
<tbody>
</tbody>
</table>
</body>
</html>

29. ContactDetails.jsp
<%@ page contentType="text/html;
errorPage="ErrorOccurred.jsp" %>

charset=iso-8859-1"

language="java"

import="java.sql.*"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

1.0

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<script language="javascript" type="text/javascript">
function goback()
{
history.back();
}
</script>
<style type="text/css">
<!-.style1 {font-size: 36px}
.style2 {color: #0000FF}
-->
</style>
</head>

<body>
<p>
<%
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conResident=DriverManager.getConnection("jdbc:odbc:Resident");
Statement st = conResident.createStatement();
String uid=(session.getAttribute("uid")).toString();
ResultSet rsContact=null ;

Transitional//EN"

rsContact

st.executeQuery("select

from

ContactDetails

UniqueID='"+uid+"'");
if(rsContact.next()==false)
{
out.print("No Result Found..............Sorry !!!! ");
}
else
{
%>
</p>
<table width="100%" border="0" align="center">
<tr>
<th scope="col">&nbsp;<%@ include file="header.html"%></th>
</tr>
</table>
<p>&nbsp;</p>
<p align="center" class="style3 style1 style2">Contact Details:</p>
<p align="center">
<input type="submit" name="Submit" value="Go Back" onclick="goback()"/>
</p>
<table width="945" border="2" align="center" >
<tr>
<td width="152"><div align="center" class="style2">UniqueID</div></td>
<td width="119"><div align="center" class="style2">address</div></td>
<td width="124"><div align="center" class="style2">pincode</div></td>
<td width="96"><div align="center" class="style2">stateID</div></td>
<td width="82"><div align="center"><span class="style2">districtID</span></div></td>

where

<td width="71"><div align="center" class="style2">cityID</div></td>


<td width="84"><div align="center" class="style2">email</div></td>
<td width="87"><div align="center" class="style2">mobileno</div></td>
<td width="70"><div align="center" class="style2">phoneno</div></td>
</tr>
<%

do{

out.println("<tr>");
out.println("<td>" +rsContact.getString(1)+"</td>");
out.println("<td>"
+rsContact.getString(2)+"</td>");

out.println("<td>" +rsContact.getString(3)+"</td>");

out.println("<td>" +rsContact.getString(4)+"</td>");

out.println("<td>" +rsContact.getString(5)+"</td>");
out.println("<td>" +rsContact.getString(6)+"</td>");
out.println("<td>" +rsContact.getString(7)+"</td>");
out.println("<td>" +rsContact.getString(8)+"</td>");
out.println("<td>" +rsContact.getString(9)+"</td>");

out.println("</tr>");
}while (rsContact.next());
%>
</table>
<%
}

%>
</body>
</html>

30. CutElectricitysupplyConnection.jsp
<%@ page contentType="text/html;
errorPage="" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

import="java.sql.*"

1.0

Transitional//EN"

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Cut Electricity supply Connection</title>
</head>

<body>
<%
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
UniqueID='"+UniqueID+"'");

electricitysupply

SET

response.setHeader("Refresh", "; URL = SubscriberElectricitysupply.jsp");

status='false'

where

}else
{
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}
%>

</body>
</html>

31. CutGasConnection.jsp
<%@ page contentType="text/html;
errorPage="" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

import="java.sql.*"

1.0

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Cut Gas Connection</title>
</head>

<body>
<%
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();

Transitional//EN"

stDatabaseOrg.executeUpdate("UPDATE gas SET status='false' where UniqueID='"+UniqueID+"'");

response.setHeader("Refresh", "; URL = SubscriberGas.jsp");

}else
{
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}
%>

</body>
</html>

32. CutPhoneConnection.jsp
<%@ page contentType="text/html;
errorPage="" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body>
<%
if(session.getAttribute("userid")!=null)
{
String UniqueID = request.getParameter("UniqueID").toString();

1.0

import="java.sql.*"

Transitional//EN"

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");
}
%>

</body>
</html>

33. CutVisaPassport.jsp
<%@ page contentType="text/html;
errorPage="" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Cut Visa Passport</title>
</head>

<body>

1.0

import="java.sql.*"

Transitional//EN"

<%
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
UniqueID='"+UniqueID+"'");

VisaPassport

SET

status='false'

where

response.setHeader("Refresh", "; URL = SubscriberVisaPassport.jsp");

}else
{
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}
%>

</body>
</html>

34. CutWaterSupplyConnection.jsp
<%@ page contentType="text/html;
errorPage="" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

1.0

import="java.sql.*"

Transitional//EN"

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />


<title>Untitled Document</title>
</head>

<body>
<%
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
UniqueID='"+UniqueID+"'");

watersupply

SET

response.setHeader("Refresh", "; URL = SubscriberWaterSupply.jsp");

}else
{
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}
%>

</body>
</html>

35. DetailsOfResident.jsp

status='false'

where

<%@ page contentType="text/html;


errorPage="ErrorOccurred.jsp" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Details Of Resident | UniqueID</title>
<style type="text/css">
<!-.style1 {
font-size: 36px;
color: #0000FF;
}
.style2 {color: #0000FF}
-->
</style>
</head>

<body>
<table width="100%" border="0" align="center">
<tr>
<th scope="col">&nbsp;<%@ include file="header.html"%></th>
</tr>
</table>
<p align="center"></p>
<%
String uid=request.getParameter("uid");
String firstname=request.getParameter("firstname");

1.0

import="java.sql.*"

Transitional//EN"

String date=request.getParameter("date");
String month=request.getParameter("month");
String year=request.getParameter("year");
String dob=""+date+"/"+month+"/"+year;

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conResident=DriverManager.getConnection("jdbc:odbc:Resident");
Statement st = conResident.createStatement();
ResultSet rs=null ;
if(uid!=null)
{
rs = st.executeQuery("select * from BasicDetails where UniqueID='"+uid+"'");
}
else
{
rs = st.executeQuery("select * from BasicDetails where firstname ='"+firstname+"' AND dob='"+dob+"'
ORDER BY firstname");
}

if(rs.next()==false)
{
out.print("No Result Found..............Sorry !!!! ");
}
else
{
%>
<p align="center"><span class="style1">Resident Details as Following :-</span></p>
<table width="945" border="2" align="left" bordercolor="#009933" >

<tr>
<td width="178"><div align="center" class="style2">UniqueID</div></td>
<td width="129"><div align="center" class="style2">First Name </div></td>
<td width="140"><div align="center" class="style2">Last Name </div></td>
<td width="103"><div align="center" class="style2">Nick Name </div></td>
<td width="45"><div align="center"><span class="style2">Gender</span></div></td>
<td width="102"><div align="center" class="style2">Meritial Status </div></td>
<td width="142"><div align="center" class="style2">Date of Birth </div></td>
<td width="52"><div align="center" class="style2">age</div></td>
</tr>
<%
do{

out.println("<tr>");
out.println("<td>" +rs.getString("UniqueID")+"</td>");
out.println("<td>"
+rs.getString("firstname")+"</td>");

out.println("<td>" +rs.getString("lastname")+"</td>");

out.println("<td>" +rs.getString("nickname")+"</td>");

out.println("<td>" +rs.getString("gender")+"</td>");
out.println("<td>" +rs.getString("marriedornot")+"</td>");
out.println("<td>" +rs.getString("dob")+"</td>");
out.println("<td>" +rs.getInt("age")+"</td>");

out.println("</tr>");
}while (rs.next());
%>

</table>
<p>&nbsp;</p>
<p>
<%
}
%>
</p>
<p>&nbsp;</p>
</body>
</html>

36. Electricitysupply.jsp
<%@ page contentType="text/html;
errorPage="" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>electricity supply</title>
<style type="text/css">
<!-.style5 {font-size: 24px}
.style7 {font-size: 24px; color: #0000FF; }
.style8 {color: #0000FF}
-->
</style>
</head>

1.0

import="java.sql.*"

Transitional//EN"

<body>
<table width="100%" border="0" align="center">
<%
if(session.getAttribute("userid")!=null)
{
String user = session.getAttribute("userid").toString();
String AttachOrg=session.getAttribute("AttachOrg").toString();
%>
<tr>
<td width="146" height="107" rowspan="2"><img src="images/indiaflag.gif" width="140"
height="105" /></td>
<td width="367"><div align="center"><span class="style5">Welcome &gt;&gt;</span> <%=user
%></div></td>
<td
width="318"><div
href="ChangePassword.jsp">ChangePassword</a></div></td>

align="center"><a

<td width="126"><a href="logout.jsp">Logout</a></td>


</tr>
<tr>
<td colspan="3"><div align="center"><span class="style3 style5 style8">Welcome to Electricity
Supply</span></div></td>
</tr>
<tr>
<td height="26" colspan="4"><%@ include file="header.html"%>
</td>
</tr>
<tr>
<td height="26" colspan="4"><table width="100%" border="1">
<tr>
<td
width="51%"
height="70"><span
href="ApplicantElectricitysupply.jsp">Applicant </a></span></td>

class="style5"><a

<td width="49%" rowspan="2"><table width="471" border="0" align="right">


<tr>
<th height="46" colspan="3" scope="col"><div align="center" class="style7">Search
Resident</div></th>
</tr>
<form id="form1" name="form1" method="post" action="BasicDetails.jsp" >
<tr>
<th width="160" height="44" scope="col"><div align="right"><img src="images/blt.gif"
width="13" height="13" />By UniqueID: </div></th>
<th width="170" scope="col"><div align="left">
<input name="uid" type="text" id="uid" />
</div></th>
<th width="255" scope="col"> <div align="left">
<input type="submit" name="Submit" value="Submit" />
</div></th>
</tr>
</form>
<tr>
<form id="form2" name="form2" method="post" action="DetailsOfResident.jsp">
<th height="44" scope="col"><div align="right"><img src="images/blt.gif" width="13"
height="13" /> By Name: </div></th>
<th scope="col"><div align="left">
<input name="firstname" type="text" id="firstname" />
</div></th>
<th scope="col"><div align="left">
<input name="Submit" type="submit" id="Submit" value="Submit" />
</div></th>
</form>
</tr>

</table></td>
</tr>
<tr>
<td height="27"><span class="style5"><a href="SubscriberElectricitysupply.jsp">Subscriber
</a></span></td>
</tr>
</table></td>
</tr>
<%
}
else
{
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}

%>
</table>
</body>
</html>

37. EmailsendProcess.jsp
<%@
page
contentType="text/html;
errorPage="ErrorOccurred.jsp"%>

charset=iso-8859-1"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>JSP JavaMail Example </title>
</head>

1.0

language="java"

Transitional//EN"

<body>
<%@ page import="java.util.*" %>
<%@ page import="javax.mail.*" %>
<%@ page import="javax.mail.internet.*" %>
<%@ page import="javax.activation.*" %>
<%
String host = "smtp.gmail.com";
String to = request.getParameter("to");
//String from = request.getParameter("from");
String from="bharatkumardhaker@gmail.com";
String subject = request.getParameter("subject");
String messageText = request.getParameter("body");
boolean sessionDebug = true;
// Create some properties and get the default Session.
Properties props = System.getProperties();

props.put("mail.smtp.starttls.enable","true");
props.setProperty("mail.transport.protocol","smtp");
props.setProperty("mail.host",host);
props.put("mail.smtp.auth", "true");
props.put("mail.smtp.port", "465");
props.put("mail.debug", "true");
props.put("mail.smtp.socketFactory.port", "465");
props.put("mail.smtp.socketFactory.fallback", "false");
props.put("mail.smtp.socketFactory.class", "javax.net.ssl.SSLSocketFactory");

Session mailSession = Session.getInstance(props, new javax.mail.Authenticator()


PasswordAuthentication
getPasswordAuthentication()
{return
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.

Transport transport = mailSession.getTransport("smtp");

{protected
new

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 + ".");

%>
</table>
</body>
</html>

38. ErrorOccurred.jsp
<%@ page contentType="text/html;
isErrorPage="true" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Error Occurred</title>
<script language="javascript" type="text/javascript">
function goback()
{
history.back();
}
</script>
</head>

1.0

import="java.sql.*"

Transitional//EN"

<body>
<table width="100%" border="0">
<tr>
<th scope="col">&nbsp;<%@ include file="header.html"%></th>
</tr>
</table>
<h1 align="center"><font color="#FF0000" size="7">Error !!!!!!!!!!!!!!</font></h1>
<p align="center"><font size="6">An error occurred while processing your request.

</font></p>

<p align="center"><font size="6">Your page generated an error: </font></p>


<p align="center"><%= exception.toString() %></p>
<p align="center">
<input type="submit" name="Submit" value="Go Back" onclick="goback()"/>
</p>
<p>&nbsp;</p>
<p align="center">
<font size="6">Please contact the System Administrator for advices.</font></p>
</body>
</html>

39. Faq.jsp
<%@ page contentType="text/html;
errorPage="" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>FAQ</title>
<style type="text/css">

1.0

import="java.sql.*"

Transitional//EN"

<!-.style1 {
font-size: 36px;
color: #0000FF;
}
.style2 {color: #0000FF}
-->
</style>
</head>

<body>
<table width="100%" border="0" align="center">
<tr>
<td height="113"><table width="100%" height="100%" border="0">
<tr>
<td width="109" height="107"><img src="images/indiaflag.gif" width="140" height="105" /></td>
<td width="776"><div align="center"><span class="style2"> <span class="style4 style1"> Welcome
to Unicus </span> </span></div></td>
</tr>

</table>

</td>

</tr>
<tr>
<td height="14"><%@ include file="header.html"%></td>
</tr>
<tr>
<td height="50">Question 1. </td>
</tr>

<tr>
<td height="50"></td>
</tr>
</table>
</body>
</html>

40. Footer.jsp
<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

1.0

Transitional//EN"

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body>
<table width="100%" border="0" bgcolor="#FFCC33">
<tr>
<td><div align="center"><strong><a href="Home.jsp">Home</a></strong></div></td>
<td><div align="center"><strong><a href="#">Privacy Policy</a> </strong></div></td>
<td><div align="center"><strong><a href="#">Term of Use </a></strong></div></td>
<td><div align="center"><strong><a href="faq.jsp">FAQ</a></strong></div></td>
<td><div align="center"><strong><a href="#">Gallery</a></strong></div></td>
<td><div align="center"><strong><a href="Contact Us.jsp">Contact Us</a> </strong></div></td>
</tr>
<tr>
<td colspan="6"><div align="center">Copyright &copy; 2012 <strong>UNICUS</strong> All Rights
Reserved.This website is best viewed in 1024x768 screen resolution.</div></td>

</tr>
</table>
</body>
</html>

41. For_Uname_password.jsp
<%@ page language="java" import="java.sql.*;" errorPage="ErrorOccurred.jsp"%>
<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>New UserName Pass | UniqueID</title>

<script type="text/javascript" language="javascript">


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;
}
var pq=/^\d{18}$/
if(document.res.uid.value.search(pq)==-1)

1.0

Transitional//EN"

{
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)<6)
{
alert("User Name is atleast 6 character");
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("@")<1
document.res.email.value.lastIndexOf(".")<document.res.email.value.indexOf("@")+2
document.res.email.value.lastIndexOf(".")+2>=document.res.email.value.length)
{
alert("Not a valid e-mail address");
document.res.email.focus();
document.res.email.style.backgroundColor="#FF9966";
document.res.email.select();

return false;
}
var mm=/^\d{10,12}$/;
if(document.res.mobileno.value.search(mm)==-1)
{
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
{
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();

}
</script>

<style type="text/css">
<!-.style1 {color: #FF0000}
.style2 {
color: #0000FF;
font-size: 24px;
}
-->
</style>
</head>

<body>
<form action="UserProcess.jsp" id="res" name="res" method="post" onsubmit="return valid()" >
<table width="100%" border="0" align="center">
<tr>
<td width="155" height="32"><img src="images/indiaflag.gif" width="140" height="105" /></td>
<td width="797"><div align="center"><span class="style2">Welcome to Registration For User Name
or Password</span>
</div></td>
</tr>
<tr>
<td height="33" colspan="2"><%@ include file="header.html"%></td>
</tr>
<tr>
<td colspan="2"><table width="639" border="0" align="center">
<tr>
<td height="37" colspan="3">&nbsp;</td>
</tr>

<tr>
<td width="200" height="40"><div align="right">Unique ID: <span class="style1">*</span>
</div></td>
<td><input name="uid" type="text" id="uid" onblur="ajax(this.value,'uidcheck')"/></td>
<td id="uidcheck"></td>
</tr>
<tr>
<td height="40"><div align="right">User Name: <span class="style1">*</span> </div></td>
<td width="156"><input name="UserName" type="text"
onkeyup="ajax(this.value,'usercheck')" onblur="ajax(this.value,'usercheck')"/></td>

id="UserName"

<td id="usercheck"></td>
</tr>
<tr>
<td height="40"><div align="right">E-mail:<span class="style1">*</span></div></td>
<td colspan="2"><input name="email" type="text" id="email" size="40"/></td>
</tr>
<tr>
<td height="40"><div align="right">Mobile No:<span class="style1">*</span> </div></td>
<td colspan="2"><input name="mobileno" type="text" id="mobileno" /></td>
</tr>
<tr>
<td height="42"><div align="center"></div></td>
<td><input type="submit" name="Submit" value="Submit" /></td>
<td><input type="reset" name="Submit2" value="Reset" /></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2"></td>

</tr>
<input name="UserType" type="hidden" value="Resident" />
<input name="two" type="hidden" value="<%=session.getAttribute("useravil")%>" />
</table>
</form>
</body>
</html>

42. Forgot.jsp
<%@ page contentType="text/html;
errorPage="ErrorOccurred.jsp" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

1.0

import="java.sql.*"

Transitional//EN"

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Forgot | UniqueID</title>
<style type="text/css">
<!-.style1 {font-size: 36px }
.style2 {font-size: 24px}
.style4 {color: #FF0000}
-->
</style>
</head>
<body>
<p><img src="images/indiaflag.gif" width="140" height="105" longdesc="Home.html" /></p>
<p>
<%

String usertype=request.getParameter("select");
String mail=request.getParameter("email");

String str="select * from "+usertype+" where Email='"+mail+"'";

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conPass=DriverManager.getConnection("jdbc:odbc:Pass");
Statement st = conPass.createStatement();
ResultSet rs = st.executeQuery(str);
if(rs.next())
{
%>
</p>
<table width="520" border="1" align="center" >
<tr>
<td width="139"><div align="left"> UserName</div></td>
<td width="365"><span class="style1"><%=rs.getString(2)%></span></td>
</tr>
<tr>
<td><div align="left">Password</div></td>
<td><span class="style1"><%=rs.getString(3)%></span></td>
</tr>
<tr>
<td><div align="left"> User Type </div></td>
<td><span class="style1"><%=usertype%></span></td>
</tr>
</table>
<p align="center"><a href="LogInHome.jsp" class="style2">Click here to goto Login Page</a></p>

<p>
<%
}
else
{
%>
</p>
<p align="center" class="style1">No Result found associated with This <span class="style4">email
address</span> or <span class="style4">UserType</span></p>
<p align="center"> <span class="style1"><a href="ForgotPassword.jsp">Click here to go back
</a></span></p>
<p>
<%
}
%>
</p>
</body>
</html>

43. ForgotPassword.jsp
<html>
<head>
<title>ForgotPassword | UniqueID</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type="text/css">


<!-body {
background-image: url();

background-repeat: repeat;
}
.style1 {color: #FF0000}
.style2 {font-size: 24px}
.style3 {
font-size: 36px;
color: #0000FF;
}
-->
</style>
<script type="text/javascript" language="javascript">
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;
}
</script>

</head>

<body>

<form name="forgot" method="post" action="Forgot.jsp" onSubmit="return valid()">


<table width="100%" border="0">
<tr>
<td width="140" height="107"><img src="images/indiaflag.gif" width="140" height="105" /></td>
<td width="808"><div align="center"><span class="style2"> <span class="style16 style3"> Welcome
to Unicus </span> </span></div></td>
</tr>
<tr>
<td height="21" colspan="2">&nbsp;<%@ include file="header.html"%></td>
</tr>
<tr>
<td height="334" colspan="2"><table width="495" height="295" border="0" align="center">
<tr>
<td height="82" colspan="3"><h1 class="style2">Forgot
class="style1">UserName</span> or <span class="style1">password</span>?</h1>
<p>To reset your UserName or password, type the email address.</p>

your

<span

</td>

</tr>

<tr>
<td width="209"><div align="right">Email Address :<span class="style1">*</span> </div>
<label></label></td>
<td colspan="2"><input name="email" type="text" id="email" value="" size="40" /></td>
</tr>
<tr>
<td><div align="right">User Type :</div>

</td>

<td colspan="2"><select name="select">


<option value="Admin">Admin</option>
<option value="Special_User">Special_User</option>
<option value="Resident">Resident</option>

</select></td>
</tr>

<tr>
<td height="37"><label></label></td>
<td width="151" height="37"><div align="center">
<input type="submit" name="Submit" value="Submit" />
</div></td>
<td width="121"><label>
<input type="reset" name="Submit2" value="Reset">
</label></td>
</tr>
<tr>
<td colspan="3"><a href="ForgotUserName.html"></a>&copy;2012</td>
</tr>

</table></td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
</table>
</form>
</body>
</html>

44. Gas.jsp

<%@ page contentType="text/html;


errorPage="" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

1.0

import="java.sql.*"

Transitional//EN"

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Gas</title>
<style type="text/css">
<!-.style5 {font-size: 24px}
.style7 {font-size: 24px; color: #0000FF; }
-->
</style>
</head>

<body>
<table width="100%" height="178" border="0" align="center">
<%
if(session.getAttribute("userid")!=null)
{
String user = session.getAttribute("userid").toString();
String AttachOrg=session.getAttribute("AttachOrg").toString();
%>
<tr>
<td width="146" height="107" rowspan="2"><img src="images/indiaflag.gif" width="140"
height="105" /></td>
<td width="367"><div align="center"><span class="style5">Welcome &gt;&gt;</span> <%=user
%></div></td>

<td
width="318"><div
href="ChangePassword.jsp">ChangePassword</a></div></td>

align="center"><a

<td width="126"><a href="logout.jsp">Logout</a></td>


</tr>
<tr>
<td height="29" colspan="3"><div align="center"><span class="style7">Welcome to Special User of
Unicus</span></div></td>
</tr>
<tr>
<td height="26" colspan="4"><%@ include file="header.html"%>&nbsp;</td>
</tr>
<tr>
<td height="26" colspan="4"><table width="100%" border="1">
<tr>
<td width="51%" height="70"><span class="style5"><a href="ApplicantGas.jsp">Applicant
</a></span></td>
<td width="49%" rowspan="2"><table width="471" border="0" align="right">
<tr>
<th height="46" colspan="3" scope="col"><div align="center" class="style7">Search
Resident</div></th>
</tr>
<form id="form1" name="form1" method="post" action="BasicDetails.jsp" >
<tr>
<th width="160" height="44" scope="col"><div align="right"><img src="images/blt.gif"
width="13" height="13" />By UniqueID: </div></th>
<th width="170" scope="col"><div align="left">
<input name="uid" type="text" id="uid" />
</div></th>
<th width="255" scope="col"> <div align="left">
<input type="submit" name="Submit" value="Submit" />

</div></th>
</tr>
</form>
<tr>
<form id="form2" name="form2" method="post" action="DetailsOfResident.jsp">
<th height="44" scope="col"><div align="right"><img src="images/blt.gif" width="13"
height="13" /> By Name: </div></th>
<th scope="col"><div align="left">
<input name="firstname" type="text" id="firstname" />
</div></th>
<th scope="col"><div align="left">
<input name="Submit" type="submit" id="Submit" value="Submit" />
</div></th>
</form>
</tr>
</table></td>
</tr>
<tr>
<td height="27"><span class="style5"><a href="SubscriberGas.jsp">Subscriber </a></span></td>
</tr>
</table></td>
</tr>
<%
}
else
{
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}

%>
</table>

</body>
</html>

45. Getcity.jsp
<%@ page contentType="text/html;
errorPage="ErrorOccurred.jsp" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>getCity | UniqueID</title>
</head>

<body>
<%
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:StateDistrictCity");
String str1=request.getParameter("val");
String ss="select cityID,city from city where districtID='"+str1+"'";
PreparedStatement pstmt = con.prepareStatement(ss);
ResultSet rs=pstmt.executeQuery();
%>
<option value="">Select</option>
<%

1.0

import="java.sql.*"

Transitional//EN"

while(rs.next()){
out.println("<option");
out.println(" value="+rs.getString(1)+">"+rs.getString(2)+"</option>");
}
%>
</body>
</html>

46. getCityForAddCity.jsp
<%@ page contentType="text/html;
errorPage="ErrorOccurred.jsp" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

1.0

import="java.sql.*"

Transitional//EN"

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>getDistrict | UniqueID</title>

</head>

<body>
<%
String str=request.getParameter("val");
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:StateDistrictCity");
String ss="select cityID,city from city where districtID='"+str+"' order by cityID DESC";
PreparedStatement pstmt = con.prepareStatement(ss);
ResultSet rs=pstmt.executeQuery();
%>

<table width="247" border="2" align="center" >


<tr>
<td width="178" height="31"><div align="center" class="style2">City ID</div></td>
<td width="200"><div align="center" class="style2">City</div></td>
</tr>
<%
while(rs.next()){
out.println("<tr>");
out.println("<td>" +rs.getString(1)+"</td>");
out.println("<td>" +rs.getString(2)+"</td>");
out.println("</tr>");

}
%>
</table>
</body>
</html>

47. getdistrict.jsp
<%@ page contentType="text/html;
errorPage="ErrorOccurred.jsp" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>getDistrict | UniqueID</title>
</head>

1.0

import="java.sql.*"

Transitional//EN"

<body>
<%
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:StateDistrictCity");
String str=request.getParameter("val");
String ss="select districtID,district from district where stateID='"+str+"'";
PreparedStatement pstmt = con.prepareStatement(ss);
ResultSet rs=pstmt.executeQuery();
%>
<option value="">Select</option>
<%
while(rs.next()){
out.println("<option");
out.println(" value="+rs.getString(1)+">"+rs.getString(2)+"</option>");
}
%>

</body>
</html>

48. getDistrictForAddDistrict.jsp
<%@ page contentType="text/html;
errorPage="ErrorOccurred.jsp" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>getDistrict | UniqueID</title>

1.0

import="java.sql.*"

Transitional//EN"

</head>

<body>
<%
String str=request.getParameter("q");
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:StateDistrictCity");
String ss="select districtID,district from district where stateID='"+str+"' order by districtID DESC";
PreparedStatement pstmt = con.prepareStatement(ss);
ResultSet rs=pstmt.executeQuery();
%>
<table width="265" border="2" align="center" >
<tr>
<td width="178" height="31"><div align="center" class="style2">district ID</div></td>
<td width="200"><div align="center" class="style2">district</div></td>
</tr>
<%
while(rs.next()){
out.println("<tr>");
out.println("<td>" +rs.getString(1)+"</td>");
out.println("<td>" +rs.getString(2)+"</td>");
out.println("</tr>");

}
%>
</table>
</body>

</html>

49. getstate.jsp
<%@ page contentType="text/html;
errorPage="ErrorOccurred.jsp" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

1.0

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>getState | UniqueID</title>
</head>

<body>
<%
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:StateDistrictCity");
String ss="select stateID,state from state";
PreparedStatement pstmt = con.prepareStatement(ss);
ResultSet rs=pstmt.executeQuery();
%>
<option value="">Select</option>
<%
while(rs.next()){
out.println("<option");
out.println(" value="+rs.getString(1)+">"+rs.getString(2)+"</option>");
}
%>
</body>

import="java.sql.*"

Transitional//EN"

</html>

50. getStateForAddState.jsp
<%@ page contentType="text/html;
errorPage="ErrorOccurred.jsp" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

import="java.sql.*"

1.0

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>getState | UniqueID</title>

</head>

<body>
<%
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:StateDistrictCity");
String ss="select stateID,state from state order by stateID DESC";
PreparedStatement pstmt = con.prepareStatement(ss);
ResultSet rs=pstmt.executeQuery();
%>
<table width="303" border="2" align="center" >
<tr>
<td width="106" height="31"><div align="center" class="style2">State ID</div></td>
<td width="179"><div align="center" class="style2">stateName</div></td>
</tr>
<%
while(rs.next()){

Transitional//EN"

out.println("<tr>");
out.println("<td>" +rs.getString(1)+"</td>");
out.println("<td>" +rs.getString(2)+"</td>");
out.println("</tr>");

}
%>
</table>
</body>
</html>

51. getStatus.jsp
<%@ page contentType="text/html;
errorPage="ErrorOccurred.jsp" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>getStatus | UniqueID</title>
<style type="text/css">
<!-.style1 {
color: #0000FF;
font-size: 24px;
}
.style3 {
color: #0000FF;
font-size: xx-large;

1.0

import="java.sql.*"

Transitional//EN"

}
-->
</style>
</head>

<body>
<table width="100%" height="100%" border="0" align="center">
<tr>
<td height="123" colspan="5"><table width="100%" border="0" align="center">
<tr>
<td width="140" height="61"><img src="images/indiaflag.gif" width="140" height="105" /></td>
<td width="659">

<div align="center"><span class="style3">Unique ID Management </span>


</div></td></tr>
<tr>
<td colspan="2"><%@ include file="header.html" %></td>
</tr>

</table></td>
</tr>
<tr>
<td height="78" colspan="5">&nbsp;</td>
</tr>
<tr>
<td colspan="5"><div align="center" class="style1">To Conform Your Submission </div></td>
</tr>
<form id="form2" name="form2" method="post" action="DetailsOfResident.jsp">

<tr>
<td width="363" height="74"><div align="right"> Enter your name: </div></td>
<td colspan="3"><input name="firstname" type="text" id="firstname" /></td>
<td width="347">&nbsp;</td>
</tr>

<tr>
<td><div align="right">Date of birth </div></td>
<td width="64"><div align="left">
<select name="date">
<option>Date</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>

<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
</select>
</div></td>
<td width="96"><div align="left">
<select name="month">
<option>Month</option>
<option value="1">January</option>
<option value="2">February</option>
<option value="3">March</option>
<option value="4">April</option>
<option value="5">May</option>
<option value="6">June</option>
<option value="7">July</option>
<option value="8">August</option>
<option value="9">Septmber</option>

<option value="10">October</option>
<option value="11">November</option>
<option value="12">December</option>
</select>
</div></td>
<td width="66"><div align="left">
<select name="year">
<option>Year</option>
<option value="2011">2011</option>
<option value="2010">2010</option>
<option value="2009">2009</option>
<option value="2008">2008</option>
<option value="2007">2007</option>
<option value="2006">2006</option>
<option value="2005">2005</option>
<option value="2004">2004</option>
<option value="2003">2003</option>
<option value="2002">2002</option>
<option value="2001">2001</option>
<option value="2000">2000</option>
<option value="1999">1999</option>
<option value="1998">1998</option>
<option value="1997">1997</option>
<option value="1996">1996</option>
<option value="1995">1995</option>
<option value="1994">1994</option>
<option value="1993">1993</option>
<option value="1992">1992</option>

<option value="1991">1991</option>
<option value="1990">1990</option>
<option value="1989">1989</option>
<option value="1988">1988</option>
<option value="1987">1987</option>
<option value="1986">1986</option>
<option value="1985">1985</option>
<option value="1984">1984</option>
<option value="1983">1983</option>
<option value="1982">1982</option>
<option value="1981">1981</option>
<option value="1980">1980</option>
<option value="1979">1979</option>
<option value="1978">1978</option>
<option value="1977">1977</option>
<option value="1976">1976</option>
<option value="1975">1975</option>
<option value="1974">1974</option>
<option value="1973">1973</option>
<option value="1972">1972</option>
<option value="1971">1971</option>
<option value="1970">1970</option>
<option value="1969">1969</option>
<option value="1968">1968</option>
<option value="1967">1967</option>
<option value="1966">1966</option>
<option value="1965">1965</option>
<option value="1964">1964</option>

<option value="1963">1963</option>
<option value="1962">1962</option>
<option value="1961">1961</option>
<option value="1960">1960</option>
<option value="1959">1959</option>
<option value="1958">1958</option>
<option value="1957">1957</option>
<option value="1956">1956</option>
<option value="1955">1955</option>
<option value="1954">1954</option>
<option value="1953">1953</option>
<option value="1952">1952</option>
<option value="1951">1951</option>
<option value="1950">1950</option>
<option value="1949">1949</option>
<option value="1948">1948</option>
<option value="1947">1947</option>
<option value="1946">1946</option>
<option value="1945">1945</option>
<option value="1944">1944</option>
<option value="1943">1943</option>
<option value="1942">1942</option>
<option value="1941">1941</option>
<option value="1940">1940</option>
<option value="1939">1939</option>
<option value="1938">1938</option>
<option value="1937">1937</option>
<option value="1936">1936</option>

<option value="1935">1935</option>
<option value="1934">1934</option>
<option value="1933">1933</option>
<option value="1932">1932</option>
<option value="1931">1931</option>
<option value="1930">1930</option>
<option value="1929">1929</option>
<option value="1928">1928</option>
<option value="1927">1927</option>
<option value="1926">1926</option>
<option value="1925">1925</option>
<option value="1924">1924</option>
<option value="1923">1923</option>
<option value="1922">1922</option>
<option value="1921">1921</option>
<option value="1920">1920</option>
<option value="1919">1919</option>
<option value="1918">1918</option>
<option value="1917">1917</option>
<option value="1916">1916</option>
<option value="1915">1915</option>
<option value="1914">1914</option>
<option value="1913">1913</option>
<option value="1912">1912</option>
<option value="1911">1911</option>
<option value="1910">1910</option>
<option value="1909">1909</option>
<option value="1908">1908</option>

<option value="1907">1907</option>
<option value="1906">1906</option>
<option value="1905">1905</option>
<option value="1904">1904</option>
<option value="1903">1903</option>
<option value="1902">1902</option>
<option value="1901">1901</option>
<option value="1900">1900</option>
</select>
</div></td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td colspan="3">&nbsp;</td>
<td><div align="left">
<input name="Submit2" type="submit" id="Submit" value="Submit" />
</form>
<td height="46"></td>
</tr>
<tr>
<td colspan="5"></td>
</tr>
</table>
</body>
</html>

52. header.html

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Header</title>
<link rel="stylesheet" type="text/css" href="jquerycssmenu.css" />

<!--[if lte IE 7]>


<style type="text/css">
html .jquerycssmenu{height: 1%;} /*Holly Hack for IE7 and below*/
</style>
<![endif]-->

<script type="text/javascript" src="jquery.min.js"></script>


<script type="text/javascript" src="jquerycssmenu.js"></script>
</head>

<body>
<div id="myjquerymenu" class="jquerycssmenu">
<ul>

<li><a href="Home.jsp">Home</a></li>

<li><a href="getStatus.jsp">Check Status</a></li>

<li><a href="#">Help</a>
<ul>

1.0

Transitional//EN"

<li><a href="RegFormPre.html">Enrollment Form</a></li>


<li><a

href="Required_Documents.html">Required

Documents</a></li>
<li><a

href="UpdationForm.html">Updation

Form</a></li>
</ul>
</li>

<li><a href="For_Uname_password.jsp">Add New General User </a></li>

<li><a href="Faq.jsp">FAQ</a></li>
<li><a href="Contact Us.jsp">Contact Us</a></li>
</ul>
</body>
</html>

53. Home.jsp
<%@ page language="java" import="java.sql.*;" errorPage="ErrorOccurred.jsp"%>
<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Home | UniqueID</title>
<link href="B.ICO" rel="shortcut icon" type="image/x-icon" />
<link href="B.ICO" rel="icon" type="image/x-icon" />
<style type="text/css">
<!-.style2 {
font-size: 36px;

1.0

Transitional//EN"

color: #33FF66;
}
body {
background-color: #FFFFFF;
background-image: url();
background-repeat: repeat;
background-position:center;

}
.style4 {color: #0000FF}
.style5 {font-size: 24px}
.style7 {
font-size: 16px;
font-family: Georgia, "Times New Roman", Times, serif;
}
-->
</style>
</head>

<body>
<table width="100%" height="100%" border="0" align="center">
<tr>
<td height="54"><table width="100%" height="100%" border="0">
<tr>
<td width="109" height="107" rowspan="2"><img src="images/indiaflag.gif" width="140"
height="105" /></td>
<td width="776"><div align="right"><a href="LogInHome.jsp"><img
src="images/LoginIcon.PNG" width="58" height="35" /></a></div></td>
</tr>

<tr>
<td><div align="center"><span class="style2"> <span class="style4"> Welcome to Unicus </span>
</span></div></td>
</tr>
</table>

</td>

</tr>
<tr>
<td height="31"><%@ include file="header.html"%></td>
</tr>

<tr>
<td height="550"><table width="100%" height="59%" border="0" align="center">
<tr>

<td width="159" rowspan="6">&nbsp;</td>

<td width="475" rowspan="5">


align="center">

<table width="100%" height="100%" border="0"

<tr>
<td height="204"><img src="images/UID.jpg" alt="UNICUS" width="475" height="200"
longdesc="home.jsp" /></td>
</tr>
<tr>
<td><marquee direction="up" loop="true" scrollamount="2">
<div align="justify">

<p>The name of the project is &ldquo;<strong>UNICUS</strong>&rdquo;. A


<strong>UNICUS</strong> project as a means for residents to clearly and uniquely verify their identity
anywhere in the country.</p>
<p><strong>UNICUS</strong> provide UID which is a universal number. </p>

<p>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. </p>
<p>Agencies and services can contact the <strong>UNICUS</strong> database from anywhere
in the country to confirm a beneficiary&rsquo;s identity. </p>
</div>
</marquee> </td>
</tr>
</table></td>
<td width="304" height="298"><table width="100%" border="0">
<tr>
<td height="32" colspan="2"><div align="center" class="style5">Quick Links
<hr />
</div></td>
</tr>
<tr>
<td width="193" height="32"><div align="right"><img src="images/blt.gif" width="13"
height="13" /> <a href="RegFormPre.html">Enrollment Form :</a></div></td>
<td width="144">download click here </td>
</tr>
<tr>
<td width="193" height="33"><div align="right"><img src="images/blt.gif" width="13"
height="13" /> <a href="Required_Documents.html">Required Documents :</a> </div></td>
<td>download click here</td>
</tr>
<tr>
<td width="193" height="30"><div align="right"><img src="images/blt.gif" width="13"
height="13" /> <a href="UpdationForm.html">Updation Form :</a></div></td>
<td>download click here </td>
</tr>
<tr>

<td height="50" colspan="2"><div align="center">


<hr />
<span class="style5">E-Applications</span>
<hr />
</div></td>
</tr>
<tr>
<td height="15" colspan="2"><div align="right"><img src="images/blt.gif" width="13"
height="13" /> <a href="For_Uname_password.jsp">To get UserName and Password Through UID</a>
</div></td>
</tr>
<tr>
<td height="21" colspan="2">&nbsp;</td>
</tr>

</table></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>

<tr>
<td width="475">&nbsp;</td>
<td width="304" height="21">&nbsp;</td>
</tr>
</table>
<%@ include file="footer.jsp"%>
</td>
</tr>
</table>
</body>
</html>

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 $
* $Rev: 5685 $
*/
(function(){var
_jQuery=window.jQuery,_$=window.$;var
jQuery=window.jQuery=window.
$=function(selector,context){return new jQuery.fn.init(selector,context);};var quickExpr=/^[^<]*(<(.|\s)
+>)[^>]*$|^#(\w+)$/,isSimple=/^.[^:#\
[\.]*$/,undefined;jQuery.fn=jQuery.prototype={init:function(selector,context){selector=selector||
document;if(selector.nodeType){this[0]=selector;this.length=1;return this;}if(typeof selector=="string")
{var
match=quickExpr.exec(selector);if(match&&(match[1]||!context))

{if(match[1])selector=jQuery.clean([match[1]],context);else{var
elem=document.getElementById(match[3]);if(elem){if(elem.id!=match[3])return
jQuery().find(selector);return jQuery(elem);}selector=[];}}else
return jQuery(context).find(selector);}else if(jQuery.isFunction(selector))return jQuery(document)
[jQuery.fn.ready?"ready":"load"](selector);return
this.setArray(jQuery.makeArray(selector));},jquery:"1.2.6",size:function(){return
this.length;},length:0,get:function(num){return
num==undefined?
jQuery.makeArray(this):this[num];},pushStack:function(elems){var
ret=jQuery(elems);ret.prevObject=this;return
ret;},setArray:function(elems)
{this.length=0;Array.prototype.push.apply(this,elems);return
this;},each:function(callback,args){return
jQuery.each(this,callback,args);},index:function(elem){var
ret=-1;return
jQuery.inArray(elem&&elem.jquery?elem[0]:elem,this);},attr:function(name,value,type){var
options=name;if(name.constructor==String)if(value===undefined)return
this[0]&&jQuery[type||"attr"]
(this[0],name);else{options={};options[name]=value;}return
this.each(function(i){for(name
in
options)jQuery.attr(type?
this.style:this,name,jQuery.prop(this,options[name],type,i,name));});},css:function(key,value)
{if((key=='width'||key=='height')&&parseFloat(value)<0)value=undefined;return
this.attr(key,value,"curCSS");},text:function(text){if(typeof
text!="object"&&text!=null)return
this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(text));var
ret="";jQuery.each(text||this,function(){jQuery.each(this.childNodes,function(){if(this.nodeType!
=8)ret+=this.nodeType!=1?this.nodeValue:jQuery.fn.text([this]);});});return ret;},wrapAll:function(html)
{if(this[0])jQuery(html,this[0].ownerDocument).clone().insertBefore(this[0]).map(function(){var
elem=this;while(elem.firstChild)elem=elem.firstChild;return
elem;}).append(this);return
this;},wrapInner:function(html){return
this.each(function()
{jQuery(this).contents().wrapAll(html);});},wrap:function(html){return
this.each(function()
{jQuery(this).wrapAll(html);});},append:function(){return
this.domManip(arguments,true,false,function(elem)
{if(this.nodeType==1)this.appendChild(elem);});},prepend:function(){return
this.domManip(arguments,true,true,function(elem)
{if(this.nodeType==1)this.insertBefore(elem,this.firstChild);});},before:function(){return
this.domManip(arguments,false,false,function(elem)
{this.parentNode.insertBefore(elem,this);});},after:function(){return
this.domManip(arguments,false,true,function(elem)
{this.parentNode.insertBefore(elem,this.nextSibling);});},end:function(){return
this.prevObject||
jQuery([]);},find:function(selector){var
elems=jQuery.map(this,function(elem){return
jQuery.find(selector,elem);});return this.pushStack(/[^+>] [^+>]/.test(selector)||selector.indexOf("..")>-1?
jQuery.unique(elems):elems);},clone:function(events){var
ret=this.map(function()
{if(jQuery.browser.msie&&!jQuery.isXMLDoc(this)){var
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
in events[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:this!=selector;});},add:function(selector){return
this.pushStack(jQuery.unique(jQuery.merge(this.get(),typeof
selector=='string'?
jQuery(selector):jQuery.makeArray(selector))));},is:function(selector){return!!
selector&&jQuery.multiFilter(selector,this).length>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=="selectone";if(index<0)return
null;for(var
i=one?index:0,max=one?index+1:options.length;i<max;i++){var
option=options[i];if(option.selected){value=jQuery.browser.msie&&!option.attributes.value.specified?
option.text:option.value;if(one)return value;values.push(value);}}return values;}else
return(this[0].value||"").replace(/\r/g,"");}return
undefined;}if(value.constructor==Number)value+='';return
this.each(function(){if(this.nodeType!
=1)return;if(value.constructor==Array&&/radio|
checkbox/.test(this.type))this.checked=(jQuery.inArray(this.value,value)>=0||
jQuery.inArray(this.name,value)>=0);else
if(jQuery.nodeName(this,"select")){var
values=jQuery.makeArray(value);jQuery("option",this).each(function()
{this.selected=(jQuery.inArray(this.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(value){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){var
data=this.triggerHandler("getData"+parts[1]+"!",
[parts[0]]);if(data===undefined&&this.length)data=jQuery.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);});},removeData:function(key){return
this.each(function()
{jQuery.removeData(this,key);});},domManip:function(args,table,reverse,callback){var
clone=this.length>1,elems;return
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=s
cripts.add(jQuery("script",elem).remove());callback.call(obj,elem);}});scripts.each(evalScript);});}};jQuer
y.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.parentNode.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<length;i++)if((options=arguments[i])!
=null)for(var
name
in
options){var
src=target[name],copy=options[name];if(target===copy)continue;if(deep&&copy&&typeof
copy=="object"&&!copy.nodeType)target[name]=jQuery.extend(deep,src||(copy.length!=null?[]:
{}),copy);else
if(copy!==undefined)target[name]=copy;}return
target;};var
expando="jQuery"+now(),uuid=0,windowData={},exclude=/z-?index|font-?weight|opacity|zoom|line-?
height/i,defaultView=document.defaultView||{};jQuery.extend({noConflict:function(deep){window.
$=_$;if(deep)window.jQuery=_jQuery;return jQuery;},isFunction:function(fn){return!!fn&&typeof fn!
="string"&&!fn.nodeName&&fn.constructor!=Array&&/^[\s[]?
function/.test(fn+"");},isXMLDoc:function(elem){return
elem.documentElement&&!elem.body||
elem.tagName&&elem.ownerDocument&&!elem.ownerDocument.body;},globalEval:function(data)
{data=jQuery.trim(data);if(data){var
head=document.getElementsByTagName("head")[0]||
document.documentElement,script=document.createElement("script");script.type="text/javascript";if(jQu
ery.browser.msie)script.text=data;else
script.appendChild(document.createTextNode(data));head.insertBefore(script,head.firstChild);head.remov
eChild(script);}},nodeName:function(elem,name){return
elem.nodeName&&elem.nodeName.toUpperCase()==name.toUpperCase();},cache:
{},data:function(elem,name,data){elem=elem==window?windowData:elem;var
id=elem[expando];if(!
id)id=elem[expando]=++uuid;if(name&&!jQuery.cache[id])jQuery.cache[id]={};if(data!
==undefined)jQuery.cache[id][name]=data;return
name?jQuery.cache[id]
[name]:id;},removeData:function(elem,name){elem=elem==window?windowData:elem;var
id=elem[expando];if(name){if(jQuery.cache[id]){delete jQuery.cache[id][name];name="";for(name in
jQuery.cache[id])break;if(!name)jQuery.removeData(elem);}}else{try{delete
elem[expando];}catch(e)
{if(elem.removeAttribute)elem.removeAttribute(expando);}delete
jQuery.cache[id];}},each:function(object,callback,args){var
name,i=0,length=object.length;if(args)
{if(length==undefined){for(name in object)if(callback.apply(object[name],args)===false)break;}else
for(;i<length;)if(callback.apply(object[i++],args)===false)break;}else{if(length==undefined){for(name in
object)if(callback.call(object[name],name,object[name])===false)break;}else
for(var
value=object[0];i<length&&callback.call(value,i,value)!==false;value=object[++i]){}}return
object;},prop:function(elem,value,type,i,name)
{if(jQuery.isFunction(value))value=value.call(elem,i);return
value&&value.constructor==Number&&type=="curCSS"&&!exclude.test(name)?
value+"px":value;},className:{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=classNames!=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=style[name];else
if(defaultView.getComputedStyle)
{if(name.match(/float/i))name="float";name=name.replace(/([A-Z])/g,"-$1").toLowerCase();var
computedStyle=defaultView.getComputedStyle(elem,null);if(computedStyle&&!
color(elem))ret=computedStyle.getPropertyValue(name);else{var
swap=[],stack=[],a=elem,i=0;for(;a&&color(a);a=a.parentNode)stack.unshift(a);for(;i<stack.length;i+
+)if(color(stack[i]))
{swap[i]=stack[i].style.display;stack[i].style.display="block";}ret=name=="display"&&swap[stack.length
-1]!=null?"none":(computedStyle&&computedStyle.getPropertyValue(name))||"";for(i=0;i<swap.length;i+
+)if(swap[i]!=null)stack[i].style.display=swap[i];}if(name=="opacity"&&ret=="")ret="1";}else
if(elem.currentStyle){var
camelCase=name.replace(/\-(\w)/g,function(all,letter){return
letter.toUpperCase();});ret=elem.currentStyle[name]||elem.currentStyle[camelCase];if(!/^\d+(px)?
$/i.test(ret)&&/^\d/.test(ret)){var
left=style.left,rsLeft=elem.runtimeStyle.left;elem.runtimeStyle.left=elem.currentStyle.left;style.left=ret||
0;ret=style.pixelLeft+"px";style.left=left;elem.runtimeStyle.left=rsLeft;}}return
ret;},clean:function(elems,context){var
ret=[];context=context||document;if(typeof
context.createElement=='undefined')context=context.ownerDocument||
context[0]&&context[0].ownerDocument||document;jQuery.each(elems,function(i,elem){if(!
elem)return;if(elem.constructor==Number)elem+='';if(typeof
elem=="string"){elem=elem.replace(/
(<(\w+)[^>]*?)\/>/g,function(all,front,tag){return
tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|
area|embed)$/i)?all:front+"></"+tag+">";});var
tags=jQuery.trim(elem).toLowerCase(),div=context.createElement("div");var
wrap=!
tags.indexOf("<opt")&&[1,"<select
multiple='multiple'>","</select>"]||!
tags.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||tags.match(/^<(thead|tbody|tfoot|colg|
cap)/)&&[1,"<table>","</table>"]||!tags.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!
tags.indexOf("<td")||!tags.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!
tags.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||
jQuery.browser.msie&&[1,"div<div>","</div>"]||
[0,"",""];div.innerHTML=wrap[1]+elem+wrap[2];while(wrap[0]--)div=div.lastChild;if(jQuery.browser.ms
ie){var
tbody=!tags.indexOf("<table")&&tags.indexOf("<tbody")<0?
div.firstChild&&div.firstChild.childNodes:wrap[1]=="<table>"&&tags.indexOf("<tbody")<0?
div.childNodes:[];for(var
j=tbody.length-1;j>=0;--j)if(jQuery.nodeName(tbody[j],"tbody")&&!

tbody[j].childNodes.length)tbody[j].parentNode.removeChild(tbody[j]);if(/^\s/.test(elem))div.insertBefore
(context.createTextNode(elem.match(/^\s*/)
[0]),div.firstChild);}elem=jQuery.makeArray(div.childNodes);}if(elem.length===0&&(!
jQuery.nodeName(elem,"form")&&!jQuery.nodeName(elem,"select")))return;if(elem[0]==undefined||
jQuery.nodeName(elem,"form")||elem.options)ret.push(elem);else
ret=jQuery.merge(ret,elem);});return ret;},attr:function(elem,name,value){if(!elem||elem.nodeType==3||
elem.nodeType==8)return
undefined;var
notxml=!jQuery.isXMLDoc(elem),set=value!
==undefined,msie=jQuery.browser.msie;name=notxml&&jQuery.props[name]||name;if(elem.tagName)
{var
special=/href|src|
style/.test(name);if(name=="selected"&&jQuery.browser.safari)elem.parentNode.selectedIndex;if(name in
elem&&notxml&&!special){if(set)
{if(name=="type"&&jQuery.nodeName(elem,"input")&&elem.parentNode)throw"type property can't be
changed";elem[name]=value;}if(jQuery.nodeName(elem,"form")&&elem.getAttributeNode(name))return
elem.getAttributeNode(name).nodeValue;return elem[name];}if(msie&&notxml&&name=="style")return
jQuery.attr(elem.style,"cssText",value);if(set)elem.setAttribute(name,""+value);var
attr=msie&&notxml&&special?elem.getAttribute(name,2):elem.getAttribute(name);return attr===null?
undefined:attr;}if(msie&&name=="opacity"){if(set)
{elem.zoom=1;elem.filter=(elem.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(value)
+''=="NaN"?"":"alpha(opacity="+value*100+")");}return
elem.filter&&elem.filter.indexOf("opacity=")>=0?(parseFloat(elem.filter.match(/opacity=([^)]*)/)
[1])/100)+'':"";}name=name.replace(/-([a-z])/ig,function(all,letter){return
letter.toUpperCase();});if(set)elem[name]=value;return
elem[name];},trim:function(text)
{return(text||"").replace(/^\s+|\s+$/g,"");},makeArray:function(array){var
ret=[];if(array!=null){var
i=array.length;if(i==null||array.split||array.setInterval||array.call)ret[0]=array;else
while(i)ret[--i]=array[i];}return
ret;},inArray:function(elem,array){for(var
i=0,length=array.length;i<length;i++)if(array[i]===elem)return i;return-1;},merge:function(first,second)
{var
i=0,elem,pos=first.length;if(jQuery.browser.msie){while(elem=second[i++])if(elem.nodeType!
=8)first[pos++]=elem;}else
while(elem=second[i++])first[pos++]=elem;return
first;},unique:function(array){var
ret=[],done={};try{for(var
i=0,length=array.length;i<length;i++){var
id=jQuery.data(array[i]);if(!
done[id]){done[id]=true;ret.push(array[i]);}}}catch(e){ret=array;}return
ret;},grep:function(elems,callback,inv){var ret=[];for(var i=0,length=elems.length;i<length;i++)if(!inv!=!
callback(elems[i],i))ret.push(elems[i]);return
ret;},map:function(elems,callback){var
ret=[];for(var
i=0,length=elems.length;i<length;i++){var
value=callback(elems[i],i);if(value!
=null)ret[ret.length]=value;}return
ret.concat.apply([],ret);}});var
userAgent=navigator.userAgent.toLowerCase();jQuery.browser={version:(userAgent.match(/.+(?:rv|it|ra|
ie)[\/:
]([\d.]+)/)||[])
[1],safari:/webkit/.test(userAgent),opera:/opera/.test(userAgent),msie:/msie/.test(userAgent)&&!/opera/.te
st(userAgent),mozilla:/mozilla/.test(userAgent)&&!/(compatible|webkit)/.test(userAgent)};var
styleFloat=jQuery.browser.msie?"styleFloat":"cssFloat";jQuery.extend({boxModel:!jQuery.browser.msie||
document.compatMode=="CSS1Compat",props:
{"for":"htmlFor","class":"className","float":styleFloat,cssFloat:styleFloat,styleFloat:styleFloat,readonly:
"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing"}});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.makeArray(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);return
this.pushStack(jQuery.unique(ret));};});jQuery.each({appendTo:"append",prependTo:"prepend",insertBef
ore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(name,original)
{jQuery.fn[name]=function(){var
args=arguments;return
this.each(function(){for(var
i=0,length=args.length;i<length;i++)jQuery(args[i])[original]
(this);});};});jQuery.each({removeAttr:function(name)
{jQuery.attr(this,name,"");if(this.nodeType==1)this.removeAttribute(name);},addClass:function(classNam
es){jQuery.className.add(this,classNames);},removeClass:function(classNames)
{jQuery.className.remove(this,classNames);},toggleClass:function(classNames)
{jQuery.className[jQuery.className.has(this,classNames)?"remove":"add"]
(this,classNames);},remove:function(selector){if(!selector||jQuery.filter(selector,[this]).r.length)
{jQuery("*",this).add(this).each(function()
{jQuery.event.remove(this);jQuery.removeData(this);});if(this.parentNode)this.parentNode.removeChild(t
his);}},empty:function()
{jQuery(">*",this).remove();while(this.firstChild)this.removeChild(this.firstChild);}},function(name,fn)
{jQuery.fn[name]=function(){return
this.each(fn,arguments);};});jQuery.each(["Height","Width"],function(i,name){var
type=name.toLowerCase();jQuery.fn[type]=function(size){return
this[0]==window?
jQuery.browser.opera&&document.body["client"+name]||
jQuery.browser.safari&&window["inner"+name]||
document.compatMode=="CSS1Compat"&&document.documentElement["client"+name]||
document.body["client"+name]:this[0]==document?
Math.max(Math.max(document.body["scroll"+name],document.documentElement["scroll"+name]),Math.
max(document.body["offset"+name],document.documentElement["offset"+name])):size==undefined?
(this.length?jQuery.css(this[0],type):null):this.css(type,size.constructor==String?
size:size+"px");};});function
num(elem,prop){return
elem[0]&&parseInt(jQuery.curCSS(elem[0],prop,true),10)||0;}var
chars=jQuery.browser.safari&&parseInt(jQuery.browser.version)<417?"(?:[\\w*_-]|\\\\.)":"(?:
[\\w\u0128-\uFFFF*_-]|\\\\.)",quickChild=new
RegExp("^>\\s*("+chars+"+)"),quickID=new
RegExp("^("+chars+"+)(#)("+chars+"+)"),quickClass=new
RegExp("^([#.]?)
("+chars+"*)");jQuery.extend({expr:{"":function(a,i,m){return
m[2]=="*"||
jQuery.nodeName(a,m[2]);},"#":function(a,i,m){return
a.getAttribute("id")==m[2];},":":
{lt:function(a,i,m){return
i<m[3]-0;},gt:function(a,i,m){return
i>m[3]-0;},nth:function(a,i,m){return
m[3]-0==i;},eq:function(a,i,m){return m[3]-0==i;},first:function(a,i){return i==0;},last:function(a,i,m,r)
{return
i==r.length-1;},even:function(a,i){return
i%2==0;},odd:function(a,i){return
i%2;},"firstchild":function(a){return
a.parentNode.getElementsByTagName("*")[0]==a;},"last-child":function(a)
{return
jQuery.nth(a.parentNode.lastChild,1,"previousSibling")==a;},"only-child":function(a){return!
jQuery.nth(a.parentNode.lastChild,2,"previousSibling");},parent:function(a){return
a.firstChild;},empty:function(a){return!a.firstChild;},contains:function(a,i,m){return(a.textContent||
a.innerText||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.disabled;},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"radio"==a.type;},checkbox:function(a){return"checkbox"==a.type;},file:function(a)
{return"file"==a.type;},password:function(a){return"password"==a.type;},submit:function(a)
{return"submit"==a.type;},image:function(a){return"image"==a.type;},reset:function(a)
{return"reset"==a.type;},button:function(a){return"button"==a.type||
jQuery.nodeName(a,"button");},input:function(a){return/input|select|textarea|
button/i.test(a.nodeName);},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){return
jQuery.grep(jQuery.timers,function(fn)
{return a==fn.elem;}).length;}}},parse:[/^(\[) *@?([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,/^(:)([\w-]+)\
("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,new RegExp("^([:.#]*)("+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);}return
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<rl;j++){var n=m=="~"||
m=="+"?ret[j].nextSibling:ret[j].firstChild;for(;n;n=n.nextSibling)if(n.nodeType==1){var
id=jQuery.data(n);if(m=="~"&&merge[id])break;if(!nodeName||
n.nodeName.toUpperCase()==nodeName)
{if(m=="~")merge[id]=true;r.push(n);}if(m=="+")break;}}ret=r;t=jQuery.trim(t.replace(re,""));foundToke
n=true;}}if(t&&!foundToken){if(!t.indexOf(","))
{if(context==ret[0])ret.shift();done=jQuery.merge(done,ret);r=ret=[context];t="
"+t.substr(1,t.length);}else{var
re2=quickID;var
m=re2.exec(t);if(m)
{m=[0,m[2],m[3],m[1]];}else{re2=quickClass;m=re2.exec(t);}m[2]=m[2].replace(/\\/g,"");var
elem=ret[ret.length-1];if(m[1]=="#"&&elem&&elem.getElementById&&!jQuery.isXMLDoc(elem)){var
oid=elem.getElementById(m[2]);if((jQuery.browser.msie||jQuery.browser.opera)&&oid&&typeof
oid.id=="string"&&oid.id!=m[2])oid=jQuery('[@id="'+m[2]+'"]',elem)[0];ret=r=oid&&(!m[3]||
jQuery.nodeName(oid,m[3]))?[oid]:[];}else{for(var
i=0;ret[i];i++){var
tag=m[1]=="#"&&m[3]?
m[3]:m[1]!=""||
m[0]==""?"*":m[2];if(tag=="*"&&ret[i].nodeName.toLowerCase()=="object")tag="param";r=jQuery.mer
ge(r,ret[i].getElementsByTagName(tag));}if(m[1]==".")r=jQuery.classFilter(r,m[2]);if(m[1]=="#"){var
tmp=[];for(var
i=0;r[i];i++)if(r[i].getAttribute("id")==m[2])
{tmp=[r[i]];break;}r=tmp;}ret=r;}t=t.replace(re2,"");}}if(t){var
val=jQuery.filter(t,r);ret=r=val.r;t=jQuery.trim(val.t);}}if(t)ret=[];if(ret&&context==ret[0])ret.shift();done
=jQuery.merge(done,ret);return done;},classFilter:function(r,m,not){m=" "+m+" ";var tmp=[];for(var
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)break;if(m[1]==":"&&m[2]=="not")r=isSimple.test(m[3])?
jQuery.filter(m[3],r,true).r:jQuery(r).not(m[3]);else
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<rl;i++){var a=r[i],z=a[jQuery.props[m[2]]||

m[2]];if(z==null||/href|src|selected/.test(m[2]))z=jQuery.attr(a,m[2])||'';if((type==""&&!!z||
type=="="&&z==m[5]||type=="!="&&z!=m[5]||type=="^="&&z&&!z.indexOf(m[5])||
type=="$="&&z.substr(z.length-m[5].length)==m[5]||(type=="*="||
type=="~=")&&z.indexOf(m[5])>=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<rl;i++){var
node=r[i],parentNode=node.parentNode,id=jQuery.data(parentNode);if(!merge[id]){var
c=1;for(var
n=parentNode.firstChild;n;n=n.nextSibling)if(n.nodeType==1)n.nodeIndex=c++;merge[id]=true;}var
add=false;if(first==0){if(node.nodeIndex==last)add=true;}else
if((node.nodeIndex-last)
%first==0&&(node.nodeIndex-last)/first>=0)add=true;if(add^not)tmp.push(node);}r=tmp;}else{var
fn=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)return;if(jQuery.browser.msie&&elem.setInterval)elem=window;if(!
handler.guid)handler.guid=this.guid++;if(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")||
jQuery.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.split
(/\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.event.special[type].setup.call(elem)===false)
{if(elem.addEventListener)elem.addEventListener(type,handle,false);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||(typeof
types=="string"&&types.charAt(0)=="."))for(var
type
in
events)this.remove(elem,type+
(types||""));else{if(types.type)
{handler=types.handler;types=types.type;}jQuery.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)===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.makeArray(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);}else{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.unshift({type:type,target:elem,preventDefault:function()
{},stopPropagation:function(){},timeStamp:now()});data[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(elem,'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(val));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.exclusive;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.stopPropagation();}}}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=fu
nction()
{if(originalEvent.preventDefault)originalEvent.preventDefault();originalEvent.returnValue=false;};event.s
topPropagation=function()
{if(originalEvent.stopPropagation)originalEvent.stopPropagation();originalEvent.cancelBubble=true;};eve
nt.timeStamp=event.timeStamp||now();if(!event.target)event.target=event.srcElement||
document;if(event.target.nodeType==3)event.target=event.target.parentNode;if(!
event.relatedTarget&&event.fromElement)event.relatedTarget=event.fromElement==event.target?
event.toElement:event.fromElement;if(event.pageX==null&&event.clientX!=null){var
doc=document.documentElement,body=document.body;event.pageX=event.clientX+
(doc&&doc.scrollLeft||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.keyCode))event.which=event.charCode||event.keyCode;if(!
event.metaKey&&event.ctrlKey)event.metaKey=event.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
jQuery.event.handle.apply(this,arguments);}},mouseleave:{setup:function()
{if(jQuery.browser.msie)return
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(this,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<args.length)jQuery.event.proxy(fn,args[i++]);return
this.click(jQuery.event.proxy(fn,function(event){this.lastToggle=(this.lastToggle||
0)%i;event.preventDefault();return
args[this.lastToggle++].apply(this,arguments)||
false;}));},hover:function(fnOver,fnOut){return
this.bind('mouseenter',fnOver).bind('mouseleave',fnOut);},ready:function(fn)
{bindReady();if(jQuery.isReady)fn.call(document,jQuery);else
jQuery.readyList.push(function(){return
fn.call(this,jQuery);});return
this;}});jQuery.extend({isReady:false,readyList:[],ready:function(){if(!jQuery.isReady)
{jQuery.isReady=true;if(jQuery.readyList){jQuery.each(jQuery.readyList,function()
{this.call(document);});jQuery.readyList=null;}jQuery(document).triggerHandler("ready");}}});var
readyBound=false;function
bindReady()
{if(readyBound)return;readyBound=true;if(document.addEventListener&&!
jQuery.browser.opera)document.addEventListener("DOMContentLoaded",jQuery.ready,false);if(jQuery.br
owser.msie&&window==top)(function()
{if(jQuery.isReady)return;try{document.documentElement.doScroll("left");}catch(error)
{setTimeout(arguments.callee,0);return;}jQuery.ready();})
();if(jQuery.browser.opera)document.addEventListener("DOMContentLoaded",function()
{if(jQuery.isReady)return;for(var
i=0;i<document.styleSheets.length;i+
+)if(document.styleSheets[i].disabled)
{setTimeout(arguments.callee,0);return;}jQuery.ready();},false);if(jQuery.browser.safari){var numStyles;
(function(){if(jQuery.isReady)return;if(document.readyState!="loaded"&&document.readyState!
="complete")
{setTimeout(arguments.callee,0);return;}if(numStyles===undefined)numStyles=jQuery("style,
link[rel=stylesheet]").length;if(document.styleSheets.length!=numStyles)
{setTimeout(arguments.callee,0);return;}jQuery.ready();})
();}jQuery.event.add(window,"load",jQuery.ready);}jQuery.each(("blur,focus,load,resize,scroll,unload,clic
k,dblclick,"+"mousedown,mouseup,mousemove,mouseover,mouseout,change,select,"+"submit,keydown,k
eypress,keyup,error").split(","),function(i,name){jQuery.fn[name]=function(fn){return
fn?
this.bind(name,fn):this.trigger(name);};});var
withinElement=function(event,elem){var
parent=event.relatedTarget;while(parent&&parent!=elem)try{parent=parent.parentNode;}catch(error)
{parent=elem;}return
parent==elem;};jQuery(window).bind("unload",function()
{jQuery("*").add(document).unbind();});jQuery.fn.extend({_load:jQuery.fn.load,load:function(url,params
,callback){if(typeof
url!='string')return
this._load(url);var
off=url.indexOf("
");if(off>=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=jQuery.param(params);type="POST";}var
self=this;jQuery.ajax({url:url,type:type,dataType:"html",data:params,complete:function(res,status)

{if(status=="success"||status=="notmodified")self.html(selector?
jQuery("<div/>").append(res.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(selector):res.respons
eText);self.each(callback,[res.responseText,status,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,ajaxSu
ccess,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,callba
ck){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))
{callback=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",timeout:0,contentType:"application/x-www-formurlencoded",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(jsre))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.data
Type="script";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.readyState=="loaded"||this.readyState=="complete"))
{done=true;success();complete();head.removeChild(script);}};}head.appendChild(script);return
undefined;}var
requestDone=false;var
xhr=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("ContentType",s.contentType);if(s.ifModified)xhr.setRequestHeader("If-ModifiedSince",jQuery.lastModified[s.url]||"Thu, 01 Jan 1970 00:00:00 GMT");xhr.setRequestHeader("XRequestedWith","XMLHttpRequest");xhr.setRequestHeader("Accept",s.dataType&&s.accepts[s.dataType]?


s.accepts[s.dataType]+",
*/*":s.accepts._default);}catch(e)
{}if(s.beforeSend&&s.beforeSend(xhr,s)===false){s.global&&jQuery.active--;xhr.abort();return
false;}if(s.global)jQuery.event.trigger("ajaxSend",[xhr,s]);var
onreadystatechange=function(isTimeout)
{if(!requestDone&&xhr&&(xhr.readyState==4||isTimeout=="timeout")){requestDone=true;if(ival)
{clearInterval(ival);ival=null;}status=isTimeout=="timeout"&&"timeout"||!
jQuery.httpSuccess(xhr)&&"error"||
s.ifModified&&jQuery.httpNotModified(xhr,s.url)&&"notmodified"||"success";if(status=="success")
{try{data=jQuery.httpData(xhr,s.dataType,s.dataFilter);}catch(e)
{status="parsererror";}}if(status=="success"){var modRes;try{modRes=xhr.getResponseHeader("LastModified");}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(!
requestDone)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]);}function
complete(){if(s.complete)s.complete(xhr,status);if(s.global)jQuery.event.trigger("ajaxComplete",
[xhr,s]);if(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("ajaxError",
[xhr,s,e]);},active:0,httpSuccess:function(xhr){try{return!xhr.status&&location.protocol=="file:"||
(xhr.status>=200&&xhr.status<300)||xhr.status==304||xhr.status==1223||
jQuery.browser.safari&&xhr.status==undefined;}catch(e){}return
false;},httpNotModified:function(xhr,url){try{var
xhrRes=xhr.getResponseHeader("LastModified");return
xhr.status==304||xhrRes==jQuery.lastModified[url]||
jQuery.browser.safari&&xhr.status==undefined;}catch(e){}return false;},httpData:function(xhr,type,filter)
{var
ct=xhr.getResponseHeader("content-type"),xml=type=="xml"||!
type&&ct&&ct.indexOf("xml")>=0,data=xml?
xhr.responseXML:xhr.responseText;if(xml&&data.documentElement.tagName=="parsererror")throw"par
sererror";if(filter)data=filter(data,type);if(type=="script")jQuery.globalEval(data);if(type=="json")data=ev
al("("+data+")");return
data;},param:function(a){var
s=[];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)+"="+encodeURIComponent(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").each(fun
ction(){this.style.display=this.oldblock||"";if(jQuery.css(this,"display")=="none"){var
elem=jQuery("<"+this.tagName+"
/>").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(functi
on(){this.oldblock=this.oldblock||
jQuery.css(this,"display");this.style.display="none";}).end();},_toggle:jQuery.fn.toggle,toggle:function(fn,
fn2){return
jQuery.isFunction(fn)&&jQuery.isFunction(fn2)?this._toggle.apply(this,arguments):fn?
this.animate({height:"toggle",width:"toggle",opacity:"toggle"},fn,fn2):this.each(function(){jQuery(this)
[jQuery(this).is(":hidden")?"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=this.style.overflow;}}if(opt.overflow!
=null)this.style.overflow="hidden";opt.curAnim=jQuery.extend({},prop);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.length1;i>=0;i--)if(timers[i].elem==this){if(gotoEnd)timers[i](true);timers.splice(i,1);}});if(!
gotoEnd)this.dequeue();return 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(array));}return
q;};jQuery.fn.dequeue=function(type){type=type||"fx";return
this.each(function(){var
q=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.prop]||
jQuery.fx.step._default)(this);if(this.prop=="height"||
this.prop=="width")this.elem.style.display="block";},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;this.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=setInterval(function(){var timers=jQuery.timers;for(var i=0;i<timers.length;i++)if(!
timers[i]())timers.splice(i--,1);if(!timers.length)
{clearInterval(jQuery.timerId);jQuery.timerId=null;}},13);}},show:function()
{this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.show=true;this.custom(0,thi
s.cur());if(this.prop=="width"||
this.prop=="height")this.elem.style[this.prop]="1px";jQuery(this.elem).show();},hide:function()
{this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.c
ur(),0);},step:function(gotoEnd){var
t=now();if(gotoEnd||t>this.options.duration+this.startTime)
{this.now=this.end;this.pos=this.state=1;this.update();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(t
his.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=tthis.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();}return
true;}};jQuery.extend(jQuery.fx,{speeds:
{slow:600,fast:200,def:400},step:{scrollLeft:function(fx)
{fx.elem.scrollLeft=fx.now;},scrollTop:function(fx){fx.elem.scrollTop=fx.now;},opacity:function(fx)
{jQuery.attr(fx.elem.style,"opacity",fx.now);},_default:function(fx)
{fx.elem.style[fx.prop]=fx.now+fx.unit;}}});jQuery.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)<522&&!/adobeair/i.test(userAgent),css=jQuery.curCSS,fixed=css(elem,"
position")=="fixed";if(elem.getBoundingClientRect){var
box=elem.getBoundingClientRect();add(box.left+Math.max(doc.documentElement.scrollLeft,doc.body.sc
rollLeft),box.top+Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));add(doc.documentElement.clientLeft,doc.documentElement.clientTop);}else{add(elem.offsetLeft,elem.offsetTop);while(offsetParent)
{add(offsetParent.offsetLeft,offsetParent.offsetTop);if(mozilla&&!/^t(able|d|h)
$/i.test(offsetParent.tagName)||safari&&!safari2)border(offsetParent);if(!
fixed&&css(offsetParent,"position")=="fixed")fixed=true;offsetChild=/^body$/i.test(offsetParent.tagNam
e)?
offsetChild:offsetParent;offsetParent=offsetParent.offsetParent;}while(parent&&parent.tagName&&!/^bo
dy|html$/i.test(parent.tagName)){if(!/^inline|table.*$/i.test(css(parent,"display")))add(-parent.scrollLeft,parent.scrollTop);if(mozilla&&css(parent,"overflow")!
="visible")border(parent);parent=parent.parentNode;}if((safari2&&(fixed||
css(offsetChild,"position")=="absolute"))||(mozilla&&css(offsetChild,"position")!="absolute"))add(-

doc.body.offsetLeft,doc.body.offsetTop);if(fixed)add(Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),Math.m
ax(doc.documentElement.scrollTop,doc.body.scrollTop));}results={top:top,left:left};}function
border(elem)
{add(jQuery.curCSS(elem,"borderLeftWidth",true),jQuery.curCSS(elem,"borderTopWidth",true));}functi
on
add(l,t){left+=parseInt(l,10)||0;top+=parseInt(t,10)||0;}return
results;};jQuery.fn.extend({position:function(){var
left=0,top=0,results;if(this[0]){var
offsetParent=this.offsetParent(),offset=this.offset(),parentOffset=/^body|
html$/i.test(offsetParent[0].tagName)?{top:0,left:0}:offsetParent.offset();offset.top=num(this,'marginTop');offset.left=num(this,'marginLeft');parentOffset.top+=num(offsetParent,'borderTopWidth');parentOffset.left+=num(o
ffsetParent,'borderLeftWidth');results={top:offset.top-parentOffset.top,left:offset.leftparentOffset.left};}return
results;},offsetParent:function(){var
offsetParent=this[0].offsetParent;while(offsetParent&&(!/^body|
html$/i.test(offsetParent.tagName)&&jQuery.css(offsetParent,'position')=='static'))offsetParent=offsetPare
nt.offsetParent;return
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(window).scrollLeft(),i?
val:jQuery(window).scrollTop()):this[method]=val;}):this[0]==window||this[0]==document?
self[i?'pageYOffset':'pageXOffset']||jQuery.boxModel&&document.documentElement[method]||
document.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;
}

/*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;
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{
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-right.gif']}

'images/arrow-down.gif',

25],

right:['rightarrowclass',

var jquerycssmenu={

fadesettings: {overduration: 350, outduration: 100}, //duration of fade in/ out animation, in milliseconds

buildmenu:function(menuid, arrowsvar){
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,
$subul.outerWidth(), subulh:$subul.outerHeight()}

h:this.offsetHeight,

subulw:

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?
arrowsvar.down[2]} : {}).append(
'<img

src="'+

(this.istopheader?

{paddingRight:

arrowsvar.down[1]

arrowsvar.right[1])
+'"

class="'

(this.istopheader?

arrowsvar.down[0]

arrowsvar.right[0])
+ '" style="border:0;" />'
)
$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){
$
(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
<%@ page contentType="text/html;
errorPage="ErrorOccurred.jsp" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

1.0

import="java.sql.*"

Transitional//EN"

<title>Login | UniqueID</title>
<link href="images/B.ICO" rel="shortcut icon" type="image/x-icon" />
<link href="images/B.ICO" rel="icon" type="image/x-icon" />

<script language="javascript" type="text/javascript">


function validate()
{
if( document.f1.UserName.value=="")
{
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;
}
</script>
<style type="text/css">
<!-.style13 {font-size: 24px}
.style15 {color: #FF0000}
body {

background-image: url();
background-repeat: repeat;
}
.style16 {
font-size: 36px;
color: #0000FF;
}
-->
</style>
</head>

<body>
<form name="f1" method="post" action="LoginProcess.jsp" onsubmit="return validate()" >
<table width="100%" border="0" align="center">
<tr>
<td width="15%" height="107"><img src="images/indiaflag.gif" width="140" height="105" /></td>
<td width="85%"><div align="center"><span class="style2"> <span class="style16"> Welcome to
Unicus </span> </span></div></td>
</tr>

<tr>
<td colspan="2"><%@ include file="header.html"%></td>
</tr>

<tr>
<td height="385" colspan="2"><a href="Home.jsp"></a>
<table width="470" border="0" align="center">

<tr>
<td height="33" colspan="3"><div align="center"><span class="style13">Login to <span
class="style15">Unicus </span>Account </span></div></td>
</tr>
<tr>
<%
if(session.getAttribute("logfaild")=="yes")
{

%>
<td height="21" colspan="3"><div align="right"><span class="style15"><img
src="images/showhere.GIF" width="10" height="36" align="absmiddle" /><blink> UserName or
Password invalid</blink></span>&nbsp;</div></td>
<%
}
%>
</tr>
<tr>
<td width="193" height="46"><div align="right">UserName </div></td>
<td width="267" height="46" colspan="2"><input name="UserName" type="text"
id="UserName" /></td>
</tr>
<tr>
<td height="46"><div align="right">Password:</div></td>
<td colspan="2"><input name="Password" type="password" id="Password" /></td>
</tr>
<tr>
<td height="48"><div align="right">User Type

</div></td>

<td height="48" colspan="2"><select name="select">


<option value="Admin">Admin</option>
<option value="Special_User">Special_User</option>
<option value="Resident">Resident</option>
</select></td>
</tr>
<tr>
<td height="36">&nbsp;</td>
<td height="36"><div align="center">
<input type="submit" name="Submit" value="Submit" />
</div></td>
<td><label>
<input type="reset" name="Submit2" value="Reset" />
</label></td>
</tr>
<tr>
<td
height="26"
colspan="3"><div
href="ForgotPassword.jsp">Can't_Access_My_Account</a></div></td>
</tr>
</table></td></tr>

<tr>
<td colspan="2"><%@ include file="footer.jsp"%></td>
</tr>
</table>
</form>
</body>
</html>

align="right"><a

58. LoginProcess.jsp
<%@ page contentType="text/html;
errorPage="ErrorOccurred.jsp" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

1.0

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Login | UniqueID</title>

</head>

<body>
<%
String usertype=request.getParameter("select");
String username=request.getParameter("UserName");
String pass=request.getParameter("Password");
String str="select Password from "+usertype+" where UserName='"+username+"'";

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:Pass");
PreparedStatement pstmt = con.prepareStatement(str);
ResultSet rs=pstmt.executeQuery();
boolean y=false;

while(rs.next())
{
String paa=rs.getString(1);

import="java.sql.*"

Transitional//EN"

if(paa.equals(pass))
{
y=true;
break;
}
}
if(y && usertype.equals("Admin"))
{
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");
session.setAttribute("userid",username);
response.sendRedirect("ResidentHome.jsp");
}
else
{
session.setAttribute("logfaild","yes");
response.sendRedirect("LogInHome.jsp");
}
%>

</body>
</html>

59. Logout.jsp
<%@ page contentType="text/html;
errorPage="ErrorOccurred.jsp" %>
<html>
<head>
</head>
<body>

charset=iso-8859-1"

language="java"

import="java.sql.*"

<%
session.invalidate();
response.sendRedirect("LogInHome.jsp");
%>
</body>
</html>

60. NewUser.jsp
<%@ page language="java" import="java.sql.*;" errorPage="ErrorOccurred.jsp"%>
<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>New Users | UniqueID</title>

<script type="text/javascript" language="javascript">


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;
}

1.0

Transitional//EN"

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;
}
//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)<6)

{
alert("User Name is atleast 6 character");
document.newuser.UserName.focus();
return false;
}
/*
if(document.newuser.two.value!="yes")
{
alert("Check Alert on UserName");
return false;
}
*/
if(document.newuser.email.value=="")
{
alert("email must provide !!!");
return false;
}
if
(document.newuser.email.value.indexOf("@")<1
document.newuser.email.value.lastIndexOf(".")<document.newuser.email.value.indexOf("@")+2
document.newuser.email.value.lastIndexOf(".")+2>=document.newuser.email.value.length)
{
alert("Not a valid e-mail address");
document.newuser.email.focus();
document.newuser.email.style.backgroundColor="#FF9966";
document.newuser.email.select();

return false;
}
var mm=/^\d{10,12}$/;

||
||

if(document.newuser.mobileno.value.search(mm)==-1)
{
alert("Not a valid mobile no");
document.newuser.mobileno.focus();
document.newuser.mobileno.select();
document.newuser.mobileno.style.backgroundColor="#FF9966";
return false;
}
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
{// 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();

}
</script>

<style type="text/css">
<!-.style1 {color: #FF0000}
.style2 {
color: #0000FF;
font-size: 24px;
}
.style4 {
color: #FF0000;
font-size: xx-large;
}
-->
</style>
</head>

<body>
<table width="100%" border="0" align="center">
<tr>
<td><img src="images/indiaflag.gif" width="140" height="105" longdesc="Home.html" /></td>
<td><div align="center"><span class="style2">Welcome to Registration For New Admin & Special
User </span></div></td>
</tr>
<tr>

<th colspan="2" scope="col"><%@ include file="header.html"%>&nbsp;</th>


</tr>
</table>
<p>&nbsp;</p>
<p>
<%
if(session.getAttribute("userid")!=null && session.getAttribute("isadmin")=="yes")
{
String user = session.getAttribute("userid").toString();
%>

</p>
<form action="UserProcess.jsp" id="newuser"
valid()">

name="newuser" method="post"

onsubmit="return

<table width="100%" border="0" align="center">


<tr>
<td width="1010"><table width="680" border="0" align="center">
<tr>
<td height="39" colspan="3">&nbsp;</td>
</tr>
<tr>
<td height="34"><div align="right">User Type:<span class="style1">*</span> </div></td>
<td colspan="2"><select name="UserType" id="utype">
<option>Select</option>
<option value="Admin">Admin</option>
<option value="Special_User">Special_User</option>
</select></td>
</tr>

<tr>
<td width="192" height="34"><div align="right">Unique ID: <span class="style1">*</span>
</div></td>
<td><input name="uid" type="text" id="uid" onblur="ajax(this.value,'uidcheck')"/></td>
<td width="284" id="uidcheck">&nbsp;</td>
</tr>
<tr>
<td height="34"><div align="right">User Name: <span class="style1">*</span> </div></td>
<td width="150"><input name="UserName" type="text"
onkeyup="ajax(this.value,'usercheck')" onblur="ajax(this.value,'usercheck')"/></td>

id="UserName"

<td id="usercheck">&nbsp;</td>
</tr>
<tr>
<td height="34"><div align="right">E-mail:<span class="style1">*</span></div></td>
<td colspan="2"><input name="email" type="text" id="email" size="40" /></td>
</tr>
<tr>
<td height="15"><div align="right">Mobile No:<span class="style1">*</span> </div></td>
<td colspan="2"><input name="mobileno" type="text" id="mobileno" /></td>
</tr>

<tr>
<td height="36"><div align="center"></div></td>
<td><input type="submit" name="Submit" value="Submit" /></td>
<td><input type="reset" name="Submit2" value="Reset" /></td>
</tr>
</table></td>
</tr>

<input name="one" id="one" type="hidden" />


</table>
</form>
<p>
<%
}
else
{
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}
%>

</p>
</body>
</html>

61. PersonalDetails.jsp
<%@ page contentType="text/html;
errorPage="ErrorOccurred.jsp" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<script language="javascript" type="text/javascript">
function goback()
{
history.back();

1.0

import="java.sql.*"

Transitional//EN"

}
</script>
<style type="text/css">
<!-.style1 {font-size: 36px}
.style2 {color: #0000FF}
-->
</style>
</head>

<body>
<p>
<%
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conResident=DriverManager.getConnection("jdbc:odbc:Resident");
Statement st = conResident.createStatement();
String uid=(session.getAttribute("uid")).toString();
ResultSet rsPersonal=null ;

rsPersonal

st.executeQuery("select

UniqueID='"+uid+"'");
if(rsPersonal.next()==false)
{
out.print("No Result Found..............Sorry !!!! ");
}
else
{
%></p>

from

PersonalDetails

where

<table width="100%" border="0" align="center">


<tr>
<th scope="col">&nbsp;<%@ include file="header.html"%></th>
</tr>
</table>
<p align="center" class="style3 style1 style2">Personal Details:</p>
<p align="center">
<input type="submit" name="Submit" value="Go Back" onclick="goback()"/>
</p>
<table width="945" border="2" align="center" >
<tr>
<td width="152"><div align="center" class="style2">UniqueID</div></td>
<td width="119"><div align="center" class="style2">gaurdianname</div></td>
<td width="124"><div align="center" class="style2">fathername</div></td>
<td width="96"><div align="center" class="style2">mothername</div></td>
<td width="82"><div align="center"><span class="style2">husbandname</span></div></td>
<td width="71"><div align="center" class="style2">height</div></td>
<td width="84"><div align="center" class="style2">eyecolour</div></td>
<td width="87"><div align="center" class="style2">mark</div></td>
<td width="70"><div align="center" class="style2">religious</div></td>
</tr>
<%

do{

out.println("<tr>");
out.println("<td>" +rsPersonal.getString("UniqueID")+"</td>");

out.println("<td>"
+rsPersonal.getString("gaurdianname")+"</td>");

out.println("<td>" +rsPersonal.getString("fathername")+"</td>");

out.println("<td>" +rsPersonal.getString("mothername")+"</td>");

out.println("<td>" +rsPersonal.getString("husbandname")+"</td>");
out.println("<td>" +rsPersonal.getString("height")+"</td>");
out.println("<td>" +rsPersonal.getString("eyecolour")+"</td>");
out.println("<td>" +rsPersonal.getString("mark")+"</td>");
out.println("<td>" +rsPersonal.getString("religious")
+"</td>");

out.println("</tr>");
}while (rsPersonal.next());
%>
</table>
<p>
<%
session.setAttribute("uid",uid);
%>
</p>
<p align="center"><a href="ContactDetails.jsp">show Contact Details......</a> </p>
<p>
<%
}
%>
</p>
</body>

</html>

62. Phone.jsp
<%@ page contentType="text/html;
errorPage="" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Phone</title>
<style type="text/css">
<!-.style5 {font-size: 24px}
.style7 {font-size: 24px; color: #0000FF; }
-->
</style>
</head>

<body>
<table width="100%" height="178" border="0" align="center">
<%
if(session.getAttribute("userid")!=null)
{
String user = session.getAttribute("userid").toString();
String AttachOrg=session.getAttribute("AttachOrg").toString();
%>
<tr>

1.0

import="java.sql.*"

Transitional//EN"

<td width="146" height="107" rowspan="2"><img src="images/indiaflag.gif" width="140"


height="105" /></td>
<td width="367"><div align="center"><span class="style5">Welcome &gt;&gt;</span> <%=user
%></div></td>
<td
width="318"><div
href="ChangePassword.jsp">ChangePassword</a></div></td>

align="center"><a

<td width="126"><a href="logout.jsp">Logout</a></td>


</tr>
<tr>
<td height="29" colspan="3"><div align="center"><span class="style7">Welcome to Phone
</span></div></td>
</tr>
<tr>
<td height="26" colspan="4"><%@ include file="header.html"%>&nbsp;</td>
</tr>
<tr>
<td height="26" colspan="4"><table width="100%" border="1">
<tr>
<td width="51%" height="70"><span class="style5"><a href="ApplicantPhone.jsp">Applicant
</a></span></td>
<td width="49%" rowspan="2"><table width="471" border="0" align="right">
<tr>
<th height="46" colspan="3" scope="col"><div align="center" class="style7">Search
Resident</div></th>
</tr>
<form id="form1" name="form1" method="post" action="BasicDetails.jsp" >
<tr>
<th width="160" height="44" scope="col"><div align="right"><img src="images/blt.gif"
width="13" height="13" />By UniqueID: </div></th>
<th width="170" scope="col"><div align="left">
<input name="uid" type="text" id="uid" />

</div></th>
<th width="255" scope="col"> <div align="left">
<input type="submit" name="Submit" value="Submit" />
</div></th>
</tr>
</form>
<tr>
<form id="form2" name="form2" method="post" action="DetailsOfResident.jsp">
<th height="44" scope="col"><div align="right"><img src="images/blt.gif" width="13"
height="13" /> By Name: </div></th>
<th scope="col"><div align="left">
<input name="firstname" type="text" id="firstname" />
</div></th>
<th scope="col"><div align="left">
<input name="Submit" type="submit" id="Submit" value="Submit" />
</div></th>
</form>
</tr>
</table></td>
</tr>
<tr>
<td height="27"><span class="style5"><a href="SubscriberPhone.jsp">Subscriber
</a></span></td>
</tr>
</table></td>
</tr>
<%
}
else

{
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}

%>
</table>

</body>
</html>

63. RegFormPre.html
<html >
<head>
<title>RegFormPre | UniqueID</title>
<script language="javascript" type="text/javascript">
function pp()
{
javascript:window.print()
}
</script>
<style type="text/css">
.style1 {
font-size: 36px;
color: #0000FF;
}
.style2 {color: #FF0000}
.style3 {color: #000000}
.style4 {

font-size: 24px;
font-weight: bold;
}
.style6 {font-size: 12px}
.style7 {color: #000000; font-size: 12px; }
.style12 {font-size: 24px; color: #0000FF; }
.style13 {font-size: 24px}
</style>
</head>

<body >
<form name="pre" method="post" action="#"onSubmit="pp()">
<table width="756" border="0" align="center">
<tr>
<td height="29" colspan="5"><div align="center"><span class="style12">Enrollment Form</span>
<span class="style12">Preview</span> </div></td>
</tr>

<tr>
<td height="9"><p align="right" class="style2">&nbsp;</p>

</td>

<td height="9"><div align="center"><span class="style2">


<input type="submit" name="Submit" value="Print" />
</span></div></td>
<td height="9"><div align="right"></div></td>
<td width="295" height="9"><div align="right"><span class="style2">*
class="style3">=</span><span class="style7">mandatory field</span></span></div></td>
<td width="3" height="9">&nbsp;</td>
</tr>
<tr>

<span

<td height="3" colspan="5"><span class="style4">Basic Details:</span> </td>


</tr>
<tr>
<td height="4" colspan="5"><hr /></td>
</tr>
<tr>
<td
width="270"
class="style2">*</span></div></td>

height="36"><div

align="right">First

Name:<span

<td colspan="4">..................................</td>
</tr>
<tr>
<td height="32"><div align="right">Last Name:<span class="style2">*</span> </div></td>
<td colspan="4">,.................................</td>
</tr>
<tr>
<td height="28"><div align="right">Nick Name: </div></td>
<td colspan="4">..................................</td>
</tr>
<tr>
<td height="30"><div align="right">Gender:<span class="style2">*</span></div></td>
<td><input name="Gender" type="radio" value="male" />
Male</td>
<td width="87"><input name="Gender" type="radio" value="female" />
Female</td>
<td colspan="2"><input name="Gender" type="radio" value="transgender" />
Transgender</td>
</tr>
<tr>

<td height="28"> <div align="right">Marital Status:<span class="style2">*</span> </div></td>


<td colspan="4">.................................</td>
</tr>
<tr>
<td width="270" height="27"><div align="right">Date Of Birth:<span class="style2">*</span> </div>
</td>
<td width="79">--/--/----</td>
<td colspan="3"><table width="281" border="0">
<tr>
<td width="129"><div align="right">If Not Know D.O.B. </div></td>
<td width="142">............</td>
</tr>
</table></td>
</tr>

<tr>
<td height="45" colspan="5"><span class="style4">Personal Details: </span>
<hr /></td>
</tr>
<tr>
<td height="3" colspan="5"><div align="right"><span class="style2">*</span>( <span
class="style6">Name of Father/Mother/Guardian is must for children below 5 years of age</span> )
</div></td>
</tr>
<tr>
<td height="8"><div align="right">Guardian's Name :</div></td>
<td height="8" colspan="3">...................................</td>
<td height="8">&nbsp;</td>
</tr>

<tr>
<td height="30"><div align="right">Father :</div></td>
<td height="30" colspan="4">....................................</td>
</tr>
<tr>
<td height="31"><div align="right">Mother :</div></td>
<td height="31" colspan="4">....................................</td>
</tr>
<tr>
<td height="21" colspan="5"><div align="right"><span class="style2">*</span>(<span
class="style6">Husband Name required if applicant is female and Married)</span> </div></td>
</tr>
<tr>
<td height="30"><div align="right">Husband :</div></td>
<td colspan="4">....................................</td>
</tr>
<tr>
<td height="27"><div align="right">Height:<span class="style2">*</span></div></td>
<td colspan="4"><table width="108" border="0">
<tr>
<td width="53"><div align="center">--'</div></td>
<td width="45"><div align="center">--''</div></td>
</tr>
</table></td>
</tr>
<tr>
<td height="21"><div align="right">Eye Colour : </div></td>
<td colspan="4">...................................</td>

</tr>
<tr>
<td height="38"><div align="right">Distinguishing Mark : </div></td>
<td colspan="4">....................................</td>
</tr>
<tr>
<td height="16"><div align="right">Religion:<span class="style2">*</span>:</div></td>
<td colspan="4">....................................</td>
</tr>
<tr>
<td height="7" colspan="5"><hr /></td>
</tr>
<tr>
<td height="8" colspan="5"><span class="style13">Contact Details:</span> </td>
</tr>
<tr>
<td height="45"><div align="right">Address:<span class="style2">*</span></div></td>
<td colspan="4">..................................................................................................................</td>
</tr>
<tr>
<td height="31"><div align="right">Zip/Postal Code:<span class="style2">*</span> </div></td>
<td colspan="4">....................................</td>
</tr>
<tr>
<td height="30"><div align="right">State:<span class="style2">*</span></div></td>
<td colspan="4">...................................</td>
</tr>
<tr>

<td height="31"> <div align="right">District :<span class="style2">*</span> </div></td>


<td colspan="4">...................................</td>
</tr>
<tr>
<td height="32"><div align="right">City/Teh.:<span class="style2">*</span></div></td>
<td colspan="4">....................................</td>
</tr>

<tr>
<td height="30"><div align="right"> E-mail&nbsp;:</div></td>
<td colspan="4">.......................@..........com</td>
</tr>
<tr>
<td height="31"><div align="right">Mobile No : </div></td>
<td colspan="4">+91.............................</td>
</tr>
<tr>
<td height="59"><div align="right">Phone No : </div> <p>&nbsp;</p></td>
<td colspan="4"><div align="left">......................................</div></td>
</tr>
</table>
</form>
</body>
</html>

64. Registration.jsp
<%@ page language="java" import="java.sql.*" errorPage="ErrorOccurred.jsp" %>
<html >

<head>
<title>Registration | UniqueID</title>
<script type="text/javascript" language="javascript">
function validate()
{
var nn=/^\D+\s?\D+$/;
if( document.fr.firstname.value=="")
{
alert("First Name cannot be blank");
document.fr.firstname.focus();
document.fr.firstname.style.backgroundColor = "#FF9966";
document.fr.firstname.select();
return false;
}
if(document.fr.firstname.value.search(nn)==-1)
{
alert("please enter valid first name" )
document.fr.firstname.focus();
document.fr.firstname.style.backgroundColor = "#FF9966";
document.fr.firstname.select();
return false;
}
if(document.fr.lastname.value=="")
{
alert("Last Name cannot be blank");
document.fr.lastname.focus();
document.fr.lastname.style.backgroundColor = "#FF9966";
document.fr.lastname.select();

return false;
}
if(document.fr.lastname.value.search(nn)==-1)
{
alert("please enter valid last name" )
document.fr.lastname.focus();
document.fr.lastname.style.backgroundColor = "#FF9966";
document.fr.lastname.select();
return false;
}
if(document.fr.nickname.value!="")
{
if(document.fr.nickname.value.search(nn)==-1)
{
alert("please enter valid nick name" )
document.fr.nickname.focus();
document.fr.nickname.style.backgroundColor = "#FF9966";
document.fr.nickname.select();
return false;
}
}
if ( ( document.fr.Gender[0].checked == false )
&& ( document.fr.Gender[1].checked == false ) && ( document.fr.Gender[2].checked ==false) )
{
alert ( "Please choose your Gender: Male or Female or other" );
//document.fr.radiobutton.focus();
//document.fr.radiobutton.select();
return false;

if(document.fr.marriedornot.value=="null")
{
alert("please select status married or unmarried");
document.fr.marriedornot.focus();
return false;
}
if(document.fr.age.value=="null")
{
if( document.fr.month.value=="Month")
{
alert("You must select a month");
document.fr.month.focus();
// document.fr.month.select();
return false;
}
if( document.fr.date.value=="Date")
{
alert("You must select a date");
document.fr.date.focus();
// document.fr.date.select();
return false;
}
if( document.fr.year.value=="Year")
{
alert("You must select a year");
document.fr.year.focus();

// document.fr.year.select();
return false;
}

}
var aa;
if(document.fr.age.value=="null")
{
aa=2011-(document.fr.year.value);
}
else
{
aa=document.fr.age.value;
}
if(aa<=5)
{
var gg=document.fr.gaurdianname.value;
var ff=document.fr.fathername.value;
var mo=document.fr.mothername.value;
if( gg=="" && ff=="" && mo=="" )
{
alert("Name of Father/Mother/Guardian is must for children below 5 years of age");
document.fr.gaurdianname.style.backgroundColor = "#FF9966";
document.fr.fathername.style.backgroundColor = "#FF9966";
document.fr.mothername.style.backgroundColor = "#FF9966";

return false;
}

}
if(document.fr.gaurdianname.value!=="")
{
if(document.fr.gaurdianname.value.search(nn)==-1)
{
alert("please enter valid gaurdianname name" )
document.fr.gaurdianname.focus();
document.fr.gaurdianname.style.backgroundColor = "#FF9966";
document.fr.gaurdianname.select();
return false;
}
}
if(document.fr.fathername.value!="")
{
if(document.fr.fathername.value.search(nn)==-1)
{
alert("please enter valid father name" )
document.fr.fathername.focus();
document.fr.fathername.style.backgroundColor = "#FF9966";
document.fr.fathername.select();
return false;
}
}
if(document.fr.mothername.value!="")
{
if(document.fr.mothername.value.search(nn)==-1)
{

alert("please enter valid mother name" )


document.fr.mothername.focus();
document.fr.mothername.style.backgroundColor = "#FF9966";
document.fr.mothername.select();
return false;
}
}

if(document.fr.Gender[1].checked == true && document.fr.marriedornot.value=="married")


{
if(document.fr.husbandname.value=="")
{
alert("Husband Name required you are female or married");
document.fr.husbandname.focus();
document.fr.husbandname.style.backgroundColor = "#FF9966";
return false;
}
if(document.fr.husbandname.value.search(nn)==-1)
{
alert("please enter valid husbandname name" )
document.fr.husbandname.focus();
document.fr.firstname.style.backgroundColor = "#FF9966";
document.fr.husbandname.select();
return false;
}
}

if(document.fr.feet.value=="Feet")

{
alert("You must select feet");
document.fr.feet.focus();
return false;
}

if(document.fr.inch.value=="Inch")
{
alert("You must select inch");
document.fr.inch.focus();
return false;
}
if(document.fr.religious.value=="")
{
alert("You must select Religious");
document.fr.religious.focus();
return false;
}
// fro address validation
if( document.fr.address.value=="")

{
alert("Address cannot be blank");
document.fr.address.focus();
document.fr.address.style.backgroundColor = "#FF9966";
document.fr.address.select();
return false;

}
//for pincode validation
if( document.fr.pincode.value=="")
{
alert("PinCode cannot be blank");
document.fr.pincode.focus();
document.fr.pincode.style.backgroundColor = "#FF9966";
document.fr.pincode.select();
return false;
}
var pp=/^\d{6}$/
if( document.fr.pincode.value.search(pp)==-1)
{
alert("PinCode can't be alphabets only 6 word number");
document.fr.pincode.focus();
document.fr.pincode.select();
return false;
}
// for validation state
if( document.fr.state.value=="")
{
alert("state cannot be blank");
document.fr.state.focus();
// document.fr.state.select();
return false;
}
if(document.fr.district.value=="")

{
alert("you must select district");
document.fr.district.focus();
// document.fr.state.select();
return false;
}
if( document.fr.city.value=="")
{
alert("please select city");
document.fr.city.focus();
return false;
}

if(document.fr.email.value!="")
{
if
(document.fr.email.value.indexOf("@")<1
document.fr.email.value.lastIndexOf(".")<document.fr.email.value.indexOf("@")+2
document.fr.email.value.lastIndexOf(".")+2>=document.fr.email.value.length)
{
alert("Not a valid e-mail address");
document.fr.email.focus();
document.fr.email.style.backgroundColor="#FF9966";
document.fr.email.select();

return false;
}
return true;
}
var mm=/^\d{10,12}$/;

||
||

if(document.fr.mobileno.value!="")
{

if(document.fr.mobileno.value.search(mm)==-1)
{
alert("Not a valid mobile no");
document.fr.mobileno.focus();
document.fr.mobileno.select();
document.fr.mobileno.style.backgroundColor="#FF9966";
return false;

}
}
if(document.fr.phoneno.value!="")
{

if(document.fr.phoneno.value.search(mm)==-1)
{
alert("not valid phone no");
document.fr.phoneno.focus();
document.fr.phoneno.style.backgroundColor="#FF9966";
document.fr.phoneno.select();

return false;

}
}
if(confirm("Are You Sure ????"))

{
return true;
}
else
{
return false;
}
}

</script>
<script language="javascript" type="text/javascript">
function ajax(s1,s2)
{

var v1;
if(s1=="null")
{
v1="State";
}
else
{
v1=s1;
}

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(v1).innerHTML=xmlhttp.responseText;
}
}
xmlhttp.open("GET","get"+v1+".jsp?val="+s2,true);
xmlhttp.send();
}
</script>

<style type="text/css">
.style1 {
font-size: 36px;
color: #0000FF;
}
.style2 {color: #FF0000}
.style3 {color: #000000}
.style4 {
font-size: 24px;
font-weight: bold;

}
.style6 {font-size: 12px}
.style7 {color: #000000; font-size: 12px; }
.style12 {font-size: 24px; color: #0000FF; }
.style13 {font-size: 24px}
.style15 {color: #FF0000; font-size: 36px; }
</style>
</head>

<body onLoad="ajax('state',null)">
<p>
<%
if(session.getAttribute("userid")!=null && session.getAttribute("isadmin")=="yes")
{
String user = session.getAttribute("userid").toString();
%>
</p>
<form action="RegistrationProcess.jsp" method="post" name="fr" onSubmit="return validate()">
<table width="100%" border="0" align="center">

<tr>
<td colspan="5"><p align="right" class="style2"><span class="style2">*
class="style3">=</span><span class="style7">mandatory field </span></span></p></td>
</tr>

<tr>
<td height="3" colspan="5"><span class="style4">Basic Details:</span> </td>

<span

</tr>
<tr>
<td height="4" colspan="5"><hr></td>
</tr>
<tr>
<td height="16" colspan="2">&nbsp;</td>
<td width="332" height="16" colspan="3">&nbsp;</td>
</tr>
<tr>
<td
width="328"
class="style2">*</span></div></td>

height="18"><div

align="right">First

Name:<span

<td colspan="4"><input type="text" name="firstname" /></td>


</tr>
<tr>
<td height="32"><div align="right">Last Name:<span class="style2">*</span> </div></td>
<td colspan="4"><input type="text" name="lastname" /></td>
</tr>
<tr>
<td height="28"><div align="right">Nick Name: </div></td>
<td colspan="4"><input type="text" name="nickname" /></td>
</tr>
<tr>
<td height="30"><div align="right">Gender:<span class="style2">*</span></div></td>
<td colspan="4"><table width="276" border="0" align="left">
<tr>
<td width="65"><input name="Gender" type="radio" value="male" />
Male </td>
<td width="76"><input name="Gender" type="radio" value="female" />

Female</td>
<td width="113"><input name="Gender" type="radio" value="transgender">
Transgender</td>
</tr>
</table></td>
</tr>
<tr>
<td height="28"> <div align="right">Married or UnMarried:<span class="style2">*</span>
</div></td>
<td colspan="4"><select name="marriedornot">
<option value="null">Select</option>
<option value="married">Married</option>
<option value="unmarried">UnMarried</option>
</select> </td>
</tr>
<tr>
<td width="328"><div align="right">Date Of Birth:<span class="style2">*</span> </div>
<td colspan="4"><table width="487" border="0" align="left">
<tr>
<td width="76"><select name="date">
<option>Date</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>

</td>

<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
</select></td>
<td width="96"><select name="month">
<option>Month</option>
<option value="1">January</option>

<option value="2">February</option>
<option value="3">March</option>
<option value="4">April</option>
<option value="5">May</option>
<option value="6">June</option>
<option value="7">July</option>
<option value="8">August</option>
<option value="9">Septmber</option>
<option value="10">October</option>
<option value="11">November</option>
<option value="12">December</option>
</select></td>
<td width="69"><select name="year">
<option>Year</option>
<option value="2011">2011</option>
<option value="2010">2010</option>
<option value="2009">2009</option>
<option value="2008">2008</option>
<option value="2007">2007</option>
<option value="2006">2006</option>
<option value="2005">2005</option>
<option value="2004">2004</option>
<option value="2003">2003</option>
<option value="2002">2002</option>
<option value="2001">2001</option>
<option value="2000">2000</option>
<option value="1999">1999</option>
<option value="1998">1998</option>

<option value="1997">1997</option>
<option value="1996">1996</option>
<option value="1995">1995</option>
<option value="1994">1994</option>
<option value="1993">1993</option>
<option value="1992">1992</option>
<option value="1991">1991</option>
<option value="1990">1990</option>
<option value="1989">1989</option>
<option value="1988">1988</option>
<option value="1987">1987</option>
<option value="1986">1986</option>
<option value="1985">1985</option>
<option value="1984">1984</option>
<option value="1983">1983</option>
<option value="1982">1982</option>
<option value="1981">1981</option>
<option value="1980">1980</option>
<option value="1979">1979</option>
<option value="1978">1978</option>
<option value="1977">1977</option>
<option value="1976">1976</option>
<option value="1975">1975</option>
<option value="1974">1974</option>
<option value="1973">1973</option>
<option value="1972">1972</option>
<option value="1971">1971</option>
<option value="1970">1970</option>

<option value="1969">1969</option>
<option value="1968">1968</option>
<option value="1967">1967</option>
<option value="1966">1966</option>
<option value="1965">1965</option>
<option value="1964">1964</option>
<option value="1963">1963</option>
<option value="1962">1962</option>
<option value="1961">1961</option>
<option value="1960">1960</option>
<option value="1959">1959</option>
<option value="1958">1958</option>
<option value="1957">1957</option>
<option value="1956">1956</option>
<option value="1955">1955</option>
<option value="1954">1954</option>
<option value="1953">1953</option>
<option value="1952">1952</option>
<option value="1951">1951</option>
<option value="1950">1950</option>
<option value="1949">1949</option>
<option value="1948">1948</option>
<option value="1947">1947</option>
<option value="1946">1946</option>
<option value="1945">1945</option>
<option value="1944">1944</option>
<option value="1943">1943</option>
<option value="1942">1942</option>

<option value="1941">1941</option>
<option value="1940">1940</option>
<option value="1939">1939</option>
<option value="1938">1938</option>
<option value="1937">1937</option>
<option value="1936">1936</option>
<option value="1935">1935</option>
<option value="1934">1934</option>
<option value="1933">1933</option>
<option value="1932">1932</option>
<option value="1931">1931</option>
<option value="1930">1930</option>
<option value="1929">1929</option>
<option value="1928">1928</option>
<option value="1927">1927</option>
<option value="1926">1926</option>
<option value="1925">1925</option>
<option value="1924">1924</option>
<option value="1923">1923</option>
<option value="1922">1922</option>
<option value="1921">1921</option>
<option value="1920">1920</option>
<option value="1919">1919</option>
<option value="1918">1918</option>
<option value="1917">1917</option>
<option value="1916">1916</option>
<option value="1915">1915</option>
<option value="1914">1914</option>

<option value="1913">1913</option>
<option value="1912">1912</option>
<option value="1911">1911</option>
<option value="1910">1910</option>
<option value="1909">1909</option>
<option value="1908">1908</option>
<option value="1907">1907</option>
<option value="1906">1906</option>
<option value="1905">1905</option>
<option value="1904">1904</option>
<option value="1903">1903</option>
<option value="1902">1902</option>
<option value="1901">1901</option>
<option value="1900">1900</option>
</select></td>
<td width="151">If Not Know D.O.B</td>
<td width="73"><div align="center">
<select name="age" id="age">
<option value="null">Age</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>

<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
<option value="32">32</option>
<option value="33">33</option>
<option value="34">34</option>
<option value="35">35</option>
<option value="36">36</option>
<option value="37">37</option>

<option value="38">38</option>
<option value="39">39</option>
<option value="40">40</option>
<option value="41">41</option>
<option value="42">42</option>
<option value="43">43</option>
<option value="44">44</option>
<option value="45">45</option>
<option value="46">46</option>
<option value="47">47</option>
<option value="48">48</option>
<option value="49">49</option>
<option value="50">50</option>
<option value="51">51</option>
<option value="52">52</option>
<option value="53">53</option>
<option value="54">54</option>
<option value="55">55</option>
<option value="56">56</option>
<option value="57">57</option>
<option value="58">58</option>
<option value="59">59</option>
<option value="60">60</option>
<option value="61">61</option>
<option value="62">62</option>
<option value="63">63</option>
<option value="64">64</option>
<option value="65">65</option>

<option value="66">66</option>
<option value="67">67</option>
<option value="68">68</option>
<option value="69">69</option>
<option value="70">70</option>
<option value="71">71</option>
<option value="72">72</option>
<option value="73">73</option>
<option value="74">74</option>
<option value="75">75</option>
<option value="76">76</option>
<option value="77">77</option>
<option value="78">78</option>
<option value="79">79</option>
<option value="80">80</option>
<option value="81">81</option>
<option value="82">82</option>
<option value="83">83</option>
<option value="84">84</option>
<option value="85">85</option>
<option value="86">86</option>
<option value="87">87</option>
<option value="88">88</option>
<option value="89">89</option>
<option value="90">90</option>
<option value="91">91</option>
<option value="92">92</option>
<option value="93">93</option>

<option value="94">94</option>
<option value="95">95</option>
<option value="96">96</option>
<option value="97">97</option>
<option value="98">98</option>
<option value="99">99</option>
<option value="100">100</option>
<option value="101">101</option>
<option value="102">102</option>
<option value="103">103</option>
<option value="104">104</option>
<option value="105">105</option>
<option value="106">106</option>
<option value="107">107</option>
<option value="108">108</option>
<option value="109">109</option>
<option value="110">110</option>
<option value="111">111</option>
<option value="112">112</option>
<option value="113">113</option>
<option value="114">114</option>
<option value="115">115</option>
<option value="116">116</option>
<option value="117">117</option>
<option value="118">118</option>
<option value="119">119</option>
<option value="120">120</option>
</select>

</div></td>
</tr>
</table></td>
</tr>

<tr>
<td height="0" colspan="5"><hr>

<span class="style4">Personal Details: </span></td>

</tr>
<tr>
<td height="1" colspan="5"><div align="right">
<div align="right"><span class="style2">*</span>( <span class="style6">Name of
Father/Mother/Guardian is must for children below 5 years of age</span> ) </div>
</div></td>
</tr>
<tr>
<td height="3"><div align="right">Guardian's Name</div></td>
<td height="3" colspan="4"><input name="gaurdianname" type="text" id="gaurdianname"></td>
</tr>
<tr>
<td height="30"><div align="right">Father</div></td>
<td height="30" colspan="4"><input name="fathername" type="text" id="fathername"></td>
</tr>
<tr>
<td height="31"><div align="right">Mother</div></td>
<td height="31" colspan="4"><input name="mothername" type="text" id="mothername"></td>
</tr>
<tr>
<td height="21" colspan="5"><div align="right"><span class="style2">*</span>(<span
class="style6">Husband Name required if applicant is female and Married)</span> </div></td>

</tr>
<tr>
<td height="30"><div align="right">Husband</div></td>
<td colspan="4"><input name="husbandname" type="text" id="husbandname"></td>
</tr>
<tr>
<td height="38"><div align="right">Height:<span class="style2">*</span></div></td>
<td colspan="4"><table width="140" border="0">
<tr>
<td width="69"><select name="feet" id="feet">
<option>Feet</option>
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
</select>

</td>

<td width="121"><select name="inch" id="inch">


<option>Inch</option>
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>

<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
</select>

</td>

</tr>
</table></td>
</tr>
<tr>
<td><div align="right">Eye Colour : </div></td>
<td colspan="4"><select name="eyecolour" id="eyecolour">
<option value="null">Select</option>
<option value="black">black</option>
<option value="amber">Amber</option>
<option value="blue">Blue</option>
<option value="genetics">Genetics</option>
<option value="brown">Brown</option>
<option value="gray">Gray</option>
<option value="green">Green</option>
<option value="hazel">Hazel</option>
<option value="red">Red</option>
<option value="violet">Violet</option>
</select> </td>
</tr>
<tr>
<td height="38"><div align="right">Distinguishing Mark: </div></td>

<td colspan="4"><input name="mark" type="text" id="mark"></td>


</tr>
<tr>
<td height="16"><div align="right">Religion:<span class="style2">*</span>:</div></td>
<td colspan="4"><select name="religious">
<option value="">Religion</option>
<option value="Hindu">Hindu</option>
<option value="Muslim">Muslim</option>
<option value="Christian">Christian</option>
<option value="Sikh">Sikh</option>
<option value="Parsi">Parsi</option>
<option value="Jain">Jain</option>
<option value="Buddhist">Buddhist</option>
<option value="Jewish">Jewish</option>
<option value="Spiritual">Spiritual</option>
<option value="Other">Other</option>
</select>

</td>

</tr>
<tr>
<td height="7" colspan="5"><hr></td>
</tr>
<tr>
<td height="8" colspan="5"><span class="style4">Contact Details:</span> </td>
</tr>
<tr>
<td height="45"><div align="right">Address:<span class="style2">*</span></div></td>
<td colspan="4"><textarea name="address"></textarea></td>
</tr>

<tr>
<td height="31"><div align="right">Zip/Postal Code:<span class="style2">*</span> </div></td>
<td colspan="4"><input type="text" name="pincode" /></td>
</tr>
<tr>
<td height="30"><div align="right">State:<span class="style2">*</span></div></td>
<td colspan="4"><select name="state" id="state" onChange="ajax('district',this.value)">
</select>

</td>

</tr>
<tr>
<td height="31"> <div align="right">District :<span class="style2">*</span> </div></td>
<td colspan="4"><select name="district" id="district" onChange="ajax('city',this.value)">
</select> </td>
</tr>
<tr>
<td height="32"><div align="right">City/Teh.:<span class="style2">*</span></div></td>
<td colspan="4"><select name="city" id="city">
</select> </td>
</tr>

<tr>
<td height="30"><div align="right"> E-mail&nbsp;:</div></td>
<td colspan="4"><input name="email" type="text" size="40"/></td>
</tr>
<tr>
<td height="31"><div align="right">Mobile No: </div></td>
<td colspan="4"><input type="text" name="mobileno" /></td>
</tr>

<tr>
<td height="14"><div align="right">Phone No </div></td>
<td colspan="4"><input type="text" name="phoneno"></td>
</tr>
<tr>
<td height="16" colspan="5">&nbsp;</td>
</tr>
<tr>
<td height="26"><p>&nbsp;</p></td>
<td width="254"><input type="submit" name="B1" value="Submit" ></td>
<td colspan="3"><input type="reset" name="Submit2" value="Reset"></td>
</tr>
</table>
</form>

<p>
<%
}
else
{
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}
%>

</p>
</body>
</html>

65. RegistrationProcess.jsp
<%@ page contentType="text/html;
errorPage="ErrorOccurred.jsp" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

1.0

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>RegistrationProcess | UniqueID</title>

<style type="text/css">
<!-.style4 {
color: #339966;
font-size: 24px;
}
.style5 {
color: #FF0000;
font-size: 36px;
}
-->
</style>
</head>

<body>
<%
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conResident=DriverManager.getConnection("jdbc:odbc:Resident");

import="java.sql.*"

Transitional//EN"

String state=request.getParameter("state");
String district=request.getParameter("district");
String city=request.getParameter("city");

java.util.Date dd=new java.util.Date();


String str = "";
int d=dd.getDate();
int m=(dd.getMonth()+1);
int y=(dd.getYear()-100);
int h=dd.getHours();
int mi=dd.getMinutes();
int se=dd.getSeconds();
if(d<10)
str=str+"0"+d;
else
str=str+d;

if(m<10)
str=str+"0"+m;
else
str=str+m;

if(y<10)
str=str+"0"+y;
else
str=str+y;

if(h<10)
str=str+"0"+h;
else
str=str+h;

if(mi<10)
str=str+"0"+mi;
else
str=str+mi;

if(se<10)
str=str+"0"+se;
else
str=str+se;
String uid=state+district+city+str;

String firstname=request.getParameter("firstname");
String lastname=request.getParameter("lastname");
String nickname=request.getParameter("nickname");
String Gender=request.getParameter("Gender");
String marriedornot=request.getParameter("marriedornot");
String age=request.getParameter("age");
String date=request.getParameter("date");
String month=request.getParameter("month");
String year=request.getParameter("year");
int aa;

String dob=null;
//
if(age.equals("null"))
{
int da=Integer.parseInt(date);
int mm=Integer.parseInt(month);
int yy=Integer.parseInt(year);
dob=""+da+"/"+mm+"/"+yy;
aa=2011-yy;
}
else
{
dob=""+date+"/"+month+"/"+year;
aa=Integer.parseInt(age);
}
String basic="insert into BasicDetails values(?,?,?,?,?,?,?,?)";
PreparedStatement psbasic = conResident.prepareStatement(basic);
psbasic.setString(1,uid);
psbasic.setString(2,firstname);
psbasic.setString(3,lastname);
psbasic.setString(4,nickname);
psbasic.setString(5,Gender);
psbasic.setString(6,marriedornot);
psbasic.setString(7,dob);
psbasic.setInt(8,aa);
psbasic.executeUpdate();

String gaurdianname=request.getParameter("gaurdianname");

String fathername=request.getParameter("fathername");
String mothername=request.getParameter("mothername");
String husbandname=request.getParameter("husbandname");
String feet=request.getParameter("feet");
String inch=request.getParameter("inch");
String height=feet+"'"+inch+"\"";
String eyecolour=request.getParameter("eyecolour");
String mark=request.getParameter("mark");
String religious=request.getParameter("religious");

String personal="insert into PersonalDetails values(?,?,?,?,?,?,?,?,?)";


PreparedStatement pspersonal = conResident.prepareStatement(personal);
pspersonal.setString(1,uid);
pspersonal.setString(2,gaurdianname);
pspersonal.setString(3,fathername);
pspersonal.setString(4,mothername);
pspersonal.setString(5,husbandname);
pspersonal.setString(6,height);
pspersonal.setString(7,eyecolour);
pspersonal.setString(8,mark);
pspersonal.setString(9,religious);
pspersonal.executeUpdate();

String address=request.getParameter("address");
String pincode=request.getParameter("pincode");

String email=request.getParameter("email");
String mobile=request.getParameter("mobileno");

String phoneno=request.getParameter("phoneno");

String Contact="insert into ContactDetails values(?,?,?,?,?,?,?,?,?)";


PreparedStatement psContact= conResident.prepareStatement(Contact);
psContact.setString(1,uid);
psContact.setString(2,address);
psContact.setString(3,pincode);
psContact.setString(4,state);
psContact.setString(5,district);
psContact.setString(6,city);
psContact.setString(7,email);
psContact.setString(8,mobile);
psContact.setString(9,phoneno);
int done=psContact.executeUpdate();
if(done==1)
{
%>

<p align="center" class="style4">The Registration Process is Complete. </p>

<p align="center"><a href="AdminHome.jsp">click here to go back</a></p>

<%
}
else
{
%>

<p align="center" class="style5">The Registration Process is Faild !!! </p>


<p align="center"><a href="Registration.jsp">click here to go back</a> </p>
<%
}
%>
</body>
</html>

66. Required_Documents.html
<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Required Documents</title>
<script language="javascript" type="text/javascript">
function pp()
{
javascript:window.print()
}
</script>
<style type="text/css">
<!-.style1 {
font-size: 24px;
color: #0000FF;
}
.style4 {font-size: 18px; color: #FF0000; }

1.0

Transitional//EN"

.style5 {color: #FF0000}


-->
</style>
</head>

<body>

<table width="949" border="0" align="center">


<tr>
<th height="26" colspan="3" scope="col"><input type="submit" name="Submit" value="Print"
onclick="pp()"/></th>
</tr>
<tr>
<th height="28" colspan="3" scope="col"><span class="style1">Required Documents</span></th>
</tr>
<tr>
<th height="39" colspan="2" scope="col"><span class="style4">Acceptable Proof of Identiy
documents:</span>
<hr /></th>
<th width="502" scope="col"><span class="style5">Acceptable Proof of Address documents:
</span>
<hr /></th>
</tr>
<tr>
<th width="23" height="22" scope="col">1</th>
<th width="410" scope="col"><div align="left">Passport</div></th>
<th width="502" rowspan="24" scope="col"><table width="499" border="0" align="center">
<tr>
<th width="85" height="25" scope="col">1

<div align="left"></div></th>
<th width="404" scope="col"><div align="left">Passport</div></th>
</tr>

<tr>
<th height="21" scope="row">2</th>
<th scope="row"><div align="left">Bank Statement/ Passbook</div></th>
</tr>
<tr>
<th height="21" scope="row">3</th>
<th scope="row"><div align="left">Post Office Account Statement/Passbook</div></th>
</tr>
<tr>
<th height="22" scope="row">4</th>
<th scope="row"><div align="left">Ration Card</div></th>
</tr>
<tr>
<th height="21" scope="row">5</th>
<th scope="row"><div align="left">Voter ID</div></th>
</tr>
<tr>
<th height="23" scope="row">6</th>
<th scope="row"><div align="left">Driving License</div></th>
</tr>
<tr>
<th height="22" scope="row">7</th>
<th scope="row"><div align="left">Government Photo ID cards</div></th>
</tr>

<tr>
<th height="21" scope="row">8</th>
<th scope="row"><div align="left">Electricity Bill (not older than 3 months)</div></th>
</tr>
<tr>
<th height="21" scope="row">9</th>
<th scope="row"><div align="left">Water bill (not older than 3 months)</div></th>
</tr>
<tr>
<th height="21" scope="row">10</th>
<th scope="row"><div align="left">Telephone Landline Bill (not older than 3 months)</div></th>
</tr>
<tr>
<th height="28" scope="row">11</th>
<th scope="row"><div align="left">Property Tax Receipt (not older than 3 months)</div></th>
</tr>
<tr>
<th height="22" scope="row">12</th>
<th scope="row"><div align="left">Credit Card Statement (not older than 3 months)</div></th>
</tr>
<tr>
<th height="22" scope="row">13</th>
<th scope="row"><div align="left">Insurance Policy</div></th>
</tr>
<tr>
<th height="23" scope="row">14</th>
<th scope="row"><div align="left">Signed Letter having Photo from Bank on letterhead</div></th>
</tr>

<tr>
<th height="40" scope="row">15</th>
<th scope="row"><div align="left">Signed Letter having Photo issued by registered Company on
letterhead</div></th>
</tr>
<tr>
<th height="40" scope="row">16</th>
<th scope="row"><div align="left">Signed Letter having Photo issued by Recognized Educational
Instruction on letterhead</div></th>
</tr>
<tr>
<th height="21" scope="row">17</th>
<th scope="row"><div align="left">NREGS Job Card</div></th>
</tr>
<tr>
<th height="24" scope="row">18</th>
<th scope="row"><div align="left">Arms License</div></th>
</tr>
<tr>
<th height="21" scope="row">19</th>
<th scope="row"><div align="left">Pensioner Card</div></th>
</tr>
<tr>
<th height="21" scope="row">20</th>
<th scope="row"><div align="left">Freedom Fighter Card</div></th>
</tr>
<tr>
<th height="21" scope="row">21</th>
<th scope="row"><div align="left">Kissan Passbook</div></th>

</tr>
<tr>
<th height="21" scope="row">22</th>
<th scope="row"><div align="left">CGHS / ECHS Card</div></th>
</tr>
<tr>
<th height="40" scope="row">23</th>
<th scope="row"><div align="left">Certificate of Address having photo issued by MP or MLA or
Group A Gazetted Officer on letterhead</div></th>
</tr>
<tr>
<th height="40" scope="row">24</th>
<th scope="row"><div align="left">Certificate of Address issued by Village Panchayat head or its
equivalent authority (for rural areas)</div></th>
</tr>
<tr>
<th height="21" scope="row">25</th>
<th scope="row"><div align="left">Income Tax Assessment Order</div></th>
</tr>
<tr>
<th height="21" scope="row">26</th>
<th scope="row"><div align="left">Vehicle Registration Certificate</div></th>
</tr>
<tr>
<th height="21" scope="row">27</th>
<th scope="row"><div align="left">Registered Sale / Lease / Rent Agreement</div></th>
</tr>
<tr>
<th height="23" scope="row">28</th>

<th scope="row"><div align="left">Address Card having Photo issued by Department of


Posts</div></th>
</tr>
<tr>
<th height="40" scope="row">29</th>
<th scope="row"><div align="left">Caste and Domicile Certificate having Photo issued by State
Govt</div></th>
</tr>
</table></th>
</tr>
<tr>
<th height="25" scope="col">2</th>
<th scope="col"><div align="left">PAN Card</div></th>
</tr>
<tr>
<th height="21" scope="col">3</th>
<th scope="col"><div align="left">Ration/ PDS Photo Card</div></th>
</tr>
<tr>
<th height="21" scope="col">4</th>
<th scope="col"><div align="left">Voter ID</div></th>
</tr>
<tr>
<th height="21" scope="col">5</th>
<th scope="col"><div align="left">Driving License</div></th>
</tr>
<tr>
<th height="33" scope="col">6</th>
<th scope="col"><div align="left">Government Photo ID Cards</div></th>

</tr>
<tr>
<th height="21" scope="col">7</th>
<th scope="col"><div align="left">NREGS Job Card</div></th>
</tr>
<tr>
<th height="29" scope="col">8</th>
<th scope="col"><div align="left">Photo ID issued by Recognized Educational Institution</div></th>
</tr>
<tr>
<th height="21" scope="col">9</th>
<th scope="col"><div align="left">Arms License</div></th>
</tr>
<tr>
<th height="25" scope="col">10</th>
<th scope="col"><div align="left">Photo Bank ATM Card</div></th>
</tr>
<tr>
<th height="24" scope="col">11</th>
<th scope="col"><div align="left">Photo Credit Card</div></th>
</tr>
<tr>
<th height="21" scope="col">12</th>
<th scope="col"><div align="left">Pensioner Photo Card</div></th>
</tr>
<tr>
<th height="21" scope="col">13</th>
<th scope="col"><div align="left">Freedom Fighter Photo Card</div></th>

</tr>
<tr>
<th height="24" scope="col">14</th>
<th scope="col"><div align="left">Kissan Photo Passbook</div></th>
</tr>
<tr>
<th height="26" scope="col">15</th>
<th scope="col"><div align="left">CGHS / ECHS Photo Card</div></th>
</tr>
<tr>
<th height="41" scope="col">16</th>
<th scope="col"><div align="left">Address Card having Name and Photo issued by Department of
Posts</div></th>
</tr>
<tr>
<th height="40" scope="col">17</th>
<th scope="col"><div align="left">Certificate of Identify having photo issued by Group A Gazetted
Officer on letterhead</div></th>
</tr>
<tr>
<th height="55" colspan="2" scope="col"><hr />
<span class="style4">Acceptable Date of Birth proof documents:</span>
<hr /></th>
</tr>
<tr>
<th height="26" scope="col">1</th>
<th scope="col"><div align="left">Birth Certificate</div></th>
</tr>
<tr>

<th height="21" scope="col">2</th>


<th scope="col"><div align="left">SSLC Book/Certificate</div></th>
</tr>
<tr>
<th height="21" scope="col">3</th>
<th scope="col"><div align="left">Passport</div></th>
</tr>
<tr>
<th height="40" scope="col">4</th>
<th scope="col"><div align="left">Certificate of Date of Birth issued by Group A Gazetted Officer on
letterhead</div></th>
</tr>
<tr>
<th height="21" scope="col">&nbsp;</th>
<th scope="col">&nbsp;</th>
</tr>
<tr>
<th height="116" scope="col">&nbsp;</th>
<th scope="col">&nbsp;</th>
</tr>
</table>

</body>
</html>

67. ResidentHome.jsp
<%@ page language="java" import="java.sql.*;" errorPage="ErrorOccurred.jsp"%>
<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

1.0

Transitional//EN"

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Resident Home | UniqueID</title>
<style type="text/css">
<!-.style3 { font-size: 24px;
color: #0000FF;
}
.style6 {font-size: 24px; color: #FF00FF; }
.style7 {
color: #FF0000;
font-size: 18px;
}
.style8 {color: #009966}
.style9 {color: #0000FF}
.style10 {color: #FF9900}
-->
</style>
</head>

<body>
<%
if(session.getAttribute("userid")!=null)
{
String user = session.getAttribute("userid").toString();
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conDatabaseOrg=DriverManager.getConnection("jdbc:odbc:DatabaseOrg");

Statement stDatabaseOrg = conDatabaseOrg.createStatement();

Connection conPass=DriverManager.getConnection("jdbc:odbc:Pass");
Statement stPass = conPass.createStatement();
ResultSet rsPass = stPass.executeQuery("select UniqueID from Resident where UserName='"+user+"'");
String UniqueID="";
while (rsPass.next()){UniqueID=rsPass.getString(1); }

boolean flagwater=true;
ResultSet rsDatabaseOrgwatersupply = stDatabaseOrg.executeQuery("select * from watersupply where
UniqueID='"+UniqueID+"'");
String statuswatersupply="";
if( rsDatabaseOrgwatersupply.next()){
statuswatersupply=rsDatabaseOrgwatersupply.getString(2);
}

ResultSet rsDatabaseOrgelectricitysupply = stDatabaseOrg.executeQuery("select * from electricitysupply


where UniqueID='"+UniqueID+"'");
String statuselectricitysupply="";
if(rsDatabaseOrgelectricitysupply.next())
{statuselectricitysupply=rsDatabaseOrgelectricitysupply.getString(2); }

ResultSet rsDatabaseOrgGas
UniqueID='"+UniqueID+"'");

stDatabaseOrg.executeQuery("select

String statusgas="";
if(rsDatabaseOrgGas.next()){statusgas=rsDatabaseOrgGas.getString(2); }

from

gas

where

ResultSet rsDatabaseOrgphone = stDatabaseOrg.executeQuery("select


UniqueID='"+UniqueID+"'");

* from

phone where

String statusphone="";
if(rsDatabaseOrgphone.next()){statusphone=rsDatabaseOrgphone.getString(2); }

ResultSet rsDatabaseOrgVisaPassport = stDatabaseOrg.executeQuery("select * from VisaPassport where


UniqueID='"+UniqueID+"'");
String statusVisaPassport="";
if(rsDatabaseOrgVisaPassport.next()){statusVisaPassport=rsDatabaseOrgVisaPassport.getString(2); }

%>
<table width="953" height="292" border="0" align="center">

<tr>
<td width="221" height="107" rowspan="2"><img src="images/indiaflag.gif" width="140"
height="105" /></td>
<td width="432" height="41"><span class="style6">Welcome &gt;&gt;</span> <%=user%></td>
<td
width="106"><div
href="ChangePassword.jsp">ChangePassword</a></div></td>
<td width="176"><div align="right"><a href="logout.jsp"><img
width="58" height="35" /></a></div></td>

align="center"><a

src="images/LogOutIcon.PNG"

</tr>
<tr>
<td height="43" colspan="3"><div align="center"><span class="style3">Welcome to Resident Home
of Unicus</span></div></td>
</tr>
<tr>
<td height="21" colspan="4"><%@ include file="header.html"%></td>
</tr>

<tr>
<td>

<p class="style7 style9">Apply For E-Applications </p>


<hr/>

<table width="100%" height="378" border="0">


<tr>
<td width="26%" height="38">
<%
if(statuswatersupply.equals("false"))
{
%>
<span class="style10">Your Water Connection confirmation pending </span>
<%
}
else if(statuswatersupply.equals("true"))
{
%>
<span class="style8">Your Water Connection Confirmed </span>
<%
}
else
{
%>
<div align="center">
<form
action="ApplyWaterConnection.jsp">

id="form1"

name="form1"

method="post"

<input type="hidden" name="uname2" value="<%=user%>"/>


<input type="submit" name="Submit2" value="Apply new Water Connection" />
</form>
</div>
<%
}
%>
<hr /></td>
<td width="74%" rowspan="5">&nbsp;</td>
</tr>
<tr>
<td height="39">
<%
if(statuselectricitysupply.equals("false"))
{
%>
<span class="style10">Your Electricity Connection confirmation pending </span>
<%
}
else if(statuselectricitysupply.equals("true"))
{
%>
<span class="style8">Your Electricity Connection Confirmed </span>
<%
}
else
{
%>

<form
action="ApplyElectricityConnection.jsp">

id="form2"

name="form2"

method="post"

<div align="center">
<input type="hidden" name="uname" value="<%=user%>"/>
<input type="submit" name="Submit" value="Apply new Electricity Connection" />
</div>
</form>
<%
}
%>
<hr /></td>
</tr>
<tr>
<td>
<%
if(statusphone.equals("false"))
{
%>
<span class="style10">Your Phone Connection confirmation pending </span>
<%
}
else if(statusphone.equals("true"))
{
%>
<span class="style8">Your Phone Connection Confirmed </span>
<%
}
else

{
%>
<form
action="ApplyPhoneConnection.jsp">

id="form3"

name="form3"

method="post"

<div align="center">
<input type="hidden" name="uname" value="<%=user%>"/>
<input type="submit" name="Submit3" value="Apply new Phone
Connection" />
</div>
</form>
<%
}
%>
<hr /></td>
</tr>
<tr>
<td>
<%
if(statusgas.equals("false"))
{
%>
<span class="style10">Your Gas Connection confirmation pending </span>
<%
}
else if(statusgas.equals("true"))
{
%>
<span class="style8">Your Gas Connection Confirmed </span>

<%
}
else
{
%>
<form id="form4" name="form4" method="post" action="ApplyGasConnection.jsp">
<div align="center">
<input type="hidden" name="uname" value="<%=user%>"/>
<input type="submit" name="Submit4" value="Apply new Gas Connection"
/>
</div>
</form>
<%
}

%>
<hr /></td>
</tr>
<tr>
<td>
<%
if(statusVisaPassport.equals("false"))
{
%>
<span class="style10">Your Passport confirmation pending </span>
<%
}
else if(statusVisaPassport.equals("true"))

{
%>
<span class="style8">Your Passport Confirmed </span>
<%
}
else
{
%>
<form
action="ApplyVisaPassportConnection.jsp">

id="form5"

name="form5"

method="post"

<div align="center">
<input type="hidden" name="uname" value="<%=user%>"/>
<input type="submit" name="Submit5" value="Apply for Passport" />
</div>
</form>
<%
}
%>
</td>
</tr>
</table> </td>
<td colspan="2"><table width="100%" height="100%" border="0" align="center">
<tr>
<td height="204"><img src="images/UID.jpg" alt="UNICUS" width="475" height="200"
longdesc="home.jsp" /></td>
</tr>
<tr>
<td><marquee direction="up" loop="true" scrollamount="2">

<div align="justify">
<p>The name of the project is &ldquo;<strong>UNICUS</strong>&rdquo;. A
<strong>UNICUS</strong> project as a means for residents to clearly and uniquely verify their identity
anywhere in the country.</p>
<p><strong>UNICUS</strong> provide UID which is a universal number. </p>
<p>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. </p>
<p>Agencies and services can contact the <strong>UNICUS</strong> database from anywhere in
the country to confirm a beneficiary&rsquo;s identity. </p>
</div>
</marquee>
</td>
</tr>
</table></td>
<td><form id="form6" name="form6" method="post" action="BasicDetails.jsp">
<input type="hidden" name="uid" value="<%=UniqueID%>"/>
<input type="submit" name="Submit6" value="View Details" />

</form>
</td>
</tr>
</table>
<p>
<%
}
else
{
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}
%>

</body>
</html>

68. Sitemap.jsp
<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

1.0

Transitional//EN"

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body>
</body>
</html>

69. Special_UserHome.jsp
<%@ page language="java" import="java.sql.*;" errorPage="ErrorOccurred.jsp"%>
<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Special_User Home | UniqueID</title>
<style type="text/css">
<!-.style3 {font-size: 24px;
color: #0000FF;

1.0

Transitional//EN"

}
.style5 {color: #FF00FF}
.style6 {
color: #FF0000;
font-size: 18px;
}
-->
</style>
</head>

<body>
<table width="100%" border="0" align="center">
<%
if(session.getAttribute("userid")!=null)
{
String user = session.getAttribute("userid").toString();
String AttachOrg=session.getAttribute("AttachOrg").toString();
%>
<tr>
<td width="145" height="107" rowspan="2"><img src="images/indiaflag.gif" width="140"
height="105" /></td>
<td width="362"><div align="center"><span class="style5">Welcome &gt;&gt;</span> <%=user
%></div></td>
<td
width="109"><div
href="ChangePassword.jsp">ChangePassword</a></div></td>
<td width="324"><div align="right"><a href="logout.jsp"><img
width="58" height="35" /></a></div></td>
</tr>
<tr>

align="center"><a

src="images/LogOutIcon.PNG"

<td colspan="3"><div align="center"><span class="style3">Welcome to Special User Home of


Unicus</span></div></td>
</tr>
<tr>
<td height="21" colspan="4"><%@ include file="header.html" %></td>
</tr>
<tr>
<td><p class="style6">Organization </p>
<hr />
<table width="100%" height="409" border="0">
<tr>
<td height="70" colspan="2">
<%
if(AttachOrg.equals("All") || AttachOrg.equals("watersupply"))
{
%>
<a href="WaterSupply.jsp">

Water Supply</a>

<%
}
%></td>
</tr>
<tr>
<td colspan="2"><%
if(AttachOrg.equals("All") || AttachOrg.equals("electricitysupply"))
{
%>
<a href="electricitysupply.jsp"> electricity supply</a>
<%

}
%></td>
</tr>
<tr>
<td colspan="2"><%
if(AttachOrg.equals("All") || AttachOrg.equals("phone"))
{
%>
<a href="Phone.jsp"> Phone</a>
<%
}
%></td>
</tr>
<tr>
<td colspan="2"><%
if(AttachOrg.equals("All") || AttachOrg.equals("gas"))
{
%>
<a href="Gas.jsp"> Gas</a>
<%
}
%></td>
</tr>
<tr>
<td height="82" colspan="2"><%
if(AttachOrg.equals("All") || AttachOrg.equals("VisaPassport"))
{
%>

<a href="VisaPassport.jsp"> VisaPassport</a>


<%
}
%></td>
</tr>
</table>

</td>

<td colspan="2"><table width="100%" height="100%" border="0" align="center">


<tr>
<td height="204"><img src="images/UID.jpg" alt="UNICUS" width="475" height="200"
longdesc="home.jsp" /></td>
</tr>
<tr>
<td><marquee direction="up" loop="true" scrollamount="2">
<div align="justify">
<p>The name of the project is &ldquo;<strong>UNICUS</strong>&rdquo;. A
<strong>UNICUS</strong> project as a means for residents to clearly and uniquely verify their identity
anywhere in the country.</p>
<p><strong>UNICUS</strong> provide UID which is a universal number. </p>
<p>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. </p>
<p>Agencies and services can contact the <strong>UNICUS</strong> database from anywhere in
the country to confirm a beneficiary&rsquo;s identity. </p>
</div>
</marquee>
</td>
</tr>
</table></td>
<td><table width="324" border="0" align="right">
<tr>
<th height="46" colspan="3" scope="col"><div align="center" class="style3">Search
Resident</div></th>

</tr>
<form id="form1" name="form1" method="post" action="BasicDetails.jsp" >
<tr>
<th width="160" height="44" scope="col"><div align="right">By UniqueID: </div></th>
<th width="170" scope="col"><div align="left">
<input name="uid" type="text" id="uid" />
</div></th>
<th width="255" scope="col"> <div align="left">
<input type="submit" name="Submit" value="Submit" />
</div></th>
</tr>
</form>

</table></td>
</tr>
</table>
<p>
<%
}
else
{
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}
%>
</p>
<p>&nbsp;</p>
</body>
</html>

70. SubscriberElectricitysupply.jsp
<%@ page contentType="text/html;
errorPage="" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

1.0

import="java.sql.*"

Transitional//EN"

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Subscriber Electricity Supply</title>
<style type="text/css">
<!-.style2 {font-size: 24px}
.style3 {color: #0000FF}
-->
</style>
</head>

<body>
<table width="100%" border="0" align="center">
<%
if(session.getAttribute("userid")!=null)
{
String user = session.getAttribute("userid").toString();

%>
<tr>
<td width="146" height="91" rowspan="2"><img src="images/indiaflag.gif" width="140"
height="105" /></td>

<td width="367"><div align="center"><span class="style5">Welcome &gt;&gt;</span> <%=user


%></div></td>
<td
width="318"><div
href="ChangePassword.jsp">ChangePassword</a></div></td>

align="center"><a

<td width="126"><a href="logout.jsp"><img src="images/LogOutIcon.PNG" width="58" height="35"


/></a></td>
</tr>
<tr>
<td height="13" colspan="3"><div align="center"><span class="style7 style2 style3">Welcome to
Electricity Supply Application</span></div></td>
</tr>
<tr>
<td height="14" colspan="4"><%@ include file="header.html"%>&nbsp;</td>
</tr>
<tr>
<td height="26" colspan="4">

<FORM>
<div align="right">
<input type="button" value="Reload Page" onClick="window.location.reload()">
</div>
</FORM>

</p>

<%
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conDatabaseOrg=DriverManager.getConnection("jdbc:odbc:DatabaseOrg");
Statement stDatabaseOrg = conDatabaseOrg.createStatement();
ResultSet rsDatabaseOrg = stDatabaseOrg.executeQuery("select * from
status='true'");
Connection conResident=DriverManager.getConnection("jdbc:odbc:Resident");
Statement stResident = conResident.createStatement();

electricitysupply where

String UniqueID="";
%>
<table width="100%" border="2" align="center" >
<tr>
<td width="152"><div align="center" class="style2">UniqueID</div></td>
<td width="152"><div align="center" class="style2">Name</div></td>
<td width="119"><div align="center" class="style2">Status</div></td>
<td width="124"><div align="center" class="style2">Payment</div></td>
</tr>
<%

while (rsDatabaseOrg.next())
{

UniqueID=rsDatabaseOrg.getString(1);

stResident.executeQuery("select
UniqueID='"+UniqueID+"'");

firstname,

lastname

from

ResultSet rsResident =
BasicDetails
where

rsResident.next();
String
name=rsResident.getString(1)+" "+rsResident.getString(2);
out.println("<tr>");
out.println("<td>" +UniqueID+"</td>");
out.println("<td>"
+name+"</td>");
out.println("<td>"
+rsDatabaseOrg.getString(2)+"</td>");
out.println("<td>"
+rsDatabaseOrg.getString(3)+"</td>");

out.println("<td><a
href='CutElectricitysupplyConnection.jsp?UniqueID="+UniqueID+"'>Cut
Electricity
Connection</a></td>");

supply

out.println("</tr>");
}
%>
</table>
<%
}else
{
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}
%></td>
</tr>
</table>

</body>
</html>

71. SubscriberGas.jsp
<%@ page contentType="text/html;
errorPage="" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Subscriber Gas</title>
<style type="text/css">
<!--

1.0

import="java.sql.*"

Transitional//EN"

.style1 {
font-size: 24px;
color: #0000FF;
}
.style2 {color: #0000FF}
-->
</style>
</head>

<body>
<table width="100%" border="0" align="center">
<%
if(session.getAttribute("userid")!=null)
{
String user = session.getAttribute("userid").toString();

%>
<tr>
<td width="146" height="91" rowspan="2"><img src="images/indiaflag.gif" width="140"
height="105" /></td>
<td width="367"><div align="center"><span class="style5">Welcome &gt;&gt;</span> <%=user
%></div></td>
<td
width="318"><div
href="ChangePassword.jsp">ChangePassword</a></div></td>

align="center"><a

<td width="126"><a href="logout.jsp"><img src="images/LogOutIcon.PNG" width="58" height="35"


/></a></td>
</tr>
<tr>
<td height="13" colspan="3"><div align="center"><span class="style7 style1">Welcome to Gas
Application</span></div></td>

</tr>
<tr>
<td height="14" colspan="4">

<%@ include file="header.html"%>&nbsp;</td>

</tr>
<tr>
<td height="26" colspan="4">
<FORM>
<div align="right">
<input type="button" value="Reload Page" onClick="window.location.reload()">
</div>
</FORM>

</p>

<%
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conDatabaseOrg=DriverManager.getConnection("jdbc:odbc:DatabaseOrg");
Statement stDatabaseOrg = conDatabaseOrg.createStatement();
ResultSet rsDatabaseOrg = stDatabaseOrg.executeQuery("select * from gas where status='true'");
Connection conResident=DriverManager.getConnection("jdbc:odbc:Resident");
Statement stResident = conResident.createStatement();
String UniqueID="";
%>
<table width="100%" border="2" align="center" >
<tr>
<td width="152"><div align="center" class="style2">UniqueID</div></td>
<td width="152"><div align="center" class="style2">Name</div></td>
<td width="119"><div align="center" class="style2">Status</div></td>
<td width="124"><div align="center" class="style2">Payment</div></td>
</tr>
<%

while (rsDatabaseOrg.next())
{

UniqueID=rsDatabaseOrg.getString(1);

rsResident = stResident.executeQuery("select
UniqueID='"+UniqueID+"'");

firstname, lastname from

ResultSet
BasicDetails where

rsResident.next();
String
name=rsResident.getString(1)+" "+rsResident.getString(2);
out.println("<tr>");
out.println("<td>" +UniqueID+"</td>");

out.println("<td>" +name+"</td>");
out.println("<td>"
+rsDatabaseOrg.getString(2)+"</td>");
out.println("<td>"
+rsDatabaseOrg.getString(3)+"</td>");
out.println("<td><a
href='CutGasConnection.jsp?UniqueID="+UniqueID+"'>Cut Phone Connection</a></td>");
out.println("</tr>");
}
%>
</table>
<%
}else
{
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}

%></td>
</tr>
</table>

</body>
</html>

72. SubscriberPhone.jsp
<%@ page contentType="text/html; charset=iso-8859-1"

language="java" import="java.sql.*" errorPage="" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;

charset=iso-8859-1" />
<title>Subscriber Phone</title>
<style type="text/css">
<!-.style1 {
font-size: 24px;
color: #0000FF;
}
.style2 {color: #0000FF}
-->

</style>
</head>

<body>
<table width="100%" border="0" align="center">
<%
if(session.getAttribute("userid")!=null)
{
String user = session.getAttribute("userid").toString();

%>
<tr>
<td width="146" height="91" rowspan="2"><img

src="images/indiaflag.gif" width="140" height="105" /></td>


<td width="367"><div align="center"><span

class="style5">Welcome &gt;&gt;</span> <%=user%></div></td>


<td width="318"><div align="center"><a

href="ChangePassword.jsp">ChangePassword</a></div></td>
<td width="126"><a href="logout.jsp"><img

src="images/LogOutIcon.PNG" width="58" height="35" /></a></td>


</tr>
<tr>
<td height="13" colspan="3"><div align="center"><span

class="style7 style1">Welcome to Phone

Application</span></div></td>
</tr>
<tr>
<td height="14" colspan="4"><%@ include

file="header.html"%>&nbsp;</td>
</tr>
<tr>
<td height="26" colspan="4">

<FORM>
<div align="right">
<input type="button" value="Reload Page"

onClick="window.location.reload()">
</div>
</FORM>

</p>

<%
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conDatabaseOrg=DriverManager.getConnection

("jdbc:odbc:DatabaseOrg");
Statement stDatabaseOrg = conDatabaseOrg.createStatement();
ResultSet rsDatabaseOrg = stDatabaseOrg.executeQuery("select *

from phone where status='true'");

Connection conResident=DriverManager.getConnection

("jdbc:odbc:Resident");
Statement stResident = conResident.createStatement();
String UniqueID="";
%>
<table width="100%" border="2" align="center" >
<tr>
<td width="152"><div align="center"

class="style2">UniqueID</div></td>
<td width="152"><div

align="center" class="style2">Name</div></td>
<td width="119"><div align="center"

class="style2">Status</div></td>
<td width="124"><div align="center"

class="style2">Payment</div></td>
</tr>
<%

while (rsDatabaseOrg.next())

UniqueID=rsDatabaseOrg.getString(1);

ResultSet rsResident =

stResident.executeQuery("select firstname, lastname from

BasicDetails where UniqueID='"+UniqueID+"'");

rsResident.next();

String name=rsResident.getString(1)+"

"+rsResident.getString(2);
out.println("<tr>");
out.println("<td>" +UniqueID

+"</td>");

out.println("<td>" +name+"</td>");

out.println("<td>" +rsDatabaseOrg.getString(2)+"</td>");

out.println("<td>" +rsDatabaseOrg.getString(3)+"</td>");

out.println("<td><a href='CutPhoneConnection.jsp?

UniqueID="+UniqueID+"'>Cut Phone Connection</a></td>");

out.println("</tr>");
}
%>
</table>
<%
}else
{
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}
%></td>
</tr>
</table>

</body>
</html>

73. SubscriberVisaPassport.jsp

<%@ page contentType="text/html;


errorPage="" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Subscriber Visa Passport</title>
<style type="text/css">
<!-.style1 {
font-size: 24px;
color: #0000FF;
}
.style2 {color: #0000FF}
-->
</style>
</head>

<body>
<table width="100%" border="0" align="center">
<%
if(session.getAttribute("userid")!=null)
{
String user = session.getAttribute("userid").toString();

%>
<tr>

1.0

import="java.sql.*"

Transitional//EN"

<td width="146" height="91" rowspan="2"><img src="images/indiaflag.gif" width="140"


height="105" /></td>
<td width="367"><div align="center"><span class="style5">Welcome &gt;&gt;</span> <%=user
%></div></td>
<td
width="318"><div
href="ChangePassword.jsp">ChangePassword</a></div></td>

align="center"><a

<td width="126"><a href="logout.jsp"><img src="images/LogOutIcon.PNG" width="58" height="35"


/></a></td>
</tr>
<tr>
<td height="37" colspan="3"><div align="center"><span class="style7 style1">Welcome to Visa
Passport Application</span></div></td>
</tr>
<tr>
<td height="14" colspan="4">

<%@ include file="header.html"%>&nbsp;</td>

</tr>
<tr>

<td height="26" colspan="4">

<FORM>
<div align="right">
<input type="button" value="Reload Page" onClick="window.location.reload()">
</div>
</FORM>

</p>

<%
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conDatabaseOrg=DriverManager.getConnection("jdbc:odbc:DatabaseOrg");
Statement stDatabaseOrg = conDatabaseOrg.createStatement();

ResultSet rsDatabaseOrg = stDatabaseOrg.executeQuery("select * from


status='true'");

VisaPassport where

Connection conResident=DriverManager.getConnection("jdbc:odbc:Resident");
Statement stResident = conResident.createStatement();
String UniqueID="";
%>
<table width="100%" border="2" align="center" >
<tr>
<td width="152"><div align="center" class="style2">UniqueID</div></td>
<td width="152"><div align="center" class="style2">Name</div></td>
<td width="119"><div align="center" class="style2">Status</div></td>
<td width="124"><div align="center" class="style2">Payment</div></td>
</tr>
<%

while (rsDatabaseOrg.next())
{

UniqueID=rsDatabaseOrg.getString(1);

stResident.executeQuery("select
UniqueID='"+UniqueID+"'");

firstname,

lastname

from

ResultSet rsResident =
BasicDetails
where

rsResident.next();
String
name=rsResident.getString(1)+" "+rsResident.getString(2);
out.println("<tr>");
out.println("<td>" +UniqueID+"</td>");
out.println("<td>"
+name+"</td>");

out.println("<td>"
+rsDatabaseOrg.getString(2)+"</td>");
out.println("<td>"
+rsDatabaseOrg.getString(3)+"</td>");
out.println("<td><a
href='CutVisaPassport.jsp?UniqueID="+UniqueID+"'>Cut Phone Connection</a></td>");
out.println("</tr>");
}
%>
</table>
<%
}else
{
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}
%></td>
</tr>
</table>

</body>
</html>

74. SubscriberWaterSupply.jsp
<%@ page contentType="text/html;
errorPage="" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

1.0

import="java.sql.*"

Transitional//EN"

<title>Subscriber Water Supply</title>


<style type="text/css">
<!-.style1 {
font-size: 24px;
color: #0000FF;
}
.style2 {color: #0000FF}
-->
</style>
</head>

<body>
<table width="100%" border="0" align="center">
<%
if(session.getAttribute("userid")!=null)
{
String user = session.getAttribute("userid").toString();

%>
<tr>
<td width="146" height="91" rowspan="2"><img src="images/indiaflag.gif" width="140"
height="105" /></td>
<td width="367"><div align="center"><span class="style5">Welcome &gt;&gt;</span> <%=user
%></div></td>
<td
width="318"><div
href="ChangePassword.jsp">ChangePassword</a></div></td>

align="center"><a

<td width="126"><a href="logout.jsp"><img src="images/LogOutIcon.PNG" width="58" height="35"


/></a></td>
</tr>

<tr>
<td height="13" colspan="3"><div align="center"><span class="style7 style1">Welcome to Water
Supply Application</span></div></td>
</tr>
<tr>
<td height="14" colspan="4"><%@ include file="header.html"%>&nbsp;</td>
</tr>
<tr>
<td height="26" colspan="4">

<FORM>
<div align="right">
<input type="button" value="Reload Page" onClick="window.location.reload()">
</div>
</FORM>

</p>

<%
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conDatabaseOrg=DriverManager.getConnection("jdbc:odbc:DatabaseOrg");
Statement stDatabaseOrg = conDatabaseOrg.createStatement();
ResultSet rsDatabaseOrg = stDatabaseOrg.executeQuery("select * from
status='true'");

watersupply where

Connection conResident=DriverManager.getConnection("jdbc:odbc:Resident");
Statement stResident = conResident.createStatement();
String UniqueID="";
%>
<table width="100%" border="2" align="center" >
<tr>
<td width="152"><div align="center" class="style2">UniqueID</div></td>
<td width="152"><div align="center" class="style2">Name</div></td>

<td width="119"><div align="center" class="style2">Status</div></td>


<td width="124"><div align="center" class="style2">Payment</div></td>
</tr>
<%

while (rsDatabaseOrg.next())
{

UniqueID=rsDatabaseOrg.getString(1);

stResident.executeQuery("select
UniqueID='"+UniqueID+"'");

firstname,

lastname

from

ResultSet rsResident =
BasicDetails
where

rsResident.next();
String
name=rsResident.getString(1)+" "+rsResident.getString(2);
out.println("<tr>");
out.println("<td>" +UniqueID+"</td>");
out.println("<td>"
+name+"</td>");
out.println("<td>"
+rsDatabaseOrg.getString(2)+"</td>");
out.println("<td>"
+rsDatabaseOrg.getString(3)+"</td>");

href='CutWaterSupplyConnection.jsp?UniqueID="+UniqueID+"'>Cut
Connection</a></td>");

out.println("<td><a
Water

out.println("</tr>");
}
%>
</table>
<%

supply

}else
{
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}
%></td>
</tr>
</table>

</body>
</html>

75. UpdationForm.html
<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Updation Form | UniqueID</title>
<script language="javascript" type="text/javascript">
function pp()
{
javascript:window.print()
}
</script>
<style type="text/css">
<!-.style1 {
font-size: 36px;

1.0

Transitional//EN"

color: #0000FF;
}
.style2 {font-size: 18px}
.style12 {font-size: 24px; color: #0000FF; }
.style13 {font-size: 24px}
.style14 {color: #FF0000}
-->
</style>
</head>

<body>

<table width="970" border="0" align="center">


<tr>
<th height="43" colspan="3" scope="col"><span class="style1"><span class="style13">Updation
Form</span> <span class="style12">Preview</span> </span></th>
</tr>
<tr>
<th height="43" colspan="3" scope="col"> <input type="submit" name="Submit" value="Print"
onclick="pp()"/>
<hr /></th>
</tr>
<tr>
<th width="359" height="34" scope="col"><div align="right" class="style2">Unique ID </div></th>
<th colspan="2" scope="col"><div align="left">
<table width="416" border="1">
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>

<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
</div></th>
</tr>
<tr>
<th height="77" rowspan="5" scope="col"><div align="right" class="style2">Update type</div></th>
<th width="59"
value="checkbox" /></th>

height="27"

scope="col"><input

type="checkbox"

name="checkbox"

<th width="530" scope="col"><div align="left">Demographic data update</div></th>


</tr>
<tr>
<th height="25" scope="col"><input type="checkbox" name="checkbox2" value="checkbox" /></th>

<th height="25" scope="col"><div align="left">Photograph / biometric data update</div></th>


</tr>
<tr>
<th height="22" scope="col"><input name="radiobutton" type="radio" value="radiobutton" /></th>
<th height="22" scope="col"><div align="left">Above 5 years of age</div></th>
</tr>
<tr>
<th height="22" scope="col"><input name="radiobutton" type="radio" value="radiobutton" /></th>
<th height="22" scope="col"><div align="left">Above 15 years of age</div></th>
</tr>
<tr>
<th height="22" scope="col"><input name="radiobutton" type="radio" value="radiobutton" /></th>
<th height="22" scope="col"><div align="left">Others</div></th>
</tr>
<tr>
<th height="390" colspan="3" scope="col"><table width="827" border="0" align="center">
<tr>
<th height="54" colspan="2" scope="col"><span class="style14">Fields requiring change (select all
that apply)
</span>
<hr /></th>
<th colspan="2" scope="col"><span class="style14">Reason for change (select all that apply)
</span>
<hr /></th>
</tr>
<tr>
<th width="50" height="22" scope="row"><input type="checkbox" name="checkbox3"
value="checkbox" /></th>
<td width="348"><div align="left">Name</div></td>

<td width="39"><input type="checkbox" name="checkbox16" value="checkbox" /></td>


<td width="362"><div align="left">Spelling mistake</div></td>
</tr>
<tr>
<th height="22" scope="row"><input type="checkbox" name="checkbox4" value="checkbox"
/></th>
<td><div align="left">Address</div></td>
<td><input type="checkbox" name="checkbox162" value="checkbox" /></td>
<td><div align="left">Name change</div></td>
</tr>
<tr>
<th height="22" scope="row"><input type="checkbox" name="checkbox5" value="checkbox"
/></th>
<td><div align="left">DoB / Age</div></td>
<td><input type="checkbox" name="checkbox163" value="checkbox" /></td>
<td><div align="left">Address change</div></td>
</tr>
<tr>
<th height="22" scope="row"><input type="checkbox" name="checkbox6" value="checkbox"
/></th>
<td><div align="left">Gender</div></td>
<td><input type="checkbox" name="checkbox164" value="checkbox" /></td>
<td><div align="left">Mistake at enrolment time</div></td>
</tr>
<tr>
<th height="22" scope="row"><input type="checkbox" name="checkbox7" value="checkbox"
/></th>
<td><div align="left">Relative Name / UID</div></td>
<td><input type="checkbox" name="checkbox165" value="checkbox" /></td>
<td><div align="left">Not given at enrolment time</div></td>

</tr>
<tr>
<th height="22" scope="row"><input type="checkbox" name="checkbox8" value="checkbox"
/></th>
<td><div align="left">Phone</div></td>
<td><input type="checkbox" name="checkbox166" value="checkbox" /></td>
<td><div align="left">Change in life event</div></td>
</tr>
<tr>
<th height="22" scope="row"><input type="checkbox" name="checkbox9" value="checkbox"
/></th>
<td><div align="left">Email</div></td>
<td><input type="checkbox" name="checkbox167" value="checkbox" /></td>
<td><div align="left">Change in number</div></td>
</tr>
<tr>
<th height="22" scope="row"><input type="checkbox" name="checkbox10" value="checkbox"
/></th>
<td><div align="left">Consent for FI</div></td>
<td><input type="checkbox" name="checkbox168" value="checkbox" /></td>
<td><div align="left">Change in email</div></td>
</tr>
<tr>
<th height="22" scope="row"><input type="checkbox" name="checkbox11" value="checkbox"
/></th>
<td><div align="left">Consent for data sharing</div></td>
<td><input type="checkbox" name="checkbox169" value="checkbox" /></td>
<td><div align="left">Age progression</div></td>
</tr>
<tr>

<th height="22" scope="row"><input type="checkbox" name="checkbox12" value="checkbox"


/></th>
<td><div align="left">Photograph</div></td>
<td><input type="checkbox" name="checkbox1610" value="checkbox" /></td>
<td><div align="left">Inappropriate photo taken at enrolment time</div></td>
</tr>
<tr>
<th height="28" scope="row"><input type="checkbox" name="checkbox13" value="checkbox"
/></th>
<td><div align="left">Fingerprint</div></td>
<td><input type="checkbox" name="checkbox1611" value="checkbox" /></td>
<td><div align="left">Regular authentication failures</div></td>
</tr>
<tr>
<th height="22" scope="row"><input type="checkbox" name="checkbox14" value="checkbox"
/></th>
<td><div align="left">Iris</div></td>
<td><input type="checkbox" name="checkbox1612" value="checkbox" /></td>
<td><div align="left">Others</div></td>
</tr>
<tr>
<th height="22" scope="row"><input type="checkbox" name="checkbox15" value="checkbox"
/></th>
<td><div align="left">Biometric Exception</div></td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table></th>
</tr>
<tr>

<th colspan="3" scope="col"><div align="center">Details Of Change:


.......................................................................
</div></th>
</tr>
</table>

</body>
</html>

76. UserProcess.jsp
<%@ page contentType="text/html; charset=iso-8859-1"
import="java.util.*" errorPage="ErrorOccurred.jsp" %>

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>User Process | UniqueID</title>
<script language="javascript" type="text/javascript">
function goback()
{
history.back();
}
</script>
<style type="text/css">
<!-.style1 {
color: #FF0000;
font-size: 36px;

1.0

import="java.sql.*"

Transitional//EN"

}
.style2 {font-size: 36px}
-->
</style>
</head>

<body>
<p>
<%
String UniqueID=request.getParameter("uid");
String username=request.getParameter("UserName");
String utype=request.getParameter("UserType");
String email=request.getParameter("email");
String mobileno=request.getParameter("mobileno");

String
alphaNumerics
"qwertyuiopasdfghjklzxcvbnm1234567890QWERTYUIOPASDFGHJKLZXCVBNM!@#$%&*_~";

String pass= "";


for (int i = 0; i < 8; i++) {
pass

+=

alphaNumerics.charAt((int)

alphaNumerics.length()));
}
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conPass=DriverManager.getConnection("jdbc:odbc:Pass");
Connection conResident=DriverManager.getConnection("jdbc:odbc:Resident");
String q;
String AttachOrg="All";
int done=0;
if(utype.equals("Special_User"))

(Math.random()

{
q="insert into "+utype+" values(?,?,?,?,?,?)";
PreparedStatement ps = conPass.prepareStatement(q);
ps.setString(1,UniqueID);
ps.setString(2,username);
ps.setString(3,pass);
ps.setString(4,email);
ps.setString(5,mobileno);
ps.setString(6,AttachOrg);
done=ps.executeUpdate();
}
else
{
q="insert into "+utype+" values(?,?,?,?,?)";
PreparedStatement ps = conPass.prepareStatement(q);
ps.setString(1,UniqueID);
ps.setString(2,username);
ps.setString(3,pass);
ps.setString(4,email);
ps.setString(5,mobileno);
done=ps.executeUpdate();
}

if(done==1)
{
%>
</p>

<p align="center" class="style2">Operation Complete.........</p>


<p align="center" class="style2">
<input type="submit" name="Submit" value="Back" onclick="goback()"/>
</p>
<p>
<%
}
else
{
%>
</p>
<p align="center"><span class="style1">Operation Not Complete..sorry</span> </p>
<p align="center"><span class="style2">
<input type="submit" name="Submit2" value="Back" onclick="goback()"/>
</span></p>
<p>
<%
}
%>
</p>
<p>&nbsp;</p>
</body>
</html>

77. VisaPassport.jsp
<%@ page contentType="text/html;
errorPage="" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

1.0

import="java.sql.*"

Transitional//EN"

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Visa Passport</title>
<style type="text/css">
<!-.style5 {font-size: 24px}
.style7 {font-size: 24px; color: #0000FF; }
-->
</style>
</head>

<body>
<table width="100%" height="178" border="0" align="center">
<%
if(session.getAttribute("userid")!=null)
{
String user = session.getAttribute("userid").toString();
String AttachOrg=session.getAttribute("AttachOrg").toString();
%>
<tr>
<td width="146" height="107" rowspan="2"><img src="images/indiaflag.gif" width="140"
height="105" /></td>
<td width="367"><div align="center"><span class="style5">Welcome &gt;&gt;</span> <%=user
%></div></td>
<td
width="318"><div
href="ChangePassword.jsp">ChangePassword</a></div></td>

align="center"><a

<td width="126"><a href="logout.jsp"><img src="images/LogOutIcon.PNG" width="58" height="35"


/></a></td>
</tr>

<tr>
<td height="29" colspan="3"><div align="center"><span class="style7">Welcome to Special User of
Unicus</span></div></td>
</tr>
<tr>
<td height="26" colspan="4"><%@ include file="header.html"%>&nbsp;</td>
</tr>
<tr>
<td height="26" colspan="4"><table width="100%" border="1">
<tr>
<td
width="51%"
height="70"><span
href="ApplicantVisaPassport.jsp">Applicant </a></span></td>

class="style5"><a

<td width="49%" rowspan="2"><table width="471" border="0" align="right">


<tr>
<th height="46" colspan="3" scope="col"><div align="center" class="style7">Search
Resident</div></th>
</tr>
<form id="form1" name="form1" method="post" action="BasicDetails.jsp" >
<tr>
<th width="160" height="44" scope="col"><div align="right"><img src="images/blt.gif"
width="13" height="13" />By UniqueID: </div></th>
<th width="170" scope="col"><div align="left">
<input name="uid" type="text" id="uid" />
</div></th>
<th width="255" scope="col"> <div align="left">
<input type="submit" name="Submit" value="Submit" />
</div></th>
</tr>
</form>
<tr>

<form id="form2" name="form2" method="post" action="DetailsOfResident.jsp">


<th height="44" scope="col"><div align="right"><img src="images/blt.gif" width="13"
height="13" /> By Name: </div></th>
<th scope="col"><div align="left">
<input name="firstname" type="text" id="firstname" />
</div></th>
<th scope="col"><div align="left">
<input name="Submit" type="submit" id="Submit" value="Submit" />
</div></th>
</form>
</tr>
</table></td>
</tr>
<tr>
<td height="27"><span class="style5"><a href="SubscriberVisaPassport.jsp">Subscriber
</a></span></td>
</tr>
</table></td>
</tr>
<%
}
else
{
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}

%>
</table>

</body>
</html>

78. WaterSupply.jsp
<%@ page contentType="text/html;
errorPage="" %>

charset=iso-8859-1"

language="java"

<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Water Supply Operation</title>
<style type="text/css">
<!-.style5 {font-size: 24px}
.style7 {font-size: 24px; color: #0000FF; }
-->
</style>
</head>

<body>
<table width="100%" height="178" border="0" align="center">
<%
if(session.getAttribute("userid")!=null)
{
String user = session.getAttribute("userid").toString();
String AttachOrg=session.getAttribute("AttachOrg").toString();
%>
<tr>

1.0

import="java.sql.*"

Transitional//EN"

<td width="146" height="107" rowspan="2"><img src="images/indiaflag.gif" width="140"


height="105" /></td>
<td width="367"><div align="center"><span class="style5">Welcome &gt;&gt;</span> <%=user
%></div></td>
<td
width="318"><div
href="ChangePassword.jsp">ChangePassword</a></div></td>

align="center"><a

<td width="126"><a href="logout.jsp"><img src="images/LogOutIcon.PNG" width="58" height="35"


/></a></td>
</tr>
<tr>
<td height="29" colspan="3"><div align="center"><span class="style7">Welcome to Water Supply
Application</span></div></td>
</tr>
<tr>
<td height="26" colspan="4"><%@ include file="header.html"%>&nbsp;</td>
</tr>
<tr>
<td height="26" colspan="4"><table width="100%" border="1">
<tr>
<td
width="51%"
height="70"><span
href="ApplicantWaterSupply.jsp">Applicant </a></span></td>

class="style5"><a

<td width="49%" rowspan="2"><table width="471" border="0" align="right">


<tr>
<th height="46" colspan="3" scope="col"><div align="center" class="style7">Search
Resident</div></th>
</tr>
<form id="form1" name="form1" method="post" action="BasicDetails.jsp" >
<tr>
<th width="160" height="44" scope="col"><div align="right"><img src="images/blt.gif"
width="13" height="13" />By UniqueID: </div></th>
<th width="170" scope="col"><div align="left">

<input name="uid" type="text" id="uid" />


</div></th>
<th width="255" scope="col"> <div align="left">
<input type="submit" name="Submit" value="Submit" />
</div></th>
</tr>
</form>
<tr>
<form id="form2" name="form2" method="post" action="DetailsOfResident.jsp">
<th height="44" scope="col"><div align="right"><img src="images/blt.gif" width="13"
height="13" /> By Name: </div></th>
<th scope="col"><div align="left">
<input name="firstname" type="text" id="firstname" />
</div></th>
<th scope="col"><div align="left">
<input name="Submit" type="submit" id="Submit" value="Submit" />
</div></th>
</form>
</tr>
</table></td>
</tr>
<tr>
<td height="27"><span class="style5"><a href="SubscriberWaterSupply.jsp">Subscriber
</a></span></td>
</tr>
</table></td>
</tr>
<%
}

else
{
response.setHeader("Refresh", "; URL = LogInHome.jsp");
}

%>
</table>

</body>
</html>