📄 d02.jsp
字号:
<%@ page language="java" contentType="text/html; charset=GBK" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<html>
<head>
<title>D02</title>
<link href="/css/base.css" rel="stylesheet" type="text/css" >
<script LANGUAGE='javascript'>
function setValue(obj) {
var oA = document.getElementById("tab1").getElementsByTagName("INPUT");
for (var i = 0; i < oA.length; i++) {
if (oA[i].type = "checkBox") {
oA[i].checked = obj.checked;
}
}
}
function doSubmit() {
document.U01MHelpForm.method.value = "delete";
document.U01MHelpForm.submit();
}
function mtText(obj){
if (obj!=""){
document.U01MHelpForm.mhtypeText.disabled="true";
document.U01MHelpForm.mhtypeText.value="";
}else{
document.U01MHelpForm.mhtypeText.disabled="";
}
}
</script>
</head>
<body>
<html:form action="/U01MHelpAction">
<html:hidden property="method" value="insert" />
<table width="80%" border="0" align="center" cellpadding="4" cellspacing="0">
<tr >
<td><span class="font_title">帮助管理</span></td>
</tr>
</table>
<table width="80%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#7AA1E6" id="tab1">
<tr align="center" bordercolor="1" bgcolor="#FFFFFF">
<td width="33%"><div align="center">帮助分类</div></td>
<td><div align="center">帮助标题</div></td>
<td><div align="center">删除</div></td>
</tr>
<logic:present name="rs">
<logic:iterate id="mht" name="rs">
<tr bgcolor="#FFFFFF">
<td align="center" rowspan="<bean:write name='mht' property='count'/>">
<a href="/U01MHtypeSearch.do?method=search&htId=<bean:write name="mht" property="mhtype.htId"/>">
<bean:write name="mht" property="mhtype.htName"/>
</a>
</td>
<logic:iterate id="mh" name="mht" property="mhelp">
<td align="center">
<a href="/U01MHelpSearch.do?method=find&hId=<bean:write name="mh" property="HId"/>">
<bean:write name="mh" property="HTitle"/>
</a>
</td>
<td align="center"><html:multibox property="mHelp.hids"><bean:write name="mh" property="HId" /></html:multibox></td>
</tr>
<tr bgcolor="#FFFFFF">
</logic:iterate>
</tr>
</logic:iterate>
</logic:present>
</table>
<br />
<center>全选<input type="checkbox" name="all_select" value="checkbox" onClick="setValue(this)" class="input-checkbox">
<html:submit styleClass="inputstyle2" onclick="doSubmit();">
删除
</html:submit>
<html:errors property="mHelp.hids" />
</center><br><br>
<table width="80%" border="0" align="center" cellpadding="4" cellspacing="0">
<tr >
<td><span class="font_title">添加帮助</span></td>
</tr>
</table>
<table width="80%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#7AA1E6">
<tr align="center" bordercolor="1" bgcolor="#FFFFFF">
<td width="33%" align="center">帮助标题:</td>
<td colspan="2" align="left">
<html:text property="mHelp.HTitle" styleClass="input-text" />
<html:errors property="mHelp.HTitle" />
<html:errors property="error" />
</td>
</tr>
<tr align="center" bordercolor="1" bgcolor="#FFFFFF">
<td align="center">帮助分类:</td>
<td width="18%">
<html:select property="mHtype.htId" styleClass="input-select" onchange="mtText(document.U01MHelpForm.mhtype.options[document.U01MHelpForm.mhtype.selectedIndex].value)" styleId="mhtype">
<html:option value="">
请选择帮助分类
</html:option>
<html:options collection="htype" property="htId" labelProperty="htName" />
</html:select>
</td>
<td width="48%" align="left">
<html:text property="mHtype.htName" styleClass="input-text" styleId="mhtypeText"/>
<html:errors property="mHtype.htId" />
</td>
</tr>
<tr align="center" bordercolor="1" bgcolor="#FFFFFF">
<td align="center">帮助内容:</td>
<td colspan="2" align="left">
<html:textarea property="mHelp.HContent" styleClass="input-textarea" cols="40" rows="5" />
<html:errors property="mHelp.HContent" />
</td>
</tr>
</table>
<br/><br/>
<center>
<html:submit styleClass="inputstyle2">
保存
</html:submit>
</center>
</html:form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -