?? index.jsp
字號:
<%@ include file="conn.jsp"%>
<%!
String replacenull(String a){
if(a==null){
return " ";
}else{
return a;
}
}
%>
<HTML><HEAD><TITLE>在線寬帶點播</TITLE>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<link rel="stylesheet" href="images/style.css">
</HEAD>
<BODY>
<%@ include file="topMain.jsp"%>
<table width="752" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#004C90" >
<tr>
<td width="24%" valign="top" bgcolor="#E8F0F8" >
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#004C90">
<tr>
<td bgcolor="#004C90" height="9" colspan="2">
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#004C90" height="40">
<form method="post" name="myform" action="search.jsp">
<tr>
<td bgcolor="#E8F0F8" valign="middle" align="center"> 搜索:
<input type="text" name="keyword" class=textfield size=10 maxlength="50" style="font-family: Arial">
<input type="submit" name="Submit22" value="搜索" style="height='21'" class="botton">
</td>
</tr>
</form>
</table>
</td>
</tr>
<tr>
<td bgcolor="#004C90" height="20" colspan="2">
<div align="center"><font color="#FFFFFF">站 內 公 告</font></div>
</td>
</tr>
<tr>
<td height="20" bgcolor="#E8F0F8" colspan="2">
<table border=0 cellpadding=0 width="100%" cellspacing="0">
<tr> <td height="20" bgcolor="#E8F0F8" width="4%"></td>
<td valign="top" width="96%"><img src="images/dot.gif" width="11" height="13">
感謝各地網友一直以來的支持和幫助,為此我們將提供更多更好的項目服務于大家,本站目前擁有電影下載區
[2004-3-26]
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="20" bgcolor="#004C90" colspan="2">
<div align="center"><font color="#FFFFFF">累計下載TOP30</font></div>
</td>
</tr>
<tr>
<td height="20" bgcolor="#E8F0F8" width="4%"></td>
<td height="20" bgcolor="#E8F0F8" width="96%">
<%
sql="select id,showname,bb from scott.download order by id desc";
rs=stmt.executeQuery(sql);
int i=0;
while(i<30 && rs.next()){
out.print("<li><A href=list.jsp?id="+rs.getString("id")+">"+rs.getString("showname")+"</A></li>");
}
rs.close();
%>
</td>
</tr>
</table>
</td>
<td width="76%" bgcolor="#FFFFFF" valign="top" rowspan="2" >
<table width="560" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td background="images/bj4.gif" height="1"> <img src="images/spacer.gif" width="1" height="1"></td>
</tr>
<tr>
<td background="images/bg15.gif">
<table width="560" border="0" cellspacing="0" cellpadding="0" height="27">
<form method="post" action="Chkadmin1.jsp">
<tr>
<td bgcolor="#E8F0F8">
<div align="center">
<%if ((session.getValue("user")!=null)){ %>
<script language="JavaScript">
<!--
var enabled = 0; today = new Date();
var day; var date;
if(today.getDay()==0) day = "星期日"
if(today.getDay()==1) day = "星期一"
if(today.getDay()==2) day = "星期二"
if(today.getDay()==3) day = "星期三"
if(today.getDay()==4) day = "星期四"
if(today.getDay()==5) day = "星期五"
if(today.getDay()==6) day = "星期六"
date = "" + (today.getYear()) + "年" + (today.getMonth() + 1 ) + "月" + today.getDate() + "日 " + day +"";
document.write("" + date + "");
-->
</script>
歡迎 <font color="#DC1515"><%=session.getValue("user")%></font> 進入
寬帶影院,您現在可以完全瀏覽本站所有內容!
<%}else{%>
<img src="images/home1.gif" width="19" height="16"><img src="images/home2.gif" width="49" height="13">:
<input type="text" name="user" size="12" class="textfield" style="font-family: Arial">
<img src="images/mm.gif" width="25" height="13">:
<input type="password" name="password" size="12" class="textfield" style="font-family: Arial">
<input type="submit" value="確定" name="B3" class="botton">
<input type="button" name="reg" value="注冊成會員" class="botton" onclick="javascript:document.location='reg1.jsp'">
<%}%>
</div>
</td>
</tr>
</form>
</table>
</td>
</tr>
<tr>
<td background="images/bj4.gif" height="1"> <img src="images/spacer.gif" width="1" height="1"></td>
</tr>
</table>
<table width="98%" border="0" align="center">
<tr>
<td width="62%" height="1" >
<table width="100%" border="0" cellpadding="0" cellspacing="0" height="1" background="images/bj4.gif">
<tr>
<td><img src="images/spacer.gif" width="1" height="1"></td>
</tr>
</table>
</td>
<td width="8%" height="46" rowspan="2" valign="top">
<div align="right"> </div>
</td>
<td width="30%" height="46" rowspan="2" valign="top">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td></td>
</tr>
<tr>
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="0" height="42">
<tr>
<td width="100%" bgcolor="#FFFFFF" valign="top">
<table border="0" width="100%" cellpadding="0" cellspacing="1">
<%
sql="select " ;
sql=sql+" download.id,download.showname,bb,download.dateandtime,download.images,download.hits,download.classid,download.Nclassid,Nclass.Nclass ";
sql=sql+" from scott.download,scott.Nclass where download.Nclassid=Nclass.Nclassid " ;
sql=sql+" order by download.dateandtime desc" ;
rs=stmt.executeQuery(sql);
i=0;
while(i<6 && rs.next()){
%>
<tr>
<td width="100%" >
<div align="center"><a href="list.jsp?id=<%=rs.getString("id")%>">
</a> </div>
</td>
</tr>
<tr>
<td width="100%" onMouseOver="this.bgColor='#F8F8F8';" onMouseOut="this.bgColor='#ffffff';" height="5">
<div align="center"><a href="list.jsp?id=<%=rs.getString("id")%>"><%=rs.getString("showname")%><%=replacenull(rs.getString("bb"))%></a></div>
</td>
</tr>
<tr>
<td width="100%" height="10"> </td>
<% i++;
}
rs.close();
%>
</tr>
</table>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -