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

📄 index_pic.jsp

📁 在系统开发过程中用到了javabean和jsp技术
💻 JSP
📖 第 1 页 / 共 2 页
字号:
<%@page language="java" contentType="text/html;charset=GBK"%>
<%@page import="java.util.*,java.text.*,oa.main.DealString,java.io.*"%>
<%
oa.bean.MainBean myBean = null;
try{
    myBean = new oa.bean.MainBean();
	DealString ds = new DealString();

	//取得菜单类别
	String strId1 = ds.toString((String)request.getParameter("txt_type1"));//一级版面编号
	String strId2 = ds.toString((String)request.getParameter("txt_type2"));//二级版面编号
	if(strId1.equals(""))strId1 = "4";
	if(strId2.equals(""))strId2 = "0";	
	int intId1 = Integer.parseInt(strId1);
	String strMenuName = myBean.toMenu1(strId1);
	String strMenuName2 = myBean.toMenu2(strId1,strId2);

	String strFileId = ds.toString((String)request.getParameter("txt_fileid"));//文章编号
	if(strFileId.equals(""))strFileId = "0";
	String strSub = ds.toString((String)request.getParameter("txt_sub"));//
	if(strSub.equals("")) strSub="0";
	String wtb = "";
	if(Integer.parseInt(strSub)>3) wtb = "0";
	else wtb = "1";
	String strEdit = ds.toString((String)request.getParameter("txt_edit"));
	if(strEdit.equals("")) strEdit = "0";

	String strmenuid = ds.toString((String)request.getParameter("txt_menuid"));
	if(strmenuid.equals("")) strmenuid = "0";//菜单唯一编号
	String strtopicid = ds.toString((String)request.getParameter("txt_topicid"));
	if(strtopicid.equals("")) strtopicid = "0";

	String strRoll = myBean.getRoll();

	String strsearch = ds.toString((String)request.getParameter("txt_search"));
	if(strsearch.equals("")) strsearch="0";

	/*
	String mainStyle = "1";//所选的模板
	String StyleName = myBean.getStyle(strId1);
	if(StyleName.equals("公司新闻"))
	{
		mainStyle = "1";
	}
	if(StyleName.equals("信息公告"))
	{
		mainStyle = "4";
	}
	if(StyleName.equals("规章制度"))
	{
		mainStyle = "3";
	}
	if(StyleName.equals("网站服务"))
	{
		mainStyle = "2";
	}*/
	String mainStyle = myBean.getStyle(strId1);//所选的模板
	
	
//end of add by 许晓昕
	

	//跳页--定义子版面
	String childfile = "";
	if(strsearch.equals("0"))
	{
		if(strFileId.equals("0"))
		{
			childfile = "main.jsp";	
			if(!strId2.equals("0")||!strtopicid.equals("0")||strmenuid.equals("20")||strmenuid.equals("21")||strmenuid.equals("22")||strmenuid.equals("23"))
			{	
				childfile = "child.jsp";
			}
		}
		else
		{	
			if(strEdit.equals("1"))
			{
				childfile = "comment.jsp";
			}
			else
			{
				childfile = "viewnews.jsp";
			}
		}
	}
	else
	{
		childfile = strsearch;
	}

	//取得所有的CSS风格
	Vector vet = (Vector)myBean.getCss();
	int j=vet.size();
	String str[] = new String[j];
	String strisnow[] = new String[j];
	String strfilename[] = new String[j];
    int inow = -1;
	for(int i=0;i<vet.size();i++)
	{  
		Hashtable hash = (Hashtable)vet.get(i);
		str[i] = (String)hash.get("STYLE");
		strisnow[i] = (String)hash.get("ISNOW");
		if(strisnow[i].equals("1")) inow = i;
		strfilename[i] = (String)hash.get("FILENAME");
	}
	

	String selcss = ds.toString(ds.toGBK((String)request.getParameter("sel_css")));
	String strCssFile = myBean.styleToname(selcss);
	if(strCssFile.equals(""))
	{
		strCssFile = strfilename[inow];
	}

	//取得所有的一级菜单
	Vector vet1 = (Vector)myBean.getMenu();
	int j1=vet1.size();
	String str1[] = new String[j1];//存放一级菜单名称
	String str3[] = new String[j1];//存放一级菜单编号
	for(int i1=0;i1<vet1.size();i1++)
	{  
		Hashtable hash1 = (Hashtable)vet1.get(i1);
		str1[i1] = (String)hash1.get("MENU1");
		str3[i1] = (String)hash1.get("ID1");
	}

	//根据一级菜单取得其下的所有二级菜单信息
	myBean.setId1(strId1);
	Vector vet2 = (Vector)myBean.getMenu2();
	int j2=vet2.size();
	String str2[] = new String[j2];//存放二级菜单名称
	String str4[] = new String[j2];//存放二级菜单序号
	for(int i2=0;i2<vet2.size();i2++)
	{  
		Hashtable hash2 = (Hashtable)vet2.get(i2);
		str2[i2] = (String)hash2.get("MENU2");
		str4[i2] = (String)hash2.get("ID2");
	}


	String css = strCssFile;
	session.setAttribute("CSS",strCssFile);
%>



<!DOCTYPE HTML PUBLIC "-/W3C/DTD HTML 4.0 Transitional/EN">
<!-- saved from url=(0040)http:/www.goit.info/hangang/index03.htm -->
<HTML><HEAD><TITLE>极限空间企业信息管理系统</TITLE>
<META content="text/html; charset=GBK" http-equiv=Content-Type><LINK 
href="../images/css.css" rel=stylesheet type=text/css>
<script language="javascript" src="f5.js"></script>
<META content="MSHTML 5.00.3502.5390" name=GENERATOR></HEAD>
<BODY background="../images/bg.gif" leftMargin=0 topMargin=0 
marginheight="0" marginwidth="0">

<form name=form1 action="index.jsp" method=post>

<input type=hidden name="txt_type1" value="<%=strId1%>">
<input type=hidden name="txt_type2" value="<%=strId2%>">
<input type=hidden name="txt_fileid" value="">
<input type=hidden name="txt_sub" value="">
<input type=hidden name="txt_edit" value="">
<input type=hidden name="txt_menuid" value="">

<input type=hidden name="txt_topicid" value="">
<input type=hidden name="txt_search" value="">
<input type=hidden name="s1" value="">
<input type=hidden name="s2" value="">

<input type=hidden name="txt_css" value="">
<input type=hidden name="txt_cssfile" value="">

<input type=hidden name="txt_type" value="">

<input type=hidden name="txt_uid" value="<%=(String)session.getAttribute("UID")%>">


<TABLE align=center border=0 cellPadding=0 cellSpacing=0 width=790>
 <TBODY>
  <TR>
    <TD align=center background="../images/bg01.gif">
      <TABLE border=0 cellPadding=0 cellSpacing=0 width=779>
        <TBODY>
        <TR>
          <TD align=left vAlign=top>
            <TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
              <TBODY>
              <TR>
                <TD align=left 
                background="../images/index_top_bg.gif" 
vAlign=top>
                  <TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
                    <TBODY>
                    <TR align=left vAlign=top>
                      <TD width=6><IMG height=31 
                        src="../images/index_top_01.gif" 
                      width=6></TD>
                      <TD vAlign=center width=767>
                        <TABLE border=0 cellPadding=0 cellSpacing=0 
width="100%">
                          <TBODY>
                          <TR>
                            <TD align=middle width=129><FONT 
                              color=#ffffff>登陆企业信息发布系统</FONT></TD>
                            <TD align=right width=57><FONT 
                              color=#ffffff>用户名:</FONT></TD>
                            <TD width=120><INPUT onmouseover="this.focus();" onfocus="this.select();" class=inputter maxLength=16 size=16 name=uid onkeydown="gotopwd(1);"></TD>
                            <TD align=right width=50><FONT color=#ffffff>密 
                              码:</FONT></TD>
                            <TD width=125><INPUT onmouseover="this.focus();" onfocus="this.select();"  class=inputter 
                              type=password maxLength=16 size=16 name=pwd onkeydown="gotopwd(2);"></TD>
                            <TD width=65><IMG height=20 
                              src="../images/index_top_login01.gif"  style="cursor:hand;" id="loggin"
                              width=58 onclick="checkout();"></TD>
                            <TD width=74><IMG height=20 style="cursor:hand;"
                              src="../images/index_top_login02.gif" 
                              width=74 onclick="findpsw();"></TD>
                            <TD width=3><IMG height=31 style="cursor:hand;"
                              src="../images/index_top_login03.gif" 
                              width=1></TD>
                            <TD align=right width=120><IMG height=31 
                              src="../images/index_top_login04.gif" 
                              width=110></TD></TR></TBODY></TABLE></TD>
                      <TD width=6><IMG height=31 
                        src="../images/index_top_02.gif" 
                      width=6></TD></TR></TBODY></TABLE></TD></TR>
              <TR>
                <TD align=left vAlign=top>
                  <TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
                    <TBODY>
                    <TR align=left vAlign=top>
                      <TD 
background="../images/index_top2_bg.gif">
                        <TABLE border=0 cellPadding=0 cellSpacing=0 
width="100%">
                          <TBODY>
                          <TR>
                            <TD width=6><IMG height=27 src="" width=6></TD>

                            <TD width=285><FONT 
                              color=#000000>
							  <marquee scrolldelay=300><%=strRoll%></marquee>
							  </FONT></TD>
                            <TD width=23><IMG height=27 
                              src="../images/index_top2_02.gif" 
                              width=23></TD></TR></TBODY></TABLE></TD>
                      <TD align=right 
                      background="../images/index_top2_02bg.gif" 
                      vAlign=center width=500>
                        <TABLE border=0 cellPadding=0 cellSpacing=0 
                          width="70%">
                          <TBODY>
                          <TR>
                            <TD align=right width=203><INPUT class=inputter 
                              id=key size=16 value="关键字:"onkeydown="if(window.event.keyCode==13)search0();" onmouseover="this.focus();" onfocus="this.select();"> </TD>
                            <TD align=right width=87>
							<SELECT id="select1"> 
                              <OPTION value="1" selected>内网搜索</OPTION> 
							  <OPTION value="http://www.baidu.com/baidu?word=">百度搜索</OPTION> 
							  <OPTION value="http://www.google.com/search?lr=lang_zh-CN&amp;q=">google搜索</OPTION> 
                              <OPTION value="http://site.search.sohu.com/sitesearch.jsp?key_word=">搜狐搜索</OPTION> 
                              <OPTION value="http://search.sina.com.cn/cgi-bin/search/search.cgi?_searchkey=">新浪搜索</OPTION> 
                              <OPTION value="http://nisearch.163.com/Search?in=seek&amp;q=">网易搜索</OPTION> 
                              <OPTION value="http://bingle.pku.edu.cn/scripts/ftp_search.exe?word=">北大天网</OPTION> 
                              <OPTION value="http://cn.search.yahoo.com/search/cn?p=">yahoo搜索</OPTION> 
                              <OPTION value="http://cns.3721.com/cns.dll?name=">3721搜索</OPTION> 
                              <OPTION value="http://search.msn.com/results.asp?q=">微软MSN</OPTION> 
                              <OPTION value="http://searchpages.lycos.com.cn/cgi-bin/searchall/search.cgi?typelycos=all&amp;query=">lycos</OPTION> 
                              <OPTION value="http://search.fm365.com/cgi-bin/search/fm365.cgi?query=">fm365</OPTION>
							  </SELECT>
							</TD>
                            <TD align=middle width=60><IMG height=17 style="cursor:hand;"
                              src="../images/index_top_search.gif" onclick="search0();"
                              width=49></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR>
              <TR>
                <TD align=left vAlign=top>
                  <TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
                    <TBODY>
                    <TR align=left vAlign=top>
                      <TD width=200><IMG height=42 src="../images/index_top_logo.gif" width=160></TD>
                      
					  <TD align=right vAlign=baseline>
                        <TABLE border=0 cellPadding=0 cellSpacing=5 width="90%">

⌨️ 快捷键说明

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