Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
174 changes: 174 additions & 0 deletions khushdeep/WebContent/Deletecustomer.jsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@



<!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>Free Pharmaceutical Company Template- Download HTML Website Templates</title>
<link href="style.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
function ctck()
{
var sds = document.getElementById("dum");
if(sds == null){alert("You are using a free package.\n You are not allowed to remove the tag.\n");}
}
</script>


<head>
<SCRIPT LANGUAGE="JavaScript">
function dil(form)
{
for(var i=0; i<form.elements.length; i++)
{
if(form.elements[i].value == "")
{
alert("Fill out this Fields")
document.F1.custid.focus()
return false
}
}

if(isNaN(document.F1.custid.value))
{
alert("coustmer id must be number & can't be null")
document.F1.custid.value=""
document.F1.custid.focus()
return false
}



return true
}
</SCRIPT>

<div id="header">
<div id="navigation">
<ul>
<li><a href="index.jsp">Home</a></li>
<li><a href="about.jsp">About Us</a></li>
<li><a href="admin.jsp">ADMINISTRATOR </a></li>
<li><a href="customer.jsp">CUST0MER</a></li>
<li><a href="contactus.jsp">Contact Us</a></li>
</ul>
</div>
</div>

<table width="960" border="0" cellspacing="10" cellpadding="0" align="center">

<tr align="justify">
<td valign="top" width="220px">
<img src="images/hioxindia-pharmacy_08.jpg" alt="" border="0" /> <br />
<h1>Pharmaceutist</h1>
<p>Freedesignertemplates.com has a wide collection of HTML web design templates.</p>
<p align="right"><a href="#" class="more">View More</a></p>
</td> <td valign="top">

<form name=F1 onSubmit="return dil(this)" action="Deletecustomer1.jsp" >
<table cellspacing="5" cellpadding="3">

<%if(request.getAttribute("wrong")!=null)
{
out.print("<div>");
out.print("<font color='blue'><font size='4'>"+request.getAttribute("wrong")+"");

out.print("</div>");
}

%>


<tr><td>Customer ID:</td><td> <input type="text" name="custid"/></td></tr>

<tr><td></td><td><input type="submit" value="Submit"/>

<INPUT TYPE=RESET VALUE="CLEAR"></td></tr>
</table>
</form>


<td valign="top">
<img src="images/hioxindia-pharmacy_10.jpg" alt="" border="0" />
<h1>Drug Store</h1>
<p>Anyone can use these HTML templates just by replacing the content to the pre-existing site designs.</p>
<p align="right"><a href="#" class="more">View More</a></p>
</td>
<td valign="top">
<img src="images/hioxindia-pharmacy_12.jpg" alt="" border="0" />
<h1>Tablets</h1>
<p>This high quality free pharmaceutical company template is built using XHTML and CSS..</p>
<p align="right"><a href="#" class="more">View More</a></p>
</td>

</tr>
<tr><td colspan="4" style="border-bottom:1px solid #CCCCCC;"></td></tr>
</table>


<div id="content">
<table width="960" border="0" cellspacing="0" cellpadding="0">
<tr align="justify">
<td width="200" valign="top">
<img src="images/hioxindia-pharmacy_19.jpg" alt="" border="0" /> </td>
<td width="760" valign="top">
<h1>Welcome to Pharmaceutical Company Template</h1>
<p>This is free Pharmaceutical Company Template for your online website, blog or web page which is under Health and Medicine category. Anyone wants good, professional, template for their pharmacy, drug store, medical store then this template would be the best one. This free pharmaceutical company template is designed by professional designers to make your task much easier to customize it.</p><br />

<p>There are many other template categories like Arts, Agriculture, Computers, Satellite, Cars, Finance, Nature, Music, Personal Website, Religious, Fashion, Furniture, Holiday, Travel, Night club are available in this site. Have a look at the collection of HTML templates, pick the right one, preview and download it easily.</p>
</td>
</tr>
</table>
</div>

<div id="footer">
<div id="footer_1">
<ul>
<li><a href="#"></a></li>
<li><a href="#"></a></li>
<li><a href="#"></a></li>
<li><a href="#"></a></li>
<li><a href="#"></a></li>
</ul> <br />
<span id="design">Designed by <a id="dum" href="http://www.javatpoint.com" target="_blank">www.javatpoint.com</a></span>
<script type="text/javascript">
document.onload = ctck();
</script>
</div>
</div>
</body>
</html>

</head>

<body>








<div id="footer_top">
<div id="footer_navigation">


</div>

<div id="footer_copyright" >

<center><img alt="business" width="196" height="106"></center><br>
<p>Each people plan their site layouts depending upon their business type. Here comes a free designer template which provides you with a selection of different kinds of webdesign starting from business template, fashion template, media template, Science template, Arts template and much more.</p>

Copyright � Your Company Name</div>
</div>

<script type="text/javascript">
document.onload = ctck();
</script>
</div>

</body>
</html>
222 changes: 222 additions & 0 deletions khushdeep/WebContent/Deletecustomer1.jsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,222 @@



<!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>Free Pharmaceutical Company Template- Download HTML Website Templates</title>
<link href="style.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
function ctck()
{
var sds = document.getElementById("dum");
if(sds == null){alert("You are using a free package.\n You are not allowed to remove the tag.\n");}
}
</script>

<SCRIPT LANGUAGE="JavaScript">
function dil(form)
{
for(var i=0; i<form.elements.length; i++)
{
if(form.elements[i].value == "")
{
alert("Fill out all Fields")
document.F1.accountno.focus()
return false
}
}

if(isNaN(document.F1.accountno.value))
{
alert("Accountno must be number & can't be null")
document.F1.accountno.value=""
document.F1.accountno.focus()
return false
}
if(!isNaN(document.F1.username.value))
{
alert("User Name must be char's & can't be null")
document.F1.username.value=""
document.F1.username.focus()
return false
}

if(!isNaN(document.F1.password.value))
{
alert("Password must be char's & can't be null")
document.F1.password.value=""
document.F1.password.focus()
return false
}

return true
}
</SCRIPT>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Global Banking ..</title>
<link href="style.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
function ctck()
{
var sds = document.getElementById("dum");

}
</script>
<body>
<div id="header">
<div id="navigation">
<ul>
<li><a href="index.jsp">Home</a></li>
<li><a href="about.jsp">About Us</a></li>
<li><a href="admin.jsp">ADMINISTRATOR </a></li>
<li><a href="distributer.jsp">DISTRIBUTER </a></li>
<li><a href="customer.jsp">CUST0MER</a></li>
<li><a href="contactus.jsp">Contact Us</a></li>
</ul>
</div>
</div>

<table width="960" border="0" cellspacing="10" cellpadding="0" align="center">
<tr align="justify">
<td valign="top" width="220px">
<img src="images/hioxindia-pharmacy_08.jpg" alt="" border="0" /> <br />
<h1>Pharmaceutist</h1>
<p>Freedesignertemplates.com has a wide collection of HTML web design templates.</p>
<p align="right"><a href="#" class="more">View More</a></p>
</td> <td valign="top">
<%-- <table cellspacing="10" cellpadding="8"> --%>

<%
%>
<table><%
String ph=request.getParameter("custid");

double id=Double.parseDouble(ph);

Connection con=GetCon.getCon();


boolean status=VerifyLoginforcustadmin1.checkLogin(id);
if(status==true){

try {
PreparedStatement ps=con.prepareStatement("delete from newcust4 where id = '"+id+"' ");

ResultSet rs=ps.executeQuery();

if(rs.next()){
out.print("your Details has been deleted");
request.setAttribute("deleted","your Details has been deleted");
%>
<jsp:forward page="customeradmin.jsp"></jsp:forward>
<%

}


} catch (SQLException e) {
e.printStackTrace();
}

}else{
out.println("your given id is wrong");
request.setAttribute("wrong","your given id is wrong");
%>
<jsp:forward page="Deletecustomer.jsp"></jsp:forward>
<%
}

%></table><%
%>

<%@ page import="java.sql.*"%>
<%@ page import="java.io.*" %>
<%@ page import="javax.servlet.*"%>
<%@ page import="com.javatpoint.*" %>


<td valign="top">
<img src="images/hioxindia-pharmacy_10.jpg" alt="" border="0" />
<h1>Drug Store</h1>
<p>Anyone can use these HTML templates just by replacing the content to the pre-existing site designs.</p>
<p align="right"><a href="#" class="more">View More</a></p>
</td>
<td valign="top">
<img src="images/hioxindia-pharmacy_12.jpg" alt="" border="0" />
<h1>Tablets</h1>
<p>This high quality free pharmaceutical company template is built using XHTML and CSS..</p>
<p align="right"><a href="#" class="more">View More</a></p>
</td>

</tr>
<tr><td colspan="4" style="border-bottom:1px solid #CCCCCC;"></td></tr>
</table>


<div id="content">
<table width="960" border="0" cellspacing="0" cellpadding="0">
<tr align="justify">
<td width="200" valign="top">
<img src="images/hioxindia-pharmacy_19.jpg" alt="" border="0" /> </td>
<td width="760" valign="top">
<h1>Welcome to Pharmaceutical Company </h1>
<p>This is free Pharmaceutical Company Template for your online website, blog or web page which is under Health and Medicine category. Anyone wants good, professional, template for their pharmacy, drug store, medical store then this template would be the best one. This free pharmaceutical company template is designed by professional designers to make your task much easier to customize it.</p><br />

<p>There are many other template categories like Arts, Agriculture, Computers, Satellite, Cars, Finance, Nature, Music, Personal Website, Religious, Fashion, Furniture, Holiday, Travel, Night club are available in this site. Have a look at the collection of HTML templates, pick the right one, preview and download it easily.</p>
</td>
</tr>
</table>
</div>

<div id="footer">
<div id="footer_1">
<ul>
<li><a href="#"></a></li>
<li><a href="#"></a></li>
<li><a href="#"></a></li>
<li><a href="#"></a></li>
<li><a href="#"></a></li>
</ul> <br />
<span id="design">Designed by <a id="dum" href="http://www.javatpoint.com" target="_blank">www.javatpoint.com</a></span>
<script type="text/javascript">
document.onload = ctck();
</script>
</div>
</div>
</body>
</html>

</head>

<body>








<div id="footer_top">
<div id="footer_navigation">


</div>

<div id="footer_copyright" >

<center><img alt="business" width="196" height="106"></center><br>
<p>Each people plan their site layouts depending upon their business type. Here comes a free designer template which provides you with a selection of different kinds of webdesign starting from business template, fashion template, media template, Science template, Arts template and much more.</p>

Copyright � Your Company Name</div>
</div>

<script type="text/javascript">
document.onload = ctck();
</script>
</div>

</body>
</html>
Loading