-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfetchStockDetails.jsp
46 lines (41 loc) · 973 Bytes
/
fetchStockDetails.jsp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@page import="com.medicure.drug.dao.*"%>
<!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=ISO-8859-1">
</head>
<body>
<%
String drugNames[][]=null;
String character=request.getParameter("type");
drugNames=new DrugDAO().getMedicineNameByFirstLetter(character);
int length=drugNames.length;
if(length!=0)
{
%>
<table id="mytable" align="center">
<tr>
<th>Drug ID</th>
<th>Drug Name</th>
<th>Available Quantity</th>
</tr>
<% for(int i=0;i<length;i++) { %>
<tr>
<% for(int j=0;j<3;j++) { %>
<td><%=drugNames[i][j]%></td>
<%}%>
</tr>
<%}
}
else
{
%>
</table>
<font color="red"> No Details Of Medicine Found </font>
<%
}
%>
</body>
</html>