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

数据库编程

开发平台:

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. <!--#include file="../FS_Inc/Func_Page.asp" -->
  8. <%
  9.   dim rs,i,picNumber,Imglist,o_class
  10.   if Request.QueryString("classid")<>"" then
  11.    o_class=" and Classid="&NoSqlHack(Request.QueryString("classid"))&""
  12.   else
  13.    o_class=""
  14.   end if
  15.   set rs = Server.CreateObject(G_FS_RS)
  16.   rs.open "select top 100 id,title,PicSavePath,UserNumber From FS_ME_Photo where UserNumber='"&Fs_User.UserNumber&"' "& o_class &"",User_Conn,1,3
  17.   if rs.eof then
  18.    Response.Write("没有符合条件的图片")
  19. rs.close:set rs=nothing
  20. conn.close
  21. Set conn=Nothing
  22. Response.End
  23.   Else
  24. picNumber=rs.Recordcount
  25. Imglist=" ImgName[0]=""../sys_images/DefaultPreview.gif"";" & vbcrlf
  26. For i=1 To picNumber
  27.    Imglist = Imglist & " ImgName[" & i & "]=""" &  rs("PicSavePath") & """;" & vbcrlf
  28.    rs.MoveNext
  29.    Next
  30. rs.close:set rs=nothing
  31.   end if
  32. %>
  33. <html xmlns="http://www.w3.org/1999/xhtml">
  34. <title>相册管理-网站内容管理系统</title>
  35. <script language="JavaScript">
  36. var mid=0;
  37. var t=0;
  38.   function ImgArray(len)
  39.   {
  40.    this.length=len;
  41.    }
  42.   ImgName=new ImgArray(<%=picNumber%>);
  43.   <%
  44.   Response.write Imglist
  45.   %>
  46.   function play_filt()
  47.   {
  48.     t_end=document.player.intsec.value;
  49. if (t==<%=picNumber%>){t=0;}else{t++;}
  50. if (t==<%=picNumber%>){t_end=100;}
  51. if (mid==0){
  52.   img.style.filter="blendTrans(Duration=1)";
  53.   img.filters[0].apply();
  54.   img.src=ImgName[t];
  55.   tIndex=t;
  56.   img.filters[0].play();
  57.   mytimeout=setTimeout("play_filt()",t_end);
  58. }
  59.    }
  60.    function go(id){
  61.     if (id==1){
  62.     mid=0
  63.     play_filt();
  64.     }
  65.     else if(id==2){
  66.     mid=1;
  67.     }
  68.     else if(id==3){ 
  69.     mid=1;
  70.     t=t+1;
  71.     if (t<=<%=picNumber%>) img.src=ImgName[t+1]; 
  72. }
  73. else if(id==4){
  74. mid=1;
  75. t=t-1;
  76.  if (t>0) img.src=ImgName[t];
  77. }
  78. else if(id==5){
  79. mid=1;
  80. t=0;
  81. play_filt();
  82. }
  83. else{
  84. mid=0;
  85. t=0;
  86. play_filt();
  87. }
  88.     }
  89. </script>
  90. <meta name="keywords" content="风讯cms,cms,FoosunCMS,FoosunOA,FoosunVif,vif,风讯网站内容管理系统">
  91. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  92. <meta content="MSHTML 6.00.3790.2491" name="GENERATOR" />
  93. <meta name="Keywords" content="Foosun,FoosunCMS,Foosun Inc.,风讯,风讯网站内容管理系统,风讯系统,风讯新闻系统,风讯商城,风讯b2c,新闻系统,CMS,域名空间,asp,jsp,asp.net,SQL,SQL SERVER" />
  94. <link href="images/skin/Css_<%=Request.Cookies("FoosunUserCookies")("UserLogin_Style_Num")%>/<%=Request.Cookies("FoosunUserCookies")("UserLogin_Style_Num")%>.css" rel="stylesheet" type="text/css">
  95. <head>
  96. <body   onload="play_filt()">
  97. <table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" class="table">
  98.   <tr>
  99.     <td>
  100.       <!--#include file="top.asp" -->
  101.     </td>
  102.   </tr>
  103. </table>
  104. <table width="98%" height="135" border="0" align="center" cellpadding="1" cellspacing="1" class="table">
  105.   
  106.     <tr class="back"> 
  107.       <td   colspan="2" class="xingmu" height="26"> <!--#include file="Top_navi.asp" --> </td>
  108.     </tr>
  109.     <tr class="back"> 
  110.       <td width="18%" valign="top" class="hback"> <div align="left"> 
  111.           <!--#include file="menu.asp" -->
  112.         </div></td>
  113.       <td width="82%" valign="top" class="hback"><table width="98%" border="0" align="center" cellpadding="5" cellspacing="1" class="table">
  114.         <tr class="hback"> 
  115.           <td class="hback"><strong>位置:</strong><a href="../">网站首页</a> &gt;&gt; 
  116.             <a href="main.asp">会员首页</a> &gt;&gt; <a href="PhotoManage.asp">相册管理</a> 
  117.             &gt;&gt;</td>
  118.         </tr>
  119.       </table> 
  120.   
  121.       <table width="98%" border="0" align="center" cellpadding="5" cellspacing="1" class="table">
  122.         <tr>
  123.           <td class="hback"><a href="PhotoManage.asp">相册首页</a>┆<a href="Photo_add.asp">增加图片</a>┆<a href="PhotoManage.asp?isRec=1">被推荐的图片</a>┆<a href="Photo_filt.asp">幻灯片播放</a>┆<a href="Photo_Class.asp">相册分类</a></td>
  124.         </tr>
  125.         <tr> 
  126.           <td class="hback"> 
  127.             <%
  128.   response.Write(" <table width=""98%"" align=center cellpadding=""2"" cellspacing=""1""><tr>")
  129.   dim t_k
  130.   t_k=0
  131.   set rs = Server.CreateObject(G_FS_RS)
  132.   rs.open "select id,title,UserNumber From FS_ME_PhotoClass where UserNumber='"&Fs_User.UserNumber&"'",User_Conn,1,3
  133.   do while not rs.eof 
  134.    Response.Write(" <td width=""24%"" valign=bottom><img src=""images/folderopened.gif""></img><a href=Photo_filt.asp?classid="&rs("id")&">"&rs("title")&"</a></td>")
  135.   rs.movenext
  136.   t_k = t_k+1
  137.   if t_k mod 4 =0 then
  138.    Response.Write(" </tr>")
  139.   end if
  140.   loop
  141.   response.Write(" </table>")
  142.   rs.close:set rs=nothing
  143.   %>
  144.           </td>
  145.         </tr>
  146.       </table> 
  147.       <table width="98%" border="0" align="center" cellpadding="5" cellspacing="1" style="border-collapse: collapse" class="table">
  148.         <tr class="hback">
  149.           <td align=center class="xingmu"> 
  150.             <p align="center"><b><font color="#000000">幻灯片播放</font></b><BR/>
  151.             </td>
  152.     </tr>
  153.    <form name="player" method="post" action="">
  154.    <tr class="hback">
  155.            <td> <div align="center">频率: 
  156.                 <select name="intsec">
  157.                   <option value=1000>1秒</option>
  158.                   <option value=3000 selected>3秒</option>
  159.                   <option value=5000>5秒</option>
  160.                   <option value=8000>8秒</option>
  161.                   <option value=10000>10秒</option>
  162.                 </select>
  163.                 <input type="button" value="开始" onClick="javascipt:go(1)">
  164.                 <input type="button" value="停止" onClick="javascipt:go(2)">
  165.                 <input type="button" value="上一张" onClick="javascipt:go(3)">
  166.                 <input type="button" value="下一张" onClick="javascipt:go(4)">
  167.                 <input type="button" value="关闭" onClick="javascipt:window.close();">
  168.               </div></td>
  169.    </tr class="hback">
  170. </form>
  171.    <tr class="hback">
  172.           <td height="377" align=center valign=top> 
  173.             <div align="center"><BR/>
  174.               <img src="../sys_images/DefaultPreview.gif" name="img" style="cursor:hand" onClick="window.open(img.src);" onload="if(this.width>=400)this.width=400;"> 
  175.               <BR/>
  176.             </div></tr>
  177.   </table>
  178.        </td>
  179.     </tr>
  180.     <tr class="back"> 
  181.       <td height="20"  colspan="2" class="xingmu"> <div align="left"> 
  182.           <!--#include file="Copyright.asp" -->
  183.         </div></td>
  184.     </tr>
  185.  
  186. </table>
  187. </body>
  188. </html>
  189. <%
  190. Set Fs_User = Nothing
  191. %>
  192. <!--Powsered by Foosun Inc.,Product:FoosunCMS V4.0系列-->