📄 adminstyleedit.jsp
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ include file="../common/include/taglibs.jsp" %>
<html:html>
<head>
<title><lybbs:web key="forumName"/> - <bean:message key="jsp.admincenter.title"/></title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="bookmark" href="favicon.ico" type="image/x-icon">
<%@ include file="../common/include/adminheader.jsp" %>
<%String sessionToken=ParameterUtils.getString(request,"sessionToken");%>
<script language="JavaScript">
function display() {
if(document.myform.defaultusergroupid.options[document.myform.defaultusergroupid.selectedIndex].value!=0) {
before.style.display="";
}
else
before.style.display="none";
}
function changePage() {
var styleID=document.myform.styleID.options[document.myform.styleID.selectedIndex].value;
location.href="bbs_adminStyleManager.do?styleID="+styleID+"&sessionToken=<%=sessionToken%>";
}
function exportStyle() {
var styleID=document.myform.styleID.options[document.myform.styleID.selectedIndex].value;
location.href="bbs_adminStyleManager.do?action=export&styleID="+styleID+"&sessionToken=<%=sessionToken%>";
}
function importStyle() {
location.href="bbs_adminStyleManager.do?action=import&sessionToken=<%=sessionToken%>";
}
function deleteStyle() {
var styleID=document.myform.styleID.options[document.myform.styleID.selectedIndex].value;
var styleTitle=document.myform.styleID.options[document.myform.styleID.selectedIndex].text;
if(styleID==1)
window.alert("Default style, can't delete.");
else {
var cancel=window.confirm("Are you sure you want delete "+styleTitle+"?\nWarnning: Can't resume after delete.");
if(cancel)
location.href="bbs_adminStyleManager.do?action=delete&styleID="+styleID+"&sessionToken=<%=sessionToken%>";
}
}
function saveStyle() {
document.myform.checkAction.value="save";
document.myform.submit();
}
function setDefaultStyle() {
document.myform.checkAction.value="default";
document.myform.submit();
}
</script>
</head>
<body bgcolor="#555555" topmargin=5 leftmargin=5>
<table width=95% cellpadding=0 cellspacing=1 border=0 bgcolor=#000000 align=center>
<tr>
<td>
<table width=100% cellpadding=0 cellspacing=1 border=0>
<tr>
<td width=28% valign=top bgcolor=#FFFFFF>
<lybbs:typeLeftTag/>
</td>
<td width=70% valign=top bgcolor=#FFFFFF>
<table width=100% cellpadding=6 cellspacing=0 border=0>
<form action="bbs_adminStyleManager.do" method="post" name="myform">
<input type=hidden name="checkAction" value="save">
<input type=hidden name="action" value="edit">
<input type=hidden name="sessionToken" value="<%=sessionToken%>">
<tr>
<td bgcolor="#333333" colspan=3>
<font color=#FFFFFF><b><bean:message key="jsp.admincenter.set.defaultstyle"/></b></font>
</td>
</tr>
<tr>
<td bgcolor=#FFFFFF width=40% colspan=2><font color=#333333><b><bean:message key="common.lybbs.style"/></b><br><bean:message key="jsp.admincenter.set.stylecomment"/></font></td>
<td bgcolor=#FFFFFF>
<select name="styleID" onchange="changePage()">
<lybbs:typeAdminStyleListTag/>
<script language=JavaScript>
setCurrentSelect(document.myform.styleID,"<bean:write name="styleBean" property="styleID"/>");
</script>
</select>
<input type=button name=export value="<bean:message key="jsp.admincenter.set.styleexport"/>" onclick="exportStyle()"> <input type=button name=import value="<bean:message key="jsp.admincenter.set.styleimport"/>" onClick="importStyle()"> <input type=button name=delete value="<bean:message key="common.lybbs.delete"/>" onClick="deleteStyle()">
</td>
</tr>
<tr>
<td bgcolor=#EEEEEE align=center colspan=3><font color=#990000><b><bean:message key="tag.typelookstyletag.body"/></b></font></td>
</tr>
<tr>
<td bgcolor=#FFFFFF><font color=#333333><bean:message key="jsp.admincenter.set.bgcolor"/></font></td>
<td bgcolor=<bean:write name="styleBean" property="backGroundColor"/> width=12> </td>
<td bgcolor=#FFFFFF><input type=text name="backGroundColor" value="<bean:write name="styleBean" property="backGroundColor"/>" size=7 maxlength=7></td>
</tr>
<tr>
<td bgcolor=#FFFFFF><font color=#333333><bean:message key="jsp.admincenter.set.bgpic"/></font></td>
<td <logic:notEqual name="styleBean" property="backGroundPic" value="">background=<bean:write name="styleBean" property="backGroundPic"/></logic:notEqual> width=12> </td>
<td bgcolor=#FFFFFF><input type=text name="backGroundPic" value="<bean:write name="styleBean" property="backGroundPic"/>"></td>
</tr>
<tr>
<td bgcolor=#FFFFFF><font color=#333333><bean:message key="jsp.admincenter.set.scblightcolor"/></font></td>
<td bgcolor=<bean:write name="styleBean" property="scbLightColor"/> width=12> </td>
<td bgcolor=#FFFFFF><input type=text name="scbLightColor" value="<bean:write name="styleBean" property="scbLightColor"/>" size=7 maxlength=7></td>
</tr>
<tr>
<td bgcolor=#FFFFFF><font color=#333333><bean:message key="jsp.admincenter.set.scbdarkcolor"/></font></td>
<td bgcolor=<bean:write name="styleBean" property="scbDarkColor"/> width=12> </td>
<td bgcolor=#FFFFFF><input type=text name="scbDarkColor" value="<bean:write name="styleBean" property="scbDarkColor"/>" size=7 maxlength=7></td>
</tr>
<tr>
<td bgcolor=#FFFFFF><font color=#333333><bean:message key="jsp.admincenter.set.scbarrowcolor"/></font></td>
<td bgcolor=<bean:write name="styleBean" property="scbArrowColor"/> width=12> </td>
<td bgcolor=#FFFFFF><input type=text name="scbArrowColor" value="<bean:write name="styleBean" property="scbArrowColor"/>" size=7 maxlength=7></td>
</tr>
<tr>
<td bgcolor=#FFFFFF><font color=#333333><bean:message key="jsp.admincenter.set.scbfacecolor"/></font></td>
<td bgcolor=<bean:write name="styleBean" property="scbFaceColor"/> width=12> </td>
<td bgcolor=#FFFFFF><input type=text name="scbFaceColor" value="<bean:write name="styleBean" property="scbFaceColor"/>" size=7 maxlength=7></td>
</tr>
<tr>
<td bgcolor=#FFFFFF><font color=#333333><bean:message key="jsp.admincenter.set.scbhighlightcolor"/></font></td>
<td bgcolor=<bean:write name="styleBean" property="scbHighLightColor"/> width=12> </td>
<td bgcolor=#FFFFFF><input type=text name="scbHighLightColor" value="<bean:write name="styleBean" property="scbHighLightColor"/>" size=7 maxlength=7></td>
</tr>
<tr>
<td bgcolor=#FFFFFF><font color=#333333><bean:message key="jsp.admincenter.set.scbshadowcolor"/></font></td>
<td bgcolor=<bean:write name="styleBean" property="scbShadowColor"/> width=12> </td>
<td bgcolor=#FFFFFF><input type=text name="scbShadowColor" value="<bean:write name="styleBean" property="scbShadowColor"/>" size=7 maxlength=7></td>
</tr>
<tr>
<td bgcolor=#EEEEEE align=center colspan=3>
<font color=#990000>
<b><center><bean:message key="tag.typelookstyletag.tablecolor"/></center></b>
</font>
</td>
</tr>
<tr>
<td bgcolor=#FFFFFF><font color=#333333><bean:message key="tag.typelookstyletag.catback"/></font></td>
<td bgcolor=<bean:write name="styleBean" property="catBack"/> width=12> </td>
<td bgcolor=#FFFFFF><input type=text name="catBack" value="<bean:write name="styleBean" property="catBack"/>" size=7 maxlength=7></td>
</tr>
<tr>
<td bgcolor=#FFFFFF><font color=#333333><bean:message key="tag.typelookstyletag.catfontcolor"/></font></td>
<td <logic:notEqual name="styleBean" property="catBackPic" value="">background=<bean:write name="styleBean" property="catBackPic"/></logic:notEqual> width=12 height=30> </td>
<td bgcolor=#FFFFFF><input type=text name="catBackPic" value="<bean:write name="styleBean" property="catBackPic"/>"></td>
</tr>
<tr>
<td bgcolor=#FFFFFF><font color=#333333><bean:message key="tag.typelookstyletag.catfontcolor"/></font></td>
<td bgcolor=<bean:write name="styleBean" property="catFontColor"/> width=12> </td>
<td bgcolor=#FFFFFF><input type=text name="catFontColor" value="<bean:write name="styleBean" property="catFontColor"/>" size=7 maxlength=7></td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -