📄 warehouseinfosave.jsp
字号:
<%@ page language="java" contentType="text/html; charset=gb2312" pageEncoding="GB2312"%>
<%@ page import="java.sql.*" %>
<%request.setCharacterEncoding("gb2312");%>
<%
String loginname=(String)session.getAttribute("loginname");
String ok=(String)session.getAttribute("ok");
String loginpower=(String)session.getAttribute("loginpower");
if(ok==null&&loginname==null)
{
session.setAttribute("errors","对不起您还没有登陆,请先登陆!");
response.sendRedirect("../../errors/errorpage.jsp");
}else if(!loginpower.equals("admin")){
session.setAttribute("errors","对不起您没有对仓库信息管理的权限!");
response.sendRedirect("../../errors/errorpage.jsp");
}
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>仓库位置信息窗口</title>
<style type="text/css">
<!--
body {
background-color: #168AC2;
}
-->
</style>
<link href="<%=request.getContextPath()%>/cssjs/comcss.css" rel="stylesheet" type="text/css">
<script language="javascript" src="<%=request.getContextPath()%>/cssjs/comjs.js"></script>
<jsp:useBean id="dblink" class="com.logistic.data.DataConnect" scope="page"/>
</head>
<body>
<table width="539" height="193" border="1" align="center" cellpadding="1" cellspacing="0" bordercolor="#666699">
<tr>
<td width="131" height="27" align="center" class="style5">*标识项必须填写</td>
<td width="398" align="center"> </td>
</tr>
<tr>
<td height="164" colspan="2"><form action="/Logitist/warehouseinfosave" method="post" name="warehouse" id="warehouse">
<table width="401" border="1" align="center" cellpadding="1" cellspacing="0" bordercolor="#666699">
<tr>
<td width="80" height="25" align="right" class="code">仓库名称:</td>
<td width="294" colspan="2"><input name="warehousename" type="text" class="style9" id="warehousename" size="20" maxlength="20">
<span class="style5"> *</span></td>
</tr>
<tr>
<td height="25" align="right" class="code">仓库负责人:</td>
<td colspan="2"><select name="chargeid" class="style9" id="chargeid">
<option value="">-负责人-</option>
<%
String sqlemploy="select *from employeeinfotable";
Statement statemploy=dblink.getStmtread();
ResultSet rsemploy=statemploy.executeQuery(sqlemploy);
while(rsemploy.next()){
String employeeid=rsemploy.getString("EmployeeId");
String employeename=rsemploy.getString("EmployeeName");
out.print("<option value="+employeeid);
out.print(">"+employeename+"</option>");
}
dblink.close();
%>
</select>
<span class="style5">*</span></td>
</tr>
<tr>
<td height="27" align="right" class="code">仓库位置:</td>
<td colspan="2"><input name="warehouseadd" type="text" class="style9" id="warehouseadd" size="40" maxlength="100">
<span class="style5"> *</span></td>
</tr>
<tr align="center">
<td height="30" colspan="3"><input name="Submit" type="submit" class="buttonstyle" value="提交数据" onClick="return warehouseinfo_check()">
<input name="cancel" type="reset" class="buttonstyle" id="cancel" value="重置数据"></td>
</tr>
</table>
</form></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -