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

📄 index.asp

📁 有关遗传算法的例子
💻 ASP
字号:
<!--#include file="function.asp" -->
<%
showtitle
top
%>
<BODY style="MARGIN: 0px" bgColor=#ffffff leftMargin=0 topMargin=0>
<CENTER>
  <TABLE cellSpacing=0 cellPadding=0 width=980 border=0>
    <TBODY> 
    <TR> 
      <TD align=middle width=25><IMG height=12 
      src="images/icon_address.gif" width=19></TD>
      <TD width=373>您的位置:&nbsp;<A 
      href="<%=site%>"><%=webname%></A>&nbsp;&gt;&gt;&nbsp;网站首页</TD>
      <TD height=35> 
        <div align="right">
          <script language="Javascript" src="../write_js.asp?action=site_top"></script>
        </div>
      </TD>
      <TD width=9></TD>
    </TR>
    </TBODY> 
  </TABLE>
  <TABLE cellSpacing=0 cellPadding=0 width=980 border=0>
  <TBODY>
  <TR>
    <TD>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD><IMG height=31 src="images/login_top.gif" width=214></TD></TR>
        <TR>
            <TD align=middle background=images/login_bg.gif 
            height=100><%if site_runpem="是" then%>
			<iframe id=UserLogin src="login.asp" frameborder=0 width=180 scrolling=no height=100%></iframe>
			<%else%>
			<script src="../banner.asp?id=<%=mem_ban%>"></script>
			<%end if%>
</TD>
          </TR>
        <TR>
            <TD valign="top"><img src="images/login_button.gif" width="214" height="23"></TD>
          </TR></TBODY></TABLE></TD>
    <TD vAlign=top align=right width=774>
        <TABLE cellSpacing=0 cellPadding=0 width=758 border=0>
          <TBODY> 
          <TR> 
            <TD>
              <div align="right">
                <script src="../banner.asp?id=<%=ayang_index_ban%>"></script>
              </div>
            </TD>
          </TR>
          </TBODY> 
        </TABLE>
      <TABLE height=6 cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD></TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=0 cellPadding=0 width=758 border=0>
        <TBODY>
        <TR>
          <TD><IMG height=8 src="images/search_top.gif" width=758></TD></TR>
        <TR>
          <TD align=middle background=images/search_bg.png>
              <TABLE cellSpacing=0 cellPadding=3 border=0 align="left" width="631">
                <TBODY> 
                <TR> 
                  <TD>
                    <div align="center"><IMG height=12 
                  src="images/search_icon01.gif" width=141></div>
                  </TD>
                   <form name="form1" method="post" action="film_sort.asp"><TD> 
                    <input type=radio CHECKED value="影片名 "
                  name=serachfs>
                    影片名 
                    <input type=radio value="主演 "
                  name=serachfs>
                    主要演员 
                    <input type=radio value="详细介绍"
                  name=serachfs>
                    详细介绍&nbsp;&nbsp; 
                    <input id=Keyword 
                  style="WIDTH: 170px" value=关键字 name=keyword class="search02">
                      <input type="image" border="0" name="imageField" src="images/ser.gif" align="absmiddle">
                      搜索 </TD>
                  </form>
                </TR>
                </TBODY> 
              </TABLE>
            </TD></TR>
        <TR>
          <TD><IMG height=8 src="images/search_bottom.gif" 
        width=758></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td height="5"></td>
    </tr>
  </table>
  <TABLE cellSpacing=0 cellPadding=0 width=980 border=0>
    <TBODY> 
    <TR> 
      <TD valign="top">
        <table width=731 border=0 cellpadding=0 cellspacing=0>
          <tr> 
            <td colspan=2> <img src="images/main_1.gif" width=99 height=28 alt=""></td>
            <td>&nbsp; </td>
            <td colspan=2 background="images/main_3.gif">
              <div align="center"><a href="javascript:main(1)">人气排行TOP5</a> &nbsp;|&nbsp; 
                <a href="javascript:main(2)">下载排行TOP5</a> &nbsp;|&nbsp;
				<a href="javascript:main(3)">观看排行TOP5</a>
                &nbsp;|&nbsp; 
				<a href="javascript:main(4)">最近浏览</a></div>
            </td>
          </tr>
          <tr> 
            <td colspan=5> <img src="images/main_4.gif" width=731 height=6 alt=""></td>
          </tr>
          <tr> 
            <td> <img src="images/main_5.gif" width=6 height=123 alt=""></td>
            <td colspan=3><IFRAME id=main src="main.asp" 
            frameBorder=0 width=100% scrolling=no height=120></IFRAME></td>
            <td> <img src="images/main_7.gif" width=8 height=123 alt=""></td>
          </tr>
          <tr> 
            <td colspan=5> <img src="images/main_8.gif" width=731 height=5 alt=""></td>
          </tr>
          <tr> 
            <td colspan=5> <img src="images/main_9.gif" width=731 height=2 alt=""></td>
          </tr>
          <tr> 
            <td> <img src="images/spacer.gif" width=6 height=1 alt=""></td>
            <td> <img src="images/spacer.gif" width=93 height=1 alt=""></td>
            <td> <img src="images/spacer.gif" width=266 height=1 alt=""></td>
            <td> <img src="images/spacer.gif" width=358 height=1 alt=""></td>
            <td> <img src="images/spacer.gif" width=8 height=1 alt=""></td>
          </tr>
        </table>
      </TD>
      <TD width=242 valign="top"> 
        <TABLE cellSpacing=0 cellPadding=0 width="96%" border=0>
          <TBODY> 
          <TR> 
            <TD><IMG height=16 src="images/help_bg_top.gif" 
width=242></TD>
          </TR>
          <TR> 
            <TD vAlign=top align=middle background=images/HELP_BG_bg.gif height="133"> 
              <TABLE cellSpacing=0 cellPadding=0 width="98%" border=0>
                <TBODY> 
                <TR> 
                  <TD><IMG height=26 src="images/notice.gif" 
              width=234></TD>
                </TR>
                <TR> 
                  <TD valign="top"> 
                    <TABLE cellSpacing=0 cellPadding=0 width="98%" border=0>
                      <TBODY> 
                      
					    <%
show=0
show=5
set rs=server.createobject("adodb.recordset")
sql="SELECT news_id,News_Adddate,News_Title FROM 新闻 order by News_Adddate desc"
rs.Open sql,conn,1,1
if not rs.eof then
count=1
do while not rs.eof%>
					  <TR> 
                        <TD align=middle width="17" height=22><IMG height=3 
                        src="images/icon_dot.gif" width=10></TD>
                        <TD width="215"><STRONG><a href="news.asp?id=<%=rs("news_id")%>" target="_blank"><%=rs("News_Title")%></a></STRONG></TD>
                      </TR>
<%count=count+1
if count>show then exit do
rs.movenext
loop
else
Rw "&nbsp;&nbsp;暂无"
end if%>				  
					  
                      </TBODY> 
                    </TABLE>
                  </TD>
                </TR>
                </TBODY> 
              </TABLE>
            </TD>
          </TR>
          <TR> 
            <TD><IMG height=15 src="images/help_bg_bottom.gif" 
        width=242></TD>
          </TR>
          </TBODY> 
        </TABLE>
      </TD>
    </TR>
    </TBODY> 
  </TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=980 border=0>
  <TBODY>
  <TR>
    <TD><IMG height=6 src="images/SPACER.gif" 
width=1></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=986 border=0>
  <TBODY>
  <TR>
    <TD width=8><IMG height=8 src="images/box_01.gif" width=8></TD>
    <TD width=1020 background=images/box_02.gif></TD>
    <TD width=10><IMG height=8 src="images/box_03.gif" width=8></TD></TR>
  <TR>
    <TD background=images/box_04.gif></TD>
    <TD>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
            <TD background=images/title_design.gif height=30>&nbsp; </TD>
          </TR></TBODY></TABLE>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
          <TR valign="top"> 
            <TD> 
              
<%'==============================读出分类=================////////////////////////
set rst=server.createobject("adodb.recordset")
rst.Open "SELECT * FROM 影片分类 order by 排序 desc",conn,1,1
if not rst.eof then
do while not rst.eof
%>			  
			  <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
              <TBODY>
              <TR>
                <TD><IMG height=1 src="images/SPACER.gif" 
width=640></TD></TR>
              <TR>
                  <TD height="34" background="images/title.gif" valign="bottom"> 
                    <table width="100%" border="0" cellspacing="0" cellpadding="0" height="30">
                      <tr>
                        <td width="20">&nbsp;</td>
                        <td width="90%"><b><%=rst("分类名")%></b></td>
                        <td width="8%"> 
                          <%if site_runscript="asp" then
Rw "<a href=film_sort.asp?id="&rst("id")&"><img src='images/more.gif' width='41' height='16' border='0'></a> "
else
Rw "<a href=film_sort_"&md5(rst("id"),32)&"_1.html><img src='images/more.gif' width='41' height='16' border='0'></a> "
end if%>
                        </td>
                      </tr>
                    </table>
                  </TD>
                </TR></TBODY></TABLE>
<table cellspacing=5 cellpadding=0 width="100%" align=center border=0>
                <tbody> 
                <tr valign=top> 
<%
show=0
forci=0
show=4
set rs=server.createobject("adodb.recordset")
sql="SELECT ID,小图,分类,人气,出产地,影片名,主演,显示,加入时间 FROM 影片 where 显示='是' and 分类='"&rst("id")&"' order by 加入时间 desc"
rs.Open sql,conn,1,1
if not rs.eof then
if rs.recordcount>show then
forci=show
else
forci=rs.recordcount
end if
for i=1 to forci
%>
                  <td align=middle> 
                    <%if site_runscript="asp" then
