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

📄 admin_mb_fddh.asp

📁 Art2008 CMS是一款具有强大的功能的基于ASP语言的网站管理软件
💻 ASP
字号:
<!--#include file = admin_chk.asp -->
<%
If Not ChkAdmin("Template") Then
	Call ArtErr("","")
End If
%><head>
<link rel="stylesheet" type="text/css" href="../images/admin/style.css">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script src="Include/Common.js" type="text/javascript"></script>
</head>
<%
root_path=finddir(request.servervariables("URL"))

if trim(request("fddh_body"))<>"" and trim(request("fddh_x"))<>"" and trim(request("fddh_y"))<>"" then
	 set rs = Server.CreateObject("ADODB.RecordSet")
	 rs.Open "select * from [config] order by id desc",conn,1,3
	 fddh_body=trim(request("fddh_body"))
	 rs("fddh_body")=replace(fddh_body,"$$网站目录$$",root_path)
	 rs("fddh")=trim(request("fddh"))
	 rs("fddh_x")=trim(request("fddh_x"))
	 rs("fddh_y")=trim(request("fddh_y"))
	 rs.update
	 rs.close
	 set rs=nothing
    call ArtErr("<li>您提交的设置已保存。</li>","2")
end if
Set rs = Server.CreateObject("ADODB.RecordSet")
rs.Open "select * from [config]",conn,1,1
fddh_body=rs("fddh_body")
fddh=rs("fddh")
fddh_x=rs("fddh_x")
fddh_y=rs("fddh_y")
rs.close
set rs=nothing
%>
<script Language="JavaScript" Type="text/javascript">
<!--
function FrontPage_Form1_Validator(theForm)
{

  if (theForm.fddh_body.value == "")
  {
    alert("请在 结构 域中输入值。");
    theForm.fddh_body.focus();
    return (false);
  }

  if (theForm.fddh_body.value.length < 1)
  {
    alert("在 结构 域中,请至少输入 1 个字符。");
    theForm.fddh_body.focus();
    return (false);
  }
 if (theForm.fddh_x.value == "")
  {
    alert("请在 x位置 域中输入值。");
    theForm.fddh_x.focus();
    return (false);
  }
  if (theForm.fddh_y.value == "")
  {
    alert("请在 y位置 域中输入值。");
    theForm.fddh_y.focus();
    return (false);
  } 
  return (true);
}
//--></script>
<table cellpadding=2 cellspacing=1 border=0 width=98% class=tableBorder align=center>
	<tr align=center>
    <th height=25 align=center colspan="2"><strong>浮动导航模版管理</strong></th>
    </tr>
	<tr>
	<td width=12% height=30 class=forumRow>&nbsp;<strong>管理导航:</strong></td>
	<td width=88% height=30 class=forumRow><a href='admin_mb_add.asp'>添加栏目模版</a> | <a href='admin_mb.asp'>网站模版列表</a> | <a href='admin_mb_topdown.asp'>通用页首/页尾模版</a> | <a href='admin_mb_fddh.asp'>进入浮动导航模版</a> | <a href="admin_zt.asp?Action=Addzt">专题模版</a></td>
    </tr>
	</TABLE>
	 <table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" class="table">
 <form method="POST" action="admin_mb_fddh.asp" onsubmit="return FrontPage_Form1_Validator(this)" language="JavaScript" name="FrontPage_Form1">
   <tr>
        <td bgcolor="#F8F8F8" align="center" class="bg_tr" height="25" colspan="2"><b>浮动导航相关设置 </b></td>
      </tr>
      <tr bgcolor="#F7F7F7" onMouseOut="this.style.backgroundColor='#F7F7F7'" onMouseOver="this.style.backgroundColor='#D7E3F3'">
        <td  width=32% height="25" ><b><u>浮动导航</u></b><br>是否显示浮动导航</td>
        <td  height="25" > 
            <select size="1" name="fddh">
              <option value="1" <% if fddh=1 then Response.Write " selected "%>>关闭浮动导航</option>
              <option value="0" <% if fddh=0 then Response.Write " selected "%>>打开浮动导航</option>
            </select>
        </td>
      </tr>
      <tr bgcolor="#FFFFFF" onMouseOut="this.style.backgroundColor='#FFFFFF'" onMouseOver="this.style.backgroundColor='#D7E3F3'">
        <td width=32% height="25" ><b><u>浮动导航x位置</u></b><br>浮动广告层固定于<span class="redtext">浏览器的x方向位置</span></td>
        <td height="25" ><input type="text" value="<%=fddh_x%>" name="fddh_x" size="10" maxlength="4" > </td>        
      </tr>
      <tr bgcolor="#F7F7F7" onMouseOut="this.style.backgroundColor='#F7F7F7'" onMouseOver="this.style.backgroundColor='#D7E3F3'">
        <td width=32% height="25" ><b><u>浮动导航y位置</u></b><br>浮动广告层固定于<span class="redtext">浏览器的y方向位置</span></td>
        <td height="25" ><input type="text" value="<%=fddh_y%>" name="fddh_y" size="10" maxlength="4" > </td>
       </tr>
    </table>   
	 <table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" class="table">
			<tr>
				<td width=19% align="center" valign="top" class="forumRow"><p>&nbsp;</p>
				  <p><b>结构</b><br>
		            <br>
			        <font color="#993300">支持HTML</font><br>	
				        <font color="#666666">$$网站目录$$</font><br><br><font color=red>(保存后自动替换“$$网站目录$$”标签)</font>
                                  </p></td>
			  <td align="left" class="forumRow" width=78%><!--webbot bot="Validation" s-display-name="页头" b-value-required="TRUE" i-minimum-length="1" --><textarea rows="20" name="fddh_body" cols="99"><%=fddh_body%></textarea></td>
			    <td width="3%" class="forumRow"><a href="javascript:admin_Size(-5,'fddh_body')"><img src="../images/admin/minus.gif" width="20" height="20" border='0' unselectable="on"></a> <a href="javascript:admin_Size(5,'fddh_body')"><img src="../images/admin/plus.gif" width="20" height="20" border='0' unselectable="on"></a> </td>
		  </tr>
		   <tr>
			 <td colspan="3" align="center" class="forumRow"><input type="submit" value="保  存" name="B1">   <input type="reset" value="重  置" name="B2"></td></tr>
		 </form>
        </table>		  
<%
call CloseConn() 
call AdminPageEnd()
%>

⌨️ 快捷键说明

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