<!--#include file = admin_chk.asp -->
<!--#include file = admin_conn.asp -->

<head>
<!--#include file = language.asp -->
<STYLE type="text/css">
<!--
a:link       {text-decoration: none; font-family: AdobeSm; color: #000000 }
a:visited    {text-decoration: none; color: #000000 }
A:hover      {COLOR: green; FONT-FAMILY: "宋体,MingLiU"; TEXT-DECORATION: underline}
body         {font-size: 9pt; font-family: 宋体,MingLiU, Arial;color: #000000}
TD           {FONT-SIZE: 9pt; FONT-FAMILY: "宋体,MingLiU, Arial";color: #000000;table-layout:fixed;word-break:break-all}
p            {FONT-SIZE: 9pt; FONT-FAMILY: "宋体,MingLiU, Arial";color: #000000}
input        {FONT-SIZE: 9pt; FONT-FAMILY: "宋体,MingLiU, Arial";color: #000000}
body         {margin-top: 0; margin-bottom: 0;margin-left:0;margin-right:0; color: #000000}
select       {FONT-SIZE: 9PT;}
option       {FONT-SIZE: 9pt;}
textarea     {FONT-SIZE: 9pt;}
-->
</STYLE>
</head>
<body bgcolor="#EFEFDE">

<center><BR><BR>
<%
if trim(request("sotop"))<>"" and trim(request("sobottom"))<>"" then
	 'conn.Execute "update [config] set sotop='"&trim(request("sotop"))&"',sobottom='"&trim(request("sobottom"))&"'"
	 
	 set rs = Server.CreateObject("ADODB.RecordSet")
	 rs.Open "select * from [config] order by id desc",conn,1,3
	 rs("sotop")=trim(request("sotop"))
	 rs("sobottom")=trim(request("sobottom"))
	 rs.update
	 rs.close
	 set rs=nothing
	 Response.Write "<a href=admin_mb.asp>保存成功! </a>"
end if

Set rs = Server.CreateObject("ADODB.RecordSet")
rs.Open "select * from [config]",conn,1,1
sotop=rs("sotop")
sobottom=rs("sobottom")
rs.close
set rs=nothing
%>
<a href=admin_mb.asp>返回模版管理</a><br>
<br>
<b><font size="3">搜索模版管理</font></b><BR><BR>
</center>
<!--webbot BOT="GeneratedScript" PREVIEW=" " startspan --><script Language="JavaScript" Type="text/javascript"><!--
function FrontPage_Form1_Validator(theForm)
{

  if (theForm.sotop.value == "")
  {
    alert("请在 页头 域中输入值。");
    theForm.sotop.focus();
    return (false);
  }

  if (theForm.sotop.value.length < 1)
  {
    alert("在 页头 域中，请至少输入 1 个字符。");
    theForm.sotop.focus();
    return (false);
  }

  if (theForm.sobottom.value == "")
  {
    alert("请在 页尾 域中输入值。");
    theForm.sobottom.focus();
    return (false);
  }

  if (theForm.sobottom.value.length < 1)
  {
    alert("在 页尾 域中，请至少输入 1 个字符。");
    theForm.sobottom.focus();
    return (false);
  }
  return (true);
}
//--></script><!--webbot BOT="GeneratedScript" endspan --><form method="POST" action="admin_mb_so.asp" onsubmit="return FrontPage_Form1_Validator(this)" language="JavaScript" name="FrontPage_Form1">
	<div align="center">
		<table border="1" cellpadding="3" width="700" id="table1" style="border-collapse: collapse">
			<tr>
				<td align="center" width="54">页头<br>
				<br>
				<font color="#666666">支持HTML</font></td>
				<td align="center">
				<p align="left">
				&nbsp;<!--webbot bot="Validation" s-display-name="页头" b-value-required="TRUE" i-minimum-length="1" --><textarea rows="16" name="sotop" cols="99"><%=sotop%></textarea></td>
			</tr>
			<tr>
				<td width="54">
				<p align="center">页尾<p align="center">
				<font color="#666666">支持HTML</font></td>
				<td>
				&nbsp;<!--webbot bot="Validation" s-display-name="页尾" b-value-required="TRUE" i-minimum-length="1" --><textarea rows="17" name="sobottom" cols="99"><%=sobottom%></textarea></td>
			</tr>
		</table>
	</div>
	<p align="center"><input type="submit" value="保存" name="B1">　　　<input type="reset" value="重置" name="B2"></p>
</form>
<%
conn.close
set conn=nothing
%>