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

📄 post_typeoption.jsp

📁 论坛软件系统亦称电子公告板(BBS)系统
💻 JSP
字号:
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c"%>
<input type="hidden" name="typeid" size="45" value="${selecttypeid}" />
<table cellspacing="0" cellpadding="0" width="100%">
<c:if test="${threadtypes.expiration[selecttypeid]>0}">
	<tr>
		<th>信息有效期(必填)</th>
		<td>
			<select name="typeexpiration">
				<option value="259200">3天</option>
				<option value="432000">5天</option>
				<option value="604800">7天</option>
				<option value="2592000">1个月</option>
				<option value="7776000">3个月</option>
				<option value="15552000">半年</option>
				<option value="31536000">1年</option>
			</select>
		</td>
	</tr>
</c:if>
<c:forEach items="${optionlist}" var="obj">
	<c:set var="option" value="${obj.value}" scope="page"/>
	<tr>
		<th>${option.title}
			<c:if test="${option.maxnum!=null}">(最大值 ${option.maxnum})</c:if>
			<c:if test="${option.minnum!=null}">(最小值 ${option.minnum})</c:if>
			<c:if test="${option.maxlength!=null}">(最大长度 ${option.maxlength})</c:if>
			<c:if test="${option.required>0}">(必填)</c:if>
			<c:if test="${option.unchangeable>0}">(不可修改)</c:if>
			<c:if test="${option.description!=''}"><br />${option.description}</c:if>
		</th>
		<td>
			<c:choose>
				<c:when test="${option.type=='calendar'}">
					<script type="text/javascript" src="include/javascript/calendar.js"></script>
					<input type="text" name="typeoption[${option.identifier}]" size="45" value="${option.value}" onclick="showcalendar(event, this, false)" ${option.unchangeable}/>
				</c:when>
				<c:when test="${option.type=='number'||option.type=='text'||option.type=='email'||option.type=='image'||option.type=='url'}">
					<input type="text" name="typeoption[${option.identifier}]" size="45" value="${option.value}" ${option.unchangeable}/>
				</c:when>
				<c:when test="${option.type=='select'}">
					<select name="typeoption[${option.identifier}]" ${option.unchangeable}>
						<c:forTokens items="${option.choices}" delims="\n" var="value" varStatus="index">
							<option value="${index.count}" ${option.value[index.count]}>${value}</option>
						</c:forTokens>
					</select>
				</c:when>
				<c:when test="${option.type=='radio'}">
					<c:forTokens items="${option.choices}" delims="\n" var="value" varStatus="index">
						<input type="radio" class="radio" name="typeoption[${option.identifier}]" size="45" value="${index.count}" ${option.value[index.count]} ${option.unchangeable}> ${value}
					</c:forTokens>
				</c:when>
				<c:when test="${option.type=='checkbox'}">
					<c:forTokens items="${option.choices}" delims="\n" var="value" varStatus="index">
						<input type="checkbox" class="checkbox" name="typeoption[${option.identifier}]" size="45" value="${index.count}" ${option.value[index.count]} ${option.unchangeable}> ${value}
					</c:forTokens>
				</c:when>
				<c:when test="${option.type=='textarea'}">
					<textarea name="typeoption[${option.identifier}]" rows="10" cols="20" style="width:99%; height:60px" ${option.unchangeable}>${option.value}</textarea>
				</c:when>
			</c:choose>
		</td>
	</tr>
</c:forEach>
</table>

⌨️ 快捷键说明

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