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

📄 clubadedit.jsp

📁 特色: 1.今晚在线社区独有的双风格分桢形式 2.社区最多可进行3级分类
💻 JSP
字号:
<%@ page language="java" contentType="text/html;charset=UTF-8" %>
<%@ include file="../GVinc/gvInclude.jsp" %>
<%@ include file="clubMasterPass.jsp" %>
<jsp:useBean id="ca" scope="page" class="com.gamvan.club.manage.ClubAd" />
<% 	
//权限判断共享代码
boolean ispass = false;
//ArrayEdit ae = new ArrayEdit();
ispass = ae.txtsArray(gvcmgTxt,6,"|");
if(!ispass){
	out.print(OutPrint.prtCenter("您无权进行此项操作!","",2));
	out.close();
}

//权限判断代码结束
int adID = ParamUtils.getIntParameter(request,"adID");
short type = ParamUtils.getShortParameter(request,"type");
short adWidth = 10;
short adHeight = 10;
short adType = 0;
String adTxt = "";
String adObj = "";
String adUrl = "";
String message = "";
String act = ParamUtils.getStringParameter(request,"act","add");
if(request.getMethod().equals("POST")){
	adTxt = request.getParameter("adTxt");
	adObj = request.getParameter("adObj");
	adUrl = request.getParameter("adUrl");
	adWidth = TypeChange.stringToShort(request.getParameter("adWidth"));
	adHeight = TypeChange.stringToShort(request.getParameter("adHeight"));
	adType = TypeChange.stringToShort(request.getParameter("adType"));
	
	ca.setAdTxt(adTxt);
	ca.setAdObj(adObj);
	ca.setAdUrl(adUrl);
	ca.setAdWidth(adWidth);
	ca.setAdHeight(adHeight);
	ca.setAdType(adType);
	ca.setAct(act);
	ca.setAdID(adID);
	ca.doAd();
	out.print(OutPrint.prtCenter(ca.getMessage(),"./clubAd.jsp?type="+request.getParameter("adType")+"",1));
	out.close();
	if(true)return;
}
ClubAdItem cai = null;


if(adID>0){
	ca.setAdID(adID);
	cai = (ClubAdItem)ca.adInfo();
	adObj = cai.getAdObj();
	adUrl = cai.getAdUrl();
	adTxt = cai.getAdTxt();
	adWidth = cai.getAdWidth();
	adHeight = cai.getAdHeight();
	adType = cai.getAdType();
}
%>
<html>
<head>
<title>社区广告管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="css.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="99%"  border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#CCCCCC">
  <tr>
    <td align="center"><strong>社区随机广告管理</strong></td>
  </tr>
</table>
<table width="99%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#DDDDDD">
<form name="Gforms" method="post" action="clubAdEdit.jsp?adID=<%=adID%>&act=<%=act%>&type=<%=type%>">
<tr>
    <td width="100" bgcolor="#f6f6f6"><strong>广告显示内容</strong></td>
  <td width="620" bgcolor="#f6f6f6">
    <input name="adObj" type="text" id="adObj" value="<%=adObj%>" size="50">
</td>
  </tr>

  <tr>
    <td bgcolor="#f6f6f6"><strong>广告Url地址</strong></td>
  <td bgcolor="#f6f6f6"><input name="adUrl" type="text" id="adUrl" value="<%=adUrl%>" size="50"></td>
  </tr>

  <tr>
    <td bgcolor="#f6f6f6"><strong>广告条宽度</strong></td>
  <td bgcolor="#f6f6f6"><input name="adWidth" type="text" id="adWidth" value="<%=adWidth%>" size="5" maxlength="5"></td>
  </tr>
  <tr>
    <td bgcolor="#f6f6f6"><strong>广告条高度</strong></td>
    <td bgcolor="#f6f6f6"><input name="adHeight" type="text" id="adHeight" value="<%=adHeight%>" size="5" maxlength="5"></td>
  </tr>
  <tr>
    <td bgcolor="#f6f6f6"><strong>广告条显示在</strong></td>
    <td bgcolor="#f6f6f6"><select name="adType" id="adType">
      <option <%if(adType==1){out.print("selected");}%> value="1">首页</option>
	  <option <%if(adType==2){out.print("selected");}%> value="1">内容页</option>
    </select></td>
  </tr>
  <tr>
    <td bgcolor="#f6f6f6"><strong>备注</strong></td>
    <td bgcolor="#f6f6f6"><input name="adTxt" type="text" id="adTxt" value="<%=adTxt%>" size="50" maxlength="200"></td>
  </tr>
  <tr>
    <td bgcolor="#f6f6f6">&nbsp;</td>
    <td bgcolor="#f6f6f6"><input name="gvSubmit" type="submit" id="gvSubmit" value="提交"></td>
  </tr>
  </form>
</table>
</body>
</html>

⌨️ 快捷键说明

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