⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 billpayment.jsp

📁 海鲜超市管理 登录 修改 增加 等功能jsp+servlet
💻 JSP
字号:
<%@ include file="/jsp/include/ceil.jsp"%>
<%@ page import="java.util.List,module.bill.dto.PaymentDto,tools.SysdateTool,tools.DateTools" %>
    <TD vAlign=top width=558 height="300" rowspan="7">
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <div align="center">
      <center>
    <form method="POST" action="/BillPaymentServlet">
      <table border="1" width="88%" bordercolor="#800000">
        <tr>
          <td width="14%" align="center" bgcolor="#FDCC64"><b><font color="#993333">Vendor
            Name</font></b></td>
          <td width="14%" align="center" bgcolor="#FDCC64"><b><font color="#993333">Bill
            Date</font></b></td>
          <td width="15%" align="center" bgcolor="#FDCC64"><b><font color="#993333">Due
            Date</font></b></td>
          <td width="15%" align="center" bgcolor="#FDCC64"><b><font color="#993333">Amount</font></b></td>
          <td width="34%" align="center" bgcolor="#FDCC64"><b><font color="#993333">Payment</font></b></td>
        </tr>
        
    
<%
	SysdateTool st = new SysdateTool();
	int sysDate =DateTools.toInt(st.getSysdate());
	List list = (List)request.getAttribute("paymentList");
	PaymentDto dto = new PaymentDto();
	String vendorId = request.getParameter("vendorId");
	String vendorName = request.getParameter(vendorId);
	for (int i = 0; i < list.size(); i++)
{
	dto = (PaymentDto)list.get(i);
	
%>    
            
        <tr>
          <td width="20%" align="center"><font color="#993333"><b><%=vendorName%></b></font></td>
         <td width="20%" align="center"><b><font color="#993333"><%=dto.getDate()%></td></font></b>
          <td width="20%" align="center"><b><font 
          <%
          if (sysDate > DateTools.toInt(dto.getDueDate())){
          %> 
          color="red"
          <%
          }else{
          %>
          color="#993333"
          <%
          }
          %>
          ><%=dto.getDueDate()%></font></b></td>
          <td width="16%" align="center"><b><font color="#993333"><%=dto.getAmount()%>$</font></b></td>
          <td width="12%" align="center"><input type="checkbox" name="billId" value="<%=dto.getBillId()%>"></td>
        </tr>
<%
}
%>       
        
      </table>
      <br>
      <br>
      <br>
      <br>
      <input type="submit" value="Payment" name="B1" style="color: #800000; font-weight: bold; background-color: #FDCC64">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;	
      <input type="reset" value="Reset" name="B2" style="color: #800000; font-weight: bold; background-color: #FDCC64">
      </form>   
      <br>
      <br>
      </center>
    </div>
    </TD>
  </TR>
  
<%@ include file="/jsp/include/side.jsp"%>


<%@ include file="/jsp/include/floor.jsp"%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -