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. Dim CurrPath
  11. CurrPath = Request("CurrPath")
  12. %>
  13. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  14. <html>
  15. <head>
  16. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  17. <title>选择路径</title>
  18. <link href="../../images/skin/Css_<%=Session("Admin_Style_Num")%>/<%=Session("Admin_Style_Num")%>.css" rel="stylesheet" type="text/css">
  19. </head>
  20. <script language="JavaScript" src="../JS/PublicJS.js"></script>
  21. <body>
  22. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  23.   <tr> 
  24.     <td><select onChange="ChangeFolder(this.value);" id="FolderSelectList" style="width:100%;" name="select">
  25.         <option selected value="<% = CurrPath %>"><% = CurrPath %></option>
  26.       </select></td>
  27.   </tr>
  28.   <tr> 
  29.     <td width="70%"> <iframe id="FolderList" width="100%" height="210" frameborder="1" src="SelectPath.asp?CurrPath=<% = CurrPath %>" scrolling="auto"></iframe></td>
  30.   </tr>
  31.   <tr> 
  32.     <td height="35"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  33.         <tr> 
  34.           <td height="30" align="center"> <input type="button" onClick="SelectPath();" name="Submit" value=" 确 定 "> 
  35.           </td>
  36.           <td align="center"> <input onClick="window.close();" type="button" name="Submit3" value=" 取 消 "></td>
  37.         </tr>
  38.         <tr> 
  39.           <td height="30" colspan="2" align="center"><span class="tx">提示,鼠标右键点框内,可以新建目录,删除目录,重新命名目录</span></td>
  40.         </tr>
  41.       </table></td>
  42.   </tr>
  43. </table>
  44. </body>
  45. </html>
  46. <script language="JavaScript">
  47. var SysRootDir='<% = G_VIRTUAL_ROOT_DIR %>';
  48. function ChangeFolder(FolderName)
  49. {
  50. frames["FolderList"].location='SelectPath.asp?CurrPath='+FolderName;
  51. }
  52. function SelectPath()
  53. {
  54. var PathInfo='',TempPath='';
  55. if (SysRootDir!='')
  56. {
  57. TempPath=frames["FolderList"].CurrPath;
  58. PathInfo=TempPath.substr(TempPath.indexOf(SysRootDir)+SysRootDir.length);
  59. }
  60. else
  61. {
  62. PathInfo=frames["FolderList"].CurrPath;
  63. }
  64. if (frames["FolderList"].SelectedFolder!='')
  65. window.returnValue=PathInfo+'/'+frames["FolderList"].SelectedFolder;
  66. else
  67. window.returnValue=PathInfo;
  68. window.close();
  69. }
  70. window.onunload=SetReturnValue;
  71. function SetReturnValue()
  72. {
  73. if (typeof(window.returnValue)!='string') window.returnValue='';
  74. }
  75. </script>