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

📄 smallclass_update.jsp

📁 医药供应链管理系统
💻 JSP
字号:
<%@ page language="java" import="java.util.*" pageEncoding="GB2312"%>
<jsp:directive.page import="com.captainli.bean.BigclassBean"/>
<jsp:directive.page import="com.captainli.dboperation.BigclassDA"/>
<jsp:directive.page import="com.captainli.dboperation.SmallclassDA"/>
<jsp:directive.page import="com.captainli.struts.form.SmallclassForm"/>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP 'smallclass_update.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="../css/sys.css">
<style type="text/css">
<!--
body {
	margin-left: 5px;
	margin-top: 5px;
	margin-right: 5px;
	margin-bottom: 5px;
	background-color: #FFFFFF;
}
a:link {
	color: #1A438E;
	text-decoration: underline;
}
a:visited {
	text-decoration: underline;
}
a:hover {
	text-decoration: none;
	color: #000000;
}
a:active {
	text-decoration: underline;
}
-->
</style>
<script type="text/javascript" language="javascript">
function check(){
	var scbcid = document.getElementById("sc_bc_id").value;
	var scname = document.getElementById("sc_name").value;
	if(scbcid == 0){
		window.alert("请选择药品大类!\n\n如果无分类请先添加药品大类!");
		form1.sc_bc_id.focus();
		return false;
	}
	if(scname == ""){
		window.alert("请输入修改的药品小类名!");
		form1.sc_name.focus();
		return false;
	}
}
</script>
</head>
<%
	ArrayList arry = new BigclassDA().selectBigClass();
	int sc_id = Integer.parseInt(request.getParameter("scid"));
	SmallclassForm formsmallclass = new SmallclassDA().selectSmallClassBySCID(sc_id);
 %>
  <body>
  <form name="form1" method="post" action="../smallclass.do?method=updateSmallclass&scid=<%= formsmallclass.getSc_id() %>">
    <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#C4D8ED">
      <tr>
        <td><img src="../images/system/r_1.gif" alt="" /></td>
        <td width="100%" background="../images/system/r_0.gif"><table cellpadding="0" cellspacing="0" width="100%">
            <tr>
              <td>&nbsp;修改小类(带*号的为必填项)</td>
              <td align="right">&nbsp;</td>
            </tr>
        </table></td>
        <td><img src="../images/system/r_2.gif" alt="" /></td>
      </tr>
      <tr>
        <td></td>
        <td><table align="center" cellpadding="4" cellspacing="1" class="toptable grid" border="1">
            <tr>
              <td width="25%" height="30" align="right">所属药品大类:</td>
              <td width="75%" class="category">
              <select name="sc_bc_id" id="sc_bc_id">
	  			<option value="0">--请选择药品大类--</option><%
	  				for(int i = 0;i < arry.size();i++){
        				BigclassBean bean = (BigclassBean)arry.get(i);
	  			 %>
	  			<option value="<%= bean.getBc_id() %>" <%if(bean.getBc_id() == formsmallclass.getSc_bc_id()){ %>selected="selected"<%} %>><%= bean.getBc_name() %></option>
      	<%} %></select></td>
            </tr>
            <tr>
              <td height="30" align="right">药品小类名称:</td>
              <td class="category"><input name="sc_name" type="text" id="sc_name" style="width:300px" value="<%= formsmallclass.getSc_name() %>">
&nbsp;<font color="#ff0000">*</font></td>
            </tr>
            <tr>
              <td height="30">&nbsp;</td>
              <td class="category"><input name="submit" type="submit" onClick="return check()" value=" 确 认 " class="button">
                <input name="reset" type="reset" value=" 重新填写 " class="button">
            <input type="button" value=" 放弃修改返回 " onClick="window.history.go(-1)" class="button">
              </td>
            </tr>
        </table></td>
        <td></td>
      </tr>
      <tr>
        <td><img src="../images/system/r_4.gif" alt="" /></td>
        <td></td>
        <td><img src="../images/system/r_3.gif" alt="" /></td>
      </tr>
    </table>
  </form>
  </body>
</html>

⌨️ 快捷键说明

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