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

📄 personmemo.jsp

📁 java jsp教程
💻 JSP
字号:
<%@ page contentType="text/html; charset=GBK"%>
<%
String jspURL = request.getRequestURI();
if(jspURL.indexOf("jsp")!=-1)
  jspURL = jspURL.substring(jspURL.indexOf("jsp")-1);
if(jspURL.indexOf("?")!=-1)
  jspURL = jspURL.substring(0,jspURL.indexOf("?")-1);
%>
<!-- 成员备注维护 <%=jspURL%> edited by Ray 2005-11-17 -->

<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html;charset=gb2312">
<link rel="stylesheet" href="<%=request.getContextPath()%>/css/style.css">
<script language="JavaScript" src="<%=request.getContextPath()%>/include/common.js"></script>
<script language="JavaScript" type="text/JavaScript">
//得到传递参数的数组
var url=location.search;
var Request = new Object();
if(url.indexOf("?")!=-1)
{
    var str = url.substr(1)  //去掉?号
    strs = str.split("&");
    for(var i=0;i<strs.length;i++)
    {
        Request[strs[i].split("=")[0]]=unescape(strs[i].split("=")[1]);
    }
}
//修改备注
function _commit(){
	var tempGroupID = document.form1.groupID.value;
	document.form1.action = "<%=request.getContextPath()%>/servlet/UpdatePersonMemoServlet";
	document.form1.submit();
	window.top.opener.location = "<%=request.getContextPath()%>/servlet/ShowGroupPersonServlet?groupID="+tempGroupID;
	window.close();
}
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000" background="<%=request.getContextPath()%>/images/grid.gif" leftmargin="0" topmargin="10">
<form method=post name=form1 >
<input type="hidden" name="id">
<input type="hidden" name="groupID">
<table width="95%" border="0" cellspacing="1" cellpadding="2" align="center" bordercolordark="#DFDFFF" bordercolorlight="#003366" bgcolor="#6699CC">
	<tr class="lc2" bgcolor="#99CCFF">
		<th BGCOLOR="#99CCFF" ALIGN="center" HEIGHT="23" colspan="2">[
		<script language="javascript">
			document.write(Request["personName"]);
		</script>]的备注</th>  
	</tr>
	<tr class="lc2" bgcolor="#EEF4FF" height="20">
		<td width="20%" align="right">备注:&nbsp;&nbsp;</td>
		<td width="80%" align="center">
		<textarea name="personMemo" style="width:320" rows="8">
		</textarea>
		</td>
	</tr>
</table><BR>
<CENTER>
<img src="<%=request.getContextPath()%>/images/add.gif" border="0" onClick="_commit()" style="cursor: hand">&nbsp;&nbsp;
<img src="<%=request.getContextPath()%>/images/close.gif" border="0" onClick="window.close()" style="cursor: hand">
</CENTER>
<script language="JavaScript" type="text/JavaScript">
document.form1.id.value = Request["groupPersonId"];
document.form1.groupID.value = Request["groupID"];
document.form1.personMemo.value = Request["memo"];
</script>
</form>
</body>
</html>

⌨️ 快捷键说明

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