📄 topicmove.jsp
字号:
<%@ page language="java" contentType="text/html;charset=UTF-8" %><form id="gform" name="gform" action="/club/topic.do" method="post" onsubmit="return verifyInput();">
<table summary="" class="tabform">
<tr><th scope="row">标题:</th><td><club:link type="title" request="<%=request%>" object="${topic}" rel="_self" /></td></tr>
<tr><th scope="row">作者:</th><td><club:link type="userName" user="${topic.user}" object="${topic}" request="<%=request%>" /></td></tr>
<tr>
<th scope="row">目标版面:</th>
<td>
<select name="toForumId" id="toForumId"><option value="0">选择目标版面</option><%
com.yeqiangwei.club.controller.form.TopicMoveForm topicMoveForm = (com.yeqiangwei.club.controller.form.TopicMoveForm)request.getAttribute("TopicMoveForm");
int toForumId = 0;
if(topicMoveForm!=null){
toForumId = topicMoveForm.getToForumId();
}
java.util.List flist = forumJsp.findAll();
for(int i=0; i<flist.size(); i++){
com.yeqiangwei.club.view.model.ForumView item = (com.yeqiangwei.club.view.model.ForumView)flist.get(i);
if(!item.getIsHidden()){
if(item.getType()==0){
out.print("<optgroup label=\"");
out.print(forumJsp.getIndentStr(item.getLayer()*4));
out.print(item.getForumName()+"\"></optgroup> ");
}else{
out.print("<option value=\"");
out.print(item.getForumId());
out.print("\"");
if(item.getForumId()==toForumId){
out.print(" selected");
}
out.print(">");
out.print(forumJsp.getIndentStr(item.getLayer()*4));
out.print(item.getForumName());
out.print("</option>");
}
}
}%></select>
</td>
</tr>
<tr>
<th scope="row">在原版面保留链接:</th>
<td>
<div class="lab">
<club:html type="input" name="originalForumId" id="m0" htmlType="radio" value="${topic.forumId}" ovalue="0" /><label for="m0">是</label>
<club:html type="input" name="originalForumId" id="m1" htmlType="radio" value="0" ovalue="0" /><label for="m1">否</label>
</div>
</td>
</tr>
<tr>
<th scope="row"></th>
<td class="t_end">
<club:html type="input" name="act" id="act" htmlType="hidden" value="<%=ParamUtils.getStringParameter(request,"act")%>"/>
<club:html type="input" name="topicId" id="topicId" htmlType="hidden" value="${topic.topicId}"/>
<club:html type="input" name="forumId" id="forumId" htmlType="hidden" value="${topic.forumId}"/>
<input type="submit" name="qwSubmit" id="qwSubmit" value="确定移动">
</td>
</tr>
</table>
</form>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -