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
41 changes: 41 additions & 0 deletions Library/WebContent/Borrower.jsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<jsp:include page="index.html"></jsp:include>
<!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">
<title>Welcome to Library Management System</title>
</head>
<body>
<form action="BorrowerServlet" style="width:1159px;" method=post> ><!-- method=post -->
<table align="center">
<tr>
<th>Enter Your First Name : </th>
<th style="color:black" ><input type="text" id="fname" name="fname" required/></th>
</tr>
<tr>
<th>Enter Your Last Name : </th>
<th style="color:black"><input type="text" name="lname" required/></th>
</tr>
<tr>
<tr>
<th>Enter Your Address : </th>
<th style="color:black"><input type="text" name="address" required/></th>
</tr>
<tr>
<th colspan=2><input type="submit" style="color:black"/></th>
</tr>
</table>
</form>
<br><br>
<%
if(request.getAttribute("message")!=null)
{
%>
<p style="color: white"> <%=request.getAttribute("message")%>

<%} %>
</table>
</body>
</html>
81 changes: 81 additions & 0 deletions Library/WebContent/CheckIn.jsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@page import="java.sql.ResultSet" %>
<jsp:include page="index.html"></jsp:include>
<!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">
<title>Welcome to Library Management System</title>
</head>
<body>
<form action="CheckInServlet" style="width:1159px;" method=post> <br><br><!-- method=post -->
<table align="center">
<tr>
<th>Enter Book Id : </th>
<th style="color:black" ><input type="text" id="bookid" name="bookid"/></th>
</tr>
<tr>
<th>Enter Name : </th>
<th style="color:black"><input type="text" name="borrower_name"/></th>
</tr>
<tr>
<th>Card No : </th>
<th style="color:black"><input type="text" name="cardno"/></th>
</tr>
<tr>
<th colspan=2><input type="submit" value="Search" style="color:black"/></th>
</tr>
</table>
</form>
<br><br>
<%
if(request.getAttribute("loans")!=null)
{
%>

<form action="CheckInServlet2" style="width:1159px;" method=post> <br><br><!-- method=post -->
<table align="center">
<tr>
<th></th>
<th>Card No</th>
<th>Borrower Name</th>
<th>Book Id</th>
<th>Book Title</th>
<th>Branch Id</th>

</tr>

<%
ResultSet rs = (ResultSet) request.getAttribute("loans");
while(rs.next())
{
String str = rs.getString("book_id")+","+rs.getString("branch_id")+","+rs.getString("card_no")+","+rs.getString("Loan_id");
%>
<tr>
<th style="color:black" ><input type="radio" id="book_radio" name="book_radio" value=<%=str%>></th>
<th><%=rs.getString("card_no") %></th>
<th> <%=rs.getString("name") %></th>
<th><%=rs.getString("book_id") %> </th>
<th> <%=rs.getString("title") %></th>
<th> <%=rs.getString("branch_id") %></th>

<%}%>
<tr>
<th colspan=2><input type="submit" value="Check In" style="color:black"/></th>
</tr>
</table>
</form>
<%
}%>

<br><br><br>
<%
if(request.getAttribute("message")!=null)
{
%>
<p style="color: white"> <%=request.getAttribute("message")%>

<%} %>
</body>
</html>
41 changes: 41 additions & 0 deletions Library/WebContent/CheckOut.jsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<jsp:include page="index.html"></jsp:include>
<!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">
<title>Welcome to Library Management System</title>
</head>
<body>
<form action="CheckOutServlet" style="width:1159px;" method=post> <br><br><!-- method=post -->
<table align="center">

<tr>
<th>Enter Book Id : </th>
<th style="color:black" ><input type="text" id="bookid" name="bookid" required/></th>
</tr>
<tr>
<th>Enter Branch ID : </th>
<th style="color:black"><input type="text" name="branchid" required/></th>
</tr>
<tr>
<th>Card No : </th>
<th style="color:black"><input type="text" name="cardno" required/></th>
</tr>
<tr>
<th colspan=2><input type="submit" value="Check Out" style="color:black"/></th>
</tr>
</table>
</form>
<br><br>
<%
if(request.getAttribute("message")!=null)
{
%>
<p style="color: white"> <%=request.getAttribute("message")%>

<%} %>
</p>
</body>
</html>
99 changes: 99 additions & 0 deletions Library/WebContent/Fine.jsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@page import="java.sql.ResultSet" %>
<jsp:include page="index.html"></jsp:include>
<!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">
<title>Welcome to Library Management System</title>
</head>
<body>
<form action="FineServlet" style="width:1159px;" method=post> <br><br><!-- method=post -->
<table align="center">
<tr>
<th>Card No : </th>
<th style="color:black" ><input type="text" id="cardno" name="cardno"/></th>
</tr>

<tr>
<th colspan=2><input type="submit" style="color:black"/></th>
</tr>
</table>
</form>
<br><br>
<%
if(request.getAttribute("fine")!=null)
{
%>

<form action="FineServlet2" style="width:1159px;" method=post> <br><br><!-- method=post -->
<table align="center">
<%
if(request.getAttribute("paid")!=null)
{
%>

<tr>

<th>PAID</th>
</tr>
<tr>
<th></th>
<th>Card no</th>
<th>Fine Amount</th>
</tr>
<%
ResultSet rs1 = (ResultSet) request.getAttribute("paid");
while(rs1.next())
{
%>
<tr>
<th></th>
<th> <%=rs1.getString("card_no") %></th>
<th> <%=rs1.getString("fine_amt") %></th></tr>

<%}}%>

<tr>
<th>TO BE PAID</th>
</tr>
<tr>
<th></th>

<th>Card no</th>
<th>Fine Amount</th>

</tr>

<%
ResultSet rs = (ResultSet) request.getAttribute("fine");
while(rs.next())
{
String str = rs.getString("card_no");
%>
<tr>
<th style="color:black" ><input type="radio" id="book_radio" name="book_radio" value=<%=str%>></th>

<th> <%=rs.getString("card_no") %></th>
<th> <%=rs.getString("fine_amt") %></th>

<%}%>
<tr>
<th colspan=2><input type="submit" value="Pay" style="color:black"/></th>
</tr>
</table>
</form>
<%
}%>

<br><br><br>
<%
if(request.getAttribute("message")!=null)
{
%>
<p style="color: white"> <%=request.getAttribute("message")%>

<%} %>
</body>
</html>
3 changes: 3 additions & 0 deletions Library/WebContent/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Manifest-Version: 1.0
Class-Path:

65 changes: 65 additions & 0 deletions Library/WebContent/Search.jsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@page import="java.sql.ResultSet" %>
<jsp:include page="index.html"></jsp:include>
<!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">
<title>Welcome to Library Management System</title>
</head>
<body>
<form action="SearchServlet" style="width:1159px;" method=post>
<table align="center">
<tr>
<th>Enter Book Id : </th>
<th style="color:black" ><input type="text" id="bookid" name="bookid"/></th>
</tr>
<tr>
<th>Enter Book Title : </th>
<th style="color:black"><input type="text" id="booktitle" name="booktitle"/></th>
</tr>
<tr>
<th>Author Name : </th>
<th style="color:black"><input type="text" id="author" name="author"/></th>
</tr>
<tr>
<th colspan=2><input type="submit" value="Search" style="color:black"/></th>
</tr>
</table>
</form>
<br><br>
<%
if((request.getAttribute("result")!=null))
{
ResultSet rs= (ResultSet)request.getAttribute("result");
%>
<p>
<table>
<tr><th>Book Id </th><th>Title </th> <th>Author </th>
<th>Branch_id </th><th>No of copies </th><th>No of available copies </th></tr>
<%
while(rs.next())
{
%>

<tr>

<th><%=rs.getString("book_id") %> </th>
<th> <%=rs.getString("title") %></th>
<th> <%=rs.getString("author_name")%></th>
<th> <%=rs.getString("Branch_id")%></th>
<th> <%=rs.getString("No_of_copies")%></th>
<th> <%=rs.getString("Available_COUNT")%></th>


</tr>

<%
}
}
%>

</table>
</body>
</html>
Binary file not shown.
Binary file added Library/WebContent/images/demo/120x120.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Library/WebContent/images/demo/220x95.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Library/WebContent/images/demo/80x80.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Library/WebContent/images/demo/avatar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Library/WebContent/images/demo/gallery/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Library/WebContent/images/demo/portfolio/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Library/WebContent/images/demo/slider/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Library/WebContent/images/demo/slider/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Library/WebContent/images/demo/slider/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Library/WebContent/images/demo/slider/4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Library/WebContent/images/demo/slider/5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Library/WebContent/images/demo/video.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Library/WebContent/images/demo/worldmap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 37 additions & 0 deletions Library/WebContent/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<!DOCTYPE html>
<html>
<head>
<title>Library Management System</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link href="layout/styles/layout.css" rel="stylesheet" type="text/css" media="all">
</head>
<body style="font-color:black;">
<div class="wrapper row1">
<header id="header" class="clear">
<!-- ################################################################################################ -->
<div id="logo" class="fl_left">
<h1><br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="index.html">Library Management System</a></center></h1>
</div>
</header>
</div>
<div class="wrapper row2">
<div class="rounded">
<nav id="mainav" class="clear">
<!-- ################################################################################################ -->
<ul class="clear">
<li ><a href="Search.jsp">Search Books</a></li>
<li><a href="CheckOut.jsp">Check Out</a></li>
<li><a href="CheckIn.jsp">Check In</a></li>
<li><a href="Borrower.jsp">Borrower Management</a></li>
<li><a href="Fine.jsp">Fine</a></li>
</ul>
<!-- ################################################################################################ -->
</nav>
</div>
</div>

</body>
</html>
Loading