Rw "<a title='影片名:"&rs("影片名")&"&#13;&#10;所属类:"&readtype(rst("id"))&"&#13;&#10;出产地:"&rs("出产地")&"&#13;&#10;日 期:"&datevalue(rs("加入时间"))&"&#13;&#10;人 气:"&rs("人气")&"' href=film_view.asp?id="&rs("id")&" target='_top'><img src='../"&film_pic&"/"&rs("小图")&"' width=116 height=72 border=0 class=pic2><br>"&rs("影片名")&"</a>"
else
Rw "<a title='影片名:"&rs("影片名")&"&#13;&#10;所属类:"&readtype(rst("id"))&"&#13;&#10;出产地:"&rs("出产地")&"&#13;&#10;日 期:"&datevalue(rs("加入时间"))&"&#13;&#10;人 气:"&rs("人气")&"' href=film_view_"&md5(rs("id"),32)&".html target='_top'><img src='../"&film_pic&"/"&rs("小图")&"' width=116 height=72 border=0 class=pic2><br>"&rs("影片名")&"</a>"
end if%>
                  </td>
                  <%rs.movenext
next
else
Rw "&nbsp;&nbsp;&nbsp;&nbsp;暂无"
end if
%>
                </tr>
                </tbody> 
              </table>
<%
rst.movenext
loop
else
Rw "暂无"
end if
rs.close
rst.close
%>
            </TD>
            <TD width=1 bgColor=#e5e5e5><IMG 
            src="index.files%5Cspacer_1.gif" width="1" height="1"></TD>
            <TD align=middle> 
              <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
              <TBODY>
              <TR>
                <TD><IMG height=1 src="images/SPACER.gif" 
width=300></TD></TR>
              <TR>
                  <TD><img src="images/tuijian.gif" width="320" height="34"></TD>
                </TR></TBODY></TABLE>
              <table cellspacing=5 cellpadding=0 width="100%" align=center border=0>
                <tbody> 
                <tr valign=top> 
<%
show=0
forci=0
show=ayang_indexshowtj
set rs=server.createobject("adodb.recordset")
sql="SELECT ID,小图,分类,人气,出产地,影片名,主演,显示,加入时间,推荐时间 FROM 影片 where 显示='是' and 推荐='是' order by 推荐时间 desc"
rs.Open sql,conn,1,1
if not rs.eof then
if rs.recordcount>show then
forci=show
else
forci=rs.recordcount
end if
for i=1 to forci
%>
                  <td align=middle> 
                    <%if site_runscript="asp" then
Rw "<a title='影片名:"&rs("影片名")&"&#13;&#10;所属类:"&readtype(rs("分类"))&"&#13;&#10;出产地:"&rs("出产地")&"&#13;&#10;日 期:"&datevalue(rs("加入时间"))&"&#13;&#10;人 气:"&rs("人气")&"' href=film_view.asp?id="&rs("id")&" target='_top'><img src='../"&film_pic&"/"&rs("小图")&"' width=116 height=72 border=0 class=pic2><br>"&rs("影片名")&"</a>"
else
Rw "<a title='影片名:"&rs("影片名")&"&#13;&#10;所属类:"&readtype(rs("分类"))&"&#13;&#10;出产地:"&rs("出产地")&"&#13;&#10;日 期:"&datevalue(rs("加入时间"))&"&#13;&#10;人 气:"&rs("人气")&"' href=film_view_"&md5(rs("id"),32)&".html target='_top'><img src='../"&film_pic&"/"&rs("小图")&"' width=116 height=72 border=0 class=pic2><br>"&rs("影片名")&"</a>"
end if%>
                  </td>
<%if i mod 2 = 0 then Rw "</tr><tr>"
rs.movenext
next
else
Rw "&nbsp;&nbsp;&nbsp;&nbsp;暂无"
end if
rs.close
%>
                </tr>
                </tbody> 
              </table>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
              <TBODY>
              <TR>
                <TD></TD></TR></TBODY></TABLE>
            </TD>
          </TR></TBODY></TABLE></TD>
    <TD background=images/box_05.gif></TD></TR>
  <TR>
    <TD><IMG height=8 src="images/box_06.gif" width=8></TD>
    <TD background=images/box_07.gif></TD>
    <TD><IMG height=8 src="images/box_08.gif" 
width=8></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=980 border=0>
  <TBODY>
  <TR>
    <TD><IMG height=15 
      src="images\spacer(1).gif" 
  width=1></TD></TR></TBODY></TABLE>
  <%copyright%>
</CENTER>
</BODY></HTML>

⌨️ 快捷键说明

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