📄 styleconf.jsp
字号:
<%@ page language="java" contentType="text/html; charset=gb2312" %>
<jsp:useBean id="BBSConfBean" scope="page" class="com.laoer.bbscs.admin.BBSConf" />
<%
String name = (String) session.getValue("name");
String passwd = (String) session.getValue("passwd");
if (name != null && name.length() > 0 && passwd != null && passwd.length() > 0) {
String leftbgcolor = request.getParameter("leftbgcolor");
String letftextcolor = request.getParameter("letftextcolor");
String rightbgcolor = request.getParameter("rightbgcolor");
String righttextcolor = request.getParameter("righttextcolor");
String tablemaincolor = request.getParameter("tablemaincolor");
String tabletintcolor = request.getParameter("tabletintcolor");
String tabledarkcolor = request.getParameter("tabledarkcolor");
String left_a = request.getParameter("left_a");
String left_alink = request.getParameter("left_alink");
String left_avisited = request.getParameter("left_avisited");
String left_ahover = request.getParameter("left_ahover");
String left_aactive = request.getParameter("left_aactive");
String right_a = request.getParameter("right_a");
String right_alink = request.getParameter("right_alink");
String right_avisited = request.getParameter("right_avisited");
String right_ahover = request.getParameter("right_ahover");
String right_aactive = request.getParameter("right_aactive");
if (leftbgcolor != null && leftbgcolor.length()>0 && letftextcolor != null && letftextcolor.length()>0 && rightbgcolor != null && rightbgcolor.length()>0 && righttextcolor != null && righttextcolor.length()>0 && tablemaincolor != null && tablemaincolor.length()>0 && tabletintcolor != null && tabletintcolor.length()>0 && tabledarkcolor != null && tabledarkcolor.length()>0 && left_a != null && left_a.length()>0 && left_alink != null && left_alink.length()>0 && left_avisited != null && left_avisited.length()>0 && left_ahover != null && left_ahover.length()>0 && left_aactive != null && left_aactive.length()>0 && right_a != null && right_a.length()>0 && right_alink != null && right_alink.length()>0 && right_avisited != null && right_avisited.length()>0 && right_ahover != null && right_ahover.length()>0 && right_aactive != null && right_aactive.length()>0) {
if (BBSConfBean.setUpdateStyle(leftbgcolor,letftextcolor,rightbgcolor,righttextcolor,tablemaincolor,tabletintcolor,tabledarkcolor,left_a,left_alink,left_avisited,left_ahover,left_aactive,right_a,right_alink,right_avisited,right_ahover,right_aactive)) {
response.sendRedirect("main.jsp");
}
else {
out.print("数据库更新失败,请稍后再试!<a href='javascript:history.go(-1);'>返回</a>");
}
}
}
else {
out.println("错误!");
}
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -