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

📄 insertnewmedicinal.jsp

📁 管理药品的进出销量以及对销售状况的统计 Java+SQL医药进销存管理系统,可实现简单的操作
💻 JSP
字号:
<%@page contentType="text/html; charset=GBK"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
<title>insertNewMedicinal</title>
<script type="text/javascript">
  function page(count, cut, type){
    if(type == 1){
      window.location = "pageservlet?method=loginDown&count=" + count + "&cut=" + (cut - 1) + "&amount=" + (cut - 2) * 2;
    }else{
      window.location = "pageservlet?method=loginDown&count=" + count + "&cut=" + (cut + 1) + "&amount=" + cut * 2;
    }
  }
</script>
</head>
<body bgcolor="#ffffff">
${AAA}
${INSERTMEDICINAL}
<table align="center">
  <tr>
    <th>编号</th>
    <th>药品名称</th>
    <th>药品用途</th>
    <th>药品数量</th>
  </tr>
  <c:forEach var="item" items="${LIST }">
    <tr>
      <td>${item[0] }</td>
      <td>${item[1] }</td>
      <td>${item[2]}</td>
      <td>${item[3]}</td>
    </tr>
  </c:forEach>
  <tr>
    <td colspan="2">
      <c:if test="${cut eq 1 }">
        <font size="2">上一页</font>
      </c:if>
      <c:if test="${cut gt 1 }">
        <font size="2"><a href="#" onclick="page(${count }, ${cut }, 1); return false;">上一页</a></font>
      </c:if>
      &nbsp;&nbsp;
      <c:if test="${cut eq count }">
        <font size="2">下一页</font>
      </c:if>
      <c:if test="${cut lt count }">
        <font size="2"><a href="#" onclick="page(${count }, ${cut }, 2); return false;">下一页</a></font>
      </c:if>
    </td>
  </tr>
</table>
<form method="post" action="firstservlet?method=insertMedicinal">
<h1 align="center">
<br/>
  添加新药
</h1>
<h2 align="center">  欢迎:
${NAME}  先生 <br/>
你是:${POWER}</h2>
<table width="253" border="0" align="center">
  <tr>
    <td>药品名:</td>
    <td>
      <label>
        <input type="text" name="txtMedicinalName"/>
      </label>
    </td>
  </tr>
  <tr>
    <td>药品用处:</td>
    <td>
      <label>
        <input type="text" name="txtMedicinalaccount"/>
      </label>
    </td>
  </tr>
  <tr>
    <td>药品数量:</td>
    <td>
      <label>
        <input type="text" name="txtMedicinalNum"/>
      </label>
    </td>
  </tr>
  <tr>
    <td>
      <input type="submit" name="Submit" value="提交"/>
    </td>
    <td align="center">
      <input type="reset" name="Submit2" value="重置"/>
    </td>
  </tr>
</table>
</form>
</body>
</html>

⌨️ 快捷键说明

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