?? linkupdate.jsp~2~
字號:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="java.util.List"%>
<%@ page import="java.sql.*"%>
<%@ page import="com.victor.domain.LinkActionForm"%>
<html>
<head>
<title>插入鏈接</title>
</head>
<script language="JavaScript">
function RgTest(){
if(document.form.linkPicture.value==""){
window.alert("請輸入圖片地址:");
document.form.linkPicture.focus();
return false;
}
if(document.form.linkName.value==""){
window.alert("鏈接的圖片信息:");
document.form.linkName.focus();
return false;
}
if(document.form.linkAddress.value==""){
window.alert("鏈接的地址:");
document.form.linkAddress.focus();
return false;
}
return true;
}
</script>
<%List list=(List)request.getAttribute("linklist")%>
<%for(int i=0;i<list.size();i++){
LinkActionForm link=(LinkActionForm)list.get(i);
%>
<body bgcolor="#ffffc0">
<div align="center" >插入鏈接
</div>
<form action="../../../linkUpdateAction.do" onSubmit="return RgTest()" method="post" name="form">
<div align="center"> </div>
<table width="430" border="3" align="center" cellpadding="3" cellspacing="3">
<tr>
<td width="94">鏈接的圖片</td>
<td width="305"><input type="file" name="linkPicture"></td>
</tr>
<tr>
<td>鏈接的圖片信息</td>
<td><input type="text" name="linkName" value="<%=link.getLinkName()%>"></td>
</tr>
<tr>
<td>鏈接的地址</td>
<td><input type="text" name="linkAddress" value="<%=link.getLinkAddress()%>"></td>
</tr>
</table>
<%}%>
<div align="center">
<input type="submit" name="Submit" value="提交">
<input type="reset" name="Submit2" value="重置">
</div>
</form>
<h1> </h1>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -