SelectPathFrame.asp
上传用户:jisenq
上传日期:2014-06-29
资源大小:7216k
文件大小:3k
源码类别:

数据库编程

开发平台:

ASP/ASPX

  1. <% Option Explicit %>
  2. <!--#include file="../../../FS_Inc/Const.asp" -->
  3. <!--#include file="../../../FS_Inc/Function.asp"-->
  4. <!--#include file="../../../FS_InterFace/MF_Function.asp" -->
  5. <!--#include file="../../../FS_InterFace/NS_Function.asp" -->
  6. <%
  7. Dim Conn
  8. Dim TypeSql,RsTypeObj,LableSql,RsLableObj
  9. MF_Default_Conn
  10. MF_Session_TF
  11. Dim CurrPath
  12. CurrPath = Request("CurrPath")
  13. %>
  14. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  15. <html>
  16. <head>
  17. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  18. <title>选择路径</title>
  19. <style type="text/css">
  20. <!--
  21. .PreviewStyle {
  22. border: 2px outset #CCCCCC;
  23. }
  24.  BODY   {border: 0; margin: 0; background: buttonface; cursor: default; font-family:宋体; font-size:9pt;}
  25.  BUTTON {width:5em}
  26.  TABLE  {font-family:宋体; font-size:9pt}
  27.  P      {text-align:center}
  28. -->
  29. </style>
  30. </head>
  31. <script language="JavaScript" src="../JS/PublicJS.js"></script>
  32. <body>
  33. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  34.   <tr> 
  35.     <td><select onChange="ChangeFolder(this.value);" id="FolderSelectList" style="width:100%;" name="select">
  36.         <option selected value="<% = CurrPath %>"><% = CurrPath %></option>
  37.       </select></td>
  38.   </tr>
  39.   <tr> 
  40.     <td width="70%"> <iframe id="FolderList" width="100%" height="300" frameborder="1" src="SelectPath.asp?CurrPath=<% = CurrPath %>"></iframe></td>
  41.   </tr>
  42.   <tr> 
  43.     <td height="35"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  44.         <tr> 
  45.           <td height="30" align="center"> 
  46.             <input type="button" onClick="SelectPath();" name="Submit" value=" 确 定 "> 
  47.           </td>
  48.           <td align="center"> 
  49.             <input onClick="window.close();" type="button" name="Submit3" value=" 取 消 "></td>
  50.         </tr>
  51.       </table></td>
  52.   </tr>
  53. </table>
  54. </body>
  55. </html>
  56. <script language="JavaScript">
  57. var SysRootDir='<% = SysRootDir %>';
  58. function ChangeFolder(FolderName)
  59. {
  60. frames["FolderList"].location='SelectPath.asp?CurrPath='+FolderName;
  61. }
  62. function SelectPath()
  63. {
  64. var PathInfo='',TempPath='';
  65. if (SysRootDir!='')
  66. {
  67. TempPath=frames["FolderList"].CurrPath;
  68. PathInfo=TempPath.substr(TempPath.indexOf(SysRootDir)+SysRootDir.length);
  69. }
  70. else
  71. {
  72. PathInfo=frames["FolderList"].CurrPath;
  73. }
  74. if (frames["FolderList"].SelectedFolder!='')
  75. window.returnValue=PathInfo+'/'+frames["FolderList"].SelectedFolder;
  76. else
  77. window.returnValue=PathInfo;
  78. window.close();
  79. }
  80. window.onunload=SetReturnValue;
  81. function SetReturnValue()
  82. {
  83. if (typeof(window.returnValue)!='string') window.returnValue='';
  84. }
  85. </script>