Professional Documents
Culture Documents
NormalFrame.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN">
<html>
<head>
<meta name=vs_targetSchema
content="http://schemas.microsoft.com/intellisense/ie5">
<TITLE>Normal Page</TITLE>
<base target="main">
</head>
<frameset cols="214,82%">
</frameset>
<noframes>
<body leftmargin="0">
<p>This page requires frames, but your browser does not support them.</p>
</noframes>
</frameset>
</html>
Title1.html
<html><head>
<base target="contents">
</head><body>
</i></b></font> </td>
</tr></table><br></body>
</html>
Sidebar.html
<html><head>
<title>Side Bar</title>
<base target="_self">
</head><body>
<tr>
<div align="center">
<tr>
<tr>
<td height="21" bgcolor="#C0C0C0" width="15"></td>
</a></font></td>
<tr>
<tr>
<tr>
<tr>
<p> </p></td> </tr>
</table>
</body>
</html>
Home.html
<html><head>
<head>
</head>
<script Language="JavaScript">
function verify(){
var ctr=0;
var txtT1=form.user_name.value;
var txtT2=form.password.value;
var txtT3=form.confirm_password.value;
var txtT6=form.first_name.value;
var txtT11=form.middle_name.value;
var txtT13=form.last_name.value;
var txtT14=form.email.value;
var txtT7= form.city.value;
var txtT8=form.state.value;
var txtCountry=form.country.value;
if(!((txtT14.indexOf('@'))>=0)){alert("emailnotproper");ctr=1;}if((txtT1.length==0)||
(txtT2.length==0)||(txtT3.length==0)||(txtT6.length==0)||(txtT11.length==0)||(txtT13.length==0)||
(txtT14.length==0)||(txtT8.length==0)||(txtT9.length==0)||(txtCountry.length==0))
alert("Please enter all the values. The fields marked (*) are mandatory.");
ctr=1;
if(txtT2.length<4)
ctr=1;
if (!(txtT2==txtT3))
ctr=1;
if(ctr!=1)
form.submit();
}
</script>
<tr>
<blockquote>
Information</font></u></b></span></p>
</font></b></p>
Logon Information</font></span></u></b></p>
&n
bsp;  
; Client
LOGIN Name*:
</b>
</font></b></span></p>
</p>
&n
bsp;  
; Password
*: &
nbsp;
</b>
</p>
&n
bsp;  
; Confirm
Password*: </b>
</font></b></span></p>
&n
bsp;  
; </font></span></b></p>
<p align="left" style="MARGIN-TOP: 1px; MARGIN-BOTTOM: 1px">
<b>
&n
bsp; </font><font face="Arial" color="#800000"><u> 2.
Personal Information</u></font></b></span></p>
</p>
&n
bsp;  
; &n
bsp; company
Name
</b>
</font></b></span></p>
</p>
</font></b></span></p>
</p>
&n
bsp;  
; CONTACT
LAST Name*:
</b>
</font></b></span></p>
</p>
</b>
</font></b></span></p>
</p>
E-
mail*: &nb
sp;
</b>
</font></b></span></p>
</p>
&n
bsp;  
; Address
Line1*: </b>
</font></b></span></p>
</p>
&n
bsp;  
; Address
Line2*: </b>
</font></b></span></p>
</p>
</b>
</font></b></span></p>
</p>
State*: &nb
sp;
</b>
</font></b></span></p>
</p>
</font></p>
</form>
<p> </p>
</body></html>
Adminlogin.html
<html>
<head>
</head>
<body>
<tr>
<p
align="center"> &
nbsp; &nbs
p;
<blockquote>
<p align="left" style="MARGIN: 3px -2px" > </p>
<p align="center" style="margin-left: -2px; margin-right: -2px; margin-top: 3px; margin-bottom: 3px">
<b>Login
<p align="center" style="margin-left: -2px; margin-right: -2px; margin-top: 3px; margin-bottom: 3px">
<p align="center" style="margin-left: -2px; margin-right: -2px; margin-top: 3px; margin-bottom: 3px">
<input type="submit" value="Submit" name="B1" style="font-family: Times New Roman (serif); color:
#800000; font-weight: bold"></p>
</form>
</p>
</blockquote> </td>
</tr></table>
</body>
</html>
Login.jsp
<%session.removeAttribute("username");%>
<%
username=request.getParameter("username");
password=request.getParameter("password");
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection connect;
connect=DriverManager.getConnection("jdbc:odbc:opms","","");
Statement stmt;
stmt = connect.createStatement();
if(result1.next())
pass=result1.getString("m_password");
type=result1.getString("login_type");
{ session.setAttribute("username", username);
session.setAttribute("type", "Developer");
response.sendRedirect("dev_home_page.jsp");
else
response.sendRedirect("InvalidPassD.htm");
} else
response.sendRedirect("InvalidUserD.htm");
catch(Exception e){
response.sendRedirect("error.htm");
} %>
<html>
<head>
<base target="_self">
</head>
<tr>
<blockquote>
<tr>
New Event
</font></a> </font></b></font></td>
Complaint Progress</font></a></font></b></font></td>
<font color="#800000">Logout</font></a></b></font></td>
</tr>
</table>
<tr>
<td width="82%" valign="top"><font color="#702BFF">
<% try
{ name=(String)session.getAttribute("username");
session.setAttribute("username",name);
} catch(Exception e)
%> </font>
</b></p>
<p> <b> <font face="Arial" size="4" color="#800000"> Welcome. ADMIN Select an appropriate
menu.</font></b></p>
</tr></table>
</font> </a></p>
</body></html>
Regis.jsp
<html>
<head>
</head>
<body topmargin="14">
<%
String user_name=request.getParameter("user_name");
String pass=request.getParameter("password");
String first_name=request.getParameter("first_name");
String middle_name=request.getParameter("middle_name");
String last_name=request.getParameter("last_name");
String phone=request.getParameter("phone");
String email=request.getParameter("email");
String address1=request.getParameter("address1");
String address2=request.getParameter("address2");
String city=request.getParameter("city");
String state=request.getParameter("state");
String country=request.getParameter("country");
session.setAttribute("username",user_name);
session.setAttribute("type", "Customer");
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection connect;
connect=DriverManager.getConnection("jdbc:odbc:opms","","");
Statement stmt;
int r_id=0;
stmt = connect.createStatement();
ResultSet rset=stmt.executeQuery(querry);
while(rset.next())
r_id=rset.getInt("Cust_ID");
}
r_id=r_id+1;
System.out.println(1);
stmt.executeUpdate(strQuery1);
System.out.println(2);
stmt.executeUpdate(strQuery2);
System.out.println(3);
connect.close();
System.out.println(4);
} catch(Exception e)
System.out.println(e);
response.sendRedirect("error.htm");
%>
<jsp:include page="cust_home_page.jsp"/>
</body>
</html>