votepost.jsp
来自「一个jsp写的bbs」· JSP 代码 · 共 120 行
JSP
120 行
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@taglib uri="/WEB-INF/bbscs.tld" prefix="bbscs"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html:html xhtml="true">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>发表信息</title>
<link href="css/css1.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
<script type="text/javascript">
function postSubmit() {
document.getElementById("postButton").disabled = true;
document.votePostForm.submit();
}
</script>
</head>
<body>
<html:errors/>
<table width="100%" border="0" cellpadding="5" cellspacing="0">
<tr>
<td class="bgColor3">
<!--您目前在 <strong><html:link action="/forum?action=index" paramId="bid" paramName="board" paramProperty="id"><bean:write name="board" property="boardName"/></html:link></strong> 发布投票-->
<bbscs:post type="voteat" tagIdName="votePostForm"/>
</td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="bgColor3">
<html:form action="/votePost" method="POST">
<html:hidden property="action"/>
<html:hidden property="bid"/>
<html:hidden property="id"/>
<logic:equal value="editdo" name="votePostForm" property="action">
<html:hidden property="tagId"/>
</logic:equal>
<tr>
<td><table width="100%" border="0" cellpadding="5" cellspacing="1">
<tr>
<td width="15%" class="bgColor2">投票标题</td>
<td width="85%" class="bgColor2">
<logic:equal value="add" name="votePostForm" property="action">
<html:select property="tagId" styleId="tagId" styleClass="select1">
<html:options collection="tagValues" property="value" labelProperty="label"/>
</html:select>
</logic:equal>
<html:text property="title" styleId="title" styleClass="input2" size="60" maxlength="60">
</html:text>
</td>
</tr>
<tr class="bgColor4">
<td>投票内容<BR />(投票项用回车分割)</td>
<td>
<logic:equal value="add" name="votePostForm" property="action">
<html:textarea property="detail" cols="60" rows="15" styleClass="textarea1">
</html:textarea>
</logic:equal>
<logic:equal value="editdo" name="votePostForm" property="action">
<html:textarea property="detail" readonly="true" cols="60" rows="15" styleClass="textarea1">
</html:textarea>
</logic:equal>
</td>
</tr>
<tr class="bgColor2">
<td>项目属性</td>
<td>
<html:radio property="isM" value="0"></html:radio>
单选
<html:radio property="isM" value="1"></html:radio>
复选
</td>
</tr>
<tr class="bgColor4">
<td>截止日期</td>
<td>
<html:select property="deadLineYear" styleId="deadLineYear" styleClass="select1">
<html:options collection="yearValues" property="value" labelProperty="label"/>
</html:select>
年
<html:select property="deadLineMon" styleId="deadLineMon" styleClass="select1">
<html:options collection="monthValues" property="value" labelProperty="label"/>
</html:select>
月
<html:select property="deadLineDay" styleId="deadLineDay" styleClass="select1">
<html:options collection="dayValues" property="value" labelProperty="label"/>
</html:select>
日
</td>
</tr>
<tr class="bgColor2">
<td colspan="2" class="font4">
<span class="p1">
<bean:message key="post.postnotice1"/>
</span>
</td>
</tr>
<tr class="bgColor4">
<td colspan="2"><div align="center">
<input id="postButton" name="Submit" type="button" class="button2" value="发表" onclick="postSubmit();"/>
<html:button property="back" styleClass="button2" onclick="javascript:history.go(-1);"><bean:message key="bbscs.back"/></html:button>
</div></td>
</tr>
</table></td>
</tr>
</html:form>
</table>
</body>
</html:html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?