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

📄 sub.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.*" %>
<%
request.setCharacterEncoding("gb2312");
boolean tag=false;
boolean show_re=false;
Vector vt1=null;
Session m_session = new Session(session);
Request m_request = new Request(request);
String strID = m_request.GetString("ID");//子项ID 从左边导航栏接受
Vector vtWebSite = WebSiteDirManager.getRecordBySearch(strID,"","","","","","","","","","","","Xitic","cnweb","","");
String strfatherDirID=m_request.GetString("siteDirID");
String strfatherDirName=m_request.GetString("siteDirName");
String strOthID=m_request.GetString("othID");
session.setAttribute("pID",strOthID);
if(strID==null || strID.equals("")){
    int intfatherDirID=Integer.parseInt(strfatherDirID);
	String strSonDirIDs=WebSiteDirManager.getSonSystemDirectoryIDs(intfatherDirID);
        vt1=WebSiteDirManager.getRecordBystrID(strSonDirIDs);
		if(vt1!=null){
		   strID=((Vector)vt1.get(0)).get(0).toString();
		}
}
vt1=WebSiteDirManager.getRecordBystrID(strID);
String  siteName=((Vector)vt1.get(0)).get(1).toString();

if(vtWebSite.size()<1)
{
  %>
<script language="JavaScript" type="text/JavaScript">
alert("您要访问的栏目不存在!");
history.back();
</script>
  <%
}
else
{
  String strStation = ((Vector)vt1.get(0)).get(2).toString();
  String strLeveNumber = ((Vector)vt1.get(0)).get(3).toString();
  String strCurrentStation = "<font color=\"#000000\">&nbsp;&nbsp;当前位置 | </font>";       //当前位置
  String[] strWebDirs = (strStation.substring(1,strStation.length()-1)).split("_");
    for(int i=0;i<strWebDirs.length;i++)
    {
      Vector 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=\"#F7941C\">" + ((Vector)vt.get(0)).get(1).toString() + "</font></a><font color=\"#F7941C\"> → </font>";
          }
          else
          {
            strCurrentStation += "<a href=\"sub.jsp?siteDirID=" + ((Vector)vt.get(0)).get(0).toString() + "\" target=\"" + ((Vector)vt.get(0)).get(9).toString() + "\"><font color=\"#F7941C\">" + ((Vector)vt.get(0)).get(1).toString() + "</font></a><font color=\"#F7941C\"> → </font>";
          }
        }
        else
        {
          strCurrentStation += "<font color=\"#F7941C\">" + ((Vector)vt.get(0)).get(1).toString() + " → </font>";
        }
      }
    }
    strCurrentStation += "<font color=\"#F7941C\">" + siteName + "</font>";

%>
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>西安国际信托投资有限公司</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}

-->
</style>
<link href="css.css" rel="stylesheet" type="text/css">
<link href="xgt_web.css" rel="stylesheet" type="text/css">
</head>

<body onLoad="javascript: startclock();"><center>
<form name="other">
<input  type="hidden" name="productID" id="productID" value="<%=strOthID%>">
</form>
<jsp:include flush="false" page="cnwebtop.jsp?IsHome=false&IsPop=False" />
<table width="778" height="81%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="186" rowspan="2" valign="top" style="filter:progid:DXImageTransform.Microsoft.Gradient(startColorStr='#E9E9E9', endColorStr='#FFFFFF', gradientType='0')">
    <jsp:include flush="false" page="cnwebleft.jsp?siteDirID=<%=strfatherDirID%>&siteDirName=<%=strfatherDirName%>" />
	  </td>
    <td width="2" rowspan="2"></td>
    <td width="2" rowspan="2" bgcolor="#DEDEDE"></td>
    <td valign="top" class="bg_map_image">
	<table width="100%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="33" colspan="2" valign="middle"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="100%"><%=strCurrentStation%></td>
  </tr>
</table></td>
      </tr>
	        <tr>
        <td height="2" background="images/diandian.gif" width="60%"></td>
        <td></td>
      </tr>
    </table>
      <table width="100%" height="100%"  border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td width="50">&nbsp;</td>
          <td valign="top">

		 <%
		 if(siteName.trim().equalsIgnoreCase("在线咨询")){
		   %>
		   <jsp:include flush="false" page="Online.jsp?siteDirID=<%=strfatherDirID%>&siteDirName=<%=strfatherDirName%>" />
		   <%
		 }else{
		 if ((siteName.trim().equalsIgnoreCase("预约登记"))){
		 	 %>
			 <jsp:include flush="false" page="Checkin.jsp?siteDirID=<%=strfatherDirID%>&siteDirName=<%=strfatherDirName%>" />
			 <%
		 }else{
		 	if((siteName.trim().equalsIgnoreCase("产品推介"))){

					request.setAttribute("pID",strOthID);
				%>
				 <jsp:include flush="false" page="Product.jsp?siteDirID=<%=strfatherDirID%>&siteDirName=<%=strfatherDirName%>" />

				<%
				}else{
                                   if ((siteName.trim().equalsIgnoreCase("提交表格"))){
		 	 	%>
                                <jsp:include flush="false" page="/WebSite/AddBioInfo.jsp" />
			 	<%
				 }else{
			 	%>

			 <!--显示主体!-->
		  <TABLE cellSpacing=0 cellPadding=0 width="90%" border=0 height="">
            <TBODY>
              <TR>
                <TD>&nbsp;</TD>
              </TR>
             <%

			 Vector vt_Article = WebSiteArticleManager.getRecordBySearch("","","","","","","","","","",strID,"","","Xitic","cnweb","PublishDate","true");
 			int iPageSize = 15;
            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)
            {
			 tag=true;
			 if(vt_Article.size()==1){
				tag=false;
				show_re=true;
				%>
				<TR>
                    <TD height="50" align=center><span class="newstitle"><%=((Vector)vt_Article.get(0)).get(1).toString()%></FONT></STRONG></span></TD>
                  </TR>
                  <TR>
                    <TD align="center"><table height="35" border="0" cellpadding="0" cellspacing="0">
                        <tr align="center">
                          <td>新闻来源:<%=((Vector)vt_Article.get(0)).get(2).toString()%>
					     </td>
                          <td width="25">&nbsp;</td>
                          <td>时间: <%=StringNew.GetDateString(((Vector)vt_Article.get(0)).get(5).toString(),"yyyy年MM月dd日 HH:mm:ss")%></td>
                        </tr>
                      </table></TD>
                  </TR>
                  <TR>
                    <TD align=left>&nbsp;</TD>
                  </TR>
                  <TR>
                    <TD align=left><P>
					<%=((Vector)vt_Article.get(0)).get(6).toString()%><BR></TD>
                  </TR>
                  
			<%
			}else{

				for(int i=iPageSize*(iPage-1);i<iPageSize*(iPage) && i<vt_Article.size();i++)

              {
                %>
                  <tr>
                    <td align="left"><img src="images/icon_01.gif"><a href="pop.jsp?ID=<%=((Vector)vt_Article.get(i)).get(0).toString()%>&siteDirID=<%=strfatherDirID%>&siteDirName=<%=strfatherDirName%>" target="_blank"><%=((Vector)vt_Article.get(i)).get(1).toString()%> </a>(<%=StringNew.GetDateString(((Vector)vt_Article.get(i)).get(5).toString(),"yy年MM月dd日")%>)</td>
                  </tr>
                  <tr><td><img src="images/point.gif" height="7"></td></tr>
                <%

               }
			  }
			}else{
			 %>
				<tr>
                    <td align="left"><img src="images/icon_01.gif">您所查看的栏目没有任何内容,请稍候查看... ...</td>
                  </tr>
                  <tr><td><img src="images/point.gif" height="7"></td></tr>
			<%
			}
              %>
	     </TBODY>
          </TABLE>

		    <table width="90%">
			<tr>
              <td class="TableTail" align="center" valign="bottom" colspan="2"><font color="#993333"><span class="style3" ><!--fenyexianshi-->
                      <%
					  if(tag){
                        String strCurrentPageURL = request.getRequestURI();
                        if(iPage<2)
                        out.print("首页&nbsp;&nbsp;上页");
                        else
                        out.print("<a href=\""+ strCurrentPageURL+"?ID=" + strID + "&Page=" + 1 +"&siteDirID="+strfatherDirID+"&siteDirName="+strfatherDirName+ "\" class=\"style3\"><font color=\"#993333\">首页</a>&nbsp;&nbsp;<a href=\""+ strCurrentPageURL+"?ID=" + strID + "&Page=" + (iPage-1) + "&siteDirID="+strfatherDirID+"&siteDirName="+strfatherDirName+"\" 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) +"&siteDirID="+strfatherDirID+"&siteDirName="+strfatherDirName+ "\" class=\"style3\"><font color=\"#993333\">下页</a>&nbsp;&nbsp;<a href=\""+ strCurrentPageURL+"?ID=" + strID + "&Page=" + iPageCount +"&siteDirID="+strfatherDirID+"&siteDirName="+strfatherDirName+ "\" class=\"style3\"><font color=\"#993333\">末页</a>");
  						 }
					  %>
                  </span></font>
              </td>
            </tr>
			
			</table>

			<!--显示主体!完成-->

<%

			 }
                         }
		 }
		 }

		 %>
</td>
        </tr>
      </table>
	  </td>
  </tr>
  <tr><%if(show_re){%>
  
    <td valign="top" ><div align="right"><a href="#" class="copyright"><返回顶部></a></div></td>
	<%}%>
  </tr>
  
</table>
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td bgcolor="#E1E1E1">&nbsp;</td>
  </tr>
</table>
<jsp:include flush="false" page="cnwebbottom.jsp" />
</center>

</body>
</html>
<%
}
%>

⌨️ 快捷键说明

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