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

📄 newadd.asp

📁 顶级影视站ASP源代码系统。很全面很强大。数据库用access
💻 ASP
字号:
<!--#include file="HMconnection.asp"-->
<!--#include file="webconfig.asp"-->
<!--#include file="imagefile.asp"-->
<html>
<head>
<title><%=webname%>--新增影片</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> 
<LINK REL="stylesheet" HREF="style/style.css" TYPE="text/css">
</head>
<%
MaxPerPage=5
dim totalPut,CurrentPage,TotalPages,i,j,typetitle,ty
typetitle="charter"
if not isempty(trim((request("page")))) then
currentPage=cint(trim(request("page")))
else
currentPage=1
end if
%>
<BODY bgcolor="#B2DBFD" leftMargin=0 topMargin=0 oncontextmenu=self.event.returnValue=false onselectstart="return false">
<table width="775" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#E5E5E5">
  <tr>
    <td width="100%">
	<TABLE align=center border=0 cellPadding=0 cellSpacing=0 width="98%">
	  <TBODY> 
       <TR><TD height="24" bgcolor="#FFFFFF">
	    <div align="center"> 
          <!--#include file="webtop.asp"-->
        </div>
        </TD></TR>
      </TBODY>
    </TABLE>
    <div align=center> 
<table cellspacing=0 cellpadding=0 width="98%" border=0 bgcolor="#FFFFFF"> <tbody> 
    <tr>
	 <TD WIDTH="1" vAlign=TOP bgColor=#0000FF></TD>
      <td valign=top width=190 background="style/orange.jpg "> 
        <DIV ALIGN="CENTER"> 
          <!--#include file="webleft.asp"-->
        </DIV>
      </td>
      <td valign=top width="579"> 
        <table cellspacing=0 cellpadding=0 width="100%" align=center bgcolor=#ffffff border=0>
	      <tbody> 
	       <tr> <td height=1></td></tr> 
	      </tbody> 
        </table>
       <table cellspacing=0 cellpadding=0 width="100%" border=0> <tbody>
          <tr valign=top> 
           <td colspan=2 height=40>
    <div align=center> <div align=center> <div align=center> 
    <center>
                      <table cellspacing=0 cellpadding=0 width="95%" border=0 height="22" 
                  background=style/orange.jpg%20>
                        <tbody>
						<tr>
						<td>&nbsp;</td>
						</tr> 
                        <tr> 
                      <form method=POST name="fsform" action="fileserach.asp">
                         <td height="32" background="images/searchbar_04.gif" STYLE="border-bottom: 1 solid #cccccc"> 
                        <div align="center"><img src="images/search3.gif" width="16" height="16" align=absMiddle> 
                         影片搜索:&nbsp;
				<input id="sradio" type="radio" name="sradio" value="filmnames" checked>按片名&nbsp;
				<input id="sradio" type="radio" name="sradio"  value="actors">按演员&nbsp;
				<input id="sradio" type="radio" name="sradio" value="directors">按导演&nbsp;&nbsp;
                <input size=16 name=keyword style="border: 1px solid #000000">
                <input type="hidden" name="submit" value="mysubmit"> 
                <input type="image" border="0" name="submit" value="mysubmit" src="images/search_menu.gif" width="41" height="20" align=absMiddle>
                 </div>
            </td>
          </form>
        </tr>
                        </tbody> 
                      </table>
                    </center>
                    <table cellspacing=0 cellpadding=0 width="95%" border=0>
                      <tbody> 
                      <tr valign=top> <td colspan=2 height=40> 
                         <div align=center> <br style="line-height:3px;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
 <tr>
   <td height="30" background="images/newadd.gif">
   </td>
 </tr>
  <tr>
    <td>
	<%dim nfilmSQL,nfilmRS,imagefile
   nfilmSQL="select * from film where ifNew=true order by dateandtime desc"
Set nfilmRS= Server.CreateObject("ADODB.Recordset")
nfilmRS.open nfilmSQL,conn,1,1
if nfilmRS.eof and nfilmRS.bof then
   response.write "<p align='center'> <br>本类影片暂无 </p>"
   TotalPages=0
else
   totalPut=nfilmRS.recordcount
   TotalPages=cint((totalPut+3)\MaxPerPage)
   if currentpage<1 then
      currentpage=1
   end if

 if (currentpage-1)*MaxPerPage>totalput then
   if (totalPut mod MaxPerPage)=0 then
     currentpage= totalPut \ MaxPerPage
   else
     currentpage= totalPut \ MaxPerPage + 1
   end if
 end if
 
 if currentPage=1 then
   showpage totalput,MaxPerPage,"newadd.asp"
   showContent
   showpage1 totalput,MaxPerPage,"newadd.asp"
 else
  if (currentPage-1)*MaxPerPage<totalPut then
    nfilmRS.move  (currentPage-1)*MaxPerPage
    dim bookmark
    bookmark=nfilmRS.bookmark
    showpage totalput,MaxPerPage,"newadd.asp"
    showContent
    showpage1 totalput,MaxPerPage,"newadd.asp"
   else
    currentPage=1
    showpage totalput,MaxPerPage,"newadd.asp"
    showContent
    showpage1 totalput,MaxPerPage,"newadd.asp"
   end if
 end if
end if
sub showContent
dim i
i=0
do while not nfilmRS.eof
%>
      <table cellspacing=0 cellpadding=0 width="100%" 
            border=0 height="168">
                              <tbody bgcolor="#EFEFEF"> 
                              <tr> 
                                <td valign=center align=middle width="132" rowspan="2"> 
                                  <div align=center><font color="#000000"><a href="showfilm.asp?id=<%=nfilmRS("id")%>&typeid=<%=nfilmRS("typeid")%>">
								  <img src="<%if nfilmRS("imagesname")="" or nfilmRS("imagesname")=" " then
	                              imagefile="filmpic/defaut2.jpg"
	                             else 
	                                imagefile=FIfile(trim(nfilmRS("imagefile")))&trim(nfilmRS("imagesname"))
	                              end if
								  response.Write(imagefile)
								   %>" alt="<%=nfilmRS("title")%>" width="90" height="128" border="0"></a></font></div>
                                </td>
                                <td valign=top height="127"> 
                                  <p><font color="#333333"><br>
                                    影片名称:</font><font color="#FF6600"><a href="showfilm.asp?id=<%=nfilmRS("id")%>&typeid=<%=nfilmRS("typeid")%>" title="<%=nfilmRS("title")%>"><font color="#FB6400"><%if len(nfilmRS("title"))<20 then
									   response.Write(nfilmRS("title"))
									else 
									   response.Write(left(nfilmRS("title"),19)&"…")
									end if
									%></font></a></font> 
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#000000">点播:</font><font color="#999999"><font color="#FF6600"><%=nfilmRS("hits")%> 
                                    <font color="#000000">次</font></font></font><br>
                                    <FONT COLOR="#333333">主要演员:</FONT><FONT COLOR="#993300"><%=nfilmRS("mainactors")%></FONT><BR>
                                    开放范围:<%if nfilmRS("grade")="0" then%><font color="#CC9933">所有人(免费)</font><%end if
if nfilmRS("grade")="1" then%><font color="#0000ff">本站会员</font>
<%end if 
if nfilmRS("grade")="2" then%><font color="#0000ff"><b>VIP会员</b></font>
<%END IF%>
<br>
                                    内容简介:<FONT COLOR="#999999"><br>
                                    &nbsp;&nbsp;&nbsp;&nbsp;<%=left(nfilmRS("content"),90)%></FONT><font color="#666666">...<br>
                                    </font></p>
                                </td>
                              </tr>
                              <tr> 
                                <td valign=bottom> 
                                  <div align="right"><font color="#999999">添加时间:</font><font color="#993300"><%=nfilmRS("dateandtime")%></font>&nbsp;</div>
                                </td>
                              </tr>
                              <tr> 
                                <td valign=center colspan=2> 
                                  <table cellspacing=0 cellpadding=0 width="100%">
                                    <tbody> 
                                    <tr> 
                                      <td background=images/bgline.gif 
                    height=2></td>
                                    </tr>
                                    </tbody> 
                                  </table>
                                </td>
                              </tr>
                              </tbody> 
                            </table>
                            <% i=i+1
if i>=MaxPerPage then exit do
nfilmRS.movenext
loop
%> <%
end sub
function showpage(totalnumber,maxperpage,filename)
dim n
if totalnumber mod maxperpage=0 then
n= totalnumber \ maxperpage
else
n= totalnumber \ maxperpage+1
end if
Response.Write "<table border=""0"" cellspacing=""1"" bgcolor=#CCCCCC width=""100%"" align=center>"
response.write "<tr><form action="&filename&" method='post' name='tiaozhuan1' target='_self'><td width=""30%"">"
Response.Write "本类共有影片:<font color=""red"">"&totalnumber&"</font> 部 <font color=""red"">"&CurrentPage&"/"&n&"</font> 页"
response.Write "&nbsp;&nbsp;&nbsp;&nbsp;转到&nbsp;<input name='typeid' type=hidden class=text value="&typeid&">"&_ 
            "<input style=""font-size:10px;height:17px;BACKGROUND-COLOR: #cccccc;""  value='页码' type=text name=""page"" size=3 onFocus=""this.value=''"">"&_ 
            "&nbsp;&nbsp;<input name='submit' type=submit STYLE=""BORDER-RIGHT: #000000 1px solid;height:17px; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid;font-size:11px; COLOR: #000000; BORDER-BOTTOM: #000000 1px "&_
			 "solid; BACKGROUND-COLOR: #cccccc"" value=""确 定""></td></form></tr>"
end function

function showpage1(totalnumber,maxperpage,filename)
dim n
if totalnumber mod maxperpage=0 then
n= totalnumber \ maxperpage
else
n= totalnumber \ maxperpage+1
end if
Response.Write "<table border=""0"" cellspacing=""1"" width=""100%"">"
response.write "<tr><td align=""left""><td width=""64%"">"
response.write "<td width=""50%""><div align=""center"">"
if CurrentPage<2 then
response.write "<font color='999966'><br>首页 上一页</font>&nbsp;"
else
response.write "<a href="&filename&"?typeid="&typeid&"&page=1&><br>首页</a>&nbsp;"
response.write "<a href="&filename&"?typeid="&typeid&"&page="&CurrentPage-1&">上一页</a>&nbsp;"
end if
if n-currentpage<1 then
response.write "<font color='999966'>下一页 尾页</font>"
else
response.write "<a href="&filename&"?typeid="&typeid&"&page="&(CurrentPage+1)
response.write ">下一页</a> <a href="&filename&"?typeid="&typeid&"&page="&n&">尾页</a>"
end if
Response.Write "</div></td></tr></table>"
end function
nfilmRS.close
set nfilmRS=nothing

%> 
  </td>
  </tr>
</table>
</div></td></tr> <tr> <td colspan=2 height=3></td></tr> 
</tbody> </table></div></div></div></td></tr> <tr> <td colspan=2 height=2></td></tr> 
</tbody> </table></td>
<TD WIDTH="1" vAlign=TOP bgColor=#0000FF></TD>
</tr> </tbody> </table>
<!--#include file="webbottom.asp"--> </div>
</td></tr></table>
</body>
</html>
 <script language="VBScript" type="text/VBScript">
	  function tiaozhuan1_onSubmit()
		dim shuru
		shuru=document.tiaozhuan1.page.value
		if isNumeric(shuru) then
		  if shuru><%=TotalPages%> OR shuru<=0 then
			alert"对不起,您的输入页码不存在"
			tiaozhuan1_onSubmit=false
			document.tiaozhuan1.page.focus()
		  end if
		else 
		  alert"对不起,您的输入有误" 
		  tiaozhuan1_onSubmit=false
		  document.tiaozhuan1.page.focus()
		end if
	  end function									    
</script>

⌨️ 快捷键说明

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