📄 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 Housestyle</title>
</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/35.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.ListingHouseStyles}" />
</div>
</td>
</tr>
<tr>
<td>
<h:dataTable value='#{housestyle.model}' var='item' border="1"
cellpadding="0" cellspacing="0" width="650">
<h:column>
<f:facet name="header">
<h:outputText value="#{label.StyleID}" />
</f:facet>
<h:commandLink action="#{housestyle.detailSetup}"
value="#{item.styleId}" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="#{label.StyleName}" />
</f:facet>
<h:outputText value="#{item.styleName}" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="#{label.BuildingArea}" />
</f:facet>
<h:outputText value="#{item.buildingArea}" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="#{label.InsideArea}" />
</f:facet>
<h:outputText value="#{item.insideArea}" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="#{label.Others}" />
</f:facet>
<h:outputText value="#{item.others}" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="#{label.Price}" />
</f:facet>
<h:outputText value="#{item.price}" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="#{label.Image}" />
</f:facet>
<h:outputText value="#{item.image}" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="#{label.Bz}" />
</f:facet>
<h:outputText value="#{item.bz}" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="#{label.BuildingID}" />
</f:facet>
<h:outputText value="#{item.building.buildingId}" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="#{label.Action}" />
</f:facet>
<h:commandLink value="#{label.Destroy}"
action="#{housestyle.destroy}">
<f:param name="styleID" value="#{item.styleId}" />
</h:commandLink>
<h:outputText value=" " />
<h:commandLink value="#{label.Edit}"
action="#{housestyle.editSetup}">
<f:param name="styleID" value="#{item.styleId}" />
</h:commandLink>
</h:column>
</h:dataTable>
</td>
</tr>
<tr>
<td>
<h:outputText
value="#{label.The}#{housestyle.itemCount==0?0:housestyle.firstItem + 1}--#{housestyle.lastItem}#{label.Item}/#{label.AmountTo}#{housestyle.itemCount}#{label.Item}" />
<h:commandLink action="#{housestyle.prev}"
value="#{label.Previous}#{housestyle.batchSize}#{label.Item}"
rendered="#{housestyle.firstItem >= housestyle.batchSize}" />
<h:commandLink action="#{housestyle.next}"
value="#{label.Next}#{housestyle.batchSize}#{label.Item}"
rendered="#{housestyle.lastItem + housestyle.batchSize <= housestyle.itemCount}" />
<h:commandLink action="#{housestyle.next}"
value="#{label.Remaining}#{housestyle.itemCount - housestyle.lastItem}#{label.Item}"
rendered="#{housestyle.lastItem < housestyle.itemCount && housestyle.lastItem + housestyle.batchSize > housestyle.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="#{housestyle.queryProperty}">
<f:selectItem itemValue="styleId"
itemLabel="#{label.StyleID}" />
<f:selectItem itemValue="building.buildingId"
itemLabel="#{label.BuildingID}" />
<f:selectItem itemValue="styleName"
itemLabel="#{label.StyleName}" />
<f:selectItem itemValue="all"
itemLabel="#{label.QueryByAll}" />
</h:selectOneMenu>
</td>
<td align="left">
<h:inputText id="queryValue"
value="#{housestyle.queryValue}" title="queryValue" />
<h:commandButton action="#{housestyle.findHouseStyles}"
value="#{label.Query}" />
</td>
<td align="center">
<div align="center">
<h:commandButton action="#{housestyle.createSetup}"
value="#{label.NewHouseStyle}" />
</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 + -