reply.jsp

来自「tbuy1.1.5是在netbeans环境下用JSF技术编写的一个论坛tbuy1」· JSP 代码 · 共 74 行

JSP
74
字号
<%@page contentType="text/html" 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:10%;}.tCol2 { width:90%;}</style><script type="text/javascript" language="javascript">function displayMoreObj() {    var checkObj = document.getElementById("form:more");    var moreObj = document.getElementById("form:moreSelect");      if (checkObj.checked) {        moreObj.style.display = "";    } else {        moreObj.style.display = "none";    }}</script><f:view locale="#{localeBean.locale}"><html>    <head>        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">        <title><h:outputText value="#{sayBBS.reply_title}"/></title>        <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/common/css/style.css"/>        <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/bbs/css/style.css"/>    </head>    <body>    <%@ include file="/common/header.jsp" %>    <%@ include file="/common/top.jsp"%>    <%@ include file="/bbs/include/bbsnav.jsp"%>    <h:form id="form" enctype="multipart/form-data" style="margin-top:10px;">        <h:panelGrid border="0" columns="1" cellpadding="3" cellspacing="3"                     styleClass="bbs_table1 tableWH bgGray" headerClass="alignLeft height28 bgOrange">            <f:facet name="header">                <h:outputText value="#{sayBBS.reply_title}:#{bbs_reply.topic.title}"/>            </f:facet>            <h:messages globalOnly="true" showDetail="true" infoClass="infos" errorClass="errors" fatalClass="fatals"/>            <h:panelGrid border="1" columns="2" cellpadding="3" cellspacing="3" styleClass="bbs_table2 tableWH bgGray" columnClasses="tCol1,tCol2">                <h:outputText value="#{sayBBS.reply_content}:"/>                <t:inputHtml required="true" addKupuLogo="false" value="#{bbs_reply.content}" style="width:100%;height:200px;"/>                <h:panelGroup>                    <h:selectBooleanCheckbox id="more" onclick="javascript:displayMoreObj()"/>                    <h:outputLabel for="more" value="#{sayBBS.reply_more}"/>                </h:panelGroup>                <f:facet name="footer">                    <h:panelGrid id="moreSelect" border="0" cellpadding="3" cellspacing="3"                                  styleClass="table1 tableWH" style="display:none;" columnClasses="tCol1,tCol2" columns="2">                        <h:outputText value="#{sayBBS.reply_upload}:"/>                        <h:panelGroup>                            <t:inputTextHelp size="20" styleClass="marginRight" helpText="#{sayBBS.reply_uploadDes}" value="#{bbs_reply.myFileDes}">                                <f:validateLength minimum="2" maximum="16"/>                            </t:inputTextHelp>                            <t:inputFileUpload styleClass="marginRight height22" size="30" value="#{bbs_reply.myFile}"/>                            <h:outputText value="#{sayBBS.reply_uploadDes2}#{bbs_reply.suffixAllow}" styleClass="colorGray"/>                        </h:panelGroup>                    </h:panelGrid>                </f:facet>                <h:panelGroup>                    <h:inputHidden value="#{bbs_reply.topic.num}"/>                    <h:inputHidden value="#{bbs_reply.topic.title}"/>                    <h:commandButton value="#{sayBBS.reply_reply}" action="#{bbs_reply.reply}"/>                    <h:commandButton value="#{sayBBS.reply_cancel}" immediate="true" style="margin-left:5px"/>                </h:panelGroup>            </h:panelGrid>        </h:panelGrid>    </h:form>    <%@ include file="/common/footer.jsp" %>    </body></html></f:view>

⌨️ 快捷键说明

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