diff --git a/khushdeep/WebContent/Deletecustomer.jsp b/khushdeep/WebContent/Deletecustomer.jsp new file mode 100644 index 0000000..e7f6510 --- /dev/null +++ b/khushdeep/WebContent/Deletecustomer.jsp @@ -0,0 +1,174 @@ + + + + + + + +Free Pharmaceutical Company Template- Download HTML Website Templates + + + + + + + + + + + + + + + + + +
+
+

Pharmaceutist

+

Freedesignertemplates.com has a wide collection of HTML web design templates.

+

View More

+
+ +
+ + + <%if(request.getAttribute("wrong")!=null) + { + out.print("
"); + out.print(""+request.getAttribute("wrong")+""); + + out.print("
"); + } + + %> + + + + + +
Customer ID:
+ +
+ + + +
+ +

Drug Store

+

Anyone can use these HTML templates just by replacing the content to the pre-existing site designs.

+

View More

+
+ +

Tablets

+

This high quality free pharmaceutical company template is built using XHTML and CSS..

+

View More

+
+ + +
+ + + + + +
+ +

Welcome to Pharmaceutical Company Template

+

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.


+ +

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.

+
+
+ + + + + + + + + + + + + + + + + + + + + + + diff --git a/khushdeep/WebContent/Deletecustomer1.jsp b/khushdeep/WebContent/Deletecustomer1.jsp new file mode 100644 index 0000000..af48fb6 --- /dev/null +++ b/khushdeep/WebContent/Deletecustomer1.jsp @@ -0,0 +1,222 @@ + + + + + + + +Free Pharmaceutical Company Template- Download HTML Website Templates + + + + + +Global Banking .. + + + + + + + + + + + + +
+
+

Pharmaceutist

+

Freedesignertemplates.com has a wide collection of HTML web design templates.

+

View More

+
+ <%-- --%> + + <% +%> +
<% + 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"); + %> + + <% + + } + + + } catch (SQLException e) { + e.printStackTrace(); + } + + }else{ + out.println("your given id is wrong"); + request.setAttribute("wrong","your given id is wrong"); + %> + + <% + } + + %>
<% +%> + +<%@ page import="java.sql.*"%> +<%@ page import="java.io.*" %> +<%@ page import="javax.servlet.*"%> +<%@ page import="com.javatpoint.*" %> + + +
+ +

Drug Store

+

Anyone can use these HTML templates just by replacing the content to the pre-existing site designs.

+

View More

+
+ +

Tablets

+

This high quality free pharmaceutical company template is built using XHTML and CSS..

+

View More

+
+ + +
+ + + + + +
+ +

Welcome to Pharmaceutical Company

+

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.


+ +

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.

+
+
+ + + + + + + + + + + + + + + + + + + + + + + diff --git a/khushdeep/WebContent/Deleteorders.jsp b/khushdeep/WebContent/Deleteorders.jsp new file mode 100644 index 0000000..80c5ce4 --- /dev/null +++ b/khushdeep/WebContent/Deleteorders.jsp @@ -0,0 +1,170 @@ + + + + + +Free Pharmaceutical Company Template- Download HTML Website Templates + + + + + + + + + + + + + + + +
+
+

Pharmaceutist

+

Freedesignertemplates.com has a wide collection of HTML web design templates.

+

View More

+
+ +
+ + + <%if(request.getAttribute("wrong")!=null) + { + out.print("
"); + out.print(""+request.getAttribute("wrong")+""); + + out.print("
"); + } + + %> + + + + + +
Customer ID:
+ +
+ + + +
+ +

Drug Store

+

Anyone can use these HTML templates just by replacing the content to the pre-existing site designs.

+

View More

+
+ +

Tablets

+

This high quality free pharmaceutical company template is built using XHTML and CSS..

+

View More

+
+ + +
+ + + + + +
+ +

Welcome to Pharmaceutical Company Template

+

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.


+ +

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.

+
+
+ + + + + + + + + + + + + + + + + + + + + + + diff --git a/khushdeep/WebContent/Deleteordersorgi.jsp b/khushdeep/WebContent/Deleteordersorgi.jsp new file mode 100644 index 0000000..312eb0c --- /dev/null +++ b/khushdeep/WebContent/Deleteordersorgi.jsp @@ -0,0 +1,222 @@ + + + + + + + +Free Pharmaceutical Company Template- Download HTML Website Templates + + + + + +Global Banking .. + + + + + + + + + + + + +
+
+

Pharmaceutist

+

Freedesignertemplates.com has a wide collection of HTML web design templates.

+

View More

+
+ <%-- --%> + + <% +%> +
<% + String ph=request.getParameter("custid"); + + double id=Double.parseDouble(ph); + + Connection con=GetCon.getCon(); + + + boolean status=verifyLoginforcustadmin.checkLogin(id); + if(status==true){ + + try { + PreparedStatement ps=con.prepareStatement("delete from neworder4 where id = '"+id+"' "); + + ResultSet rs=ps.executeQuery(); + + if(rs.next()){ + out.print("your Order has been deleted"); + request.setAttribute("order","your Order has been deleted"); + %> + + <% + + } + + + } catch (SQLException e) { + e.printStackTrace(); + } + + }else{ + out.println("your given id is wrong"); + request.setAttribute("wrong","your given id is wrong"); + %> + + <% + } + + %>
<% +%> + +<%@ page import="java.sql.*"%> +<%@ page import="java.io.*" %> +<%@ page import="javax.servlet.*"%> +<%@ page import="com.javatpoint.*" %> + + +
+ +

Drug Store

+

Anyone can use these HTML templates just by replacing the content to the pre-existing site designs.

+

View More

+
+ +

Tablets

+

This high quality free pharmaceutical company template is built using XHTML and CSS..

+

View More

+
+ + +
+ + + + + +
+ +

Welcome to Pharmaceutical Company

+

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.


+ +

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.

+
+
+ + + + + + + + + + + + + + + + + + + + + + + diff --git a/khushdeep/WebContent/META-INF/MANIFEST.MF b/khushdeep/WebContent/META-INF/MANIFEST.MF new file mode 100644 index 0000000..5e94951 --- /dev/null +++ b/khushdeep/WebContent/META-INF/MANIFEST.MF @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +Class-Path: + diff --git a/khushdeep/WebContent/Register.jsp b/khushdeep/WebContent/Register.jsp new file mode 100644 index 0000000..8776f6f --- /dev/null +++ b/khushdeep/WebContent/Register.jsp @@ -0,0 +1,261 @@ + + + + + + + +Free Pharmaceutical Company Template- Download HTML Website Templates + + + + + + + + + + + + + + + + + +
+
+

Pharmaceutist

+

Freedesignertemplates.com has a wide collection of HTML web design templates.

+

View More

+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + +
USER NAME:
PASSWORD:
RE-PASSWORD:
DISTRIBUTER NAME:
ADDRESS:
CITY NAME:
STATE NAME:
Country Name :
Region :
PHONE:
EMAIL:
+ +
+
+ + +
+ +

Drug Store

+

Anyone can use these HTML templates just by replacing the content to the pre-existing site designs.

+

View More

+
+ +

Tablets

+

This high quality free pharmaceutical company template is built using XHTML and CSS..

+

View More

+
+ + +
+ + + + + +
+ +

Welcome to Pharmaceutical Company Template

+

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.


+ +

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.

+
+
+ + + + + + + + + + + + + + + + + + + + + + + diff --git a/khushdeep/WebContent/Updateorderprocess.jsp b/khushdeep/WebContent/Updateorderprocess.jsp new file mode 100644 index 0000000..a34e298 --- /dev/null +++ b/khushdeep/WebContent/Updateorderprocess.jsp @@ -0,0 +1,267 @@ + + + + + + + +Free Pharmaceutical Company Template- Download HTML Website Templates + + + + + + +Global Banking .. + + + + + + + + + + + + +
+
+

Pharmaceutist

+

Freedesignertemplates.com has a wide collection of HTML web design templates.

+

View More

+
+
+ + <% +%> +<% + + String ph2=request.getParameter("custid"); + double custid=Double.parseDouble(ph2); + + session.setAttribute("custid",custid); + + + %>
<% +%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Product Code : +
Product Name :
Tax :
Min Qty to Order :
Ordering Qty :
Discount :
Net cost:
Ammount:
ModeofPayment: Cash D.D Check
+ +
+
+ + +<%@ page import="java.sql.*"%> +<%@ page import="java.io.*" %> +<%@ page import="javax.servlet.*"%> +<%@ page import="com.javatpoint.*" %> + + +
+ +

Drug Store

+

Anyone can use these HTML templates just by replacing the content to the pre-existing site designs.

+

View More

+
+ +

Tablets

+

This high quality free pharmaceutical company template is built using XHTML and CSS..

+

View More

+
+ + +
+ + + + + +
+ +

Welcome to Pharmaceutical Company

+

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.


+ +

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.

+
+
+ + + + + + + + + + + + + + + + + + + + + + + diff --git a/khushdeep/WebContent/Updateorderprocess1.jsp b/khushdeep/WebContent/Updateorderprocess1.jsp new file mode 100644 index 0000000..0df71f3 --- /dev/null +++ b/khushdeep/WebContent/Updateorderprocess1.jsp @@ -0,0 +1,269 @@ + + + + + + + +Free Pharmaceutical Company Template- Download HTML Website Templates + + + + + +Global Banking .. + + + + + + + + + + + + +
+
+

Pharmaceutist

+

Freedesignertemplates.com has a wide collection of HTML web design templates.

+

View More

+
+ + + <% +%> +<% + double custid=(Double)session.getAttribute("custid"); + + + + //int a=Double.parseDouble(request.getAttribute("custid")); + + + + String ProdCode=request.getParameter("ProdCode"); + String productname=request.getParameter("productname"); + + String tx=request.getParameter("tax"); + double tax=Double.parseDouble(tx); + + String min=request.getParameter("minq"); + double minq=Double.parseDouble(min); + + String order=request.getParameter("orderq"); + double orderq=Double.parseDouble(order); + + String ds=request.getParameter("discount"); + double discount=Double.parseDouble(ds); + + String nst=request.getParameter("netcost"); + double netcost=Double.parseDouble(nst); + + String amoun=request.getParameter("amount"); + double amount=Double.parseDouble(amoun); + + String paymode=request.getParameter("r1"); + + boolean status=verifyLoginforcustadmin.checkLogin(custid); + + if(status==true){ + + try + { + Connection con=GetCon.getCon(); + PreparedStatement ps=con.prepareStatement("update neworder4 set ProdCode=?,productname=?,tax=?,minq=?,orderq=?,discount=?,netcost=?,amount=?,paymode=? where id =?"); + //int custid=(Integer)custid; + ps.setDouble(10,custid); + ps.setString(1,ProdCode); + ps.setString(2,productname); + ps.setDouble(3,tax); + ps.setDouble(4,minq); + ps.setDouble(5,orderq); + ps.setDouble(6,discount); + ps.setDouble(7,netcost); + ps.setDouble(8,amount); + ps.setString(9,paymode); + ResultSet rs=ps.executeQuery(); + + if(rs.next()){ + + out.print("order has been updated"); + request.setAttribute("order","order has been updated"); + %> + + <% + + } + + /* else{ + + out.print("sorry try later"); + + %> + + <% + + }*/ + } catch (SQLException e) { + e.printStackTrace(); + } + }else{ + out.println("your given id is wrong"); + request.setAttribute("wrong","your given id is wrong"); + %> + + <% + } + + %>
<% +%> + + +<%@ page import="java.sql.*"%> +<%@ page import="java.io.*" %> +<%@ page import="javax.servlet.*"%> +<%@ page import="com.javatpoint.*" %> + + + + +
+ +

Drug Store

+

Anyone can use these HTML templates just by replacing the content to the pre-existing site designs.

+

View More

+
+ +

Tablets

+

This high quality free pharmaceutical company template is built using XHTML and CSS..

+

View More

+
+ + +
+ + + + + +
+ +

Welcome to Pharmaceutical Company Template

+

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.


+ +

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.

+
+
+ + + + + + + + + + + + + + + + + + + + + + + diff --git a/khushdeep/WebContent/Updateorders.jsp b/khushdeep/WebContent/Updateorders.jsp new file mode 100644 index 0000000..82285cb --- /dev/null +++ b/khushdeep/WebContent/Updateorders.jsp @@ -0,0 +1,171 @@ + + + + + + + +Free Pharmaceutical Company Template- Download HTML Website Templates + + + + + + + + + + + + + + + + +
+
+

Pharmaceutist

+

Freedesignertemplates.com has a wide collection of HTML web design templates.

+

View More

+
+ +
+ + <%if(request.getAttribute("wrong")!=null) + { + out.print("
"); + out.print(""+request.getAttribute("wrong")+""); + + out.print("
"); + } + + %> + + + + +
Customer ID:
+ +
+ + + +
+ +

Drug Store

+

Anyone can use these HTML templates just by replacing the content to the pre-existing site designs.

+

View More

+
+ +

Tablets

+

This high quality free pharmaceutical company template is built using XHTML and CSS..

+

View More

+
+ + +
+ + + + + +
+ +

Welcome to Pharmaceutical Company Template

+

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.


+ +

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.

+
+
+ + + + + + + + + + + + + + + + + + + + + + + diff --git a/khushdeep/WebContent/WEB-INF/lib/ojdbc14.jar b/khushdeep/WebContent/WEB-INF/lib/ojdbc14.jar new file mode 100644 index 0000000..0aa1b51 Binary files /dev/null and b/khushdeep/WebContent/WEB-INF/lib/ojdbc14.jar differ diff --git a/khushdeep/WebContent/WEB-INF/web.xml b/khushdeep/WebContent/WEB-INF/web.xml new file mode 100644 index 0000000..9bef9c1 --- /dev/null +++ b/khushdeep/WebContent/WEB-INF/web.xml @@ -0,0 +1,87 @@ + + + + + index.php + + + + This is the description of my J2EE component + This is the display name of my J2EE component + CreateServlet + com.javatpoint.CreateServlet + + + CreateServlet + /CreateServlet + + + + This is the description of my J2EE component + This is the display name of my J2EE component + registereduserServlet + com.javatpoint.registereduserServlet + + + This is the description of my J2EE component + This is the display name of my J2EE component + verifyLogin + verifyLogin + + + This is the description of my J2EE component + This is the display name of my J2EE component + VerifyLogin1 + com.javatpoint.VerifyLogin1 + + + This is the description of my J2EE component + This is the display name of my J2EE component + verifyLogin1 + com.javatpoint.verifyLogin1 + + + This is the description of my J2EE component + This is the display name of my J2EE component + GetCon + GetCon + + + + + + + + + registereduserServlet + /go + + + verifyLogin1 + /servlet/verifyLogin1 + + + VerifyLogin1 + /servlet/VerifyLogin1 + + + verifyLogin1 + /servlet/verifyLogin1 + + + GetCon + /servlet/GetCon + + + + com.javatpoint.MyListener + + + + + + diff --git a/khushdeep/WebContent/about.jsp b/khushdeep/WebContent/about.jsp new file mode 100644 index 0000000..e4682ca --- /dev/null +++ b/khushdeep/WebContent/about.jsp @@ -0,0 +1,78 @@ + + + + + + +About Us - OUR-PHARMACY, New Delhi + + + + + + + +
+ + + + + + + + + +
Click this image to go back homepage
+


+ OUR-PHARMACY, c.p.

+

+

OUR-PHARMACY c.p. is one of the most prestigious PHARMACYs in India. Founded as a Public PHARMACY in 1972 in New Delhi, it is a private institution run by the Delhi Public PHARMACY Society.

+

OUR-PHARMACY, c.p. is affiliated to the Central Board of PHARMACY (CBB), which is the largest educational board in the country. It is recognized by the Department of Education, Govt. of NCT Delhi and the Ministry of HRD, Govt. of India. Over 5000 PHARMACYs in India, with over 80,000 students, are members of the Board.

+

The PHARMACY is also affiliated to the Indian Public PHARMACYs' Conference (IPSC), and the National Progressive PHARMACYs' Conference (NPSC). The members of these organisations include some of the premier PHARMACYs in the country.

+

Life at DPSRKP centres on a shared commitment to academic excellence, intellectual growth, art, athletics, high standards of ethical awareness, sportsmanship, and community service. The PHARMACY's traditions and accessibility to a broad curriculum add depth to each student’s life.
+ The PHARMACY upholds the founders' commitment to excellence in all fields, with emphasis on its motto Service Before Self.
+

+

PHARMACY Profile

+

OUR-PHARMACY, c.p. is a co-educational day-cum-boarding PHARMACY, with approximately 9,500 coustemer on its rolls. These children, in the Junior and Senior branches, study in the three different campuses at East of Kailash, Vasant Vihar and c.p.

+

The PHARMACY is among the most distinguished members of the Ravi Public PHARMACY, c.p.. It is a path breaker in the pursuit of excellence. Its endeavour of integrating quality with quantity is reflected in the pivotal role it has played in the setting up of DPS Vasant Kunj, DPS Faridabad and DPS Manali at the national level. It has also promoted three PHARMACYs abroad in Kuwait, Nepal and Indonesia. As their Linking PHARMACY it also co-ordinates their activities.

+

The PHARMACY has also extended its expertise further and in collaboration with the Government of Haryana, has taken up 3 PHARMACYs in the under-privileged area of Mewat, to augment and enhance their standards and make them more conducive to teaming.

+

The PHARMACY considers education to be a life-long process which should have a strong foundation. The goal of the PHARMACY is to inculcate in the coustemer a love for learning and a desire to excel at every level. The PHARMACY also aims at equipping the coustemer with the intellectual and practical skills that are necessary to meet the challenges in the future.

+

To sum up, the mission of OUR-PHARMACY, c.p. "to open doors and open minds" and prepare the ground for the future of the nation.

+

Our Culture

+

In the portals of OUR-PHARMACY, c.p., c.p. coustemer discover their own talents, and get an opportunity to develop them to the fullest. The PHARMACY provides an invigorating and competitive atmosphere, created by excellent facilities and guidance provided by a highly qualified and dedicated faculty.

+

The values, which are ingrained help to promote confidence, direction, and critical thinking skills, leading to the development of well-adjusted, adaptable and integrated personalities. In other words, OUR-PHARMACY, c.p. offers comprehensive and holistic education.

+

Besides being committed to academic excellence and providing education for all round development, another special characteristic of DPS R.K. Puram is the appreciation of the worth of the each student. The PHARMACY is equally committed to the under-represented and less-privileged segments of the population, such as gifted applicants whose parents could not attend PHARMACY, and children with high potential facing difficult financial circumstances.

+

A major landmark development has been the inclusion of the physically and mentally handicapped children into the mainstream of PHARMACY life. This contributes to a strong sense of community life, so characteristic of the PHARMACY. In other words, children belonging to every strata of society are given the opportunity to study here. The PHARMACY, does not in any way, discriminate on the basis of race, colour, religion, sex, caste or creed, in the implementation of its admission policy.

+

These qualities have placed OUR-PHARMACY, c.p. on the forefront. There has been a continuity of purpose, underlying the change and growth of the PHARMACY. Over the years, OUR-PHARMACY, c.p. has steadily reflected a spirit of innovation in response to need, and has broadened its educational mission, by creating an academic environment that fosters close association and the exchange of ideas with some of the top PHARMACYs in the nation and the world.

+

Its membership with the IPSC has brought it into regular interaction with PHARMACYs of national standing such as Mayo College, Ajmer; Scindia PHARMACY, Gwalior; The Doon PHARMACY, Dehradun; Bishop Cotton, Simla Hills; St. Xavier's and La-Martiniere at Calcutta; which has further inculcated a healthy spirit of competition and strong bonds of brotherhood, conducive to national integration.

+

All the academic programs and activities at OUR-PHARMACY, c.p. work towards one purpose - to help coustemer develop lives of significance for themselves and for others, true to the traditions of the PHARMACY Motto "Service Before Self".

+
+ +   + + + +
+ + + + + + + + + + +
© OUR-PHARMACY, c.p., New Delhi. All Rights Reserved.
+
+ + + + +
+ + + + + \ No newline at end of file diff --git a/khushdeep/WebContent/admin.jsp b/khushdeep/WebContent/admin.jsp new file mode 100644 index 0000000..d8d708f --- /dev/null +++ b/khushdeep/WebContent/admin.jsp @@ -0,0 +1,195 @@ + + + + + + + +Free Pharmaceutical Company Template- Download HTML Website Templates + + + + + +Global Banking .. + + + + + + + + + + + + +
+
+

Pharmaceutist

+

Freedesignertemplates.com has a wide collection of HTML web design templates.

+

View More

+
+ + <% out.print("WELCOME TO ADMINISTRATION LOGIN"); + %> + +
+ + <%if(request.getAttribute("aa")!=null) + { + out.print("
"); + out.print(""+request.getAttribute("aa")+""); + + out.print("
"); + } + + %> + + + + + + + +
LOGIN NAME:
PASSWORD:
+ + +
+ + + + +
+ +

Drug Store

+

Anyone can use these HTML templates just by replacing the content to the pre-existing site designs.

+

View More

+
+ +

Tablets

+

This high quality free pharmaceutical company template is built using XHTML and CSS..

+

View More

+
+ + +
+ + + + + +
+ +

Welcome to Pharmaceutical Company

+

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.


+ +

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.

+
+
+ + + + + + + + + + + + + + + + + + + + + + + diff --git a/khushdeep/WebContent/adminprocess.jsp b/khushdeep/WebContent/adminprocess.jsp new file mode 100644 index 0000000..2243656 --- /dev/null +++ b/khushdeep/WebContent/adminprocess.jsp @@ -0,0 +1,224 @@ + + + + + + + +Free Pharmaceutical Company Template- Download HTML Website Templates + + + + + +Global Banking .. + + + + + + + +
+
+

Pharmaceutist

+

Freedesignertemplates.com has a wide collection of HTML web design templates.

+

View More

+
+ + <%-- --%> + + <% +%> +
<% + + String username=request.getParameter("username"); + String password=request.getParameter("password"); + boolean status=verifyLogin2.checkLogin(username,password); + + try { + if(status==true){ + out.print("Welcome " + username); + //out.print("
"); + out.println("

Go To customer Administration
"); + out.println("
Go To Orders Administration
"); + // out.print("
"); + + Connection con=GetCon.getCon(); + PreparedStatement ps=con.prepareStatement(""); + + } + else{ + out.print("Please check your username and Password"); + request.setAttribute("aa","Please check your username and Password"); + %> + + <% + } + }catch (SQLException e) { + e.printStackTrace(); + } + + //} + + //} + %>
<% +%> + + + <%-- --%> + + +<%@ page import="java.sql.*"%> +<%@ page import="java.io.*" %> +<%@ page import="javax.servlet.*"%> +<%@ page import="com.javatpoint.*" %> + + <%----%> + + + + + + +

Drug Store

+

Anyone can use these HTML templates just by replacing the content to the pre-existing site designs.

+

View More

+ + + +

Tablets

+

This high quality free pharmaceutical company template is built using XHTML and CSS..

+

View More

+ + + + + + + +
+ + + + + +
+ +

Welcome to Pharmaceutical Company Template

+

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.


+ +

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.

+
+
+ + + + + + + + + + + + + + + + + + + + + + + diff --git a/khushdeep/WebContent/contactus.jsp b/khushdeep/WebContent/contactus.jsp new file mode 100644 index 0000000..405e666 --- /dev/null +++ b/khushdeep/WebContent/contactus.jsp @@ -0,0 +1,99 @@ + + + + +Free Pharmaceutical Company - Download + + + + + + + + + + + + + + + + + +
+
+

Pharmaceutist

+

Freedesignertemplates.com has a wide collection of HTML web design templates.

+

View More

+
+ +
+ + + + +
OUR PHONE NUMBER:011-88888
OUR PHONE NUMBER:011-99999
+
+ +
+ +

Tablets

+

This high quality free pharmaceutical company template is built using XHTML and CSS..

+

View More

+
+ +

Medical Shop

+

With each downloaded template you get HTML page, respective images and CSS file.

+

View More

+
+ + +
+ + + + + +
+ +

Welcome to Pharmaceutical Company

+

This is free Pharmaceutical Company 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.


+ +

There are many other 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.

+
+
+ + + + diff --git a/khushdeep/WebContent/customer.jsp b/khushdeep/WebContent/customer.jsp new file mode 100644 index 0000000..e8f8c66 --- /dev/null +++ b/khushdeep/WebContent/customer.jsp @@ -0,0 +1,199 @@ + + + + + + + +Free Pharmaceutical Company Template- Download HTML Website Templates + + + + + +Global Banking .. + + + + + + + + + + + + +
+
+

Pharmaceutist

+

Freedesignertemplates.com has a wide collection of HTML web design templates.

+

View More

+
+
+ + + <%if(request.getAttribute("welcome")!=null) + { + out.print("
"); + out.print(""+request.getAttribute("welcome")); + + out.print("
"); + } + + %> + <%if(request.getAttribute("check")!=null) + { + out.print("
"); + out.print(""+request.getAttribute("check")); + + out.print("
"); + } + + %> +
+ + + + + +
LOGIN NAME:
PASSWORD:
+ + +
New User
+ + + + +
+ +

Drug Store

+

Anyone can use these HTML templates just by replacing the content to the pre-existing site designs.

+

View More

+
+ +

Tablets

+

This high quality free pharmaceutical company template is built using XHTML and CSS..

+

View More

+
+ + +
+ + + + + +
+ +

Welcome to Pharmaceutical Company Template

+

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.


+ +

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.

+
+
+ + + + + + + + + + + + + + + + + + + + + + + diff --git a/khushdeep/WebContent/customeradmin.jsp b/khushdeep/WebContent/customeradmin.jsp new file mode 100644 index 0000000..c52812a --- /dev/null +++ b/khushdeep/WebContent/customeradmin.jsp @@ -0,0 +1,237 @@ + + + + + + + +Free Pharmaceutical Company Template- Download HTML Website Templates + + + + + +Global Banking .. + + + + + + + +<%if(request.getAttribute("deleted")!=null) + { + out.print("
"); + out.print("
"); + out.print(""+request.getAttribute("deleted")); + + out.print("
"); + out.print("
"); + } + + %> + + +
+
+

Pharmaceutist

+

Freedesignertemplates.com has a wide collection of HTML web design templates.

+

View More

+
+ <%-- --%> + + <% +%> +
<% + + try { + Connection con=GetCon.getCon(); + PreparedStatement ps=con.prepareStatement("Select * from newcust4"); + //ps.setString(1,uname); + ResultSet rs=ps.executeQuery(); + //out.print("
"); + + + out.print(""); + + //out.print("
Delete
"); + out.print(""); + while(rs.next()){ + int id=rs.getInt(1); + session.setAttribute("id",id); + out.print(""); + out.print(""); + out.print(""); + out.print(""); + out.print(""); + out.print(""); + out.print(""); + //out.print(""); + //out.print(""); + out.print(""); + + + } + //out.print("
idusernamepasswordadderessphoneEmail
" + rs.getString(1) + "" + rs.getString(2) + "" + rs.getString(3) + "" + rs.getString(6) + "" + rs.getString(11) + "" + rs.getString(12) + "" + rs.getString(4) + "" DeleteServlet.Del`"
"); + //out.print(""); + + //out.print("
"); + + } catch (SQLException e) { + e.printStackTrace(); + } + + %>
<% +%> + +<%@ page import="java.sql.*"%> +<%@ page import="java.io.*" %> +<%@ page import="javax.servlet.*"%> +<%@ page import="com.javatpoint.*" %> + + + + +

Drug Store

+

Anyone can use these HTML templates just by replacing the content to the pre-existing site designs.

+

View More

+ + + <%-- + +

Tablets

+

This high quality free pharmaceutical company template is built using XHTML and CSS..

+

View More

+ --%> + + + + + + +
+ + + + + +
+ +

Welcome to Pharmaceutical Company

+

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.


+ +

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.

+
+
+ + + + + + + + + + + + + + + + + + + + + + + diff --git a/khushdeep/WebContent/disselectord.jsp b/khushdeep/WebContent/disselectord.jsp new file mode 100644 index 0000000..f6f2c4d --- /dev/null +++ b/khushdeep/WebContent/disselectord.jsp @@ -0,0 +1,172 @@ + + + + + + + +Free Pharmaceutical Company Template- Download HTML Website Templates + + + + + + + + + + + + + + + +
+
+

Pharmaceutist

+

Freedesignertemplates.com has a wide collection of HTML web design templates.

+

View More

+
+ +
+ + + <%if(request.getAttribute("wrong")!=null) + { + out.print("
"); + out.print(""+request.getAttribute("wrong")); + + out.print("
"); + } + + %> + + + + + +
Customer ID:
+ +
+ + + +
+ +

Drug Store

+

Anyone can use these HTML templates just by replacing the content to the pre-existing site designs.

+

View More

+
+ +

Tablets

+

This high quality free pharmaceutical company template is built using XHTML and CSS..

+

View More

+
+ + +
+ + + + + +
+ +

Welcome to Pharmaceutical Company Template

+

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.


+ +

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.

+
+
+ + + + + + + + + + + + + + + + + + + + + + + diff --git a/khushdeep/WebContent/disselectord1.jsp b/khushdeep/WebContent/disselectord1.jsp new file mode 100644 index 0000000..be06d84 --- /dev/null +++ b/khushdeep/WebContent/disselectord1.jsp @@ -0,0 +1,243 @@ + + + + + + + +Free Pharmaceutical Company Template- Download HTML Website Templates + + + + + +Global Banking .. + + + + + + + + + + + + +
+
+

Pharmaceutist

+

Freedesignertemplates.com has a wide collection of HTML web design templates.

+

View More

+
+ <% +%> +<% + + String ph2=request.getParameter("custid"); + double custid=Double.parseDouble(ph2); + + session.setAttribute("custid",custid); + + + %>
<% + +%><% + double custid1=(Double)session.getAttribute("custid"); + + +%> +
<% + + try { + Connection con=GetCon.getCon(); + PreparedStatement ps=con.prepareStatement("Select * from neworder4 where id = '"+custid1+"' "); + + ResultSet rs=ps.executeQuery(); + + out.print(""); + //while(rs.next()){ + if(rs.next()){ + + out.print(""); + out.print("Your order has been selected"); + + out.print(""); + out.print(""); + out.print(""); + out.print(""); + out.print(""); + //out.print(""); + out.print(""); + out.print(""); + + + + out.print(""); + + //if(rs.next()){ + } else{ + out.print("your given id is wrong"); + request.setAttribute("wrong","your given id is wrong"); + %> + + <% + + } + + //} + + } catch (SQLException e) { + e.printStackTrace(); + } + + %>
idprodcodeproductnameminquantityorderqueueNetcostAmount
" + rs.getString(1) + "" + rs.getString(2) + "" + rs.getString(3) + "" + rs.getString(5) + "" + rs.getString(6) + "" + rs.getString(7) + "" + rs.getString(8) + "" + rs.getString(9) + "
<% +%> + + +<%@ page import="java.sql.*"%> +<%@ page import="java.io.*" %> +<%@ page import="javax.servlet.*"%> +<%@ page import="com.javatpoint.*" %> + + + + +
+ +

Drug Store

+

Anyone can use these HTML templates just by replacing the content to the pre-existing site designs.

+

View More

+
+ +

Tablets

+

This high quality free pharmaceutical company template is built using XHTML and CSS..

+

View More

+
+ + +
+ + + + + +
+ +

Welcome to Pharmaceutical Company Template

+

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.


+ +

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.

+
+
+ + + + + + + + + + + + + + + + + + + + + + + diff --git a/khushdeep/WebContent/distributer.jsp b/khushdeep/WebContent/distributer.jsp new file mode 100644 index 0000000..de08a13 --- /dev/null +++ b/khushdeep/WebContent/distributer.jsp @@ -0,0 +1,210 @@ + + + + + + + +Free Pharmaceutical Company Template- Download HTML Website Templates + + + + + +Global Banking .. + + + + + + + + + + + + + +
+
+

Pharmaceutist

+

Freedesignertemplates.com has a wide collection of HTML web design templates.

+

View More

+
+ + + <% +%> +<% + + String username=request.getParameter("username"); + String password=request.getParameter("password"); + boolean status=verifyLogin3.checkLogin(username,password); + + try { + if(status==true){ + out.print("Welcome " + username); + + out.println("

Click to see orders " ); + + Connection con=GetCon.getCon(); + PreparedStatement ps=con.prepareStatement(""); + + } + else{ + out.print("Please check your username and Password"); + request.setAttribute("distributer","Please check your username and Password"); + %> + + <% + } + }catch (SQLException e) { + e.printStackTrace(); + } + + + %>
<% +%> + + + + +<%@ page import="java.sql.*"%> +<%@ page import="java.io.*" %> +<%@ page import="javax.servlet.*"%> +<%@ page import="com.javatpoint.*" %> + + +
+ +

Drug Store

+

Anyone can use these HTML templates just by replacing the content to the pre-existing site designs.

+

View More

+
+ + +
+ + + + + +
+ +

Welcome to Pharmaceutical Company Template

+

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.


+ +

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.

+
+
+ + + + + + + + + + + + + + + + + + + + + + + diff --git a/khushdeep/WebContent/distributerlogin.jsp b/khushdeep/WebContent/distributerlogin.jsp new file mode 100644 index 0000000..a767cbd --- /dev/null +++ b/khushdeep/WebContent/distributerlogin.jsp @@ -0,0 +1,195 @@ + + + + + + + +Free Pharmaceutical Company Template- Download HTML Website Templates + + + + + +Global Banking .. + + + + + + + + + + + + +
+
+

Pharmaceutist

+

Freedesignertemplates.com has a wide collection of HTML web design templates.

+

View More

+
+ + <% out.print("WELCOME TO DISTRIBUTER LOGIN"); + %> + +
+ + <%if(request.getAttribute("distributer")!=null) + { + out.print("
"); + out.print(""+request.getAttribute("distributer")); + + out.print("
"); + } + + %> + + + + + + + +
LOGIN NAME:
PASSWORD:
+ + +
+ + + + +
+ +

Drug Store

+

Anyone can use these HTML templates just by replacing the content to the pre-existing site designs.

+

View More

+
+ +

Tablets

+

This high quality free pharmaceutical company template is built using XHTML and CSS..

+

View More

+
+ + +
+ + + + + +
+ +

Welcome to Pharmaceutical Company

+

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.


+ +

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.

+
+
+ + + + + + + + + + + + + + + + + + + + + + + diff --git a/khushdeep/WebContent/distributerorder.jsp b/khushdeep/WebContent/distributerorder.jsp new file mode 100644 index 0000000..d51a82a --- /dev/null +++ b/khushdeep/WebContent/distributerorder.jsp @@ -0,0 +1,235 @@ + + + + + + + +Free Pharmaceutical Company Template- Download HTML Website Templates + + + + + +Global Banking .. + + + + + + +<% + %> +<%if(request.getAttribute("order")!=null) + { + out.print(""); + out.print(""+request.getAttribute("order")); + + out.print(""); + } + + %> + + +
+
+

Pharmaceutist

+

Freedesignertemplates.com has a wide collection of HTML web design templates.

+

View More

+
+ <%-- --%> + + <% +%> +
<% + out.print("Click to select your order"); + + try { + Connection con=GetCon.getCon(); + PreparedStatement ps=con.prepareStatement("Select * from neworder4"); + //ps.setString(1,uname); + ResultSet rs=ps.executeQuery(); + + //out.print(""); + + out.print(""); + while(rs.next()){ + int id=rs.getInt(1); + session.setAttribute("id",id); + out.print(""); + out.print(""); + out.print(""); + out.print(""); + out.print(""); + out.print(""); + //out.print(""); + out.print(""); + out.print(""); + + //out.print(""); + + + out.print(""); + } + + //out.print("
Click to select your order
idprodcodeproductnameminquantityorderqueueNetcostAmount
" + rs.getString(1) + "" + rs.getString(2) + "" + rs.getString(3) + "" + rs.getString(5) + "" + rs.getString(6) + "" + rs.getString(7) + "" + rs.getString(8) + "" + rs.getString(9) + "" DeleteServlet.Del`"
"); + //out.print(""); + + //out.print("
"); + } catch (SQLException e) { + e.printStackTrace(); + } + + %>
<% +%> + +<%@ page import="java.sql.*"%> +<%@ page import="java.io.*" %> +<%@ page import="javax.servlet.*"%> +<%@ page import="com.javatpoint.*" %> + + + <%-- + +

Drug Store

+

Anyone can use these HTML templates just by replacing the content to the pre-existing site designs.

+

View More

+ --%> + + +

Tablets

+

This high quality free pharmaceutical company template is built using XHTML and CSS..

+

View More

+ + + + + + + +
+ + + + + +
+ +

Welcome to Pharmaceutical Company

+

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.


+ +

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.

+
+
+ + + + + + + + + + + + + + + + + + + + + + + diff --git a/khushdeep/WebContent/images/Thumbs.db b/khushdeep/WebContent/images/Thumbs.db new file mode 100644 index 0000000..6026c28 Binary files /dev/null and b/khushdeep/WebContent/images/Thumbs.db differ diff --git a/khushdeep/WebContent/images/hioxindia-pharmacy_02.jpg b/khushdeep/WebContent/images/hioxindia-pharmacy_02.jpg new file mode 100644 index 0000000..baaedf8 Binary files /dev/null and b/khushdeep/WebContent/images/hioxindia-pharmacy_02.jpg differ diff --git a/khushdeep/WebContent/images/hioxindia-pharmacy_03.jpg b/khushdeep/WebContent/images/hioxindia-pharmacy_03.jpg new file mode 100644 index 0000000..f5fc2a7 Binary files /dev/null and b/khushdeep/WebContent/images/hioxindia-pharmacy_03.jpg differ diff --git a/khushdeep/WebContent/images/hioxindia-pharmacy_04.jpg b/khushdeep/WebContent/images/hioxindia-pharmacy_04.jpg new file mode 100644 index 0000000..35c7e4e Binary files /dev/null and b/khushdeep/WebContent/images/hioxindia-pharmacy_04.jpg differ diff --git a/khushdeep/WebContent/images/hioxindia-pharmacy_08.jpg b/khushdeep/WebContent/images/hioxindia-pharmacy_08.jpg new file mode 100644 index 0000000..8aaa3c4 Binary files /dev/null and b/khushdeep/WebContent/images/hioxindia-pharmacy_08.jpg differ diff --git a/khushdeep/WebContent/images/hioxindia-pharmacy_10.jpg b/khushdeep/WebContent/images/hioxindia-pharmacy_10.jpg new file mode 100644 index 0000000..76e1991 Binary files /dev/null and b/khushdeep/WebContent/images/hioxindia-pharmacy_10.jpg differ diff --git a/khushdeep/WebContent/images/hioxindia-pharmacy_12.jpg b/khushdeep/WebContent/images/hioxindia-pharmacy_12.jpg new file mode 100644 index 0000000..5dd91c6 Binary files /dev/null and b/khushdeep/WebContent/images/hioxindia-pharmacy_12.jpg differ diff --git a/khushdeep/WebContent/images/hioxindia-pharmacy_14.jpg b/khushdeep/WebContent/images/hioxindia-pharmacy_14.jpg new file mode 100644 index 0000000..726780a Binary files /dev/null and b/khushdeep/WebContent/images/hioxindia-pharmacy_14.jpg differ diff --git a/khushdeep/WebContent/images/hioxindia-pharmacy_19.jpg b/khushdeep/WebContent/images/hioxindia-pharmacy_19.jpg new file mode 100644 index 0000000..222f11c Binary files /dev/null and b/khushdeep/WebContent/images/hioxindia-pharmacy_19.jpg differ diff --git a/khushdeep/WebContent/images/phar.jpg b/khushdeep/WebContent/images/phar.jpg new file mode 100644 index 0000000..2ec09b6 Binary files /dev/null and b/khushdeep/WebContent/images/phar.jpg differ diff --git a/khushdeep/WebContent/images/pharmacy.jpg b/khushdeep/WebContent/images/pharmacy.jpg new file mode 100644 index 0000000..c62efb7 Binary files /dev/null and b/khushdeep/WebContent/images/pharmacy.jpg differ diff --git a/khushdeep/WebContent/images/pharmacy1.jpg b/khushdeep/WebContent/images/pharmacy1.jpg new file mode 100644 index 0000000..03fa343 Binary files /dev/null and b/khushdeep/WebContent/images/pharmacy1.jpg differ diff --git a/khushdeep/WebContent/images/pharmacy2.jpg b/khushdeep/WebContent/images/pharmacy2.jpg new file mode 100644 index 0000000..b228df8 --- /dev/null +++ b/khushdeep/WebContent/images/pharmacy2.jpg @@ -0,0 +1,17 @@ + Google Image Result for http://www.intermed.in/wp-content/uploads/2012/06/Pharmacy.png

Website for this image

Intermed offers the convenience of an in house pharmacy at each of our ...

intermed.in

Type:PNG

Images may be subject to copyright.

\ No newline at end of file diff --git a/khushdeep/WebContent/images/pharmacy3.jpg b/khushdeep/WebContent/images/pharmacy3.jpg new file mode 100644 index 0000000..71ffd5f --- /dev/null +++ b/khushdeep/WebContent/images/pharmacy3.jpg @@ -0,0 +1,17 @@ + Google Image Result for http://www.myproperty.co.za/images/poi_images/Pharmacy1.jpg

Website for this image

Gateway Ridge Pharmacy. view nearby properties

myproperty.co.za

Type:JPG

Images may be subject to copyright.

\ No newline at end of file diff --git a/khushdeep/WebContent/index.jsp b/khushdeep/WebContent/index.jsp new file mode 100644 index 0000000..b662456 --- /dev/null +++ b/khushdeep/WebContent/index.jsp @@ -0,0 +1,106 @@ + + + + +Free Pharmaceutical Company - Download HTML Website s + + + + + + + + +<%if(request.getAttribute("order")!=null) + { + out.print("
"); + out.print("
"); + out.print(""+request.getAttribute("order")); + + out.print("
"); + out.print("
"); + } + + %> + + + + + + + + + + +
+
+

Pharmaceutist

+

Freedesigner s.com has a wide collection of HTML web design s.

+

View More

+
+ +

Drug Store

+

Anyone can use these HTML s just by replacing the content to the pre-existing site designs.

+

View More

+
+ +

Tablets

+

This high quality free pharmaceutical company is built using XHTML and CSS..

+

View More

+
+ +

Medical Shop

+

With each downloaded you get HTML page, respective images and CSS file.

+

View More

+
+ + +
+ + + + + +
+ +

Welcome to Pharmaceutical Company

+

This is free Pharmaceutical Company for your online website, blog or web page which is under Health and Medicine category. Anyone wants good, professional, for their pharmacy, drug store, medical store then this would be the best one. This free pharmaceutical company is designed by professional designers to make your task much easier to customize it.


+ +

There are many other 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 s, pick the right one, preview and download it easily.

+
+
+ + + + diff --git a/khushdeep/WebContent/index.php b/khushdeep/WebContent/index.php new file mode 100644 index 0000000..d4c8b9a --- /dev/null +++ b/khushdeep/WebContent/index.php @@ -0,0 +1,92 @@ + + + + +Free Pharmaceutical Company - Download HTML Website s + + + + + + + + + + + + + + + +
+
+

Pharmaceutist

+

Freedesigner s.com has a wide collection of HTML web design s.

+

View More

+
+ +

Drug Store

+

Anyone can use these HTML s just by replacing the content to the pre-existing site designs.

+

View More

+
+ +

Tablets

+

This high quality free pharmaceutical company is built using XHTML and CSS..

+

View More

+
+ +

Medical Shop

+

With each downloaded you get HTML page, respective images and CSS file.

+

View More

+
+ + +
+ + + + + +
+ +

Welcome to Pharmaceutical Company

+

This is free Pharmaceutical Company for your online website, blog or web page which is under Health and Medicine category. Anyone wants good, professional, for their pharmacy, drug store, medical store then this would be the best one. This free pharmaceutical company is designed by professional designers to make your task much easier to customize it.


+ +

There are many other 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 s, pick the right one, preview and download it easily.

+
+
+ + + + diff --git a/khushdeep/WebContent/login.jsp b/khushdeep/WebContent/login.jsp new file mode 100644 index 0000000..887e683 --- /dev/null +++ b/khushdeep/WebContent/login.jsp @@ -0,0 +1,217 @@ + + + + + + + +Free Pharmaceutical Company Template- Download HTML Website Templates + + + + + +Global Banking .. + + + + + + + + + + + + +
+
+

Pharmaceutist

+

Freedesignertemplates.com has a wide collection of HTML web design templates.

+

View More

+
+ + <% +%> +<% + + String username=request.getParameter("username"); + String password=request.getParameter("password"); + boolean status=verifyLogin1.checkLogin(username,password); + + try { + if(status==true){ + out.print("Welcome " + username); + + out.println("
Click to place an order " ); + + + Connection con=GetCon.getCon(); + PreparedStatement ps=con.prepareStatement(""); + + } + else{ + out.print("Please check your username and Password"); + request.setAttribute("check","Please check your username and Password"); + %> + + <% + } + }catch (SQLException e) { + e.printStackTrace(); + } + + + %>
<% +%> + + + + +<%@ page import="java.sql.*"%> +<%@ page import="java.io.*" %> +<%@ page import="javax.servlet.*"%> +<%@ page import="com.javatpoint.*" %> + + + + + +
+ +

Drug Store

+

Anyone can use these HTML templates just by replacing the content to the pre-existing site designs.

+

View More

+
+ +

Tablets

+

This high quality free pharmaceutical company template is built using XHTML and CSS..

+

View More

+
+ + +
+ + + + + +
+ +

Welcome to Pharmaceutical Company Template

+

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.


+ +

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.

+
+
+ + + + + + + + + + + + + + + + + + + + + + + diff --git a/khushdeep/WebContent/order.jsp b/khushdeep/WebContent/order.jsp new file mode 100644 index 0000000..9e5e93e --- /dev/null +++ b/khushdeep/WebContent/order.jsp @@ -0,0 +1,236 @@ + + + + + + + +Free Pharmaceutical Company Template- Download HTML Website Templates + + + + + + + + + + + + + + + +
+
+

Pharmaceutist

+

Freedesignertemplates.com has a wide collection of HTML web design templates.

+

View More

+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Product Code : +
Product Name :
Tax :
Min Qty to Order :
Ordering Qty :
Discount :
Net cost:
Ammount:
ModeofPayment: Cash D.D Check
+ +
+
+ + +
+ +

Drug Store

+

Anyone can use these HTML templates just by replacing the content to the pre-existing site designs.

+

View More

+
+ +

Tablets

+

This high quality free pharmaceutical company template is built using XHTML and CSS..

+

View More

+
+ + +
+ + + + + +
+ +

Welcome to Pharmaceutical Company Template

+

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.


+ +

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.

+
+
+ + + + + + + + + + + + + + + + + + + + + + + diff --git a/khushdeep/WebContent/orderdetail.jsp b/khushdeep/WebContent/orderdetail.jsp new file mode 100644 index 0000000..21dc786 --- /dev/null +++ b/khushdeep/WebContent/orderdetail.jsp @@ -0,0 +1,250 @@ + + + + + + + +Free Pharmaceutical Company Template- Download HTML Website Templates + + + + + +Global Banking .. + + + + + + + + + + + + +
+
+

Pharmaceutist

+

Freedesignertemplates.com has a wide collection of HTML web design templates.

+

View More

+
+ + + <% +%> +<% + + String ProdCode=request.getParameter("ProdCode"); + String productname=request.getParameter("productname"); + + String tx=request.getParameter("tax"); + double tax=Double.parseDouble(tx); + + String min=request.getParameter("minq"); + double minq=Double.parseDouble(min); + + String order=request.getParameter("orderq"); + double orderq=Double.parseDouble(order); + + String ds=request.getParameter("discount"); + double discount=Double.parseDouble(ds); + + String nst=request.getParameter("netcost"); + double netcost=Double.parseDouble(nst); + + String amoun=request.getParameter("amount"); + double amount=Double.parseDouble(amoun); + + String paymode=request.getParameter("r1"); + + try + { + Connection con=GetCon.getCon(); + PreparedStatement ps=con.prepareStatement("insert into neworder4 values(?,?,?,?,?,?,?,?,?,?)"); + int nextvalue=GetCon.getPrimaryKey(); + ps.setInt(1,nextvalue); + // ps.setInt(1,8); + ps.setString(2,ProdCode); + ps.setString(3,productname); + ps.setDouble(4,tax); + ps.setDouble(5,minq); + ps.setDouble(6,orderq); + ps.setDouble(7,discount); + ps.setDouble(8,netcost); + ps.setDouble(9,amount); + ps.setString(10,paymode); + ResultSet rs=ps.executeQuery(); + + if(rs.next()){ + + out.print("your order has placed"); + request.setAttribute("order","your order has booked"); + %> + + <% + + } + + else{ + + out.print("sorry try later"); + + %> + + <% + + } + } catch (SQLException e) { + e.printStackTrace(); + } + + %>
<% +%> + +<%@ page import="java.sql.*"%> +<%@ page import="java.io.*" %> +<%@ page import="javax.servlet.*"%> +<%@ page import="com.javatpoint.*" %> + + + +
+ +

Drug Store

+

Anyone can use these HTML templates just by replacing the content to the pre-existing site designs.

+

View More

+
+ +

Tablets

+

This high quality free pharmaceutical company template is built using XHTML and CSS..

+

View More

+
+ + +
+ + + + + +
+ +

Welcome to Pharmaceutical Company Template

+

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.


+ +

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.

+
+
+ + + + + + + + + + + + + + + + + + + + + + + diff --git a/khushdeep/WebContent/ordersadmin.jsp b/khushdeep/WebContent/ordersadmin.jsp new file mode 100644 index 0000000..6b448a9 --- /dev/null +++ b/khushdeep/WebContent/ordersadmin.jsp @@ -0,0 +1,223 @@ + + + + + + + +Free Pharmaceutical Company Template- Download HTML Website Templates + + + + + +Global Banking .. + + + + + + + +<%if(request.getAttribute("order")!=null) + { + out.print("
"); + out.print("
"); + out.print(""+request.getAttribute("order")); + + out.print("
"); + out.print("
"); + } + + %> + + + + + + +
+
+

Pharmaceutist

+

Freedesignertemplates.com has a wide collection of HTML web design templates.

+

View More

+
+ + <% +%> +<% + + try { + Connection con=GetCon.getCon(); + PreparedStatement ps=con.prepareStatement("Select * from neworder4"); + ResultSet rs=ps.executeQuery(); + out.print(""); + out.print(""); + + out.print(""); + while(rs.next()){ + //int id=rs.getInt(1); + //session.setAttribute("id",id); + out.print(""); + out.print(""); + out.print(""); + out.print(""); + out.print(""); + out.print(""); + //out.print(""); + out.print(""); + out.print(""); + + //out.print(""); + + + out.print(""); + } + + } catch (SQLException e) { + e.printStackTrace(); + } + + %>
DeleteUpdate
idprodcodeproductnameminquantityorderqueueNetcostAmount
" + rs.getString(1) + "" + rs.getString(2) + "" + rs.getString(3) + "" + rs.getString(5) + "" + rs.getString(6) + "" + rs.getString(7) + "" + rs.getString(8) + "" + rs.getString(9) + "" DeleteServlet.Del`"
<% +%> + +<%@ page import="java.sql.*"%> +<%@ page import="java.io.*" %> +<%@ page import="javax.servlet.*"%> +<%@ page import="com.javatpoint.*" %> + + +
+ +

Tablets

+

This high quality free pharmaceutical company template is built using XHTML and CSS..

+

View More

+
+ + +
+ + + + + +
+ +

Welcome to Pharmaceutical Company

+

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.


+ +

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.

+
+
+ + + + + + + + + + + + + + + + + + + + + + + diff --git a/khushdeep/WebContent/style.css b/khushdeep/WebContent/style.css new file mode 100644 index 0000000..dc8c222 --- /dev/null +++ b/khushdeep/WebContent/style.css @@ -0,0 +1,143 @@ +@charset "utf-8"; +/* CSS Document */ + +body{ + margin:0; + color:#232323; + padding-top: 0px; + padding-right: 0; + padding-bottom: 0; + padding-left: 0; + background:#f0f3f0; + width:100%; +} +div, h1, h2, h3, h4, p, form, label, input, textarea, img, span{ + margin:0; padding:0; +} + +ul{ + margin:0; + padding:0; + list-style-type:none; + font-size:0; + line-height:0; +} + + +.spacer{ + clear:both; + font-size:0; + line-height:0; +} +h1 +{ +font:bold 14px/40px Arial, Helvetica, sans-serif; +} +p +{ +font:normal 11px/18px Arial, Helvetica, sans-serif; +padding:0 15px 0 0; +} +.more +{ +font:normal 12px/18px Arial, Helvetica, sans-serif; +color:#2e3192; +text-decoration:underline; +} +/* header */ +#header +{ +margin:0 auto; +background:url(images/hioxindia-pharmacy_02.jpg) 0 0 repeat-x; +} +#navigation +{ +margin:0 auto; +background:url(images/hioxindia-pharmacy_04.jpg) 0 0 no-repeat; +height:446px; +width:960px; +} +#navigation ul +{ +list-style:none; +} +#navigation ul li +{ +font:normal 14px/40px Arial, Helvetica, sans-serif; +display:block; +padding:0 30px; +margin-top:410px; +float:left; +text-align:center; +} +#navigation ul li a +{ +text-decoration:none; +display:block; +color:#034ea2; +} +#navigation ul li a:hover +{ +text-decoration:none; +display:block; +color:#FFFFFF; +} +#content +{ +margin:0 auto; +width:960px; +} +#content h1 +{ +font:bold 20px/40px Arial, Helvetica, sans-serif; +color:#0d4689; +} +#content p +{ +font:normal 12px/18px Arial, Helvetica, sans-serif; +} + +#footer +{ +margin:0 auto; +background:#78b6e4; +width:100%; +height:86px; +} +#footer_1 +{ +background:url(images/hioxindia-pharmacy_03.jpg) 0 0 no-repeat; +width:960px; +height:86px; +margin:0 auto; +} +#footer_1 ul +{ +list-style:none; +padding:15px 0 0 210px; +} +#footer_1 ul li +{ +font:normal 14px/18px Arial, Helvetica, sans-serif; +display:block; +padding:0 25px; +float:left; +text-align:center; +} +#footer_1 ul li a +{ +text-decoration:none; +display:block; +color:#FFFFFF; +} +#design +{ +font:normal 12px/45px Arial, Helvetica, sans-serif; +color:#2e3192; +padding:50px 0 0 350px; +} +#dum +{ +text-decoration:none; +color:#2e3192; +} \ No newline at end of file diff --git a/khushdeep/build/classes/com/javatpoint/CreateServlet.class b/khushdeep/build/classes/com/javatpoint/CreateServlet.class new file mode 100644 index 0000000..c262f98 Binary files /dev/null and b/khushdeep/build/classes/com/javatpoint/CreateServlet.class differ diff --git a/khushdeep/build/classes/com/javatpoint/DBIntializer.class b/khushdeep/build/classes/com/javatpoint/DBIntializer.class new file mode 100644 index 0000000..e0e5a4a Binary files /dev/null and b/khushdeep/build/classes/com/javatpoint/DBIntializer.class differ diff --git a/khushdeep/build/classes/com/javatpoint/Details.class b/khushdeep/build/classes/com/javatpoint/Details.class new file mode 100644 index 0000000..dc9f2eb Binary files /dev/null and b/khushdeep/build/classes/com/javatpoint/Details.class differ diff --git a/khushdeep/build/classes/com/javatpoint/GetCon.class b/khushdeep/build/classes/com/javatpoint/GetCon.class new file mode 100644 index 0000000..ac529c1 Binary files /dev/null and b/khushdeep/build/classes/com/javatpoint/GetCon.class differ diff --git a/khushdeep/build/classes/com/javatpoint/MyListener.class b/khushdeep/build/classes/com/javatpoint/MyListener.class new file mode 100644 index 0000000..936faba Binary files /dev/null and b/khushdeep/build/classes/com/javatpoint/MyListener.class differ diff --git a/khushdeep/build/classes/com/javatpoint/RegisterUser.class b/khushdeep/build/classes/com/javatpoint/RegisterUser.class new file mode 100644 index 0000000..faec42f Binary files /dev/null and b/khushdeep/build/classes/com/javatpoint/RegisterUser.class differ diff --git a/khushdeep/build/classes/com/javatpoint/VerifyLoginforcustadmin1.class b/khushdeep/build/classes/com/javatpoint/VerifyLoginforcustadmin1.class new file mode 100644 index 0000000..fef70e8 Binary files /dev/null and b/khushdeep/build/classes/com/javatpoint/VerifyLoginforcustadmin1.class differ diff --git a/khushdeep/build/classes/com/javatpoint/verifyLogin1.class b/khushdeep/build/classes/com/javatpoint/verifyLogin1.class new file mode 100644 index 0000000..35b3f2a Binary files /dev/null and b/khushdeep/build/classes/com/javatpoint/verifyLogin1.class differ diff --git a/khushdeep/build/classes/com/javatpoint/verifyLogin2.class b/khushdeep/build/classes/com/javatpoint/verifyLogin2.class new file mode 100644 index 0000000..f7c9387 Binary files /dev/null and b/khushdeep/build/classes/com/javatpoint/verifyLogin2.class differ diff --git a/khushdeep/build/classes/com/javatpoint/verifyLogin3.class b/khushdeep/build/classes/com/javatpoint/verifyLogin3.class new file mode 100644 index 0000000..7213278 Binary files /dev/null and b/khushdeep/build/classes/com/javatpoint/verifyLogin3.class differ diff --git a/khushdeep/build/classes/com/javatpoint/verifyLoginforcustadmin.class b/khushdeep/build/classes/com/javatpoint/verifyLoginforcustadmin.class new file mode 100644 index 0000000..b0987b9 Binary files /dev/null and b/khushdeep/build/classes/com/javatpoint/verifyLoginforcustadmin.class differ diff --git a/khushdeep/src/com/javatpoint/CreateServlet.java b/khushdeep/src/com/javatpoint/CreateServlet.java new file mode 100644 index 0000000..b903662 --- /dev/null +++ b/khushdeep/src/com/javatpoint/CreateServlet.java @@ -0,0 +1,57 @@ +package com.javatpoint; +import java.io.IOException; +import java.io.PrintWriter; +import java.rmi.Naming; + +import javax.servlet.RequestDispatcher; +import javax.servlet.ServletException; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + + + +public class CreateServlet extends HttpServlet { + + public void doGet(HttpServletRequest request, HttpServletResponse response) + throws ServletException, IOException { + + response.setContentType("text/html"); + PrintWriter out=response.getWriter(); + + String username=request.getParameter("username"); + String password=request.getParameter("password"); + String repassword=request.getParameter("repassword"); + String disname=request.getParameter("disname"); + String adderess=request.getParameter("adderess"); + String cityname=request.getParameter("cityname"); + String statename=request.getParameter("statename"); + + String country=request.getParameter("country"); + String region=request.getParameter("region"); + + String ph=request.getParameter("phone"); + double phone=Double.parseDouble(ph); + String email=request.getParameter("email"); + //double mname=Double.parseDouble(num); + //String country=request.getParameter("country"); + + int status=RegisterUser.register(username, password, repassword,disname, adderess,cityname,statename,country,region,phone,email); + + + if(status>0){ + + request.setAttribute("welcome","WELCOME! YOU HAVE BEEN REGISTERD"); + RequestDispatcher rd=request.getRequestDispatcher("customer.jsp"); + rd.include(request, response); + } + else{ + out.print("Sorry,Registration failed. please try later"); + RequestDispatcher rd=request.getRequestDispatcher("index.php"); + rd.include(request, response); + } + + out.close(); + } + +} diff --git a/khushdeep/src/com/javatpoint/DBIntializer.java b/khushdeep/src/com/javatpoint/DBIntializer.java new file mode 100644 index 0000000..7906660 --- /dev/null +++ b/khushdeep/src/com/javatpoint/DBIntializer.java @@ -0,0 +1,8 @@ +package com.javatpoint; + +public interface DBIntializer { +String DRIVER="oracle.jdbc.driver.OracleDriver"; +String CON_STRING="jdbc:oracle:thin:@localhost:1521:xe"; +String USERNAME="system"; +String PASSWORD="oracle"; +} diff --git a/khushdeep/src/com/javatpoint/Details.java b/khushdeep/src/com/javatpoint/Details.java new file mode 100644 index 0000000..1de508d --- /dev/null +++ b/khushdeep/src/com/javatpoint/Details.java @@ -0,0 +1,15 @@ +package com.javatpoint; +// THIS PROGRAM GBANK IS THE INTERFACE FOR THE MAIN PROGRAM + + +import java.rmi.*; + +public interface Details extends Remote +{ + public int open(String username,String password,double amount,String adderess,double phone) throws RemoteException; + public String withdraw(int acno,String uname,String pwd,int amt) throws RemoteException; + public String deposit(int acno,String uname,String pwd,int amt) throws RemoteException; + public String transfer(int acno,String uname,String pwd,int tacno,int amt) throws RemoteException; + public String close(int acno,String uname,String pass) throws RemoteException; + public String balance(int acno,String uname,String pass) throws RemoteException; +} \ No newline at end of file diff --git a/khushdeep/src/com/javatpoint/GetCon.java b/khushdeep/src/com/javatpoint/GetCon.java new file mode 100644 index 0000000..c374a7c --- /dev/null +++ b/khushdeep/src/com/javatpoint/GetCon.java @@ -0,0 +1,48 @@ +package com.javatpoint; +import java.sql.*; +public class GetCon { +private GetCon(){} + +public static Connection con; +static{ + try { + Class.forName(DBIntializer.DRIVER); + con=DriverManager.getConnection(DBIntializer.CON_STRING,DBIntializer.USERNAME,DBIntializer.PASSWORD); + } catch (ClassNotFoundException e) { + + e.printStackTrace(); + } catch (SQLException e) { + + System.out.println("Exception in GetCon"); + } + +} +public static Connection getCon(){ + return con; +} + + + +public static int getPrimaryKey(){ + int nextvalue=0; + Connection con=GetCon.getCon(); + PreparedStatement ps2; + try { + + ps2=con.prepareStatement("select javatpoint1.nextval from dual"); + + ResultSet rs=ps2.executeQuery(); + rs.next(); + nextvalue=rs.getInt(1); + + + +} catch (SQLException e) { + + e.printStackTrace(); + } +return nextvalue; + +} +} + diff --git a/khushdeep/src/com/javatpoint/MyListener.java b/khushdeep/src/com/javatpoint/MyListener.java new file mode 100644 index 0000000..1681676 --- /dev/null +++ b/khushdeep/src/com/javatpoint/MyListener.java @@ -0,0 +1,61 @@ +package com.javatpoint; +import javax.servlet.*; +import java.sql.*; + +public class MyListener implements ServletContextListener{ + + public void contextInitialized(ServletContextEvent arg0) { + int status=0; + Connection con=null; + try{ + con=GetCon.getCon(); + PreparedStatement ps1=con.prepareStatement("Select * from NEWCUST4"); + try{ + status=ps1.executeUpdate(); + }catch(Exception e) + {e.printStackTrace(); + status=2; + System.out.println("my staus is1111111"+status); + } + + if(status==0) + {System.out.println("your table name already exist"+status);} + else if(status==2) + {System.out.println("else if part table does not exist new table has created"+status); + PreparedStatement ps3=con.prepareStatement("CREATE SEQUENCE javatpoint1 MINVALUE 1 MAXVALUE 999999999999 INCREMENT BY 1 START WITH 1 NOCACHE NOORDER NOCYCLE"); + ps3.executeUpdate(); + + PreparedStatement ps=con.prepareStatement("CREATE TABLE NEWCUST4(ID NUMBER,USERNAME VARCHAR2(4000),PASSWORD VARCHAR2(4000), REPASSWORD VARCHAR2(4000),DISNAME VARCHAR2(4000), ADDERESS VARCHAR2(4000),CITYNAME VARCHAR2(4000),STATENAME VARCHAR2(4000),COUNTRY VARCHAR2(4000),REGION VARCHAR2(4000),PHONE NUMBER,EMAIL VARCHAR2(4000),PRIMARY KEY (ID))"); + ps.executeUpdate(); + + PreparedStatement ps2=con.prepareStatement("CREATE TABLE NEWORDER4(ID NUMBER,PRODCODE VARCHAR2(4000),PRODUCTNAME VARCHAR2(4000),TAX NUMBER,MINQ NUMBER,ORDERQ NUMBER,DISCOUNT NUMBER,NETCOST NUMBER,AMOUNT NUMBER,PAYMODE VARCHAR2(4000),PRIMARY KEY (ID))"); + ps2.executeUpdate(); + + PreparedStatement ps4=con.prepareStatement("CREATE TABLE PHARMACYADMIN(USERNAME VARCHAR2(4000),PASSWORD VARCHAR2(4000))"); + ps4.executeUpdate(); + ps4 = con.prepareStatement("Insert into PHARMACYADMIN values(?,?)"); + ps4.setString(1,"admin"); + ps4.setString(2,"admin"); + + ps4.executeUpdate(); + + PreparedStatement ps5=con.prepareStatement("CREATE TABLE DISTRIBUTERADMIN(USERNAME VARCHAR2(4000),PASSWORD VARCHAR2(4000))"); + ps5.executeUpdate(); + + ps5 = con.prepareStatement("Insert into DISTRIBUTERADMIN values(?,?)"); + ps5.setString(1,"dis"); + ps5.setString(2,"dis"); + ps5.executeUpdate(); + + } + + + else{System.out.println("else part "+status); + }} + catch(Exception e){e.printStackTrace();} + } + public void contextDestroyed(ServletContextEvent arg0) { + System.out.println("project undeployed"); + + } +} diff --git a/khushdeep/src/com/javatpoint/RegisterUser.java b/khushdeep/src/com/javatpoint/RegisterUser.java new file mode 100644 index 0000000..85ffc5e --- /dev/null +++ b/khushdeep/src/com/javatpoint/RegisterUser.java @@ -0,0 +1,36 @@ +package com.javatpoint; +import java.sql.*; +public class RegisterUser { +static int status=0; +//int accountno=1; +public static int register(String username,String password,String repassword,String disname,String adderess,String cityname,String statename,String country,String region,double phone,String email){ + //public static int register(String email,String password,String gender,String country,String name){ + + Connection con=GetCon.getCon(); + PreparedStatement ps; + try { + ps = con.prepareStatement("Insert into NEWCUST4 values(?,?,?,?,?,?,?,?,?,?,?,?)"); + int nextvalue1=GetCon.getPrimaryKey(); + ps.setInt(1,nextvalue1); + ps.setString(2,username); + ps.setString(3,password); + ps.setString(4,repassword); + ps.setString(5,disname); + ps.setString(6,adderess); + ps.setString(7,cityname); + ps.setString(8,statename); + ps.setString(9,country); + ps.setString(10,region); + ps.setDouble(11,phone); + ps.setString(12,email); + + status=ps.executeUpdate(); + + } catch (SQLException e) { + + e.printStackTrace(); + } + return status; + +} +} diff --git a/khushdeep/src/com/javatpoint/VerifyLoginforcustadmin1.java b/khushdeep/src/com/javatpoint/VerifyLoginforcustadmin1.java new file mode 100644 index 0000000..6786ea6 --- /dev/null +++ b/khushdeep/src/com/javatpoint/VerifyLoginforcustadmin1.java @@ -0,0 +1,28 @@ +package com.javatpoint; +import java.sql.Connection; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.SQLException; +public class VerifyLoginforcustadmin1 { + +public static boolean checkLogin(double id){ + boolean status=false; + Connection con=GetCon.getCon(); + try { + System.out.println("222222"+id); + System.out.println("rrrrrrrr"); + //PreparedStatement ps=con.prepareStatement("Select * from MAILCASTINGUSER where EMAILADD = ? and PASSWORD =?"); + PreparedStatement ps=con.prepareStatement("Select * from newcust4 where id =?"); + //ps.setInt(1,accountno); + ps.setDouble(1,id); + + + ResultSet rs=ps.executeQuery(); + status=rs.next(); + + } catch (SQLException e) { + e.printStackTrace(); + } + return status; +} +} diff --git a/khushdeep/src/com/javatpoint/verifyLogin1.java b/khushdeep/src/com/javatpoint/verifyLogin1.java new file mode 100644 index 0000000..3d1c291 --- /dev/null +++ b/khushdeep/src/com/javatpoint/verifyLogin1.java @@ -0,0 +1,26 @@ +package com.javatpoint; +import java.sql.Connection; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.SQLException; +public class verifyLogin1 { + +public static boolean checkLogin(String username,String password){ + boolean status=false; + Connection con=GetCon.getCon(); + try { + //PreparedStatement ps=con.prepareStatement("Select * from MAILCASTINGUSER where EMAILADD = ? and PASSWORD =?"); + PreparedStatement ps=con.prepareStatement("Select * from NEWCUST4 where username = ? and password =?"); + //ps.setInt(1,accountno); + ps.setString(1,username); + ps.setString(2,password); + + ResultSet rs=ps.executeQuery(); + status=rs.next(); + + } catch (SQLException e) { + e.printStackTrace(); + } + return status; +} +} diff --git a/khushdeep/src/com/javatpoint/verifyLogin2.java b/khushdeep/src/com/javatpoint/verifyLogin2.java new file mode 100644 index 0000000..c97c8cd --- /dev/null +++ b/khushdeep/src/com/javatpoint/verifyLogin2.java @@ -0,0 +1,26 @@ +package com.javatpoint; +import java.sql.Connection; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.SQLException; +public class verifyLogin2 { + +public static boolean checkLogin(String username,String password){ + boolean status=false; + Connection con=GetCon.getCon(); + try { + //PreparedStatement ps=con.prepareStatement("Select * from MAILCASTINGUSER where EMAILADD = ? and PASSWORD =?"); + PreparedStatement ps=con.prepareStatement("Select * from PHARMACYADMIN where username = ? and password = ?"); + //ps.setInt(1,accountno); + ps.setString(1,username); + ps.setString(2,password); + + ResultSet rs=ps.executeQuery(); + status=rs.next(); + + } catch (SQLException e) { + e.printStackTrace(); + } + return status; +} +} diff --git a/khushdeep/src/com/javatpoint/verifyLogin3.java b/khushdeep/src/com/javatpoint/verifyLogin3.java new file mode 100644 index 0000000..b27b358 --- /dev/null +++ b/khushdeep/src/com/javatpoint/verifyLogin3.java @@ -0,0 +1,26 @@ +package com.javatpoint; +import java.sql.Connection; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.SQLException; +public class verifyLogin3 { + +public static boolean checkLogin(String username,String password){ + boolean status=false; + Connection con=GetCon.getCon(); + try { + //PreparedStatement ps=con.prepareStatement("Select * from MAILCASTINGUSER where EMAILADD = ? and PASSWORD =?"); + PreparedStatement ps=con.prepareStatement("Select * from DISTRIBUTERADMIN where username = ? and password = ?"); + //ps.setInt(1,accountno); + ps.setString(1,username); + ps.setString(2,password); + + ResultSet rs=ps.executeQuery(); + status=rs.next(); + + } catch (SQLException e) { + e.printStackTrace(); + } + return status; +} +} diff --git a/khushdeep/src/com/javatpoint/verifyLoginforcustadmin.java b/khushdeep/src/com/javatpoint/verifyLoginforcustadmin.java new file mode 100644 index 0000000..f2d2a24 --- /dev/null +++ b/khushdeep/src/com/javatpoint/verifyLoginforcustadmin.java @@ -0,0 +1,28 @@ +package com.javatpoint; +import java.sql.Connection; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.SQLException; +public class verifyLoginforcustadmin { + +public static boolean checkLogin(double id){ + boolean status=false; + Connection con=GetCon.getCon(); + try { + System.out.println("222222"+id); + System.out.println("rrrrrrrr"); + //PreparedStatement ps=con.prepareStatement("Select * from MAILCASTINGUSER where EMAILADD = ? and PASSWORD =?"); + PreparedStatement ps=con.prepareStatement("Select * from neworder4 where id =?"); + //ps.setInt(1,accountno); + ps.setDouble(1,id); + + + ResultSet rs=ps.executeQuery(); + status=rs.next(); + + } catch (SQLException e) { + e.printStackTrace(); + } + return status; +} +}