listrelationinfo.jsp
来自「一个关于tlms的一个小程序 看看能否帮助到别人」· JSP 代码 · 共 196 行
JSP
196 行
<%@ include file="/WEB-INF/jsp/common/Taglibs.jsp" %>
<script type="text/javascript" language="javascript">
function doSearch() {
var f = document.forms[0];
if (validateSearchRelationInfo(f))
{
//alert("ok");
f.action = "<c:url value="/admin/relationInfo/searchRelationInfo.do"/>";
f.submit();
}
return false;
}
function initAdd() {
var f = document.forms[0];
f.action = "<c:url value="/admin/relationInfo/initAddRelationInfo.do"/>";
f.submit();
}
function initEdit(id) {
// alert("33");
var f = document.forms[0];
f.elements["relationInfoBean.id"].value = id;
f.action = "<c:url value="/admin/relationInfo/initEditRelationInfo.do"/>";
f.submit();
}
</script>
<html:form action="/relationInfo/searchRelationInfo.do">
<html:hidden property="relationInfoBean.id"/>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="28" colspan="2">
<img src="<c:url value="/images/dot.gif"/>" width="11" height="11" alt="">
<bean:message key="label.admin.systemSetting"/>>
<bean:message key="label.admin.relationInfo.title"/>
</td>
</tr>
<tr>
<td width="2%" height="31" class="section">
<img src="<c:url value="/images/menu_dot.jpg"/>" width="6" height="19" alt="">
</td>
<td width="98%" class="section">
<bean:message key="label.common.searchCondition"/>
</td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td>
<table width="100%" height="43" border="0" cellpadding="0"
cellspacing="0" style="font-size:12px; width:96% ">
<tr>
<td width="11%" nowrap><bean:message key="label.admin.relationInfo.relationInfoContent"/></td>
<td width="27%" nowrap><html:text property="searchBean.name"/></td>
<td width="11%" nowrap><bean:message key="label.admin.relationInfo.relationInfoFatherValue"/></td>
<td width="53%" nowrap><html:text property="searchBean.fatherValue"/></td>
</tr>
<tr>
<td nowrap><bean:message key="label.admin.relationInfo.relationInfoDataType"/></td>
<!--td nowrap>
<html:select property="searchBean.dataType" value="${searchBean.dataType}">
<html:option value=""><bean:message key="label.common.pleaseSelect"/></html:option>
<c:forEach items="${dataTypeList}" var="dt">
<html:option value="${dt.id}"><c:out value="${dt.name}"/></html:option>
</c:forEach>
</html:select>
</td-->
<td nowrap><html:text property="searchBean.dataType"/></td>
<td nowrap><bean:message key="label.admin.relationInfo.relationInfoValue"/></td>
<td nowrap><html:text property="searchBean.value"/></td>
</tr>
<tr>
<td colspan="4" nowrap>
<table border="0" cellspacing="0" cellpadding="0" align="left">
<tr>
<td width="8" class="ButtonHOMEL-msover"></td>
<td class="ButtonHOME-msover">
<span class="mouse" onclick="doSearch();">
<bean:message key="button.search"/>
</span>
</td>
<td width="8" class="ButtonHOMER-msover"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td height="31" class="section">
<img src="<c:url value="/images/menu_dot.jpg"/>" width="6" height="19" alt="">
</td>
<td height="31" class="section">
<bean:message key="label.admin.relationInfo.relationInfoList"/>
</td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td>
<c:set var="sn_display_tag"><input type="checkbox" name="idArrHeader"
onclick="selectGlobal(this.checked,'relationInfo')"/>
</c:set>
<display:table name="${pagination}" cellspacing="0" cellpadding="0" id="relationInfo"
sort="external" export="flase" requestURI="" class="subMainTable"
style="width:98%" decorator="com.szmx.component.displaytag.TableDecoratorExtends">
<display:column title="${sn_display_tag}" class="subMainTd" headerClass="subMainTh">
<html:multibox property="idArr" onclick="selectRow(this.checked,'relationInfo')">
<c:out value="${relationInfo[0]}"/>
</html:multibox>
</display:column>
<display:column titleKey="label.admin.relationInfo.relationInfoContent" class="subMainTd" sortable="true"
sortProperty="name" headerClass="subMainTh">
<a href="#" onclick="initEdit('<c:out value="${relationInfo[0]}"/>');"><c:out
value="${relationInfo[1]}"/></a>
</display:column>
<display:column titleKey="label.admin.relationInfo.relationInfoValue" class="subMainTd" sortable="true"
sortProperty="value" headerClass="subMainTh">
<c:out value="${relationInfo[2]}"/>
</display:column>
<display:column titleKey="label.admin.relationInfo.relationInfoSort" class="subMainTd" sortable="true"
sortProperty="sort"
headerClass="subMainTh">
<c:out value="${relationInfo[3]}"/>
</display:column>
<display:column titleKey="label.admin.relationInfo.relationInfoFatherValue" class="subMainTd"
sortable="true" sortProperty="fatherValue"
headerClass="subMainTh">
<c:out value="${relationInfo[4]}"/>
</display:column>
<display:column titleKey="label.admin.relationInfo.relationInfoDataType" class="subMainTd" sortable="true"
sortProperty="dataType"
headerClass="subMainTh">
<c:out value="${relationInfo[5]}"/>
</display:column>
</display:table>
</td>
</tr>
<tr>
<td height="39"> </td>
<td>
<table border="0" cellspacing="0" cellpadding="0" align="left">
<tr>
<td width="8" class="ButtonHOMEL-msover"></td>
<td class="ButtonHOME-msover"><span onclick="initAdd();" class="mouse">
<bean:message key="button.add"/></span>
</td>
<td width="8" class="ButtonHOMER-msover"></td>
<td width="10"></td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" align="left">
<tr>
<td width="8" class="ButtonHOMEL-msover"></td>
<td class="ButtonHOME-msover">
<c:set value="${pageContext.request.contextPath}" var="contextPath"/>
<span class="mouse"
onclick="deleteRecord ( 'idArr', '<c:out value="${contextPath}"/>/admin/relationInfo/deleteRelationInfo.do' );">
<bean:message key="button.delete"/></span>
</td>
<td width="8" class="ButtonHOMER-msover"></td>
<td width="10"></td>
</tr>
</table>
</td>
</tr>
</table>
</html:form>
<html:javascript formName="/relationInfo/searchRelationInfo" method="validateSearchRelationInfo"/>
<script type="text/javascript" language="javascript">
displayTableRows("relationInfo");
</script>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?