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

📄 config.jsp

📁 很好的,网上商城在线购物网站系统,电子商务自助建站管理系统。适合电脑,手机,数码,化妆品,服装,运动鞋,首饰,母婴,成人用品,书籍,汽车,办公用品,音像制品的网店
💻 JSP
字号:
<%@ page contentType="text/html;charset=utf-8"%>
<%@ include file="../../include.jsp"%> 
<%
session.setAttribute("shoplogo_upload_img",systemConfig.getStringConfigValue("logo"));
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>无标题文档</title>
<script language="javascript" src="../../common.js"></script>
<script src="<%=ConfigBean.getStringValue("systenFolder")%>alert_js.jsp"></script>
<script language="javascript" src="../improve_alert.js"></script>
<script language="JavaScript" type="text/JavaScript">
<!--
function modify()
{
	theForm = document.newform;

	if ( theForm.webtitle.value=="" )
	{
		alert("<%=systemConfig.getStringConfigDescription("webtitle")%>不能为空");
	}
	else if ( theForm.url.value=="" )
	{
		alert("<%=systemConfig.getStringConfigDescription("url")%>不能为空");
	}
	else if ( theForm.foot.value=="" )
	{
		alert("<%=systemConfig.getStringConfigDescription("foot")%>不能为空");
	}
	else 
	{
		theForm.submit();
	}
}

function showBMsg()
{
	var result = window.showModalDialog('upload_b_if.jsp',window,"dialogWidth:20;dialogHeight:15;status:no;help:no");

	if ( !(typeof result == 'undefined') )
	{
		document.newform.logo.value = result;
		document.getElementById('img_s').src = "<%=ConfigBean.getStringValue("systenFolder")%>.<%=ConfigBean.getStringValue("upload_pro_img")%>"+result;
	}
}

function flushAllHtmlCache()
{
	if ( confirm("执行该操作后,会清空所有缓冲,包括静态HTML,确定执行该操作吗?"))
	{
		document.cache_form.action="<%=ConfigBean.getStringValue("systenFolder")%>appController/flushAllHtmlCache";
		document.cache_form.submit();
	}
}

function cleanHotSearchKey()
{
	if ( confirm("执行该操作后,会清空搜索热点关键字,确定执行该操作吗?"))
	{
		document.cache_form.action="<%=ConfigBean.getStringValue("systenFolder")%>appController/cleanHotSearchKey";
		document.cache_form.submit();
	}
}
//-->
</script>
<link href="../comm.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style></head>

<body>
<br>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="0">
  <tr>
    <td class="page-title"><img src="../imgs/page_title.gif" alt="title" width="17" height="12" align="absmiddle">&nbsp;&nbsp; 系统管理 »   商城变量</td>
  </tr>
</table>
<br>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="0">
<form action="" name="cache_form" method="post">
</form>
  <tr>
    <td width="19%">
      <input name="Submit2" type="button" class="long-button" value="清空缓存" onClick="flushAllHtmlCache()">
      &nbsp;&nbsp;&nbsp;<img src="../imgs/help.gif" tips="执行该操作后,会清空所有缓冲,包括静态HTML" width="14" height="15" align="absmiddle"></td>
    <td width="81%" align="left" valign="middle">
	<input name="Submit2" type="button" class="long-button" value="清空关键字" onClick="cleanHotSearchKey()">
      &nbsp;&nbsp;&nbsp;<img src="../imgs/help.gif" tips="执行该操作后,会清空搜索热点关键字" width="14" height="15" align="absmiddle">
	</td>
  </tr>
</table>
<br>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="0"  class="thetable">
  <form action="<%=ConfigBean.getStringValue("systenFolder")%>appController/batchModifySystemConfig" method="post" name="newform">
  <input type="hidden" name="logo" value="<%=systemConfig.getStringConfigValue("logo")%>">
    <thead>
      <tr> 
        <td width="39%" valign="middle" class="left-title"> 描 述</td>
        <td width="61%" valign="middle" class="right-title">&nbsp;</td>
      </tr>
    </thead>
<%
String imgpath = "../product/unupld.gif";
if ( !systemConfig.getStringConfigValue("logo").equals("") )
{
	imgpath = ConfigBean.getStringValue("systenFolder")+"."+ConfigBean.getStringValue("upload_pro_img")+systemConfig.getStringConfigValue("logo");
}

%>
    <tr>
      <td height="31" valign="middle" ><%=systemConfig.getStringConfigDescription("logo")%></td>
      <td valign="middle" ><table width="100%" height="95" border="0" cellpadding="3" cellspacing="0">
        <tr>
          <td height="70" align="left" valign="middle"><img src="<%=imgpath%>" id="img_s" ></td>
        </tr>
        <tr>
          <td height="25">
            <input name="Submit" type="button" class="long-button"  onClick="showBMsg()" value="重新选择图片">          </td>
        </tr>
      </table></td>
    </tr>
    <tr> 
      <td height="31" valign="middle" > 
        <%=systemConfig.getStringConfigDescription("webtitle")%>      </td>
      <td valign="middle" > <input name="webtitle" type="text" value="<%=systemConfig.getStringConfigValue("webtitle")%>" size="70"></td>
    </tr>
    <tr> 
      <td height="31" valign="middle" bgcolor="eeeeee" > 
        <%=systemConfig.getStringConfigDescription("url")%>      </td>
      <td valign="middle" bgcolor="eeeeee" > <input name="url" type="text" value="<%=systemConfig.getStringConfigValue("url")%>" size="50">
      结尾不要跟 /</td>
    </tr>
    <tr> 
      <td height="31" valign="middle" > 
        <%=systemConfig.getStringConfigDescription("foot")%>      </td>
      <td valign="middle" ><textarea name="foot" cols="50" rows="7"><%=systemConfig.getStringConfigValue("foot")%></textarea></td>
    </tr>
    <tr> 
      <td height="31" valign="middle" > 
        <%=systemConfig.getStringConfigDescription("admin_login_path")%>      </td>
      <td valign="middle" >/administrator/ &nbsp;<input name="admin_login_path" type="text" value="<%=systemConfig.getStringConfigValue("admin_login_path")%>" size="15">
      </td>
    </tr>
    <tr> 
      <td height="31" valign="middle" bgcolor="#eeeeee" > 
        <%=systemConfig.getStringConfigDescription("index_catalog_imp")%>      </td>
      <td valign="middle" bgcolor="#eeeeee" ><input name="index_catalog_imp" type="text" id="index_catalog_imp" value="<%=systemConfig.getStringConfigValue("index_catalog_imp")%>" size="5">
      点击[<a href="../catalog/ct_catalog.jsp">这里</a>]调整货架在首页的排序</td>
    </tr>
    <tr> 
      <td height="31" valign="middle" > 
        <%=systemConfig.getStringConfigDescription("mailAuthor")%>      </td>
      <td valign="middle" > <input name="mailAuthor" type="text" value="<%=systemConfig.getStringConfigValue("mailAuthor")%>" size="50">
        一般跟“发送邮件帐号”一致</td>
    </tr>
    <tr> 
      <td height="31" valign="middle" > 
        <%=systemConfig.getStringConfigDescription("sendMailSmtp")%>      </td>
      <td valign="middle" > <input name="sendMailSmtp" type="text" value="<%=systemConfig.getStringConfigValue("sendMailSmtp")%>" size="50"></td>
    </tr>
    <tr> 
      <td height="31" valign="middle" > 
        <%=systemConfig.getStringConfigDescription("sendMailAccount")%>      </td>
      <td valign="middle" > <input name="sendMailAccount" type="text" value="<%=systemConfig.getStringConfigValue("sendMailAccount")%>" size="50"></td>
    </tr>
    <tr> 
      <td height="31" valign="middle" > 
        <%=systemConfig.getStringConfigDescription("sendMailPwd")%>      </td>
      <td valign="middle" > <input name="sendMailPwd" type="text" value="<%=systemConfig.getStringConfigValue("sendMailPwd")%>" size="50"></td>
    </tr>
    <tr> 
      <td height="31" valign="middle" > 
        <%=systemConfig.getStringConfigDescription("sendMailSender")%>      </td>
      <td valign="middle" > <input name="sendMailSender" type="text" value="<%=systemConfig.getStringConfigValue("sendMailSender")%>" size="50"></td>
    </tr>
    <tr> 
      <td height="31" valign="middle" > 
        <%=systemConfig.getStringConfigDescription("sendMailSmtpPort")%>      </td>
      <td valign="middle" > <input name="sendMailSmtpPort" type="text" value="<%=systemConfig.getStringConfigValue("sendMailSmtpPort")%>" size="50"></td>
    </tr>
    <tr> 
      <td height="31" valign="middle" > 
        <%=systemConfig.getStringConfigDescription("sendMailReplyMail")%>      </td>
      <td valign="middle" > <input name="sendMailReplyMail" type="text" value="<%=systemConfig.getStringConfigValue("sendMailReplyMail")%>" size="50"></td>
    </tr>
    <tr bgcolor="eeeeee"> 
      <td height="31" valign="middle" > 
        <%=systemConfig.getStringConfigDescription("s_pro_img_width")%>      </td>
      <td valign="middle" > 
        <input name="s_pro_img_width" type="text" value="<%=systemConfig.getStringConfigValue("s_pro_img_width")%>" size="10">
        该宽度是自动生成缩略图的宽度,高度会根据图片比例自动调整</td>
    </tr>
    <tr> 
      <td height="31" valign="middle" >
        <%=systemConfig.getStringConfigDescription("discount_give")%>      </td>
      <td valign="middle" > <input type="radio" name="discount_give" value="0" <%=systemConfig.getIntConfigValue("discount_give")==0?"checked":""%>>
        <input type="radio" name="discount_give" value="1" <%=systemConfig.getIntConfigValue("discount_give")==1?"checked":""%>>
        是</td>
    </tr>
    <tr> 
      <td height="31" valign="middle" >
        <%=systemConfig.getStringConfigDescription("packet_give")%>      </td>
      <td valign="middle" > <input type="radio" name="packet_give" value="0" <%=systemConfig.getIntConfigValue("packet_give")==0?"checked":""%>>
        <input type="radio" name="packet_give" value="1" <%=systemConfig.getIntConfigValue("packet_give")==1?"checked":""%>>
        是</td>
    </tr>
    <tr> 
      <td height="31" valign="middle" bgcolor="#eeeeee" > 
        <%=systemConfig.getStringConfigDescription("search_key_count")%>      </td>
      <td valign="middle" bgcolor="#eeeeee" > 
      <input name="search_key_count" type="text" value="<%=systemConfig.getStringConfigValue("search_key_count")%>" size="10">       </td>
    </tr>
    <tr> 
      <td height="31" valign="middle" > 
        <%=systemConfig.getStringConfigDescription("order_handle_status")%>      </td>
      <td valign="middle" > <input name="order_handle_status" type="text" value="<%=systemConfig.getStringConfigValue("order_handle_status")%>" size="50"></td>
    </tr>
    <tr> 
      <td height="31" valign="middle" > 
        <%=systemConfig.getStringConfigDescription("com_pro_note")%>      </td>
      <td valign="middle" ><textarea name="com_pro_note" cols="50" rows="7"><%=systemConfig.getStringConfigValue("com_pro_note")%></textarea></td>
    </tr>
    <tr>
      <td height="31" valign="middle" class="line-0010-bbbbbb" >&nbsp;</td>
      <td valign="middle" class="line-0010-bbbbbb" >&nbsp;</td>
    </tr>
  </form>
</table>
<br>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td><input name="Submit3" type="button" class="long-button" value="保存修改" onClick="modify()"></td>
  </tr>
</table>
<p>&nbsp;</p>
</body>
</html>

⌨️ 快捷键说明

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