📄 supplymodify.jsp
字号:
<%@ page language="java" contentType="text/html; charset=gb2312" pageEncoding="GB2312"%>
<%@ page import="com.logistic.business.SupplyManager" %>
<%@ page import="com.logistic.model.SupplyInfo" %>
<%request.setCharacterEncoding("gb2312");%>
<%
String sid=(String)request.getParameter("sid");
System.out.print(sid);
SupplyInfo si=null;
if(sid==null){
session.setAttribute("errors","对不起您没有权限对supplymdoify.jsp页面进行操作!");
response.sendRedirect("../../errors/errorpage.jsp");
}else{
SupplyManager sm=new SupplyManager();
si=sm.SupplySearchById(sid);
if(si==null){
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>
</head>
<body>
<%
String success=(String)session.getAttribute("success");
if(success!=null){
%>
<script language="javascript">
alert("供应商库信息修改成功!");
location.href="<%=request.getContextPath()%>/viewpage/showpage/adminsupply.jsp";
</script>
<%
session.removeAttribute("success");
}
%>
<table width="695" height="234" border="1" align="center" cellpadding="1" cellspacing="0" bordercolor="#9999CC">
<tr>
<td width="59" height="21" align="center" class="style9">编号:</td>
<td width="75" align="center"><%=sid %></td>
<td width="547" height="21" align="center"><span class="style11">(注意:填写下表,*标识的项必须填写)</span></td>
</tr>
<tr>
<td height="210" colspan="3" align="center" valign="middle"><form name="supplyinfoform" method="post" action="/Logistic/supplyinfoupdate">
<table width="658" height="175" border="1" align="center" cellpadding="1" cellspacing="0" bordercolor="#CCCCFF">
<tr>
<td width="110" height="27" align="right" valign="middle" class="style9">供应商名称:</td>
<td width="221" align="left"><input name="supplyname" type="text" class="style13" id="supplyname" size="20" maxlength="20" value="<%=si.getSupplyname() %>">
<span class="style5">*
<input type="hidden" name="sid" value="<%=sid%>">
</span></td>
<td width="141" align="right" class="style9">供应商负责人:</td>
<td width="168" align="left"><input name="supplycharge" type="text" class="style13" id="supplycharge" size="20" maxlength="20" value="<%=si.getSupplycharge() %>">
<span class="style5">*</span></td>
</tr>
<tr>
<td height="31" align="right" class="style9">供应商地址:</td>
<td colspan="3" align="left"><input name="supplyaddress" type="text" class="style13" id="supplyaddress" size="50" maxlength="50" value="<%=si.getSupplyaddress() %>">
<span class="style5">*</span></td>
</tr>
<tr>
<td height="29" align="right" class="style9">供应商固定电话:</td>
<td align="left"><input name="supplyfixphone" type="text" class="style13" id="supplyfixphone" size="15" maxlength="15" value="<%=si.getSupplyphone() %>">
<span class="style5"> *</span></td>
<td align="right" class="style9">供应商移动电话:</td>
<td align="left"><input name="supplymobile" type="text" class="style13" id="supplymobile" size="11" maxlength="11" value="<%=si.getSupplymobile() %>">
<span class="style5">*</span></td>
</tr>
<tr>
<td height="26" align="right" class="style9">供应商传真:</td>
<td align="left"><input name="supplyfax" type="text" class="style13" id="supplyfax" size="15" maxlength="15" value="<%=si.getSupplyfax() %>">
<span class="style5">*</span></td>
<td align="right" class="style9">供应商邮件:</td>
<td><input name="supplyemail" type="text" class="style13" id="supplyemail" size="20" maxlength="20" value="<%=si.getSupplyemail() %>">
<span class="style5">*</span></td>
</tr>
<tr>
<td height="29" align="right" class="style9">供应商网址:</td>
<td colspan="2" align="left"><input name="supplyhttp" type="text" class="style13" id="supplyhttp" size="50" maxlength="50" value="<%=si.getSupplyhttp() %>"></td>
<td> </td>
</tr>
<tr align="center">
<td height="31" colspan="4"><input name="Submit" type="submit" class="buttonstyle" onClick="return supplyinfo_check()" value="提交数据">
<input name="cancle" type="reset" class="buttonstyle" id="cancle" value="重置数据"></td>
</tr>
</table>
</form></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -