list.jsp
来自「一个购房管理系统,JSF+Hibernate+Mssql2」· JSP 代码 · 共 158 行
JSP
158 行
<%@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 Operator</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/36.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.ListingOperators}" />
</div>
</td>
</tr>
<tr>
<td>
<h:dataTable value='#{operator.model}' var='item' border="1"
cellpadding="0" cellspacing="0" width="650">
<h:column>
<f:facet name="header">
<h:outputText value="#{label.OperatorID}" />
</f:facet>
<h:commandLink action="#{operator.detailSetup}"
value="#{item.operatorId}" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="#{label.OperatorName}" />
</f:facet>
<h:outputText value="#{item.operatorName}" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="#{label.Password}" />
</f:facet>
<h:outputText value="#{item.password}" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="#{label.Tel}" />
</f:facet>
<h:outputText value="#{item.tel}" />
</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.Action}" />
</f:facet>
<h:commandLink value="#{label.Destroy}"
action="#{operator.destroy}">
<f:param name="operatorID" value="#{item.operatorId}" />
</h:commandLink>
<h:outputText value=" " />
<h:commandLink value="#{label.Edit}"
action="#{operator.editSetup}">
<f:param name="operatorID" value="#{item.operatorId}" />
</h:commandLink>
</h:column>
</h:dataTable>
</td>
</tr>
<tr>
<td>
<h:outputText
value="#{label.The}#{operator.itemCount==0?0:operator.firstItem + 1}--#{operator.lastItem}#{label.Item}/#{label.AmountTo}#{operator.itemCount}#{label.Item}" />
<h:commandLink action="#{operator.prev}"
value="#{label.Previous}#{operator.batchSize}#{label.Item}"
rendered="#{operator.firstItem >= operator.batchSize}" />
<h:commandLink action="#{operator.next}"
value="#{label.Next}#{operator.batchSize}#{label.Item}"
rendered="#{operator.lastItem + operator.batchSize <= operator.itemCount}" />
<h:commandLink action="#{operator.next}"
value="#{label.Remaining}#{operator.itemCount - operator.lastItem}#{label.Item}"
rendered="#{operator.lastItem < operator.itemCount && operator.lastItem + operator.batchSize > operator.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="#{operator.queryProperty}">
<f:selectItem itemValue="operatorId" itemLabel="操作员编号" />
<f:selectItem itemValue="operatorName" itemLabel="操作员姓名" />
<f:selectItem itemValue="all" itemLabel="所有操作员" />
</h:selectOneMenu>
</td>
<td align="left">
<h:inputText id="queryValue" value="#{operator.queryValue}"
title="queryValue" />
<h:commandButton action="#{operator.findOperators}"
value="#{label.Query}" />
</td>
<td align="center">
<div align="center">
<h:commandButton action="#{operator.createSetup}"
value="#{label.NewOperator}" />
</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 + =
减小字号Ctrl + -
显示快捷键?