<% Option Explicit %>
<!--#include file="../../Inc/Const.asp" -->
<!--#include file="../../Inc/Cls_DB.asp" -->
<%
'==============================================================================
'软件名称：风讯网站信息管理系统
'当前版本：Foosun Content Manager System 2.0 
'最新更新：2004.12
'==============================================================================
'商业注册联系：028-85098980-601,602 技术支持：028-85098980-606、607,客户支持：608
'产品咨询QQ：159410,655071,66252421
'技术支持:所有程序使用问题，请提问到bbs.foosun.net我们将及时回答您
'程序开发：风讯开发组 & 风讯插件开发组
'论坛支持：风讯在线论坛(http://bbs.foosun.net)
'官方网站：www.Foosun.net  演示站点：test.cooin.com    
'网站建设专区：www.cooin.com
'==============================================================================
'免费版本请在新闻首页保留版权信息，并做上本站LOGO友情连接
'==============================================================================
Dim DBC,Conn
Set DBC = New DataBaseClass
Set Conn = DBC.OpenConnection()
Set DBC = Nothing
%>
<!--#include file="../../Inc/Session.asp" -->
<!--#include file="../../Inc/CheckPopedom.asp" -->
<%
if Not JudgePopedomTF(Session("Name"),"P0502") then Call ReturnError()
  Dim CodeStr,DomainName,CodeObj,JSID,FreeJsConfigObj,DummyDir_FreeJs
  If SysRootDir <> "" Then
  	DummyDir_FreeJs = "/" & SysRootDir
  Else
  	DummyDir_FreeJs = ""
  End If
      if Request("JSID")<>"" then
	     JSID = Clng(Request("JSID"))
	   else
		 Response.Write("<script>alert(""参数传递错误"");window.close();</script>")
		 response.end
	  end if
	Set CodeObj = Conn.Execute("select EName from FreeJS where ID="&JSID&"")
      CodeStr = DummyDir_FreeJs &"/JS/FreeJs/"&CodeObj("EName")&".js"
%><head>
<link href="../Inc/ModeWindow.css" rel="stylesheet" type="text/css">
</head>
<title>JS代码调用</title>
<body topmargin="0">
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="1">
  <tr> 
    <td height="8"></td>
  </tr>
  <tr> 
    <td>&nbsp;&nbsp;<font color="#0000FF">本JS调用代码为:</font></td>
  </tr>
  <tr> 
    <td align="center">  
      <input name="textfield" type="text" value="&lt;script src=<%=CodeStr%>&gt;&lt;/script&gt;" Style="width:100%">    </td>
  </tr>
  <tr> 
    <td height="8"></td>
  </tr>
  <tr> 
    <td> <div align="center"> 
        <input type="button" name="Submit" value=" 关 闭 " onclick="window.close();">
      </div></td>
  </tr>
</table>
</body>
<script>
  document.all.textfield.select();
</script>
