📄 list.jsp
字号:
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>List Community</title>
<link href="../common/css.css" rel="stylesheet" type="text/css">
</head>
<body>
<f:view>
<f:loadBundle basename="resources" var="label" />
<h:form>
<table width="850" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<img id="_id1" src="../images/28.jpg" height="60" width="100%" />
</td>
</tr>
<tr>
<td width="100%" align="center">
<table width="650" border="0" cellspacing="0">
<tr>
<td style="background-color: #cc0001;" height="26"><div style="color:#FFFFFF;font-size:14px; font-family:'宋体'; font-weight:bold;" align="left"> <h:outputText value="#{label.ListingCommunitys}" /></div></td>
</tr>
<tr>
<td>
<h:dataTable value='#{community.model}' var='item' border="1"
cellpadding="0" cellspacing="0" width="650">
<h:column>
<f:facet name="header">
<h:outputText value="#{label.CommunityName}" />
</f:facet>
<h:commandLink action="#{community.detailSetup}"
value="#{item.communityName}" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="#{label.Developer}" />
</f:facet>
<h:outputText value="#{item.developer}" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="#{label.Property}" />
</f:facet>
<h:outputText value="#{item.property}" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="#{label.Address}" />
</f:facet>
<h:outputText value="#{item.address}" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="#{label.PublishTime}" />
</f:facet>
<h:outputText value="#{item.publishTime}">
<f:convertDateTime type="date" pattern="yyyy-MM-dd" />
</h:outputText>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="#{label.Action}" />
</f:facet>
<h:commandLink value="#{label.Destroy}"
action="#{community.destroy}">
<f:param name="communityID" value="#{item.communityId}" />
</h:commandLink>
<h:outputText value=" " />
<h:commandLink value="#{label.Edit}"
action="#{community.editSetup}">
<f:param name="communityID" value="#{item.communityId}" />
</h:commandLink>
</h:column>
</h:dataTable>
</td>
</tr>
<tr>
<td>
<h:outputText
value="#{label.The}#{community.itemCount==0?0:community.firstItem + 1}--#{community.lastItem}#{label.Item}/#{label.AmountTo}#{community.itemCount}#{label.Item}" />
<h:commandLink action="#{community.prev}"
value="#{label.Previous}#{community.batchSize}#{label.Item}"
rendered="#{community.firstItem >= community.batchSize}" />
<h:commandLink action="#{community.next}"
value="#{label.Next}#{community.batchSize}#{label.Item}"
rendered="#{community.lastItem + community.batchSize <= community.itemCount}" />
<h:commandLink action="#{community.next}"
value="#{label.Remaining}#{community.itemCount - community.lastItem}#{label.Item}"
rendered="#{community.lastItem < community.itemCount && community.lastItem + community.batchSize > community.itemCount}" />
</td>
</tr>
<tr>
<td height="25"> </td>
</tr>
<tr>
<td>
<table width="650" border="0" cellspacing="0">
<tr>
<td align="center">
按照
</td>
<td align="right">
<h:selectOneMenu value="#{community.queryProperty}">
<f:selectItem itemValue="communityId" itemLabel="楼盘编号" />
<f:selectItem itemValue="communityName" itemLabel="楼盘名字" />
<f:selectItem itemValue="developer" itemLabel="开发商" />
<f:selectItem itemValue="all" itemLabel="查看所有" />
</h:selectOneMenu>
</td>
<td align="left">
<h:inputText id="queryValue"
value="#{community.queryValue}" title="queryValue" />
<h:commandButton action="#{community.findCommunitys}"
value="#{label.Query}" />
</td>
<td align="center">
<div align="center">
<h:commandButton action="#{community.createSetup}"
value="#{label.NewCommunity}" />
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="100%" align="center">
<table width="650" border="0" cellspacing="0">
<tr>
<td align="left">
<h:messages errorStyle="color: red" infoStyle="color: green" layout="table" />
</td>
</tr>
</table>
</td>
</tr>
</table>
</h:form>
</f:view>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -