?? 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 + -