📄 newsconfigok.jsp
字号:
<%
/*##################################################################**
**# 项目名称:LyNews『凌云新闻』 #**
**# #**
**# 程序开发: teddy 『星语凌』 #**
**# #**
**# 版权所有: 凌云创作室 (原流星电脑工作室) #**
**# #**
**# 主页地址: http://www.lybbs.com #**
**# http://www.lybbs.net #**
**# 电邮地件: horseye@sina.com #**
**# #**
**##################################################################*/
%>
<%@include file="config.jsp"%>
<%@include file="../admin/getsession.jsp"%>
<%@page contentType="text/html;charset=GBK"%>
<%@include file="header.jsp"%>
<%
ParameterUtils.setCharacterEncoding(request);
int adImageWidth=ParameterUtils.getInt(request,"adImageWidth"),
adImageHeight=ParameterUtils.getInt(request,"adImageHeight"),
adImageWidth2=ParameterUtils.getInt(request,"adImageWidth2"),
adImageHeight2=ParameterUtils.getInt(request,"adImageHeight2"),
adImageWidth3=ParameterUtils.getInt(request,"adImageWidth3"),
adImageHeight3=ParameterUtils.getInt(request,"adImageHeight3"),
infoImageWidth=ParameterUtils.getInt(request,"infoImageWidth"),
infoImageHeight=ParameterUtils.getInt(request,"infoImageHeight");
adImageWidth=(adImageWidth==0)?120:adImageWidth;
adImageHeight=(adImageHeight==0)?120:adImageHeight;
adImageWidth2=(adImageWidth2==0)?120:adImageWidth2;
adImageHeight2=(adImageHeight2==0)?120:adImageHeight2;
adImageWidth3=(adImageWidth3==0)?120:adImageWidth3;
adImageHeight3=(adImageHeight3==0)?120:adImageHeight3;
String adImage = ParameterUtils.getString(request,"adImage"),
adImageLink = ParameterUtils.getString(request,"adImageLink"),
adImage2 = ParameterUtils.getString(request,"adImage2"),
adImageLink2 = ParameterUtils.getString(request,"adImageLink2"),
adImage3 = ParameterUtils.getString(request,"adImage3"),
adImageLink3 = ParameterUtils.getString(request,"adImageLink3"),
infoImage = ParameterUtils.getString(request,"infoImage"),
infoImageLink = ParameterUtils.getString(request,"infoImageLink"),
infoImageAlt = ParameterUtils.getString(request,"infoImageAlt"),
marquee = StringUtils.toQuoteMark(ParameterUtils.getString(request,"marquee")),
announcement = StringUtils.toQuoteMark(ParameterUtils.getString(request,"announcement")),
allowUploadExt = ParameterUtils.getString(request,"allowUploadExt");
Factory factory = Factory.getInstance();
NewsConfigFactory newsConfigFactory = factory.getNewsConfigFactory();
NewsConfig newsConfig=factory.getNewsConfig();
newsConfig.setAdImage(adImage);
newsConfig.setAdImageLink(adImageLink);
newsConfig.setAdImageWidth(adImageWidth);
newsConfig.setAdImageHeight(adImageHeight);
newsConfig.setAdImage2(adImage2);
newsConfig.setAdImageLink2(adImageLink2);
newsConfig.setAdImageWidth2(adImageWidth2);
newsConfig.setAdImageHeight2(adImageHeight2);
newsConfig.setAdImage3(adImage3);
newsConfig.setAdImageLink3(adImageLink3);
newsConfig.setAdImageWidth3(adImageWidth3);
newsConfig.setAdImageHeight3(adImageHeight3);
newsConfig.setInfoImage(infoImage);
newsConfig.setInfoImageWidth(infoImageWidth);
newsConfig.setInfoImageHeight(infoImageHeight);
newsConfig.setInfoImageLink(infoImageLink);
newsConfig.setInfoImageAlt(infoImageAlt);
newsConfig.setMarquee(marquee);
newsConfig.setAnnouncement(announcement);
newsConfig.setAllowUploadExt(allowUploadExt);
newsConfigFactory.setNewsConfig(newsConfig);
%>
<br>
<center>成功设置变量<br><a href="newsconfig.jsp">查看详细结果</a><br><br></center>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -