📄 debate_umpire.jsp
字号:
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c"%>
<%@ taglib uri="/WEB-INF/jrun-tag.tld" prefix="jrun"%>
<jsp:include flush="true" page="header.jsp" />
<div id="nav"><a href="${settings.indexname}">${settings.bbname}</a> » ${navigation} » 裁判点评</div>
<form method="post" id="postform" action="misc.jsp?action=debateumpire&tid=${tid}" onsubmit="return validate(this)">
<input type="hidden" name="formhash" id="formhash" value="{FORMHASH}" />
<input type="hidden" name="page" value="page" />
<div class="mainbox formbox">
<h1>裁判点评</h1>
<table summary="裁判点评" cellspacing="0" cellpadding="0">
<thead>
<tr>
<th>用户名</th>
<td>${jsprun_userss} [<a href="logging.jsp?action=logout">退出登录</a>]</td>
</tr>
</thead>
<tr>
<th>辩论主题</th>
<td>${debate.subject}</td>
</tr>
<tr>
<th>获胜</th>
<td>
<label><input type="radio" name="winner" value="1" class="radio" <c:if test="${debate.winner==1}">checked</c:if> id="winner1" /> 正方</label>
<label><input type="radio" name="winner" value="2" class="radio" <c:if test="${debate.winner==2}">checked</c:if> id="winner2" /> 反方</label>
<label><input type="radio" name="winner" value="3" class="radio" <c:if test="${debate.winner==3}">checked</c:if> id="winner3" /> 平局</label>
</td>
</tr>
<tr>
<th><label for="bestdebater">最佳辩手</label></th>
<td>
<input type="text" name="bestdebater" value="${debate.bestdebater}" size="20" id="bestdebater" />
<select onchange="$('bestdebater').value=this.options[this.options.selectedIndex].value">
<option value=""><strong>推荐名单</strong></option>
<option value="">------------------------------</option>
<c:forEach items="${debateposts}" var="dpost">
<option value="${dpost.username}" <c:if test="${dpost.username==dpost.bestdebater}">selected</c:if>>${dpost.username}( ${dpost.voters} 票, <c:choose><c:when test="${dpost.stand==1}">正方</c:when><c:when test="${dpost.stand==2}">反方</c:when></c:choose>)</option>
</c:forEach>
</select><em class="tips">(如果不在列表中,请自行填写)</em>
</td>
</tr>
<tr>
<th valign="top"><label for="umpirepoint">裁判观点</label></th>
<td><textarea id="umpirepoint" name="umpirepoint" style="width:98%; height: 200px;">${debate.umpirepoint}</textarea></td>
</tr>
<tr class="btns">
<th> </th>
<td><button type="submit" name="umpiresubmit" value="true" class="submit">提交</button></td>
</tr>
</table>
</div>
</form>
<script type="text/javascript">
function validate(theform) {
if(theform.bestdebater.value == '') {
alert('请填写最佳辩手。');
return false;
} else if($('winner1').checked == false && $('winner2').checked == false && $('winner3').checked == false) {
alert('请填写获胜方。');
return false;
} else if(theform.umpirepoint.value == '') {
alert('请填写您的观点。');
return false;
}
return true;
}
</script>
<jsp:include flush="true" page="footer.jsp" />
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -