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

数据库编程

开发平台:

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