⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 list.jsp

📁 一个购房管理系统,JSF+Hibernate+Mssql2
💻 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 CustomerFunction</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/30.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">
											&nbsp;&nbsp;&nbsp;
											<h:outputText value="#{label.ListingCustomerFunctions}" />
										</div>
									</td>
								</tr>
								<tr>
									<td>
										<h:dataTable value='#{customerFunction.model}' var='item'
											border="1" cellpadding="0" cellspacing="0" width="650">
											<h:column>
												<f:facet name="header">
													<h:outputText value="#{label.Id}" />
												</f:facet>
												<h:commandLink action="#{customerFunction.detailSetup}"
													value="#{item.id}" />
											</h:column>
											<h:column>
												<f:facet name="header">
													<h:outputText value="#{label.FunctionID}" />
												</f:facet>
												<h:outputText value="#{item.functionId}" />
											</h:column>
											<h:column>
												<f:facet name="header">
													<h:outputText value="#{label.CustomerID}" />
												</f:facet>
												<h:outputText value="#{item.customer.customerId}" />
											</h:column>
											<h:column>
												<f:facet name="header">
													<h:outputText value="#{label.Action}" />
												</f:facet>
												<h:commandLink value="#{label.Destroy}"
													action="#{customerFunction.destroy}">
													<f:param name="id" value="#{item.id}" />
												</h:commandLink>
												<h:outputText value=" " />
												<h:commandLink value="#{label.Edit}"
													action="#{customerFunction.editSetup}">
													<f:param name="id" value="#{item.id}" />
												</h:commandLink>
											</h:column>
										</h:dataTable>
									</td>
								</tr>
								<tr>
									<td>
										<h:outputText
											value="#{label.The}#{customerFunction.itemCount==0?0:customerFunction.firstItem + 1}--#{customerFunction.lastItem}#{label.Item}/#{label.AmountTo}#{customerFunction.itemCount}#{label.Item}" />
										&nbsp;
										<h:commandLink action="#{customerFunction.prev}"
											value="#{label.Previous}#{customerFunction.batchSize}#{label.Item}"
											rendered="#{customerFunction.firstItem >= customerFunction.batchSize}" />
										&nbsp;
										<h:commandLink action="#{customerFunction.next}"
											value="#{label.Next}#{customerFunction.batchSize}#{label.Item}"
											rendered="#{customerFunction.lastItem + customerFunction.batchSize <= customerFunction.itemCount}" />
										&nbsp;
										<h:commandLink action="#{customerFunction.next}"
											value="#{label.Remaining}#{customerFunction.itemCount - customerFunction.lastItem}#{label.Item}"
											rendered="#{customerFunction.lastItem < customerFunction.itemCount && customerFunction.lastItem + customerFunction.batchSize > customerFunction.itemCount}" />
									</td>
								</tr>
								<tr>
									<td height="25">
										&nbsp;&nbsp;
									</td>
								</tr>
								<tr>
									<td>
										<table width="650" border="0" cellspacing="0">
											<tr>
												<td align="center">
													按照
												</td>
												<td align="right">
													<h:selectOneMenu value="#{customerFunction.queryProperty}">
														<f:selectItem itemValue="id" itemLabel="编号" />
														<f:selectItem itemValue="customer.customerId"
															itemLabel="客户编号" />
														<f:selectItem itemValue="all" itemLabel="查看所有客户权限" />
													</h:selectOneMenu>
												</td>
												<td align="left">
													<h:inputText id="queryValue"
														value="#{customerFunction.queryValue}" title="queryValue" />
													<h:commandButton
														action="#{customerFunction.findCustomerFunctions}"
														value="#{label.Query}" />
												</td>
												<td align="center">
													<div align="center">
														<h:commandButton action="#{customerFunction.createSetup}"
															value="#{label.NewCustomerFunction}" />
													</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 + -