<!--#include file="top.asp"-->
<SCRIPT language=JavaScript>
<!--
function checkinput()
{
	if (document.search.keyword.value=="")
	 {	
		alert("请输入想查询的内容！");
		document.search.keyword.focus();
		return false;
	 }
	 return true;
}
-->
</SCRIPT>
<DIV align=center>
<CENTER>
<TABLE cellSpacing=0 cellPadding=0 width=778 
background=images/bg-content.gif border=0>
  <TBODY>
  <TR>
    <TD vAlign=top width=14 rowSpan=2><IMG src="images/clear.gif" 
    border=0></TD>
    <TD align=middle width=751 colSpan=3>
      <DIV align=center>
      <TABLE cellSpacing=0 cellPadding=0 width="98%" border=0>
        <TBODY>
        <TR>
          <TD width="40%">你的位置：<A 
            href="index.asp">首页</A>-&gt;&nbsp;<%=classid%></TD>
          <FORM name=search onsubmit="return checkinput()" action=search.asp 
          method=post>
          <TD width="60%">
</TD></FORM></TR></TBODY></TABLE></DIV></TD>
    <TD vAlign=top width=13 rowSpan=2><IMG src="images/clear1.gif" 
      border=0></TD></TR>
  <TR>
    <TD vAlign=top width=194>
      <DIV align=center>
      <TABLE cellSpacing=5 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD vAlign=top width="100%">
            <DIV align=center>
<table border="0" cellpadding="0" cellspacing="0" width="100%" background="images/a02.gif">
                        <tr>
                          <td width="100%" bgcolor="#EBEDEE"><img border="0" src="images/a01.gif"></td>
                        </tr>
                        <tr>
                          <td width="100%">
<%
if session("username") = "" and session("password") = "" then
%>
 <table width=100% border=0 cellspacing=0 cellpadding=0>
        <form method=post action="ChkLogin.asp">
        <tr>
          <td width=80% height=120 align=center>用户名： 
            <input type=text name=username maxLength=20 size=12 class=inp>
            <br><br>
            密　码： 
            <input type=password name=password maxLength=20 size=12 class=inp>
            <br><br>
            <input type=image src=images/login.gif align=absMiddle border=0> 
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	    <a href="#"onClick="window.open('read.htm','','scrollbars=no,resizable=no,width=420,height=440,menubar=no,top=60,left=200')"><img src=images/reg.gif align=absMiddle border=0></a>
            </td>
        </tr>
        </form>
      </table>
<% 
elseif session("ok") <> 1 then
%>
<table border="0" cellpadding="0" cellspacing="0" width="170" height=130>
        <tr><td><p align=center>登录成功<br><br>&nbsp;&nbsp;&nbsp;你还没有付费或付费期已到<br><br>请联系QQ：67293044<br>手机：13988888888<br><br><a href="logout.asp"><font color=red>[退出登录]</font></a></p></td></tr>
</table>
<% else
%>
<table border="0" cellpadding="0" cellspacing="0" width="170" height=130>
        <tr><td><p align=center>登录成功<br><br>&nbsp;&nbsp;&nbsp;你还没有付费或付费期已到<br><br>请联系QQ：67293044<br>手机：13988888888<br><br><a href="logout.asp"><font color=red>[退出登录]</font></a></p></td></tr>
</table>
<%
end if
%>                      </td>
                        </tr>
                        <tr>
                          <td width="100%" height="10" valign="bottom"><img border="0" src="images/a03.gif"></td>
                        </tr>
                        <tr>
                          <td width="100%" bgcolor="#EBEDEE" height="25" valign="bottom"><img border="0" src="images/a04.gif"></td>
                        </tr>
                        <tr>
                          <td width="100%">
                            <div align="center">
                              
                          <table border="0" cellpadding="6" cellspacing="0" width="100%">
                            <tr> 
                              <td align="center" colspan="2"><font color="#000000"><img border="0" src="images/aa.gif"></font> 
                                <font color="#993300">非会员免费试片区</font></td>
                            </tr>
                            <tr> 
                              <td width="50%" align="center"><font color="#000000"><img border="0" src="images/aa.gif">会员续费</font></td>
                              <td width="50%" align="center"><font color="#000000"><img border="0" src="images/aa.gif">会员注销</font></td>
                            </tr>
                            <tr> 
                              <td width="50%" align="center"><font color="#000000"><img border="0" src="images/aa.gif"><a href=help.asp target="_blank">帮助中心</a></font></td>
                              <td width="50%" align="center"><font color="#000000"><img border="0" src="images/aa.gif">忘记密码</font></td>
                            </tr><tr> <td width="50%" align="center" colspan="2">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111">
          <form method="post" action="search1.asp" name="search">
            <tr>
              <td width="100" align="center">
              <input type="text" size="20" name="keyword" style="width: 100; height: 16" onmouseover="this.style.borderColor='#486841';this.style.backgroundColor='#E2F1A6'" onmouseout="this.style.borderColor='#006D91';this.style.backgroundColor='#EFEFEF'" class=inp></td>
              <td width="60" align="center">
                  <a href="javascript:document.search.submit()">
              搜索电影</a></td>
            </tr>
          </form>
          </table></td></tr>
                          </table></DIV></TD></TR>
              <TR>
                <TD vAlign=bottom width="100%"><IMG src="images/a03.gif" 
                  border=0></TD></TR>
              <TR>
                <TD vAlign=bottom width="100%" bgColor=#f7f3f7 height=25><IMG 
                  src="images/a05.gif" border=0></TD></TR>
              <TR>
                <TD width="100%">
                  <DIV align=center>
                  <TABLE cellPadding=2 width="100%" border=0>
                    <TBODY>
                      <%
                         sql="select id,name,hits from [movie]  order by hits desc"
                         Set rs= Server.CreateObject("ADODB.Recordset")
                         rs.open sql,conn,1,1
                         if rs.eof and rs.bof then
                            response.write "<p align='center'>没有任何电影</p>"
                         else
                         i=0
                         do while not rs.eof or rs.bof
                       %>
                          <TR> 
                            <td> 
                            <p align="center"><img border="0" src="images/list.gif"> 
                            <td width="118"><a href="list.asp?id=<%=rs("id")%>" target="_blank">
                      <%
                       if len(rs("name")) > 11 then
                       response.write (left(rs("name"),9))
                       else
                       response.write (rs("name"))
                       end if
                      %>
                       </a></TD>
                            <td width=30><p align="center"><%=rs("hits")%></td>
                          </TR>
                     <% i=i+1
                        if i>=15 then exit do
                        rs.movenext
                        loop
                        end if
                        rs.close
                        set rs=nothing
                     %>
               </TBODY></TABLE></DIV></TD></TR>
              <TR>
                <TD width="100%"><IMG src="images/a03.gif" 
              border=0></TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE></DIV></TD>
    <TD width=7>　</TD>
    <TD vAlign=top width=550>
          <%
          page = request.querystring("page")
          keyword = request.form("keyword")
          if keyword = "" then
          sql = "select * from [movie]  order by id desc"
          else
          sql = "select * from [movie]  where name like '%"&keyword&"%' order by id desc"
          end if
          set rs=server.createobject("adodb.recordset")
          rs.open sql,conn,1,1
          if rs.eof or rs.bof then
          %>
          <p style="margin-top: 2" align=center>没有找到相关电影
          <%
          else
          rs.pagesize = "8"
          if page = "" or page < "1" then
          page = "1"
          end if
          if rs.pagecount > "0" then
          rs.absolutepage = page
          end if
          i = "0"
         %>
      <CENTER>
      <DIV align=center>
      <TABLE cellSpacing=5 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD width="100%">
            <DIV align=center>
            <TABLE cellSpacing=0 cellPadding=0 width=538 border=0>
              <TBODY>
              <TR>
                <TD width="100%"><IMG src="images/b.gif" border=0></TD></TR>
              <TR>
                <TD width="100%" background=images/b01.gif>
                  <DIV align=center>
         <%
          do while not rs.eof or rs.bof
          i = i + 2
          if i > rs.pagesize then
          exit do
          end if
          %>
                <TABLE cellSpacing=0 cellPadding=0 width="98%" border=0>
                 <TBODY>
                  <TR>
                  <TD vAlign=top width="50%">
                  <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                    <TBODY>
                    <TR>
                      <TD vAlign=top width="40%">
                        <P align=center><a href="list.asp?id=<%=rs("id")%>"><IMG height=145 
                        src="<%=rs("image")%>" width=106 align=left 
                        border=1></a></P></TD>
                        <TD vAlign=top width="60%" height=117>
                        <TABLE style="BORDER-COLLAPSE: collapse" 
                        borderColor=#ffffff height=39 cellSpacing=0 
                        borderColorDark=#ffffff cellPadding=2 width="100%" 
                        border=0>
                          <TBODY>
                          <TR>
                          <td><a href="list.asp?id=<%=rs("id")%>"><b><%=rs("name")%></b></a></td></TR>
                          <TR>
                          <TD><b>影片简介：</b>
         <%
         if len(rs("content")) > 90 then
          response.write (left(rs("content"),87))
          response.write ("...")
         else
          response.write (rs("content"))
         end if
         %></TD></TR>
                       </TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE></td>  
                      <TD vAlign=top width="50%">
           <%
             rs.movenext
             if not rs.eof or rs.bof then
           %>  
                  <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                    <TBODY>
                    <TR>
                      <TD vAlign=top width="40%">
                        <P align=center><a href="list.asp?id=<%=rs("id")%>"><IMG height=145 
                        src="<%=rs("image")%>" width=106 align=left 
                        border=1></a></P></TD>
                        <TD vAlign=top width="60%" height=117>
                        <TABLE style="BORDER-COLLAPSE: collapse" 
                        borderColor=#ffffff height=39 cellSpacing=0 
                        borderColorDark=#ffffff cellPadding=2 width="100%" 
                        border=0>
                          <TBODY>
                          <TR>
                          <td><a href="list.asp?id=<%=rs("id")%>"><b><%=rs("name")%></b></a></td></TR>
                          <TR>
                          <TD><b>影片简介：</b>
         <%
         if len(rs("content")) > 90 then
          response.write (left(rs("content"),87))
          response.write ("...")
         else
          response.write (rs("content"))
         end if
         %></TD></TR>
                       </TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE>
         <%
           else
          %>
           </TD></TR></TABLE>
          <%
           exit do
           end if
          %>                      
             </TD></TR></TABLE>
               <table border="0" cellpadding="0" cellspacing="0">
               <tr><td height=5 width=100%></td></tr></table>
          <%
          rs.movenext
          loop
          %>
       <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#006D91" width="98%">
            <tr>
              <td width="100%" align="center"><p style="margin-top: 2">[第<%=page%>页/共<%=rs.pagecount%>页] 跳到第<%for go=1 to Rs.pagecount%> <a href=class.asp?page=<%=go%>&classid=<%=classid%>><%=go%></a> <%next%>页 <%if page = "1" then%>[首页] [上一页] <%else%>[<a href="class.asp?classid=<%=classid%>">首页</a>] [<a href="class.asp?classid=<%=classid%>&page=<%=page-1%>">上一页</a>] <%end if%><%if rs.pagecount-page < 1 then%>[下一页] [尾页]<%else%>[<a href="class.asp?classid=<%=classid%>&page=<%=page+1%>">下一页</a>] [<a href="class.asp?page=<%=rs.pagecount%>&classid=<%=classid%>">尾页</a>]<%end if%></td>
            </tr>
          </table>
          <%
          end if
          rs.close
          set rs = nothing
          %>

                    </TD></TR></TBODY></TABLE></DIV></TD></TR>
              <TR>
                <TD width="100%"><IMG src="images/b02.gif" 
              border=0></TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE></DIV></CENTER></TD></TR></TBODY></TABLE></DIV>


<DIV align=center>
<CENTER>
<!--#include file="down.asp"-->
</BODY></HTML>
