📄 site_config.jsp
字号:
<%@ page contentType="text/html; charset=GBK"%>
<%@ taglib uri="/cms4j" prefix="cms4j" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>CMS4J </title>
<link href="../skin/blue/css/oper_area.css" rel="stylesheet" type="text/css">
</head>
<script src="../../js/common.js"></script>
<script src="../../js/page_init.js"></script>
<script src="../../admin/js/article.js"></script>
<script src="../../js/date/WdatePicker.js"></script>
<body onLoad="pageInit()">
<cms4j:site_config>
<form action="../../do?action=modifySiteConfig" method="post" name="cms4jForm" id="cms4jForm">
<script>
//页面初始化
function pageInit(){
radioGuoupInit("CAN_CREATE_NU","<%=siteconfig_info.getCAN_CREATE_NU()%>"); ////是否允许新会员注册 true/false
radioGuoupInit("NU_NEED_CHECK_EMAIL","<%=siteconfig_info.getNU_NEED_CHECK_EMAIL()%>");//新会员注册是否需要邮件验证 true/false
radioGuoupInit("NU_NEED_ADMIN_CHECK","<%=siteconfig_info.getNU_NEED_ADMIN_CHECK()%>");//新会员注册是否需要管理员认证 true/false
radioGuoupInit("IS_ADD_WARTERMARK","<%=((siteconfig_info.getWARTERMARK_TYPE()==null||siteconfig_info.getWARTERMARK_TYPE().trim().equals(""))?"false":"true")%>");//站内图片是否加水印 true/false
radioGuoupInit("WARTERMARK_TYPE","<%=siteconfig_info.getWARTERMARK_TYPE()%>");//水印类型
radioGuoupInit("IS_AUTO_LOAD_NET_PIC","<%=siteconfig_info.getIS_AUTO_LOAD_NET_PIC()%>");//站外图片是否自动下载
displayCtrlInit("WATERMARK_TYPE_TR","<%=((siteconfig_info.getWARTERMARK_TYPE()==null||siteconfig_info.getWARTERMARK_TYPE().trim().equals(""))?"false":"true")%>","true");
displayCtrlInit("WORD_WATERMARK_TR","<%=siteconfig_info.getWARTERMARK_TYPE()%>","WORD");
displayCtrlInit("PIC_WATERMARK_TR","<%=siteconfig_info.getWARTERMARK_TYPE()%>","NO");
displayCtrlInit("PICT_WATERMARK_TR","<%=siteconfig_info.getWARTERMARK_TYPE()%>","PIC");
displayCtrlInit("PIC_POSTITION_TR","<%=((siteconfig_info.getWARTERMARK_TYPE()==null||siteconfig_info.getWARTERMARK_TYPE().trim().equals(""))?"false":"true")%>","true");
displayCtrlInit("PIC_TRANS_TR","<%=siteconfig_info.getWARTERMARK_TYPE()%>","PIC");
selectInit("PIC_POSTITION","<%=siteconfig_info.getWARTERMARK_POST()%>");
selectInit("SERVER_HTML","<%=siteconfig_info.getSERVER_HTML()%>");
selectInit("SERVER_UPLOAD","<%=siteconfig_info.getSERVER_UPLOAD()%>");
selectInit("SERVER_MULTIMEDIA","<%=siteconfig_info.getSERVER_MULTIMEDIA()%>");
selectInit("SERVER_PIC","<%=siteconfig_info.getSERVER_PIC()%>");
selectInit("SERVER_DOWNLOAD","<%=siteconfig_info.getSERVER_DOWNLOAD()%>");
radioGuoupInit("IS_RSS","<%=siteconfig_info.getIS_RSS()%>");
}
//变化是否自动添加水印
function changeIsAddWarterMark(src){
var isAdd=src.value;
var warterMarkType=document.getElementById("WATERMARK_TYPE_TR");
var warterMarkWord=document.getElementById("WORD_WATERMARK_TR");
var warterMarkPic=document.getElementById("PIC_WATERMARK_TR");
var warterMarkPict=document.getElementById("PICT_WATERMARK_TR");
var warterMarkPost=document.getElementById("PIC_POSTITION_TR");
var warterMarkTran=document.getElementById("PIC_TRANS_TR");
if(isAdd=="true"){
warterMarkType.style.display="";
warterMarkPost.style.display="";
var typeObj=document.cms4jForm.WARTERMARK_TYPE;
var type="WORD";
for(i=0;i<typeObj.length;i++){
if(typeObj[i].checked==true){
type=typeObj[i].value;
break;
}
}
if(type=="WORD"){
warterMarkWord.style.display="";
warterMarkPic.style.display="none";
warterMarkPict.style.display="none";
warterMarkTran.style.display="none";
}else{
warterMarkWord.style.display="none";
warterMarkPic.style.display="none";
warterMarkPict.style.display="";
warterMarkTran.style.display="";
}
}
else{
warterMarkType.style.display="none";
warterMarkWord.style.display="none";
warterMarkPic.style.display="none";
warterMarkPict.style.display="none";
warterMarkPost.style.display="none";
warterMarkTran.style.display="none";
}
}
//变化水印类型
function changeWarterMarkType(src){
var type=src.value;
var warterMarkWord=document.getElementById("WORD_WATERMARK_TR");
var warterMarkPic=document.getElementById("PIC_WATERMARK_TR");
var warterMarkPict=document.getElementById("PICT_WATERMARK_TR");
var warterMarkPost=document.getElementById("PIC_POSTITION_TR");
var warterMarkTran=document.getElementById("PIC_TRANS_TR");
if(type=="WORD"){
warterMarkWord.style.display="";
warterMarkPic.style.display="none";
warterMarkPict.style.display="none";
warterMarkPost.style.display="";
warterMarkTran.style.display="none";
}
else{
warterMarkWord.style.display="none";
warterMarkPic.style.display="none";
warterMarkPict.style.display="";
warterMarkPost.style.display="";
warterMarkTran.style.display="none";
}
}
function UploadLoaded(){
}
function upload(){
d_file.myform.submit();
}
function reUpload(){
var warterMarkPic=document.getElementById("PIC_WATERMARK_TR");
warterMarkPic.style.display="";
d_file.location.href = "../editor/upload.jsp?isUploadWarter=1";
}
// 文件上传完成时执行,带入上传文件名
function UploadSaved(sPathFileName){
var warterMarkPic=document.getElementById("PIC_WATERMARK_TR");
warterMarkPic.style.display="none";
document.all.articleImage.src = sPathFileName;
this.cms4jForm.WARTERMARK_CONTENT.value = sPathFileName;
}
//function reloadArticleImage(){
//this.cms4jForm.HOMEPAGE_IMAGE.value = "";
//displayCtrl('uploadArticleImage','showArticleImage');
//d_file.location.href = "../editor/upload.jsp";
//}
</script>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="title-bar"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="26" class="title-bar-title-icon"> </td>
<td width="745" class="title-bar-text">网站参数配置</td>
</tr>
</table></td>
</tr>
</table>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" class="title-bar2">
<tr>
<td><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr style="cursor:pointer" onClick="titleBarShowOrHide('p1')">
<td width="26" class="title-bar2-btn-col" id="p1_btn"> </td>
<td width="745" class="title-bar2-text">网站基本信息</td>
</tr>
</table></td>
</tr>
</table>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" class="table-frame" id="p1">
<tr>
<td width="23%" height="22" class="table-frame-input-title"><STRONG>网站名称</STRONG></td>
<td width="77%" height="22" class="table-cell-input"><input name="SITE_NAME" type="text" class="form-input" id="SITE_NAME" value="<%=siteconfig_info.getSITE_NAME()%>" size="50">
<span class="test_must">*
<input name="ID" type="hidden" id="ID" value="<%=siteconfig_info.getID()%>">
</span></td>
</tr>
<tr>
<td height="22" class="table-frame-input-title"><STRONG>网站标题</STRONG></td>
<td height="22" class="table-cell-input"><input name="SITE_TITLE" type="text" class="form-input" id="SITE_TITLE" value="<%=siteconfig_info.getSITE_TITLE()%>" size="50">
<span class="test_must">*</span></td>
</tr>
<tr>
<td height="22" class="table-frame-input-title"><STRONG>网站地址</STRONG></td>
<td height="22" class="table-cell-input"><input name="SITE_URL" type="text" class="form-input" id="SITE_URL" value="<%=siteconfig_info.getSITE_URL()%>" size="50"></td>
</tr>
<tr style="display: ">
<td height="22" class="table-frame-input-title"><STRONG>LOGO地址</STRONG></td>
<td height="22" class="table-cell-input"><input name="LOGO_URL" type="text" class="form-input" id="LOGO_URL" value="<%=siteconfig_info.getLOGO_URL()%>" size="50"></td>
</tr>
<tr style="display: ">
<td height="22" class="table-frame-input-title"><STRONG>Banner地址</STRONG><BR></td>
<td height="22" class="table-cell-input"><input name="BANNER_URL" type="text" class="form-input" id="BANNER_URL" value="<%=siteconfig_info.getBANNER_URL()%>" size="50"></td>
</tr>
<tr>
<td height="22" class="table-frame-input-title"><STRONG>站长姓名</STRONG></td>
<td height="22" class="table-cell-input"><input name="SITE_ADMIN" type="text" class="form-input" id="SITE_ADMIN" value="<%=siteconfig_info.getSITE_ADMIN()%>" size="50">
<span class="test_must">*</span></td>
</tr>
<tr>
<td height="22" class="table-frame-input-title"><STRONG>站长信箱</STRONG></td>
<td height="22" class="table-cell-input"><input name="SITE_ADMIN_EMAIL" type="text" class="form-input" id="SITE_ADMIN_EMAIL" value="<%=siteconfig_info.getSITE_ADMIN_EMAIL()%>" size="50">
<span class="test_must">*</span></td>
</tr>
<tr>
<td height="22" class="table-frame-input-title"><STRONG>版权信息</STRONG></td>
<td height="22" class="table-cell-input"><textarea name="COPYRIGHT" cols="70" rows="8" class="form-input" id="COPYRIGHT"><%=siteconfig_info.getCOPYRIGHT()%></textarea></td>
</tr>
</table>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" class="title-bar2">
<tr>
<td><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr style="cursor:pointer" onClick="titleBarShowOrHide('p2')">
<td width="26" class="title-bar2-btn-col" id="p2_btn"> </td>
<td width="745" class="title-bar2-text">网站选项配置</td>
</tr>
</table></td>
</tr>
</table>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" class="table-frame" id="p2">
<tr>
<td height="22" class="table-frame-input-title"><STRONG>站点的上下文环境</STRONG></td>
<td height="22" class="table-cell-input"><input name="CONTEXT_PATH" type="text" class="form-input" id="CONTEXT_PATH" value="<%=siteconfig_info.getCONTEXT_PATH_2()%>" size="20">
<span class="test_must">*</span><span class="text_remark"> 即虚拟路径,如/cms4j 注意从网站的根开始描述</span></td>
</tr>
<tr>
<td height="22" class="table-frame-input-title"><STRONG>Session会话的保持时间</STRONG></td>
<td height="22" class="table-cell-input"><input name="SessionLife" type="text" class="form-input" id="SessionLife" value="<%=siteconfig_info.getSessionLife()%>" size="10">
<span class="test_must">* </span><span class="text_remark">会话过期时间,推荐值30-60分钟</span></td>
</tr>
<tr>
<td height="22" class="table-frame-input-title"><STRONG>站点统计开始时间</STRONG></td>
<td height="22" class="table-cell-input"><input name="STAT_BEGIN_DATE" type="text" class="form-input" id="STAT_BEGIN_DATE" value="<%=siteconfig_info.getSTAT_BEGIN_DATE_FORMATED("yyyy-MM-dd")%>" size="20" onFocus="new WdatePicker(this,'%Y-%M-%D',false)">
<span class="test_must">* </span><span class="text_remark">网站自这个日期开始统计访问量 </span></td>
</tr>
<tr>
<td height="22" class="table-frame-input-title"><STRONG>站点统计保存统计时间步长</STRONG></td>
<td height="22" class="table-cell-input"><input name="SITE_COUNTER_SAVE_STEP" type="text" class="form-input" id="SITE_COUNTER_SAVE_STEP" value="<%=siteconfig_info.getSITE_COUNTER_SAVE_STEP()%>" size="10">
分钟<span class="test_must">*</span> <span class="text_remark">保存网站统计数据的周期,推荐值10-120分钟</span></td>
</tr>
<tr>
<td width="23%" height="22" class="table-frame-input-title"><STRONG>文章为热点的点击数</STRONG></td>
<td width="77%" height="22" class="table-cell-input"><input name="ARTICLE_ISHOT_CLICKS" type="text" class="form-input" id="ARTICLE_ISHOT_CLICKS" value="<%=siteconfig_info.getARTICLE_ISHOT_CLICKS()%>" size="10">
次<span class="test_must">* </span><span class="text_remark">当文章的点击数达到这个数值时,自动升级为“热点文章”</span></td>
</tr>
<tr>
<td width="23%" height="22" class="table-frame-input-title">FTP同步周期</td>
<td width="77%" height="22" class="table-cell-input"><input name="FTP_SYN_TIME" type="text" class="form-input" id="FTP_SYN_TIME" value="<%=siteconfig_info.getFTP_SYN_TIME()%>" size="10">
分钟 <span class="text_remark">对应服务器配置中同步FTP的方式为“定时”的时间</span></td>
</tr>
<tr>
<td height="22" class="table-frame-input-title"><STRONG>站外图片是否自动下载</STRONG></td>
<td height="22" class="table-cell-input"><input name="IS_AUTO_LOAD_NET_PIC" type="radio" value="false" checked>
不自动
<input type="radio" name="IS_AUTO_LOAD_NET_PIC" value="true">
自动</td>
</tr>
<!--aschen add for 站外图片是否自动下载-->
<tr>
<td width="23%" height="22" class="table-frame-input-title"><STRONG>后台管理访问IP限制</STRONG></td>
<td width="77%" height="22" class="table-cell-input"><input name="ADMIN_IP_LIMIT" type="text" class="form-input" id="ADMIN_IP_LIMIT" value="<%=siteconfig_info.getADMIN_IP_LIMIT()%>" size="60">
<br>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -