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

📄 subtitle.jsp

📁 jsp网站
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="com.sunny.currency.*,com.sunny.s3fornetoffice.*,java.util.*" %>
<%
Session m_session = new Session(session);
Request m_request = new Request(request);
String strID = m_request.GetString("ID");
Vector vtWebSite = WebSiteDirManager.getRecordBySearch(strID,"","","","","","","","","","","","Xitic","cnwebtitle","","");
if(vtWebSite.size()<1)
{
  %>
<script language="JavaScript" type="text/JavaScript">
alert("您要访问的栏目不存在!");
history.back();
</script>
  <%
}
else
{
String strStation = ((Vector)vtWebSite.get(0)).get(2).toString();
String strLeveNumber = ((Vector)vtWebSite.get(0)).get(3).toString();
String strName = ((Vector)vtWebSite.get(0)).get(1).toString();
String strCurrentStation = "<font color=\"red\">当前位置:</font>";       //当前位置
String strInfoType = ((Vector)vtWebSite.get(0)).get(13).toString();
String strChildrenAcount = ((Vector)vtWebSite.get(0)).get(4).toString();
String strLinkURL = ((Vector)vtWebSite.get(0)).get(8).toString();
String strPageTempletFile = ((Vector)vtWebSite.get(0)).get(14).toString();
String strRemark = ((Vector)vtWebSite.get(0)).get(17).toString();
if(strLinkURL.trim().length()>0)
{
  response.sendRedirect(strLinkURL.trim());
  out.close();
}
if(strInfoType.equalsIgnoreCase("JobList"))
{
  response.sendRedirect("JobList.jsp?ID="+strID);
  //out.close();
}
if(strInfoType.equalsIgnoreCase("Resume"))
{
  response.sendRedirect("WebSite/AddBioInfo.jsp");
}
Vector vt=new Vector();
%>
<html>
<head>
<title>西安国际信托投资有限公司</title>
<link href="css.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
body {
  margin-left: 0px;
  margin-top: 0px;
  margin-right: 0px;
  margin-bottom: 0px;
}
.style2 {color: #990000}
.style4 {
  font-size: 15px;
  font-weight: bold;
}
.style5 {color: #CC0000}
-->
</style>
<SCRIPT src="text.js"></SCRIPT>
<SCRIPT language=JavaScript>
<!--
function aspnm_pageX(element)
{
  var x = 0;
  if(element!=null)
  {
  do
    x += element.offsetLeft;
  while ((element = element.offsetParent));
  }
  return x;
}

function aspnm_pageY(element)
{
  var y = 0;
  if(element!=null)
  {
  do
    y += element.offsetTop;
  while ((element = element.offsetParent));
  }
  return y;
}
//-->
</SCRIPT>

</head>
<body>
<center>
  <jsp:include flush="false" page="cnwebtop.jsp"/>
<table border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="180" align="center" valign="top" bgcolor="#FFFFFF">
      <jsp:include flush="false" page="cnwebleft.jsp?IsHome=False"/>
    </td>
    <td valign="top" background="images/sy09.gif"><img src="images/sy09.gif" width="3" height="5"></td>
    <td width="600" align="center" valign="top" background="images/sub3.gif" bgcolor="#FFFFFF">      <table width="600" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="33" align="center" valign="top" background="images/sub1.gif"><table border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td><img src="images/point.gif" width="10" height="10"></td>
            </tr>
          </table>
          <table border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td>
                <table border="0" cellpadding="0" cellspacing="0">
                  <tr>
        <%
            String[] strWebDirs = (strStation.substring(1,strStation.length()-1)).split("_");
            for(int i=0;i<strWebDirs.length;i++)
            {
              vt = WebSiteDirManager.getRecordByID(strWebDirs[i]);
              if(vt.size()>0)
              {
                if(((Vector)vt.get(0)).get(10).toString().equalsIgnoreCase("True"))
                {
                  if(((Vector)vt.get(0)).get(8).toString().trim().length()>0)
                  {
                    strCurrentStation += "<a href=\"" + ((Vector)vt.get(0)).get(8).toString() + "\" target=\"" + ((Vector)vt.get(0)).get(9).toString() + "\"><font color=\"red\">" + ((Vector)vt.get(0)).get(1).toString() + "</font></a><font color=\"red\">--></font>";
                  }
                  else
                  {
                    strCurrentStation += "<a href=\"subtitle.jsp?ID=" + ((Vector)vt.get(0)).get(0).toString() + "\" target=\"" + ((Vector)vt.get(0)).get(9).toString() + "\"><font color=\"red\">" + ((Vector)vt.get(0)).get(1).toString() + "</font></a><font color=\"red\">--></font>";
                  }
                }
                else
                {
                  strCurrentStation += "<font color=\"red\">" + ((Vector)vt.get(0)).get(1).toString() + "--></font>";
                }
              }
            }
            strCurrentStation += "<font color=\"red\">" + strName + "</font>";
            int iChildrenAcount=0;
            if(strChildrenAcount.length()>0)
            {
              if(Integer.parseInt(strChildrenAcount,10)>0)
              {
                iChildrenAcount = Integer.parseInt(strChildrenAcount,10);
              }
              else
              {
                iChildrenAcount =0;
              }
            }
            if(iChildrenAcount>0)
            {
              strStation = strStation + strID + "_";
              strLeveNumber = (Integer.parseInt(strLeveNumber,10)+1) + "";
            }
            Vector vt_LMLB = WebSiteDirManager.getRecordBySearch("","",strStation,strLeveNumber,"","","","","","","","","Xitic","cnwebtitle","","");
            if(vt_LMLB.size()>0)
            {
              int iRowWidth=0;
              for(int i=0;i<vt_LMLB.size();i++)
              {
                iRowWidth += 30 + (((Vector)vt_LMLB.get(i)).get(1).toString().length()*10);
                if(iRowWidth>580)
                {
                  out.print("</tr><tr><td>&nbsp;</td></tr></table><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr>");
                  iRowWidth = 0;
                }
                %>
                <td><img src="images/sub1-1.jpg" width="10" height="21"></td>
                <td  align="center" background="images/sub1-2.jpg">
                <%
                if(((Vector)vt_LMLB.get(i)).get(10).toString().equalsIgnoreCase("True"))
                {
                  if(((Vector)vt_LMLB.get(i)).get(8).toString().trim().length()>0)
                  {
                    out.println("<a href=\"" + ((Vector)vt_LMLB.get(i)).get(8).toString() + "\" target=\"" + ((Vector)vt_LMLB.get(i)).get(9).toString() + "\"><span class=\"style2\">" + ((Vector)vt_LMLB.get(i)).get(1).toString() + "</span></a>");
                  }
                  else
                  {
                    out.println("<a href=\"subtitle.jsp?ID=" + ((Vector)vt_LMLB.get(i)).get(0).toString() + "\" target=\"" + ((Vector)vt_LMLB.get(i)).get(9).toString() + "\"><span class=\"style2\">" + ((Vector)vt_LMLB.get(i)).get(1).toString() + "</span></a>");
                  }
                }
                else
                {
                  out.println("<span class=\"style2\">" + ((Vector)vt_LMLB.get(i)).get(1).toString() + "</span>");
                }
                %></td>
                <td><img src="images/sub1-3.jpg" width="8" height="21"></td>
                <td><img src="images/sub1.jpg" width="8" height="21"></td>
                <%
              }
            }
        %>
                </tr>
              </table></td>
              </tr>
          </table></td>
        </tr>
    </table>
    <table><tr><td><img src="images/point.gif" height="3"></td></tr></table>
      <table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
    <td width="30">&nbsp;</td>
          <td><font color=red><%=strCurrentStation%></font></td>
        </tr>
      </table><table><tr><td><img src="images/point.gif" height="3"></td></tr></table>
    <table width="557" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="20" background="images/sub2-1.gif"><table border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="200">&nbsp;</td>
            <td><table border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td width="9" height="20"><img src="images/sub3-1.jpg" width="12" height="20"></td>
                  <td width="150" align="center" background="images/sub3-2.jpg"><span class="style4"><%=strName%></span></td>
                  <td><img src="images/sub3-3.gif" width="1" height="20"><img src="images/sub3-3.jpg" width="18" height="20"></td>
                </tr>
              </table></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td align="center" valign="top" background="images/sub2-2.gif"><br>
          <%
          WebSiteArticleManager ArtiMag = new WebSiteArticleManager();
          if(strInfoType.equalsIgnoreCase("ArticleList"))
          {
            %>
          <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td align="center" valign="top" height="300">
                <table width="90%" border="0" cellpadding="0" cellspacing="0">
                  <tr><td><img src="images/point.gif" height="7"></td></tr>
            <%
            Vector vt_Article = ArtiMag.getRecordBySearch("","","","","","","","","","",strID,"","","Xitic","cnwebtitle","PublishDate","true");
            int iPageSize = 10;
            int iPage = m_request.GetInt("Page");
            if(iPage<1)iPage=1;
            int iPageCount = StringNew.getPageCount(vt_Article.size(),iPageSize);
            if(iPage>iPageCount) iPage=1;
            if(vt_Article.size()>0)
            {
              for(int i=iPageSize*(iPage-1);i<iPageSize*(iPage) && i<vt_Article.size();i++)
              {
                %>
                  <tr>
                    <td align="left"><a href="pop.jsp?ID=<%=((Vector)vt_Article.get(i)).get(0).toString()%>" target="_blank"><%=((Vector)vt_Article.get(i)).get(1).toString()%></a></td>
                  </tr>
                  <tr><td><img src="images/point.gif" height="7"></td></tr>
                <%
              }
            }
              %>
                </table>
              </td>
            </tr>
            <tr>
              <td class="TableTail" align="center" valign="bottom"><font color="#993333"><span class="style3">
                      <%
                        String strCurrentPageURL = request.getRequestURI();
                        if(iPage<2)
                        out.print("首页&nbsp;&nbsp;上页");
                        else
                        out.print("<a href=\""+ strCurrentPageURL+"?ID=" + strID + "&Page=" + 1 + "\" class=\"style3\"><font color=\"#993333\">首页</a>&nbsp;&nbsp;<a href=\""+ strCurrentPageURL+"?ID=" + strID + "&Page=" + (iPage-1) + "\" class=\"style3\"><font color=\"#993333\">上页</a>");
                        out.print("&nbsp;&nbsp;当前是第" + iPage + "页,共" + vt_Article.size() + "条记录" + iPageCount + "页&nbsp;&nbsp;");
                        if(iPage>=iPageCount)
                        out.print("下页&nbsp;&nbsp;末页");
                        else
                        out.print("<a href=\""+ strCurrentPageURL+"?ID=" + strID + "&Page=" + (iPage+1) + "\" class=\"style3\"><font color=\"#993333\">下页</a>&nbsp;&nbsp;<a href=\""+ strCurrentPageURL+"?ID=" + strID + "&Page=" + iPageCount + "\" class=\"style3\"><font color=\"#993333\">末页</a>");
                      %>
                  </span></font>
              </td>
            </tr>
          </table>
              <%
          }
          else
          {
            %>
          <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td align="center" valign="top" height="300">
                <table width="90%" border="0" cellpadding="0" cellspacing="0">
            <%
            Vector vt_Article = ArtiMag.getRecordBySearch("","","","","","","","","","","","",strID,"","PublishDate","true");
            if(vt_Article.size()>0)
            {
              %>
                <tr>
                  <td align="left" class="size12"><%=((Vector)vt_Article.get(0)).get(6).toString()%></td>
                </tr>
                <tr><td><img src="images/point.gif" height="7"></td></tr>
              <%
            }
            else
            {
              %>
                <tr>
                  <td align="left">正在建设中,请稍后访问......</td>
                </tr>
                <tr><td><img src="images/point.gif" height="7"></td></tr>
              <%
            }
          %>  	</TABLE>
              </td>
            </tr>
          </table>
          <%
          }
        %>
          <br>
      </td>
      </tr>
      <tr>
        <td><img src="images/sub2-3.gif" width="557" height="15"></td>
      </tr>
    <tr>
    <td>
    </td>
    </tr>
    </table>
    <br>
    </td>
  </tr>
</table>
  <jsp:include flush="false" page="cnwebbottom.jsp"/>
</center>
</body>
</html>
<%
}
%>

⌨️ 快捷键说明

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