UAdd.jsp
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>User Add</title> <SCRIPT LANGUAGE="JAVASCRIPT">
<!--
function valid(form)
{
var field1=form.UCode;
var field2=form.Pwd;
var field3=form.FName;
var field4=form.LName;
var field5=form.email;
var field6=form.DOB;
UCode=field1.value;
Pwd=field2.value;
FName=field3.value;
LName=field4.value;
email=field5.value;
DOB=field6.value;
if(UCode.length==0)
{
alert("The User Code Field Cannot Be Left Blank");
field1.focus();
return false;
}
else if(Pwd.length==0)
{
alert("The Password Field Cannot Be Left Blank");
field2.focus();
return false;
}
else if(FName.length==0)
{
alert("The User First Name Field Cannot Be Left Blank");
field3.focus();
return false;
}
else if(LName.length==0)
{
alert("The User Last Name Field Cannot Be Left Blank");
field4.focus();
return false;
}
else if(email.length==0)
{
alert("The User Email Field Cannot Be Left Blank");
field5.focus();
return false;
}
else if(DOB.length==0)
{
alert("The Date of Birth Field Cannot Be Left Blank");
field6.focus();
return false;
}
}
//-->
</SCRIPT>
</head>
<body> <form onsubmit="return valid(this)" method="post" action="UAdded.jsp"> <div style="position: absolute; width: 997; height: 178; z-index: 1; left:0px; top: 36px; right: 2; bottom:1024" id="layer4"><div style="position: absolute; width: 181; height: 31; z-index: 1; left: 10px; top: -33px" id="layer1"><img border="0" src="images/logo5.GIF" width="181" height="31"></div><img border="0" src="images/contacttop-img.jpg" width="997" height="178"></div>
<div style="position: absolute; width: 831px; height: 325px; z-index: 2; left: 166px; top: 225px" id="layer6"><img border="0" src="images/bkg.gif" width="831" height="325"></div>
<div style="position: absolute; width: 831px; height: 19px; z-index: 3; left: 166px; top: 558px" id="layer7">
<div style="position: absolute; width: 148px; height: 219px; z-index: 1; left: -163px; top: -301px;right: 2" id="layer5">
<!-- Begin Free-Web-Buttons.com -->
<style>#web-buttons-idhyzy6 a{display:block;color:transparent;} #web-buttons-idhyzy6 a:hover{background-position:left bottom;}a#web-buttons-idhyzy6a {display:none}</style>
<table id="web-buttons-idhyzy6" width=0 cellpadding=0 cellspacing=0 border=0>
<tr><td style="padding-bottom:15px" title ="Home">
<a href="Home.jsp" title="Home" style="background-image:url(images/bthyzy6.png);width:153px;height:25px;display:block;"><br/></a></td></tr>
<tr><td style="padding-bottom:15px" title ="Contact Us">
<a href="ContactUs.jsp" title="Contact Us" style="background-image:url(images/btkyzy6.png);width:153px;height:25px;display:block;"><br/></a></td></tr>
<tr><td style="padding-bottom:15px" title ="About Us">
<a href="AboutUs.jsp" title="About Us" style="background-image:url(images/btgyzy6.png);width:153px;height:25px;display:block;"><br/></a></td></tr>
<tr><td style="padding-bottom:15px" title ="User">
<a href="UserList.jsp" title="User.jsp" style="background-image:url(images/btcxzy6.png);width:153px;height:25px;display:block;"><br/></a></td></tr>
<tr><td style="padding-bottom:15px" title ="View">
<a href="UView.jsp" title="View" style="background-image:url(images/btmxzy6.png);width:153px;height:25px;display:block;"><br/></a></td></tr>
</table></div>
<div style="position: absolute; width: 361px; height: 18px; z-index: 1; left: 194px; top: 20px" id="layer8" align="center"><font size="3">Copyright © SureVac Call Management, 2009. All Rights Reserved.</font></div><p><img border="0" src="images/bg_footer.gif" width="832" height="32"></div>
<div style="position: absolute; left: 889px; top: 13px; width: 97px; height: 18px; z-index: 4" id="layer2">
<a href="Home.jsp">Home</a>
<a href="User.jsp">Back</a><div style="position: absolute; width: 1; height: 18; z-index: 1; left: 37px; top: 0px" id="layer3"><img border="0" src="images/htc.gif" width="1" height="18"></div></div>
<div style="position: absolute; left: 827px; top: 358px; width: 115; height: 116; z-index: 7; border: 3px groove #0000FF" id="layer10"><img border="0" src="images/CAV9SKQC.jpg" width="115" height="116"></div>
<div style="position: absolute; left: 281px; top: 243px; width: 484px; height: 262px; z-index: 5" id="layer9">
<br>
<table border="0" width="100%" style="border-collapse: collapse">
<tr><td width="150" align="left" height="35" valign="top"> <font face="Calibri" size="4" color="#0000FF">Login Name :</font></td>
<td align="left" height="35" valign="top"> <input type="text" name="UCode"></td> </tr>
<tr><td width="150" height="35" align="left" valign="top"><font face="Calibri" size="4" color="#0000FF">Password :</font></td>
<td height="35" align="left" valign="top"> <input type="text" name="Pwd"></td></tr>
<tr><td width="150" align="left" height="35" valign="top"><font face="Calibri" size="4" color="#0000FF">First Name :</font></td>
<td align="left" height="35" valign="top"><input type="text" name="FName"></td></tr>
<tr><td width="150" align="left" height="35" valign="top"><font face="Calibri" size="4" color="#0000FF">Last Name :</font></td>
<td align="left" height="35" valign="top"><input type="text" name="LName"></td></tr>
<tr><td width="150" align="left" height="35" valign="top"><font face="Calibri" size="4" color="#0000FF">Email</font></td><td align="left" height="35" valign="top"><input type="text" name="email"></td></tr>
<tr><td width="150" align="left" height="35" valign="top"><font face="Calibri" size="4" color="#0000FF">Date of Birth :</font></td>
<td align="left" height="35" valign="top"><input type="text" name="DOB"></td> </tr>
<tr><td width="150" align="left" valign="top">
<input type="submit" name="Submit" value="Save"></td>
<td align="left" valign="top">
<input type="reset" value="Cancel"></td></tr></table></div>
</form>
</body>
</html>
No comments:
Post a Comment