📄 forumlabel.jsp
字号:
<%@ page language="java" contentType="text/html;charset=UTF-8" %><%@ include file="../inc/common.jsp" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>${basic.name}后台管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<club:html type="css" />
<script type="text/javascript" src="../scripts/common.js"></script>
</head>
<body>
<div id="wrap">
<div class="sitemap">
<ul>
<li>您的位置:</li><li>后台管理>></li><li><h3>分类标签管理</h3></li>
</ul>
</div>
<%
ForumJsp forumJsp = new ForumJsp(request,response);
com.yeqiangwei.club.controller.form.ForumLabelForm form = forumJsp.getForumLabelForm();
String act = ParamUtils.getStringAttribute(request,"act","error");
%><%@ include file="../inc/msgHint.jsp" %>
<div class="sidebar gform qwform">
<form id="gform" name="gform" action="admin.do?act=forumLabel&forumId=<%=ParamUtils.getStringParameter(request,"forumId","0")%>" method="post" onsubmit="c.p('qwSubmit',true);">
<fieldset>
<legend>创建/更新(分类标签)</legend>
<div><label for="forumId_">所属版面:</label>
<select name="forumId_" id="forumId_">
<option value="0">顶层分类:</option>
<%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);
out.print("<option value=\"");
out.print(item.getForumId());
out.print("\"");
if(item.getForumId()==com.yeqiangwei.util.ParamUtils.getIntParameter(request,"forumId")){
out.print(" selected");
}
out.print(">");%><club:html type="indent" indent="<%=item.getLayer()*4%>"/><%
out.print(item.getForumName());
out.print("</option>");
}%>
</select>
</div>
<div><label for="forumName">标签名称:</label><input type="text" name="labelName" id="labelName" value="<%=form.getLabelName()%>" class="input"/></div>
<div><label for="orderList">排序ID:</label><input type="text" name="orderList" id="orderList" value="<%=form.getOrderList()%>" class="input"/>数字越大越靠前</div>
<div><label for="qwSubmit"> </label>
<input type="submit" name="qwSubmit" id="qwSubmit" value="确定提交">
<input type="hidden" name="labelId" id="labelId" value="<%=form.getLabelId()%>">
</div>
</fieldset>
</form>
<br/>
</div>
<div class="sidebar" style="margin-top:10px">
<table>
<tr><th scope="col" class="t_0">名称<th class="t_1">排序ID</th><th class="t_1">编辑</th><th class="t_1 t_end">删除</th></tr>
<c:forEach var="l" items="<%=forumJsp.getForumView().getLabelList()%>">
<tr><td class="t_0"><c:out value="${l.labelName}"/><td><c:out value="${l.orderList}"/></td><td><a href="forumLabel.jsp?forumId=<%=com.yeqiangwei.util.ParamUtils.getIntParameter(request,"forumId")%>&labelId=<c:out value="${l.labelId}"/>">编辑</a></td><td><a href="admin.do?act=forumLabelDelete&forumId=<%=com.yeqiangwei.util.ParamUtils.getIntParameter(request,"forumId")%>&labelId=<c:out value="${l.labelId}"/>">删除</a></td></tr>
</c:forEach>
</table>
</div>
</div>
</body>
</html>
<!-- Powered by www.YeQiangWei.com -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -