Advertisement
Guest User

Untitled

a guest
Mar 6th, 2015
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.03 KB | None | 0 0
  1. <script>
  2. $(document).ready(function () {
  3. $("#refresh").on("click", function () {
  4.  
  5. $("#center").load("center.html");
  6. });
  7. });
  8. </script>
  9.  
  10. <div id="refresh" align="center">
  11. <% ArrayList<PurchaseOrder> PurchaseOrder = (ArrayList<PurchaseOrder>) session.getAttribute("poList");
  12. %>
  13.  
  14. <select name="selected" >
  15. <%
  16. for (int i = 0; i < PurchaseOrder.size(); i++) {
  17. %>
  18. <option value="<%=PurchaseOrder.get(i).getPoNumber()%>"> <%=PurchaseOrder.get(i).getPoNumber()%></option>
  19. <%
  20. }
  21. %>
  22. </select>
  23.  
  24. </div>
  25.  
  26. <form method="POST" action="ConsumptionReportServlet">
  27. <div align="center">
  28. <%
  29. int y = Integer.parseInt(request.getParameter("value"));
  30. %>
  31.  
  32. <table id="dataTable" class="table table-hover" style= "width:800px">
  33. <tr>
  34. <th class = "edits">Purchase Order</th>
  35. <th class = "edits">Item Description</th>
  36. <th class = "edits">Quantity</th>
  37. <th class = "edits">Unit Measurement</th>
  38. <th class = "edits">Unit Price</th>
  39. <th class = "edits">Vat</th>
  40. <th class = "edits">Date Made</th>
  41. <th class = "edits">Prepared By</th>
  42. <th class = "edits">Approved By</th>
  43. </tr>
  44. <tr>
  45. <td><%=PurchaseOrder.get(y).getPoNumber()%></td>
  46. <td><%= PurchaseOrder.get(y).getItemDescription()%></td>
  47. <td><%= PurchaseOrder.get(y).getQty()%></td>
  48. <td><%= PurchaseOrder.get(y).getUnitMeasurement()%></td>
  49. <td><%= PurchaseOrder.get(y).getUnitprice()%></td>
  50. <td><%= PurchaseOrder.get(y).getVat()%></td>
  51. <td><%= PurchaseOrder.get(y).getDateMade()%></td>
  52. <td><%= PurchaseOrder.get(y).getPreparedBy()%></td>
  53. </tr>
  54. </table>....
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement