SelectPic.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 LimitUpFileFlag,CurrPath,ShowVirtualPath
  11. LimitUpFileFlag = Request("LimitUpFileFlag")
  12. CurrPath = Request("CurrPath")
  13. ShowVirtualPath = Request("ShowVirtualPath")
  14. Session("TempPicDir")=CurrPath
  15. 'if SysRootDir<>"" then CurrPath="/" & SysRootdir & CurrPath else CurrPath=CurrPath
  16. %>
  17. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  18. <HTML>
  19. <HEAD>
  20. <META http-equiv="Content-Type" content="text/html; charset=gb2312">
  21. <TITLE>选择图片</TITLE>
  22. <link href="../../images/skin/Css_<%=Session("Admin_Style_Num")%>/<%=Session("Admin_Style_Num")%>.css" rel="stylesheet" type="text/css">
  23. </HEAD>
  24. <SCRIPT language="JavaScript" src="../js/Public.js"></SCRIPT>
  25. <BODY leftmargin="0" topmargin="0">
  26. <TABLE width="99%" border="0" align="center" cellpadding="1" cellspacing="0">
  27.   <TR> 
  28.     <TD height="25"><SELECT onChange="ChangeFolder(this.value);" id="FolderSelectList" style="width:100%;" name="select">
  29. <OPTION selected value="<% = CurrPath %>"><% = CurrPath %></OPTION>
  30.       </SELECT></TD>
  31.     <TD rowspan="2" align="center" valign="middle"><IFRAME id="PreviewArea" width="100%" height="315" frameborder="1" src="PreviewImage.asp"></IFRAME></TD>
  32.   </TR>
  33.   <TR> 
  34.     <TD width="70%" align="center"> <IFRAME id="FolderList" width="100%" height="290" frameborder="1" src="FolderImageList.asp?CurrPath=<% = CurrPath %>&ShowVirtualPath=<% = ShowVirtualPath %>"></IFRAME></TD>
  35.   </TR>
  36.   <TR> 
  37.     <TD height="10" colspan="2"> 
  38.       <TABLE width="100%" height="20" border="0" cellpadding="0" cellspacing="0">
  39.         <TR> 
  40.           <TD width="80" height="10"> <DIV align="center">Url地址</DIV></TD>
  41.           <TD><INPUT style="width:40%" type="text" name="UserUrl" id="UserUrl"> 
  42.             <INPUT type="button" onClick="SetUserUrl();" name="Submit" value=" 确 定 "> 
  43.             <INPUT type="button"  onClick="UpFileo();" name="Submit" value=" 上 传 " <%if not MF_Check_Pop_TF("MF025") then Response.Write"disabled"%>> 
  44.             <INPUT onClick="window.close();" type="button" name="Submit" value=" 取 消 "> 
  45.           </TD>
  46.         </TR>
  47.         <TR> 
  48.           <TD height="10" colspan="2" align="center"><span class="tx">在空白处点鼠标右键可以进行文件类操作,双击文件选择</span></TD>
  49.         </TR>
  50.       </TABLE></TD>
  51.   </TR>
  52. </TABLE>
  53. </BODY>
  54. </HTML>
  55. <SCRIPT language="JavaScript">
  56. function ChangeFolder(FolderName)
  57. {
  58. frames["FolderList"].location='FolderImageList.asp?CurrPath='+FolderName;
  59. }
  60. function UpFileo()
  61. {
  62. OpenWindow('Frame.asp?FileName=UpFileForm.asp&Path='+frames["FolderList"].CurrPath,350,170,window);
  63. frames["FolderList"].location='FolderImageList.asp?CurrPath='+frames["FolderList"].CurrPath;
  64. }
  65. function SetUserUrl()
  66. {
  67. if (document.all.UserUrl.value=='') alert('请填写Url地址');
  68. else
  69. {
  70. window.returnValue=document.all.UserUrl.value;
  71. window.close();
  72. }
  73. }
  74. window.onunload=CheckReturnValue;
  75. function CheckReturnValue()
  76. {
  77. if (typeof(window.returnValue)!='string') window.returnValue='';
  78. }
  79. function OpenWindow(Url,Width,Height,WindowObj)
  80. {
  81. var ReturnStr=showModalDialog(Url,WindowObj,'dialogWidth:'+Width+'pt;dialogHeight:'+Height+'pt;status:no;help:no;scroll:no;');
  82. return ReturnStr;
  83. }
  84. </SCRIPT>