⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 header.asp

📁 在线点播系统
💻 ASP
字号:
<!--#include file="chklogin.asp"-->
<%
starttime=timer()
%>
<%
set rs=server.createobject("adodb.recordset")
rs.open "select * from setup where id=1",conn,1,1
website_name=rs("website_name")
rs.close
set rs=server.createobject("adodb.recordset")
rs.open "select * from webmessage where to_userid='"&request.cookies("userid")&"' and is_read=0",conn,1,1
msg_count=rs.recordcount
rs.close
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=website_name%></title>
<style type="text/css">
<!--
body,td,th {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #000000;
}
a:link {
	color: #000000;
}
a:visited {
	color: #000000;
}
a:hover {
	color: #FF6600;
}
-->
</style>
<link href="images/style.css" rel="stylesheet" type="text/css">
<script>
// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 3000

// Duration of crossfade (seconds)
var crossFadeDuration = 3

// Specify the image files
var Pic = new Array() // don't touch this

// to add more images, just continue
// the pattern, adding to the array below
Pic[0] = 'jsimg/01.gif'
Pic[1] = 'jsimg/02.gif'
Pic[2] = 'jsimg/03.gif'
Pic[3] = 'jsimg/04.gif'
Pic[4] = 'jsimg/05.gif'
Pic[5] = 'jsimg/06.gif'
Pic[6] = 'jsimg/07.gif'
Pic[7] = 'jsimg/08.gif'
Pic[8] = 'jsimg/09.gif'
Pic[9] = 'jsimg/10.gif'

var t
var j = 0
var p = Pic.length
var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Pic[i]
}
function runSlideShow(){
   if (document.all){
      document.images.SlideShow.style.filter="blendTrans(duration=2)"
      document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow.filters.blendTrans.Apply()      
   }
   document.images.SlideShow.src = preLoad[j].src
   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}
</script>
</head>

<body leftMargin="0" topMargin="0" bgcolor="#FFFFFF" onLoad="runSlideShow()">
<table width="776" height="3" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#00CCFF">
  <tr>
    <td></td>
  </tr>
</table>
<table width="776" height="61" border="0" align="center" cellpadding="0" cellspacing="0" background="images/top_bg.gif" class="t1">
  <tr align="right">
    <td width="150" align="center"><img src="images/logo.gif" width="140" height="61"></td>
    <td><table height="61" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="40" align="left"><a href="index.asp"><img src="images/top_title_homepage.gif" width="37" height="38" border="0"></a></td>
        <td width="65" align="left"><a href="index.asp" class="f1">网站首页</a></td>
        <%if request.cookies("userid")="" then%>
        <td width="40" align="left"><a href="users/login.asp"><img src="images/top_title_userlogin.gif" width="37" height="38" border="0"></a> </td>
        <td width="65" align="left"><a href="users/login.asp" class="f1">用户登陆</a></td>
        <td width="40" align="left"><a href="users/reg.asp"><img src="images/top_title_userreg.gif" width="37" height="38" border="0"></a></td>
        <td width="65" align="left"><a href="users/reg.asp" class="f1">用户注册</a></td>
        <%end if%>
        <%if request.cookies("userid")<>"" then%>
        <td width="40" align="left"><a href="users/index.asp"><img src="images/top_title_usercenter.gif" width="37" height="38" border="0"></a></td>
        <td width="65" align="left"><a href="users/index.asp" class="f1">用户中心</a></td>
        <%if request.cookies("userid")<>"" and request.cookies("u_type")<>3 then%>
        <td width="40" align="left"><a href="users/login.asp?action=logout"><img src="images/img05.gif" width="37" height="38" border="0"></a></td>
        <td width="65" align="left"><a href="users/login.asp?action=logout" class="f1">退出登陆</a></td>
        <%end if%>
        <%end if%>
        <td width="40" align="left"><a href="online_help.asp"><img src="images/top_title_help.gif" width="37" height="38" border="0"></a></td>
        <td width="65" align="left"><a href="online_help.asp" class="f1">在线帮助</a></td>
        <td width="40" align="left"><a href="service.asp"><img src="images/top_title_service.gif" width="37" height="38" border="0"></a></td>
        <td width="65" align="left"><a href="service.asp" class="f1">客服联系</a></td>
      </tr>
    </table></td>
  </tr>
</table>
<table width="774" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="776" height="3">
        <param name="movie" value="images/line.swf">
        <param name="quality" value="high">
        <embed src="images/line.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="776" height="3"></embed>
    </object></td>
  </tr>
</table>
<table width="776" height="36" border="0" align="center" cellpadding="0" cellspacing="0" background="images/search_01.jpg" class="t1">
<form name="form3" method="post" action="search_list.asp">
  <tr>
    <td width="110" align="left"><img src="images/search_02.jpg" width="107" height="36"></td>
    <td width="115"><input name="sr_var" type="text" class="input1" id="sr_var" size="15">
    </td>
    <td width="80"><select name="sr_type" class="select1" id="sr_type" value="">
        <option selected value="">请选择</option>
        <option value="1">影片名称</option>
        <option value="2">主要演员</option>
        <option value="3">影片导演</option>
    </select></td>
    <td width="60">
      <input name="image" type="image" src="images/search_03.gif" width="47" height="19"></td>
<%
set rs=server.createobject("adodb.recordset")
sql="select * from films order by newid()"
'sql="select * from films where DateDiff(d,join_time,getdate())<7 order by search_count desc"
rs.open sql,conn,1,1
%>
    <td align="left"><%if rs.eof and rs.bof then%>没有任何影片
<%
else
i=0
do while not rs.eof
i=i+1
%>&nbsp;<a class="f2" title="<%=rs("film_name")%>" href="film.asp?id=<%=rs("id")%>"><%if len(rs("film_name"))>5 then%><%=left(rs("film_name"),5)%>...<%else%><%=rs("film_name")%><%end if%></a>
<%
if i>=6 then exit do
rs.movenext
loop
end if
rs.close
%>
</td>
  </tr>
</form>
</table>
<TABLE width="776" border=0 align="center" cellPadding=0 cellSpacing=0 class="t1">
  <TBODY>
    <TR>
      <TD width=9 background="images/1_103.jpg" height=206>&nbsp;</TD>
      <TD width=444><TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
          <TBODY>
            <TR>
              <TD background="images/1_105.jpg" height=8></TD>
            </TR>
            <TR>
              <TD height=191><table width="445" height="190" border="0" cellpadding="0" cellspacing="0" id="demo">
                <tr>
                  <td align="center">
                    <table border="0" cellpadding="0" cellspacing="0">
                      <tr>
                        <td id="VU" height=190 width=445><img src="jsimg/01.gif" name='SlideShow' width=445 height=190></td>
                      </tr>
                     </table>
				  </td>
                </tr>
              </table></TD>
            </TR>
            <TR>
              <TD background="images/1_16.jpg" height=7></TD>
            </TR>
          </TBODY>
      </TABLE></TD>
      <TD width=13 background="images/1_07.jpg">&nbsp;</TD>
      <TD width=301><TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
          <TBODY>
            <TR>
              <TD background="images/1_08.jpg" height=8></TD>
            </TR>
            <TR>
              <TD height=64><table width="300" height="58" border="0" cellpadding="5" cellspacing="0" id="search_film">
                <tr>
                  <td><%if request.cookies("userid")="" then%>
                  您还未登陆,请<a href="users/login.asp">登陆</a>或<a href="users/reg.asp">注册</a>
                    <%else%>欢迎:<%=request.cookies("userid")%> <%if msg_count>0 then%><bgsound src="images/msg.wav" autostart="true" loop="0">
                    <a href="users/user_msg.asp"><img src="images/new_msg.gif" alt="您有新的短消息,请点击查收" width="18" height="12" border="0"></a>
                    <%end if%><%end if%>
				  <br>                    
                    用户类型:<%if request.cookies("userid")="" then%>未登陆<%else%><%if request.cookies("u_type")=1 then%>个人计点用户<%end if%><%if request.cookies("u_type")=2 then%>个人包月用户<%end if%><%if request.cookies("u_type")=3 then%>网吧包月用户<%end if%><%end if%>
				  <br>
                    <%if request.cookies("userid")="" then%>现在时间是:<%=now()%><%else%>
<%
set rs=server.createobject("adodb.recordset")
rs.open "select * from member where userid='"&request.cookies("userid")&"'",conn,1,1
if rs("u_type")=1 then
%>
影币点数:<%if rs("point")<=0 then%><span class="f3"><%end if%><%=rs("point")%><%if rs("point")<=0 then%></span><%end if%> 点
<%else%>
到期时间:<%if DATEDIFF("s",now,rs("end_time"))<=0 then%><span class="f3"><%end if%><%=rs("end_time")%><%if DATEDIFF("d",now,rs("end_time"))<=0 then%></span><%end if%>
<%
end if
rs.close
end if
%></td>
                  <td width="70" align="left"><a href="users/user_cz.asp"><img src="images/img15.gif" width="66" height="55" border="0"></a></td>
                </tr>
              </table></TD>
            </TR>
            <TR>
              <TD background="images/1_15.jpg" height=15></TD>
            </TR>
            <TR>
              <TD height=112><table width="300" height="110" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td align="center"><IFRAME marginWidth=0 marginHeight=0 src="affiche.asp" frameBorder=0 width=300 height=110></IFRAME></td>
                </tr>
              </table></TD>
            </TR>
            <TR>
              <TD background="images/1_19.jpg" height=7></TD>
            </TR>
          </TBODY>
      </TABLE></TD>
      <TD width=9 
              background="images/1_11.jpg">&nbsp;</TD>
    </TR>
  </TBODY>
</TABLE>
<table width="776" height="5" border="0" align="center" cellpadding="0" cellspacing="0" class="t1">
  <tr>
    <td></td>
  </tr>
</table>
<table width="776" height="32" border="0" align="center" cellpadding="0" cellspacing="0" background="images/img06.gif" class="t1">
  <tr>
    <td width="130" align="left"><img src="images/img03.gif" width="125" height="32"></td>
    <td width="11" align="left" bgcolor="#FF9900"><img src="images/img04.gif" width="11" height="32"></td>
    <td width="624" align="center" background="images/img07.gif">
      <%
set rs=server.createobject("adodb.recordset")
sql="select * from film_class"
rs.open sql,conn,1,1
do while not rs.eof
%>
<%if cint(request.QueryString("listid"))<>cint(rs("id")) then%><a href="list.asp?listid=<%=rs("id")%>" class="f2"><%end if%><%=rs("caption")%><%if cint(request.QueryString("listid"))<>cint(rs("id")) then%></a><%end if%>&nbsp;&nbsp;
<%
rs.movenext
loop
rs.close
%>
 <%if request.cookies("userid")<>"" and request.cookies("u_type")<>3 then%><%if filename<>"myfav_list.asp" then%><a href="myfav_list.asp?userid=<%=request.cookies("userid")%>" class="f2">我的收藏</a><%else%>我的收藏<%end if%><%end if%></td>
    <td width="11" align="right" background="images/img07.gif"><img src="images/img08.gif" width="11" height="32"></td>
  </tr>
</table>
<table width="776" height="5" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFCC00" class="t1">
  <tr>
    <td></td>
  </tr>
</table>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -