📄 ad.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" />
<style>.ipu{width:400px;} .lab label{font-weight:normal; color:#000}</style>
<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.service.model.AdModel model = adJsp.findById();
%><%@ include file="../inc/msgHint.jsp" %>
<div class="sidebar gform">
<form id="gform" name="gform" action="admin.do?act=adCreateOrUpdate" method="post" onsubmit="c.p('qwSubmit',true)">
<table summary="过滤字符设置" class="tabform">
<tbody>
<tr>
<th scope="row">广告描述:</th>
<td><club:html type="input" htmlType="text" name="title" value="<%=model.getTitle()%>" property=" class=\"ipu\""/></td>
</tr>
<tr>
<th scope="row">广告内容:</th>
<td><textarea name="content" style="width:480px;height:280px;"/><%=model.getContent().replace("&","&")%></textarea></td>
</tr>
<tr>
<th scope="row">广告出现的位置:</th>
<td>
<select name="area" id="area"><%
out.print("<option value=\"1\" ");
if(model.getArea()==(byte)1){
out.print(" selected ");
}
out.print(">顶部</option>");
out.print("<option value=\"2\" ");
if(model.getArea()==(byte)2){
out.print(" selected ");
}
out.print(">主贴标题下方</option>");
out.print("<option value=\"3\" ");
if(model.getArea()==(byte)3){
out.print(" selected ");
}
out.print(">主贴内容下方</option>");
out.print("<option value=\"4\" ");
if(model.getArea()==(byte)4){
out.print(" selected ");
}
out.print(">主贴下方</option>");
out.print("<option value=\"5\" ");
if(model.getArea()==(byte)5){
out.print(" selected ");
}
out.print(">网页Footer</option>");
out.print("<option value=\"6\" ");
if(model.getArea()==(byte)6){
out.print(" selected ");
}
out.print(">网页最底部</option>");
%>
</select>
</td>
</tr>
<tr>
<th scope="row">广告展示对象:</th>
<td>
<select name="isList" id="isList">
<%
out.print("<option value=\"0\" ");
if(model.getIsList()==(byte)0){
out.print(" selected ");
}
out.print(">不显示</option>");
out.print("<option value=\"1\" ");
if(model.getIsList()==(byte)1){
out.print(" selected ");
}
out.print(">显示给过客</option>");
out.print("<option value=\"2\" ");
if(model.getIsList()==(byte)2){
out.print(" selected ");
}
out.print(">显示登录用户</option>");
out.print("<option value=\"3\" ");
if(model.getIsList()==(byte)3){
out.print(" selected ");
}
out.print(">显示给所有人</option>");
%>
</select>
</td>
</tr>
<tr>
<th scope="row" valign="top">
投放此广告的版面:
<br/>
[<a onclick="c.clk('all','forums');">全选</a>]<br/>[<a onclick="c.clk('un','forums');">反选</a>]
</th>
<td id="forums">
<span class="lab"><club:html type="input" htmlType="checkbox" name="forumId" id="lab_0" value="0" ovalue="<%=String.valueOf(model.getForumId())%>"/><label for="lab_0"><strong>版面以外其他页面</strong></label></span>
<c:forEach var="f" items="<%=forumJsp.findAll()%>">
<c:if test="${f.type==0}">
<hr/><span class="lab"><club:html type="input" htmlType="checkbox" name="forumId" id="lab_${f.forumId}" value="${f.forumId}" ovalue="<%=String.valueOf(model.getForumId())%>"/><label for="lab_${f.forumId}"><strong>${f.forumName}</strong></label></span>
</c:if>
<c:if test="${f.type==1}">
<span class="lab"><club:html type="input" htmlType="checkbox" name="forumId" id="lab_${f.forumId}" value="${f.forumId}" ovalue="<%=String.valueOf(model.getForumId())%>"/><label for="lab_${f.forumId}">${f.forumName}</label></span>
</c:if>
</c:forEach>
</td>
</tr>
<tr>
<tr>
<th scope="row"></th>
<td class="t_end">
<input type="submit" name="qwSubmit" id="qwSubmit" value="确定提交">
</td>
</tr>
</tbody>
</table>
</form>
</div>
</body>
</html>
<!-- Powered by www.YeQiangWei.com -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -