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

📄 index.jsp

📁 这是论坛原代码,希望大家能好好看看,说明需要的太多了吧
💻 JSP
📖 第 1 页 / 共 2 页
字号:
		doc = doc.getDocumentByDirCode("recommandAuction3");
		if (doc!=null)
			out.print(doc.getContent(1));
		%></TD>
        <TD ROWSPAN=6><IMG SRC="images/shop_10.jpg" WIDTH=5 HEIGHT=217 ALT=""></TD>
        <TD><IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=55 ALT=""></TD>
      </TR>
      <TR>
        <TD ROWSPAN=5><IMG SRC="images/shop_11.jpg" WIDTH=127 HEIGHT=162 ALT=""></TD>
        <TD ROWSPAN=5><IMG SRC="images/shop_12.jpg" WIDTH=6 HEIGHT=162 ALT=""></TD>
        <TD><IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=28 ALT=""></TD>
      </TR>
      <TR>
        <TD ROWSPAN=2><IMG SRC="images/shop_13.jpg" WIDTH=119 HEIGHT=5 ALT=""></TD>
        <TD COLSPAN=2 ROWSPAN=4><IMG SRC="images/shop_14.jpg" WIDTH=11 HEIGHT=134 ALT=""></TD>
        <TD><IMG SRC="images/shop_15.jpg" WIDTH=118 HEIGHT=4 ALT=""></TD>
        <TD ROWSPAN=4><IMG SRC="images/shop_16.jpg" WIDTH=11 HEIGHT=134 ALT=""></TD>
        <TD ROWSPAN=2><IMG SRC="images/shop_17.jpg" WIDTH=121 HEIGHT=5 ALT=""></TD>
        <TD><IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=4 ALT=""></TD>
      </TR>
      <TR>
        <TD ROWSPAN=2><IMG SRC="images/shop_18.jpg" WIDTH=118 HEIGHT=28 ALT=""></TD>
        <TD><IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=1 ALT=""></TD>
      </TR>
      <TR>
        <TD><IMG SRC="images/shop_19.jpg" WIDTH=119 HEIGHT=27 ALT=""></TD>
        <TD><IMG SRC="images/shop_20.jpg" WIDTH=121 HEIGHT=27 ALT=""></TD>
        <TD><IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=27 ALT=""></TD>
      </TR>
      <TR>
        <TD valign="top" background="images/shop_21.jpg"><%
		if (doc==null)
			doc = new Document();
		doc = doc.getDocumentByDirCode("starShop");
		if (doc!=null)
			out.print(doc.getContent(1));
		%></TD>
        <TD valign="top" background="images/shop_22.jpg"><%
		if (doc==null)
			doc = new Document();
		doc = doc.getDocumentByDirCode("recommandShop");
		if (doc!=null)
			out.print(doc.getContent(1));
		%></TD>
        <TD valign="top" background="images/shop_23.jpg"><%
		AuctionShopDb as;
		Iterator shopir = hd.getNewShop(2).iterator();
		while (shopir.hasNext()) {
			as = (AuctionShopDb)shopir.next();%>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="28">&nbsp;<a href="forum/plugin/auction/shop.jsp?userName=<%=StrUtil.UrlEncode(as.getUserName())%>"><%=StrUtil.getLeft(as.getShopName(), 14)%></a></td>
              </tr>
            </table>
          <%}
		%>        </TD>
        <TD><IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=102 ALT=""></TD>
      </TR>
      <TR>
        <TD COLSPAN=10><IMG SRC="images/shop_24.jpg" WIDTH=556 HEIGHT=27 ALT=""></TD>
        <TD><IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=27 ALT=""></TD>
      </TR>
      <TR>
        <TD><IMG SRC="images/spacer.gif" WIDTH=38 HEIGHT=1 ALT=""></TD>
        <TD><IMG SRC="images/spacer.gif" WIDTH=127 HEIGHT=1 ALT=""></TD>
        <TD><IMG SRC="images/spacer.gif" WIDTH=6 HEIGHT=1 ALT=""></TD>
        <TD><IMG SRC="images/spacer.gif" WIDTH=119 HEIGHT=1 ALT=""></TD>
        <TD><IMG SRC="images/spacer.gif" WIDTH=10 HEIGHT=1 ALT=""></TD>
        <TD><IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=1 ALT=""></TD>
        <TD><IMG SRC="images/spacer.gif" WIDTH=118 HEIGHT=1 ALT=""></TD>
        <TD><IMG SRC="images/spacer.gif" WIDTH=11 HEIGHT=1 ALT=""></TD>
        <TD><IMG SRC="images/spacer.gif" WIDTH=121 HEIGHT=1 ALT=""></TD>
        <TD><IMG SRC="images/spacer.gif" WIDTH=5 HEIGHT=1 ALT=""></TD>
        <TD><IMG SRC="images/spacer.gif" WIDTH=19 HEIGHT=1 ALT=""></TD>
        <TD></TD>
      </TR>
    </TABLE>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="5" colspan="3"></td>
              </tr>
            <tr>
              <td width="285" height="23" background="images/title_bg1.jpg">
			  <%
			  lf = dir.getLeaf("trade");
			  if (lf==null)
			  	lf = new Leaf();
			  %>
			  &nbsp;&nbsp;&nbsp;&nbsp;<a href="forum/listtopic.jsp?boardcode=<%=StrUtil.UrlEncode(lf.getCode())%>"><strong><%=lf.getName()%></strong></a>
			  </td>
              <td>&nbsp;</td>
              <td width="285" background="images/title_bg1.jpg"><%
			  lf = dir.getLeaf("qrl");
			  if (lf==null)
			  	lf = new Leaf();
			  %>
&nbsp;&nbsp;&nbsp;&nbsp;<a href="forum/listtopic.jsp?boardcode=<%=StrUtil.UrlEncode(lf.getCode())%>"><strong><%=lf.getName()%></strong></a></td>
            </tr>
            <tr>
              <td>
			  <%
			  ThreadBlockIterator irmsg = md.getThreads(SQLBuilder.getListtopicSql("trade", "", "all"), "trade", 0, 10);
			  String bgcolor = "";
			  i = 0;
			  while (irmsg.hasNext()) {
			  	md = (MsgDb)irmsg.next();
				i++;
				bgcolor = "";
				if (i==2) {
					i = 0;
					bgcolor = "#F7F7EC";
				}
				String color = StrUtil.getNullString(md.getColor());
				%>
              <table width="98%" border="0" cellpadding="0" cellspacing="0" bgcolor="<%=bgcolor%>">
                <tr>
                  <td height="20">&nbsp;·
                  <%if (color.equals("")) {%>
                    <a title="<%=md.getTitle()%>" href="forum/showtopic.jsp?rootid=<%=md.getId()%>"><%=StrUtil.getLeft(md.getTitle(), 40)%></a></td>
                  <%}else{%>
                  <a title="<%=md.getTitle()%>" href="forum/showtopic.jsp?rootid=<%=md.getId()%>"><font color="<%=color%>"><%=StrUtil.getLeft(md.getTitle(), 40)%></font></a><BR>
                  <%}%>
                </tr>
              </table>
              <%}%>
			  </td>
              <td>&nbsp;</td>
              <td><%
			  irmsg = md.getThreads(SQLBuilder.getListtopicSql("qrl", "", "all"), "qrl", 0, 10);
			  i = 0;
			  while (irmsg.hasNext()) {
			  	md = (MsgDb)irmsg.next();
				i++;
				bgcolor = "";
				if (i==2) {
					i = 0;
					bgcolor = "#F7F7EC";
				}
				String color = StrUtil.getNullString(md.getColor());
				%>
                <table width="98%" border="0" cellpadding="0" cellspacing="0" bgcolor="<%=bgcolor%>">
                  <tr>
                    <td height="20">&nbsp;·
                      <%if (color.equals("")) {%>
                      <a title="<%=md.getTitle()%>" href="forum/showtopic.jsp?rootid=<%=md.getId()%>"><%=StrUtil.getLeft(md.getTitle(), 42)%></a></td>
                    <%}else{%>
                    <a title="<%=md.getTitle()%>" href="forum/showtopic.jsp?rootid=<%=md.getId()%>"><font color="<%=color%>"><%=StrUtil.getLeft(md.getTitle(), 42)%></font></a><BR>
                    <%}%>
                  </tr>
                </table>
                <%}%></td>
            </tr>
          </table>
          <img src="images/main_24.jpg" width=575 height=26 alt=""></td>
        </tr>
        <tr>
          <td colspan="2"><IMG SRC="images/main_26.jpg" WIDTH=575 HEIGHT=47 ALT=""></td>
        </tr>
        <tr>
          <td width="8" background="images/main_27.jpg">&nbsp;</td>
          <td align="left"><TABLE WIDTH=567 BORDER=0 CELLPADDING=0 CELLSPACING=0>
            <TR>
              <TD COLSPAN=3><IMG SRC="images/sqdh_1.jpg" WIDTH=567 HEIGHT=1 ALT=""></TD>
            </TR>
            <TR>
              <TD WIDTH=3 HEIGHT=224 background="images/sqdh_2.jpg"></TD>
              <TD WIDTH=554 HEIGHT=224 valign="top" bgcolor="#F7F3F7"><%
LeafChildrenCacheMgr dlcm = new LeafChildrenCacheMgr("root");
java.util.Vector vt = dlcm.getChildren();
Iterator ir = vt.iterator();
while (ir.hasNext()) {
	Leaf leaf = (Leaf) ir.next();
	String parentCode = leaf.getCode();
%>
                  <table width="100%" height="23" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                      <td width="7%">&nbsp;</td>
                      <td width="11%"><%=leaf.getName()%></td>
                      <td width="82%"><p style="line-height:150%">
                          <%
	LeafChildrenCacheMgr dl = new LeafChildrenCacheMgr(parentCode);
	java.util.Vector fv = dl.getChildren();
	Iterator ir1 = fv.iterator();
	while (ir1.hasNext()) {
		lf = (Leaf) ir1.next();%>
                          <a href="forum/listtopic.jsp?boardcode=<%=StrUtil.UrlEncode(lf.getCode())%>">
                          <%if (lf.getColor().equals("")) {%>
                          <%=lf.getName()%>
                          <%}else{%>
                          <font color="<%=lf.getColor()%>"><%=lf.getName()%></font>
                          <%}%>
                          </a>
                          <%}%>
                      </p></td>
                    </tr>
                  </table>
                <%}%>              </TD>
              <TD WIDTH=10 HEIGHT=224 background="images/sqdh_4.jpg">&nbsp;</TD>
            </TR>
            <TR>
              <TD COLSPAN=3><IMG SRC="images/sqdh_5.jpg" WIDTH=567 HEIGHT=5 ALT=""></TD>
            </TR>
          </TABLE></td>
        </tr>
      </table>    </td>
    <td align="right" valign="top" width="8"></td>
    <td align="right" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><img src="images/sqzx_title.gif" width="180" height="23"></td>
      </tr>
    </table>
      <table width="100%" height="5" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td></td>
        </tr>
      </table>
      <TABLE WIDTH=180 BORDER=0 CELLPADDING=0 CELLSPACING=0>
        <TR>
          <TD COLSPAN=3><IMG SRC="images/right_frm_1.jpg" WIDTH=180 HEIGHT=5 ALT=""></TD>
        </TR>
        <TR>
          <TD width="5" height="144" background="images/right_frm_2.jpg"></TD>
          <TD width="172" height="144" align="center" bgcolor="D6F7FF"><%
		if (doc==null)
			doc = new Document();
		doc = doc.getDocumentByDirCode("star");
		if (doc!=null)
			out.print(doc.getContent(1));
		%></TD>
          <TD width="3" height="144" background="images/right_frm_4.jpg"></TD>
        </TR>
        <TR>
          <TD COLSPAN=3><IMG SRC="images/right_frm_5.jpg" WIDTH=180 HEIGHT=5 ALT=""></TD>
        </TR>
      </TABLE>
      <table width="100%" height="6" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td></td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="images/trade_title.gif" width="180" height="23"></td>
        </tr>
      </table>
      <table width="100%" height="5" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td></td>
        </tr>
      </table>
      <TABLE WIDTH=180 BORDER=0 CELLPADDING=0 CELLSPACING=0>
        <TR>
          <TD COLSPAN=3><IMG SRC="images/right_frm_1.jpg" WIDTH=180 HEIGHT=5 ALT=""></TD>
        </TR>
        <TR>
          <TD width="5" height="144" background="images/right_frm_2.jpg"></TD>
          <TD width="172" height="144" valign="top" bgcolor="D6F7FF" style="line-height:150%">
		  <%
		  AuctionShopDb asd = new AuctionShopDb();
		  Iterator irshop = asd.list("select userName from " + asd.getTableName() + " order by IS_RECOMMANDED desc, openDate desc", 0, 10).iterator();
		  while (irshop.hasNext()) {
		  	asd = (AuctionShopDb)irshop.next();
		  %>
			&nbsp;&nbsp;<a target=_blank href="forum/plugin/auction/shop.jsp?userName=<%=StrUtil.UrlEncode(asd.getUserName())%>"><%=asd.getShopName()%></a><br>
		  <%}%>
		  </TD>
          <TD width="3" height="144" background="images/right_frm_4.jpg"></TD>
        </TR>
        <TR>
          <TD COLSPAN=3><IMG SRC="images/right_frm_5.jpg" WIDTH=180 HEIGHT=5 ALT=""></TD>
        </TR>
      </TABLE>
      <table width="100%" height="6" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td></td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="images/bmfu_title.gif" width="180" height="23"></td>
        </tr>
      </table>
      <table width="100%" height="5" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td></td>
        </tr>
      </table>
      <TABLE WIDTH=180 BORDER=0 CELLPADDING=0 CELLSPACING=0>
        <TR>
          <TD COLSPAN=3><IMG SRC="images/right_frm_1.jpg" WIDTH=180 HEIGHT=5 ALT=""></TD>
        </TR>
        <TR>
          <TD width="5" height="144" background="images/right_frm_2.jpg"></TD>
          <TD width="172" height="144" valign="top" bgcolor="D6F7FF"><%
		if (doc==null)
			doc = new Document();
		doc = doc.getDocumentByDirCode("bmfu");
		if (doc!=null)
			out.print(doc.getContent(1));
		%></TD>
          <TD width="3" height="144" background="images/right_frm_4.jpg"></TD>
        </TR>
        <TR>
          <TD COLSPAN=3><IMG SRC="images/right_frm_5.jpg" WIDTH=180 HEIGHT=5 ALT=""></TD>
        </TR>
      </TABLE></td>
  </tr>
</table>
<table width="760" border="0" align="center" cellpadding="5" cellspacing="0">
  <tr>
    <td align="center">
	<table width=100% align=center>
                <%
				LinkDb ld = new LinkDb();
				String listsql = "select id from " + ld.getTableName() + " where userName=" + StrUtil.sqlstr(ld.USER_SYSTEM) + " and kind=" + StrUtil.sqlstr(ld.KIND_DEFAULT) + " order by sort";
				Iterator irlink = ld.list(listsql).iterator();
				int m = 0;
				while (irlink.hasNext())
				{
					ld = (LinkDb) irlink.next();
					if (m==0)
						out.print("<tr>");
				%>
					<td align=center><a target="_blank" href="<%=ld.getUrl()%>" title="<%=ld.getTitle()%>">
					<%if (ld.getImage()!=null && !ld.getImage().equals("")) {%>
						<img src="../<%=ld.getImage()%>" border=0>
					<%}else{%>
						<%=ld.getTitle()%>
					<%}%>
					</a></td>
                <%
					m ++;
					if (m==8) {
						out.print("</tr>");
						m = 0;
					}
				}
				if (m!=8)
					out.print("</tr>");
				%>	
	</table>
	</td>
  </tr>
</table>
<jsp:include page="forum/inc/footer.jsp" />
<table align="center" style="display:"><tr><td>
<Script Src="cms/counter/counter.jsp?style=1"></Script>
</td></tr></table>
</body>
</html>

⌨️ 快捷键说明

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