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

📄 admingroups.jsp

📁 tbuy1.1.5是在netbeans环境下用JSF技术编写的一个论坛tbuy1.1.5是在netbeans环境下用JSF技术编写的一个论坛
💻 JSP
字号:
<%@page contentType="text/html"%><%@page pageEncoding="UTF-8"%><%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%><%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%><%@taglib prefix="t" uri="http://myfaces.apache.org/tomahawk"%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"   "http://www.w3.org/TR/html4/loose.dtd"><style type="text/css">.tCol1{width:300px;vertical-align:top;}.tCol2{vertical-align:top;}.tStyle1 {background: #F6F6F6; width: 100%}.tStyle2 {border-color: #FFFFFF;}</style><f:view locale="#{localeBean.locale}"><html>    <head>        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">        <title>            <h:outputText value="用户组信息"/>        </title>        <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/common/css/style.css"/>    </head>    <body style="margin:0px">        <h:panelGrid columns="1"         border="0"         cellpadding="3"         cellspacing="3"        styleClass="table2 tableWH"         headerClass="th">            <f:facet name="header">                <h:outputText value="论坛用户组编辑"/>            </f:facet>            <h:messages globalOnly="false"                 showDetail="true"                 infoClass="infos"                 errorClass="errors"                 fatalClass="fatals"/>            <h:outputText value="帮助:关于论坛的用户组信息,                你可以在这里编辑论坛的用户组信息,                或者添加一个新的用户组"            styleClass="colorGray"/>	    	    <h:outputText value="<b>1.添加新用户组</b>:你可以为论坛添加一个新的用户组,                注意用户组ID不可相同"            escape="false"             styleClass="colorGray"/>            	    <h:outputText value="<b>2.已有的用户组列表</b>:你可以编辑已有的用户组列表,                只可编辑名称,及相应的积分."            escape="false"             styleClass="colorGray"/>                        <h:panelGrid border="0"	    width="100%"            cellpadding="3"             cellspacing="3"            columns="2"	    columnClasses="tCol1,tCol2">                <h:panelGroup>		    <h:form id="form1">                    <fieldset>                       <legend>                           <h:outputText value="添加新用户组"/>                       </legend>                       <h:panelGrid border="0"                        columns="4"                        width="100%"                        cellpadding="3"                         cellspacing="3"                        style="text-align:center"                        headerClass="th">                            <h:outputText value="用户组ID"/>                            <h:outputText value="标识名称"/>                            <h:outputText value="所需积分"/>                            <h:panelGroup/>                            <h:inputText size="4"  required="true" value="#{bbs_adminGroups.groupId}"/>                            <h:inputText size="10" required="true" value="#{bbs_adminGroups.groupLabel}"/>                            <h:inputText size="4"  required="true" value="#{bbs_adminGroups.groupValue}"/>                            <h:commandButton value="添加" action="#{bbs_adminGroups.newGroup}"/>                        </h:panelGrid>                   </fieldset>                   </h:form>               </h:panelGroup>                <h:panelGroup>		    <h:form id="form2">                    <fieldset>                       <legend>                           <h:outputText value="已有的用户组列表"/>                       </legend>                       <h:dataTable border="0"                        width="100%"                        cellpadding="3"                         cellspacing="3"                        style="text-align:center"			rowClasses="row2,row1"                        value="#{bbs_adminGroups.groups}" var="group"			binding="#{bbs_adminGroups.uiGroups}">                            <h:column>				<f:facet name="header">				    <h:outputText value="用户组ID"/>				</f:facet>				<h:inputText readonly="true" size="4" value="#{group['id']}"/>                            </h:column>			    <h:column>				<f:facet name="header">				    <h:outputText value="标识名称"/>				</f:facet>				<h:inputText size="10" value="#{group['label']}"/>                            </h:column>			    <h:column>				<f:facet name="header">				    <h:outputText value="所需积分"/>				</f:facet>				<h:inputText size="4" value="#{group['value']}"/>                            </h:column>			    <h:column>				<f:facet name="header">				    <h:outputText value="操作"/>				</f:facet>				<h:commandButton value="移除" action="#{bbs_adminGroups.removeGroup}"/>                            </h:column>                        </h:dataTable>			<h:commandButton value="确认编辑" action="#{bbs_adminGroups.edit}" style="margin-left:20px;"/>                    </fieldset>                    </h:form>                </h:panelGroup>            </h:panelGrid>          </h:panelGrid>    </body></html></f:view>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -