📄 server.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<% //供应商 主页面%>
<%if(session.getAttribute("code")==null||session.getAttribute("code").equals("0"))
{
%><jsp:forward page="false.jsp"/><%
} %>
<%
int i = 0;
if(!session.getAttribute("numrecord").equals("2"))
{
session.setAttribute("numrecord","2");
int n=1;
session.setAttribute("num",n);
}
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body>
<div align="center"><font size="6" face="华文隶书" color="blue">供应商基本信息</font><br>
<hr color="#66FF33">
</div><form action="serve.do" name="serman" method="POST">
供应商编号:
<input type="text" name="serverid" value="">
<br>
<input type="hidden" name="flag" value="">
<input type="button" value="查询" onclick="searchmethod();"
name="chaxun" style="float: right">
<input type="button" value="添加" onclick="addmethod();" name="tianjia"
style="float: right">
<br>
<br>
<table border="1" width="100%" bordercolorlight="#FFFFFF"
bordercolordark="#C0C0C0">
<tr>
<td bgcolor="#33CC33" align="center">
序号
</td>
<td bgcolor="#33CC33" align="center">
选取
</td>
<td bgcolor="#33CC33" align="center">
供应商编号
</td>
<td bgcolor="#33CC33" align="center">
名称
</td>
<td bgcolor="#33CC33" align="center">
地址
</td>
<td bgcolor="#33CC33" align="center">
联系人
</td>
<td bgcolor="#33CC33" align="center">
电话
</td>
<td bgcolor="#33CC33" align="center">
银行
</td>
<td bgcolor="#33CC33" align="center">
卡号
</td>
</tr>
<logic:present name="alist">
<logic:iterate id="sertable" name="alist" scope="request"
type="java.util.HashMap">
<tr>
<td>
<bean:write name="sertable" property="number" />
</td>
<td>
<input type="checkbox" name="check" value=<bean:write name="sertable" property="server-id" />>
</td>
<td>
<bean:write name="sertable" property="server-id" />
</td>
<td>
<bean:write name="sertable" property="server-name" />
</td>
<td>
<bean:write name="sertable" property="server-address" />
</td>
<td>
<bean:write name="sertable" property="server-linker" />
</td>
<td>
<bean:write name="sertable" property="server-tel" />
</td>
<td>
<bean:write name="sertable" property="server-bank" />
</td>
<td>
<bean:write name="sertable" property="server-card" />
</td>
</tr>
</logic:iterate>
</logic:present>
</table>
<br>
<table>
<tr><td width="100" align="center"><font face="华文行楷" color="blue" size="5">共<%=session.getAttribute("sumpage") %>页 </font></td>
<td width="100" align="center"><font face="华文行楷" color="blue" size="5">共<%=session.getAttribute("sumrecord") %>记录 </font></td>
<td width="100" align="center"><font face="华文行楷" color="blue" size="5">第<%=session.getAttribute("nowpage") %>页</font></td></tr>
</table>
<input type="button" value="下页" name="next" style="float:right" onclick="nextmethod()">
<input type="button" value="上页" name="front" style="float:right" onclick="frontmethod()">
<input type="button" value="删除" onclick="delmethod();" name="shanchu"
style="float: right">
</form>
</body>
</html>
<script language="javascript">
function nextmethod()
{
document.serman.flag.value="next";
document.serman.submit();
}
function frontmethod()
{
document.serman.flag.value="front";
document.serman.submit();
}
function searchmethod()
{
document.serman.flag.value="ser";
document.serman.submit();
}
function addmethod()
{
document.serman.flag.value="add";
document.serman.submit();
}
function delmethod()
{
document.serman.flag.value="delete";
document.serman.submit();
}
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -