<% Option Explicit %>
<!--#include file="../../Inc/Const.asp" -->
<!--#include file="../../Inc/Cls_DB.asp" -->
<!--#include file="../../Inc/Function.asp" -->
<%
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"),"P0501") then Call ReturnError1()
	  Dim CodeStr,CodeObj,FileID,DummyDir_SysJs
	  If SysRootDir <> "" Then
		DummyDir_SysJs = "/" & SysRootDir
	  Else
		DummyDir_SysJs = ""
	  End If
      if Request("FileID")<>"" then
	     FileID = Clng(Request("FileID"))
	   else
		 Response.Write("<script>alert(""参数传递错误"");window.close();</script>")
		 response.end
	  end if
	Set CodeObj = Conn.Execute("select FileName,FileSavePath from SysJs where ID="&FileID&"")
      CodeStr = DummyDir_SysJs & CodeObj("FileSavePath")&"/"&CodeObj("FileName")&".js"
%><head>
<link href="../Inc/ModeWindow.css" rel="stylesheet" type="text/css">
</head>
<title>JS代码调用</title>
<body topmargin="0" leftmargin="0">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
  <tr> 
    <td height="8"></td>
  </tr>
  <tr> 
    <td><font color="#0000FF">&nbsp;&nbsp;本JS调用代码为:</font></td>
  </tr>
  <tr>
    <td height="5"></td>
  </tr>
  <tr> 
    <td> <div align="center"> 
        <input name="textfield" type="text" value="<script src=<%=CodeStr%>></script>" style="width:96%">
      </div></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>
