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

📄 modify.jsp

📁 是一个Bug系统
💻 JSP
字号:
<%@page  contentType="text/html;charset=gb2312"%>
<jsp:directive.page import="com.runwit.ebookstore.model.BugStatusModel"/>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<html>
	<head>
		<title>全局管理->组管理->组修改</title>
		<%@include file="../../inc/style.css"%>
	</head>
	<script type="text/javascript">
		function specialProcess(s) {
			//						alert(s);
			var sList = s.split(',');
			//alert(sList.length);
			for(var i=0; i<groupForm.statusList.length; i++) {
				var chk = false;
				for(var j=0; j<sList.length; j++) {
					if(groupForm.statusList[i].value == sList[j]) {
						chk = true;
						break;
					}
				}
				if(chk)
					groupForm.statusList[i].checked = true;
			}
		}
	</script>
	<%
		String myIds = "";
	 %>
	<logic:iterate id="m"  name="modifyModel" property="statusList">
		<%myIds += (((BugStatusModel)m).getBsid()+","); %>
	</logic:iterate>
	<body onload="specialProcess('<%=myIds %>')">
		<center>
		<%@include file="../../inc/head.inc"%>
		<!--修改组输入表格-->
		<table width="780" border="0">
			<html:form action="/group/groupact.do?function=update" method="post">
			<tbody>
				<tr>
					<td colspan="2" align="left">
						组创建>>
					</td>
				</tr>
				<tr>
					<td width="150" bgcolor="#DDDDEE">组名称</td>
					<td width="630">
						<html:text name="modifyModel" property="name" size="20"/>
						<html:hidden name="modifyModel" property="groupId"/>
					</td>
				</tr>
				<tr>
					<td bgcolor="#DDDDEE">组所拥有的BUG状态</td>
					<td>
						<logic:notEmpty name="bugStatusList">
							<logic:iterate id="bs" name="bugStatusList" >
							<html:multibox name="modifyModel" property="statusList" ><bean:write name="bs" property="bsid"/></html:multibox>
							<bean:write name="bs" property="name"/>
							</logic:iterate>
						</logic:notEmpty>
					</td>
				</tr>
				<tr>
					<td colspan="2" align="left">
						<input type="submit" value=" 修改组 ">
						<input type="button" value=" 取消修改 " onclick="history.back();">
					</td>
				</tr>
			</tbody>
		</html:form>
		</table>
	</center>
	</body>
</html>

⌨️ 快捷键说明

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