Current File : //home/obabain/autoclutchess_obaba_in/sales21.jsp |
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ include file="Connection.jsp" %>
<%@include file="master.jsp" %>
<%
Statement st=con.createStatement();
ResultSet rsRowCnt = null;
%>
<!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">
<script src='https://code.jquery.com/jquery-3.3.1.js'></script>
<script src='https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js'></script>
<script src="https://cdn.datatables.net/1.10.19/js/dataTables.bootstrap4.min.js" charset="utf-8">
</script>
<!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
-->
<!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.1/css/bootstrap.css"> -->
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.19/css/dataTables.bootstrap4.min.css">
<title>Inventory</title>
</head>
<style>
.dropbtn {
background-color: #4CAF50;
color: white;
padding: 12px;
font-size: 16px;
border: none;
cursor: pointer;
height:35px;
}
.dropdown {
position: relative;
display: inline-block;
}
.dropdown-content {
display: none;
position: absolute;
background-color: #f9f9f9;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
}
.dropdown-content a {
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
}
.dropdown-content a:hover {background-color: #f1f1f1}
.dropdown:hover .dropdown-content {
display: block;
}
.dropdown:hover .dropbtn {
background-color: #3e8e41;
}
</style>
<style>
table {
border-collapse: collapse;
border-spacing: 0;
width: 100%;
border: 1px solid #ddd;
}
tr, td {
text-align: left;
padding: 8px;
}
tr:nth-child(even){background-color: #f2f2f2}
</style>
<body>
<script type="text/javascript">
$(document).ready(function() {
$('#example').DataTable();
} );
</script>
<form>
<div class="content">
<div class="row">
<div class="col-md-9" style="background-color:#eae9e9;width:80%;">
<div class="panel panel-default" >
<div class="panel-heading main-color-bg">
<h3 class="panel-title">Sales Invoice 2023-24</h3>
</div>
</div>
<div class="headerbar-item pull-right" style="margin-top:-55px;"><a class="btn btn-danger" style="background:" onclick="goBack()">Back</a>
<a class="btn btn-danger" style="background:" href="SalesInvoiceMain.jsp">New</a>
</div>
<br>
<div class="dropdown" style="margin-top:-32px;">
<button class="dropbtn" style="margin-left:745px;">View All</button>
<div class="dropdown-content" style="margin-left:775px;">
<a href="sales21.jsp">2023-24</a>
</div>
</div>
<table class="table table-bordered" id="example">
<thead>
<tr>
<!-- <th>Status</th> -->
<th>Date</th>
<th>Invoice No</th>
<th>Supplier</th>
<th>Gross Amount</th>
<th>options</th>
</tr>
</thead>
<tbody>
<%
Statement st1=con.createStatement();
ResultSet rs11=st1.executeQuery("select tb.*,(select client_name from ip_clients where client_id=tb.supplier_id)suppl from ip_sales_invoice1 tb where yrid=1");
while(rs11.next()){
%>
<tr>
<%-- <td><%=rs.getString("stat") %></td> --%>
<td><%=rs11.getString("invoice_date_created") %></td>
<td><a href="ViewSIbyNO1.jsp?Id=<%=rs11.getString("sinvoice_id")%>"><%=rs11.getString("sales_invoice_no") %></a></td>
<td><%=rs11.getString("suppl") %></td>
<td style="text-align: right;"><%=rs11.getString("total") %></td>
<td>
<div class="options btn-group">
<a class="btn btn-primary dropdown-toggle fontstyle" data-toggle="dropdown">
<li class="glyphicon glyphicon-cog"><span class="fontstyle">Options</span></li>
</a>
<ul class="dropdown-menu">
<%-- <li>
<a href="editPO.jsp?Id=<%=rs.getString("porder_id")%>">
<span class="fontstyle">Edit</span>
</a>
</li> --%>
<li>
<a href="sipdf2.jsp?Id=<%=rs11.getString("sinvoice_id")%>&inv=<%=rs11.getString("type")%>&type=Original Copy For Customer"><span class="fontstyle" style="color:blue;">Download PDF(Original)</span></a>
<a href="sipdf2.jsp?Id=<%=rs11.getString("sinvoice_id")%>&inv=<%=rs11.getString("type")%>&type=Duplicate Copy For Transporter"><span class="fontstyle">Download PDF(Duplicate)</span></a>
<a href="sipdf2.jsp?Id=<%=rs11.getString("sinvoice_id")%>&inv=<%=rs11.getString("type")%>&type=Triplicate Copy For Supplier"><span class="fontstyle">Download PDF(Triplicate)</span></a>
<a href="sipdf2.jsp?Id=<%=rs11.getString("sinvoice_id")%>&inv=<%=rs11.getString("type")%>&type=Extra copy"><span class="fontstyle">Download PDF(Extra)</span></a>
<%-- <a href="Edit_PO.jsp?Id=<%=rs11.getString("porder_id")%>&tid=<%=rs11.getString("tax_id")%>" > --%><!--
<span class="fontstyle" style="color:green;">Edit</span>
</a> -->
<a href="editsi21.jsp?Id=<%=rs11.getString("sinvoice_id")%>"><span class="fontstyle">Edit</span></a>
<a href="deletesi21.jsp?Id=<%=rs11.getString("sinvoice_id")%>" onclick = "if (! confirm('Continue?')) { return false; }">
<span class="fontstyle" style="color:red;">Delete</span>
</a>
</li>
</ul>
</div>
</td>
<%} %>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</form>
<script type="text/javascript">
function goBack() {
window.history.back();
};
</script>
</body>
</html>