⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fellowshipupdate.jsp

📁 基于j2ee的物流软件
💻 JSP
字号:
<%@ page language="java" import="java.util.*" pageEncoding="gbk"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'fellowship.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="admin/css/warehouse.css">
	<script type="text/javascript">
		function validate(){
			var name = document.getElementById("name").value;
			var address = document.getElementById("address").value;
			if(name == ""){
				label1.innerHTML="<font color='red'>用户名不能为空!</font>";
				label2.innerHTML="";
				return false;
			}
			if(address == ""){
				label2.innerHTML="<font color='red'>网址不能为空!</font>";
				label1.innerHTML="";
				return false;
			}
			if(address.substring(0,7)!="http://" || address.indexOf(".",8) == -1){
				label2.innerHTML="<font color='red'>网址格式不正确!</font>";
				label1.innerHTML="";
				return false;
			}
			return true;
		}
	</script>
  </head>
  
  <body>
  <form action="fellowoperate.do?action=update&id=${requestScope.fellowship.fellowshipId}" method="post">
  <table width="85%" border="1" cellspacing="0" cellpadding="3" align="center" bordercolorlight="#326598" bordercolordark="#ffffff">
    <tr >
      <td height="25" colspan="2" align="center" background="admin/images/admin_bg_1.gif">
	  <b><font color="ffffff">友情链接修改</font></b></td>
    </tr>
    <tr>
      <td align="center">网站名称:</td>
      <td width="83%"><input type="text" name="name" value="${requestScope.fellowship.websiteName}" size="50"/> <label id="label1"></td>
    </tr>
    <tr>
      <td align="center">网站连接:</td>
      <td><input type="text" name="address" value="${requestScope.fellowship.websiteAddress}" size="50"/> <label id="label2"></td>
    </tr>
	<tr>
	  <td align="center">网站Logo:</td>
	  <td><input type="text" name="logo" value="" size="50"/></td>
	</tr>
	<tr>
	  <td align="center">上传Logo:</td>
	  <td><input type="file" name="name" size="50"/> <input type="button" value=" 确定 "></td>
	</tr>
	<tr align="center">
	  <td colspan="2">
	    <input type="submit" value=" 提交 " onclick="{if(validate()){return true;}return false;}"/>  
	    <input type="reset" value=" 重置 "/>
	  </td>
	</tr>
  </table>
  </form>
  </body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -