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

📄 main.jsp

📁 “JSP数据库项目案例导航”一书从第一章到第十一章各章实例的源程序文件以及数据库文件。 注意: 1. 本书中的案例提供的数据库环境不同
💻 JSP
📖 第 1 页 / 共 5 页
字号:
              

              <TR>
                <TD>
               </TD></TR></TBODY></TABLE></TD>
          <TD vAlign=top width=560>
            <TABLE cellSpacing=0 cellPadding=0 width=559 border=0 
              valign="top"><TBODY valign=top><!--****************首页图片新闻****************-->
              <TR vAlign=top>
                <TD>
                  <DIV align=center>
                  <TABLE height=209 cellSpacing=0 cellPadding=0 width=568 
                  border=0 valign="top">
                    <TBODY>
                    <TR>
                      <TD height=80>
							<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
							  <tr> 
							<%
								int w_t = 100;
								if(pnum!=0)w_t = 100/pnum;
								for(int pnew=0;pnew<pnum;pnew++){%>
							<td height="25" align="center" style="LINE-HEIGHT: 150%" width="<%=w_t%>%">
								  <a  onclick="view('<%=strpicId[pnew]%>');" style="cursor:hand;LINE-HEIGHT: 150%" target=_blank title="<%=strpic[pnew]%>">
								  <IMG src="../../PhotoServlet?photo=news/img/<%=strfn[pnew]%>" height="<%=pheight%>" width="<%=pwidth%>">
								  </a> </td>
							<%}%>

								
							  </tr>
							</table>
							<table width="100%" border="0"  cellpadding="0" cellspacing="0" style="word-break:break-all;">
								<tr align=center style="LINE-HEIGHT: 150%">
									<%for(int pnew=0;pnew<pnum;pnew++){%>
									  <td height="25" align="center" width="<%=w_t%>%" vAlign=top>
									  <a  onclick="view('<%=strpicId[pnew]%>');" style="cursor:hand;LINE-HEIGHT: 150%" target=_blank title="<%=strpHits[pnew]%>">
									  <%=strpic[pnew]%>
									  </a></td>
									<%}%>
								</tr>
							</table>


					  </TD>


                     </TR>
                    </TBODY></TABLE></DIV></TD></TR>
				

						  <!-- 子版面部分-->
                          <TR>
                            <TD align=left background="../images/index_right2_bg02.gif" vAlign=top>
                              <TABLE border=0 cellPadding=0 cellSpacing=0 width="100%"><!--5   start-->
                                <TBODY>
								<TR>
								  <TD align=left vAlign=top><IMG height=9 src="../images/index_right2_top.gif" width=600></TD>
								</TR>
								<TR>
								  <TD align=left vAlign=top>
								    <!----------------------------生成二级版面以及二级版面文章---------------------------------->
<%	for(int kl=0;kl<jnum;kl++)
	{	%>
									<TABLE border=0 cellPadding=0 cellSpacing=5 width="100%"><!--6   start-->
									  <TBODY>
									  <TR align=left vAlign=top>
										
										<TD width="50%">

										  <TABLE border=0 cellPadding=0 cellSpacing=0 width="100%"><!--7   start-->
											<TBODY>
											
											<TR>
											  <TD align=left vAlign=top>
												<TABLE border=0 cellPadding=0 cellSpacing=0 height=20 width=288><!--8   start-->
												  <TBODY>
												  <TR>
													<TD align=middle width=30><IMG height=10 src="../images/index_right2_arrow.gif" width=10></TD>
													<TD>
													  <STRONG><font color="#1258af"><%=strmenu2[2*kl]%></font></STRONG>
													</TD>
													<TD align=right><A onclick="changemenu2('<%=str4[2*kl]%>');" style="cursor:hand;" target=_blank title="更多的信息"><IMG height=14 src="../images/index_right2_more.gif" width=34></A></TD>
												  </TR>
												  </TBODY>
												</TABLE><!--8   end-->
											  </TD>
											</TR>
											<TR>
											  <TD align=left vAlign=top><IMG height=3 src="../images/index_right2_line02.gif" width=288></TD>
											</TR>
											<%
											//取得文章信息
											Vector vetmu1 = (Vector)myBean.getArticle(strId1,str4[2*kl]);
											int jmu1=vetmu1.size();
											String strmu1Id [] = new String[jmu1];
											String strmu1title[] = new String[jmu1];//存放文章标题
											String strmu1time[] = new String[jmu1];//发表时间
											String strmu1Hits[] = new String[jmu1];//取得数标题是信息
											for(int is=0;is<vetmu1.size();is++)
											{  

												Hashtable hash = (Hashtable)vetmu1.get(is);
												strmu1Id[is] = (String)hash.get("ID");
												strmu1title[is] = (String)hash.get("TITLE");

												strmu1title[is] = strmu1title[is].replaceAll(" ","  ");

												strmu1time[is] = ((String)hash.get("ADDTIME")).substring(5,10);
												strmu1Hits[is] = ((String)hash.get("HITS"));
											}
											if(jmu1>intnumconf) jmu1=intnumconf;
											for(int kls=0;kls<jmu1;kls++)
											{
											%>
											<TR>
											  <TD align=left vAlign=top>
											    <TABLE border=0 cellPadding=0 cellSpacing=0 width="100%"><!--8   start-->
											      <TBODY>
												  <TR>
													<TD align=left vAlign=top>
													  <TABLE border=0 cellPadding=0 cellSpacing=0 width="100%"><!--9   start-->
													    <TBODY>
													    <TR>
													      <TD align=middle height=20 width=30><IMG height=10 src="../images/index_right2_arrow02.gif" width=10></TD>
														  <TD>
														    <a onclick="view('<%=strmu1Id[kls]%>');" style="cursor:hand;LINE-HEIGHT: 150%" target=_blank title=<%=strmu1Hits[kls]%>><%int len = ds.byteLength(strmu1title[kls]);int len1 = wlen;if(len<wlen)len1 = len;String t1 = ds.strByteCopy(strmu1title[kls],len1);%><%=t1.replaceAll(" ","&nbsp;")%><%if(len>wlen)out.print("...");%>
															<%if(strshowconf.equals("1")){%><font color=<%=color_time%>>(<%=strmu1time[kls]%>)</font><%}%></a>
														  </TD>
														</TR>
														</TBODY>
													  </TABLE><!--9   end-->
													</TD>
												  </TR>
												  <%
												  if(kls != (jmu1-1))
												  {
												  %>
												  <TR>
												    <TD align=middle vAlign=top><IMG height=1 src="../images/index_right2_line03.gif" width=253></TD>
												  </TR>
												  <%
												  }
												  %>
												  </TBODY>
												</TABLE><!--8   end-->
											  </TD>
											</TR>									
									<%	}	%>
										    <TR>
										      <TD align=middle vAlign=top><IMG height=1 src="../images/index_right2_line04.gif" width=284></TD>
										    </TR>
											</TBODY>
										  </TABLE><!--7   end-->	
										  
										</TD>			
<%		if((2*kl+1<jmenu2))
		{	%>
										<TD width="50%">

										  <TABLE border=0 cellPadding=0 cellSpacing=0 width="100%"><!--7   start-->
											<TBODY>
											
											<TR>
											  <TD align=left vAlign=top>
												<TABLE border=0 cellPadding=0 cellSpacing=0 height=20 width=288><!--8   start-->
												  <TBODY>
												  <TR>
													<TD align=middle width=30><IMG height=10 src="../images/index_right2_arrow.gif" width=10></TD>
													<TD>
													  <STRONG>
														<STRONG><font color="#1258af"><%=strmenu2[2*kl+1]%></font></STRONG>
													</TD>
													<TD align=right><A onclick="changemenu2('<%=str4[2*kl+1]%>');" style="cursor:hand;" target=_blank title="更多的信息"><IMG height=14 src="../images/index_right2_more.gif" width=34></A></TD>
												  </TR>
												  </TBODY>
												</TABLE><!--8   end-->
											  </TD>
											</TR>
											<TR>
											  <TD align=left vAlign=top><IMG height=3 src="../images/index_right2_line02.gif" width=288></TD>
											</TR>
										<%
											//取得文章信息
											Vector vetmu2 = (Vector)myBean.getArticle(strId1,str4[2*kl+1]);
											int jmu2=vetmu2.size();
											String strmu2Id [] = new String[jmu2];
											String strmu2title[] = new String[jmu2];//存放文章标题
											String strmu2time[] = new String[jmu2];//发表时间
											String strmu2Hits[] = new String[jmu2];//取得数标题是信息
											for(int is=0;is<vetmu2.size();is++)
											{  

												Hashtable hash = (Hashtable)vetmu2.get(is);
												strmu2Id[is] = (String)hash.get("ID");
												strmu2title[is] = (String)hash.get("TITLE");
												strmu2title[is] = strmu2title[is].replaceAll(" ","  ");
												strmu2time[is] = ((String)hash.get("ADDTIME")).substring(5,10);
												strmu2Hits[is] = ((String)hash.get("HITS"));
											}
										    
											if(jmu2>intnumconf) jmu2=intnumconf;
											
											for(int kls=0;kls<jmu2;kls++)
											{
											%>
											<TR>
											  <TD align=left vAlign=top>
											    <TABLE border=0 cellPadding=0 cellSpacing=0 width="100%"><!--8   start-->
											      <TBODY>
												  <TR>
													<TD align=left vAlign=top>
													  <TABLE border=0 cellPadding=0 cellSpacing=0 width="100%"><!--9   start-->
													    <TBODY>
													    <TR>
													      <TD align=middle height=20 width=30><IMG height=10 src="../images/index_right2_arrow02.gif" width=10></TD>
														  <TD>
															<a onclick="view('<%=strmu2Id[kls]%>');" style="cursor:hand;LINE-HEIGHT: 150%" target=_blank title=<%=strmu2Hits[kls]%>><%int len = ds.byteLength(strmu2title[kls]);int len1 = wlen;if(len<wlen)len1 = len;String t1 = ds.strByteCopy(strmu2title[kls],len1);%><%=t1.replaceAll(" ","&nbsp;")%><%if(len>wlen)out.print("...");%>
															<%if(strshowconf.equals("1")){%><font color=<%=color_time%>>(<%=strmu2time[kls]%>)</font><%}%></a>
														   </TD>
														</TR>
														</TBODY>
													  </TABLE><!--9   end-->
													</TD>
												  </TR>
												  <TR>
												    <TD align=middle vAlign=top><IMG height=1 src="../images/index_right2_line03.gif" width=253></TD>
												  </TR>
												  </TBODY>
												</TABLE><!--8   end-->
											  </TD>
											</TR>									
									<%	}	%>
										    <TR>
										      <TD align=middle vAlign=top><IMG height=1 src="../images/index_right2_line04.gif" width=284></TD>
										    </TR>	
											</TBODY>
										  </TABLE><!--7   end-->	
										  
										</TD>			
<%		}
		else
		{
%>										<TD width="50%"></TD>
<%
		}
%>							
									  </TR>
									  </TBODY>
									</TABLE><!--6   end-->
<%	}%><!--for_end 二级版面以及文章生成结束------------------------------------>
								  </TD>
							    </TR>

								<tr> 
                                  <td align="left" valign="top"><img src="../images/index_right2_down.gif" width="600" height="9"></td>
                                </tr>

							    </TBODY>
							  </TABLE><!--5   end-->
						    </TD>
						  </TR>
						  </TBODY></TABLE></TD></TR>
	</TBODY></TABLE></DIV></TD></TR>
	</TBODY></TABLE>
</div>
<%}%><!-- ************mainStyle=2--软件下载模板,模板二结束******************-->



<%if(mainStyle.equals("3")){%>
<!--******************规章制度模板,模板三开始-*****************-->
<div align=center>
 <TABLE cellSpacing=0 cellPadding=0 width=790 border=0 align=center valign=top background="../images/bg01.gif">
        <TBODY>
        <TR>
          <TD width=5 class=bgline>&nbsp</TD>
          <TD align=center vAlign=top width=172 class=bgleft >
            <TABLE cellSpacing=0 cellPadding=0 width="98%" border=0 >
              <TBODY>
              <TR> 
                <TD align=center>
                  <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                    <TBODY>
<!--                    <TR>
                     <!-- 热门专题 
								<TD align=center width=173 valign=top>
										  <TABLE border=0 cellPadding=0 cellSpacing=0 width=173><!--7   start
											<TBODY>
											<TR>
											  <TD align=left vAlign=top><IMG height=26 src="../images/index_right1_news01.gif" width=170></TD>
											</TR>
											<TR>
											  <TD align=left bgColor=#f7fbff class=left2 vAlign=top height="230">
												<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%" height="100%"><!--8   start
												  <TBODY>
<%//热门专题
	for(int kp=0;kp<jp;kp++)
	{
%>
											      <TR>
													<TD height=25 width=25><IMG height=18 src="../images/index_right1_newsarrow.gif" width=18></TD>
													<TD height=25>
													  <a onclick="viewtopic('<%=strpId[kp]%>');" style="cursor:hand;" target=_blank title=<%=strpintroduce[kp]%>><%=strp[kp]%></a>
													</TD>
												  </TR>
<%}%>                             
												  </TBODY>
												</TABLE><!--8   end
											  </TD>

⌨️ 快捷键说明

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