📄 index.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*,zd.bbs.view.*" errorPage="" %>
<%@ page import="java.util.*"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>正大软件学院论坛</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<script language="javascript">
function show(cid){
idname=eval("content"+cid);
iconname=eval("icon"+cid);
if(idname.style.display=="none"){
idname.style.display="";
iconname.src="images/icon_sub.gif";
}
else {
idname.style.display="none";
iconname.src="images/icon_plus.gif";
}
}
function login(form){
//form.aciton = "login.jsp";
form.submit();
}
</script>
<body>
<table width="1024" border="0" align="center" cellpadding="0" cellspacing="0">
<tr style="background-image:url(images/bg_top.jpg)">
<td align="left"><img src="images/top_01.jpg" width="347" height="101" /><img src="images/top_02.jpg" width="330" height="101" /></td>
<td align="right"><img src="images/top_03.jpg" width="323" height="101" /></td>
</tr>
</table>
<table width="1024" border="0" align="center" cellpadding="0" cellspacing="0">
<tr style="background-image:url(images/bg_top.jpg)">
<td align="left"><img src="images/top_01.jpg" width="347" height="101" /><img src="images/top_02.jpg" width="330" height="101" /></td>
<td align="right"><img src="images/top_03.jpg" width="323" height="101" /></td>
</tr>
</table>
<table width="1024" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#BED6F9" id="login">
<tr>
<td width="512" height="25">
<%@ include file="session_admin.jsp" %>
</td>
<td width="512" align="left">
<%@include file="select.html" %>
</td>
</tr>
<tr>
<td height="10" colspan="2" bgcolor="#FFFFFF"></td>
</tr>
</table>
<%
List view_all=null;
//int i=0;
try{
view_all=DAOFactory.getNoteDAOInstance().query_view();
}catch(Exception e){}
Iterator iter = view_all.iterator() ;
while(iter.hasNext())
{
Note note = (Note)iter.next() ;
//i++ ;
// 进行循环打印,打印出所有的内容,以表格形式
// 从数据库中取出内容
int model_id=note.getModel_id();
String model_name = note.getModel_name() ;
%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="98%" height="24" border="0" align="center" cellpadding="0" cellspacing="0" background="images/bg_tt.gif">
<tr>
<td> <img src="images/icon_sub.gif" name="icon1" id="icon1" onClick="show(1);"/> <%=model_name%></td>
</tr>
</table>
<%
List view_all1=null;
//int i=0;
try{
view_all1=DAOFactory.getNoteDAOInstance().query_view1(model_id);
}catch(Exception e){}
Iterator iter1= view_all1.iterator() ;
while(iter1.hasNext())
{
Note note1 = (Note)iter1.next() ;
// 进行循环打印,打印出所有的内容,以表格形式
// 从数据库中取出内容
int model_id2 = note1.getModel_id2() ;
String model_name2 = note1.getModel_name2() ;
String model_ms2 =note1.getModel_ms2() ;
//int ztcount = note1.getZtcount() ;
%>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#BED5F8" id="content1">
<tr>
<td width="60" height="80" align="center" bgcolor="#F6FAFF" class="menu_left"><img src="images/icon_st.gif" width="18" height="18" /></td>
<td bgcolor="#F6FAFF">
<table width="100%" height="80" border="0" cellpadding="5" cellspacing="0">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="20" id="subtt"><a href="list.jsp?lid=<%=model_id2%>&m_name2=<%=model_name2%>&lic=<%=model_id%>"><strong><%=model_name2%></strong></a> </td>
</tr>
<tr>
<td height="20"><img src="images/icon_arrow.gif" width="9" height="9" /> <%=model_ms2%> </td>
</tr>
</table>
</td>
<%--<td width="200"><table width="111" height="37" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="62"><div align="center">主题</div></td>
<td width="113"><div align="center">版主</div></td>
</tr>
<tr>
<td><div align="center"><%=ztcount%></div></td>
<td><div align="center">暂无</div></td>
</tr>
</table> </td>
--%></tr>
<tr>
<td bgcolor="#DBE8F1"> </td>
<td bgcolor="#DBE8F1"> </td>
</tr>
</table></td>
</tr>
</table>
<%}%>
</td>
</tr>
</table>
<%}%>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="bottom">
<tr>
<td><p>版权所有©重庆正大软件职业技术学院<br />
<br />
技术支持:重庆正大软件职业技术学院网络技术系 渝ICP备07001号 </p>
</td>
<td width="80"><img src="images/bg_logo.gif" width="58" height="58" /></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -