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

📄 menu_jsp.java

📁 crm.customer relationship management
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
import java.util.*;
import crm.*;
import java.util.*;
import crm.*;
import crm.object.unit.*;

public final class menu_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {


//如果某字符串为null,则返回空字符串.
public String NVL(String sInput)
{
    if ( sInput == null )
    {
        return "";
    }
    return sInput;
}

  private static java.util.List _jspx_dependants;

  static {
    _jspx_dependants = new java.util.ArrayList(3);
    _jspx_dependants.add("/inc/cmnAuthenticate.jsp");
    _jspx_dependants.add("/inc/cmnPagePart1.jsp");
    _jspx_dependants.add("/inc/cmnPagePart2.jsp");
  }

  public Object getDependants() {
    return _jspx_dependants;
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    JspFactory _jspxFactory = null;
    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html;charset=gbk");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");

String sShowDate = "";
if(session.getAttribute("loginUser") == null )
{
   response.sendRedirect("login.jsp");
   return;
}
else
{
    Calendar currTime = new GregorianCalendar();
    int iYear  = currTime.get(currTime.YEAR);
    int iMonth = currTime.get(currTime.MONTH);
    int iDay   = currTime.get(currTime.DAY_OF_MONTH);
    int iWeek  = currTime.get(currTime.DAY_OF_WEEK);
    
    String[] sWeeks = { "<font color=red>日</font>", "一", "二", "三", "四", "五", "<font color=blue>六</font>" };
    
    sShowDate = iYear + "年" + (iMonth+1) + "月" + iDay + "日<br>星期" + sWeeks[iWeek-1]; 

}

      out.write("\r\n");
      out.write("\r\n");

//本页面特有的一些共通变量
Hashtable myValues = null;
String sPageId = CommonConst.VIEWID_MENU;
String sHTMLTitle = "请选择对应的功能";
String sJSFile = "menu.js";

      out.write('\r');
      out.write('\n');
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write('\r');
      out.write('\n');

myValues = (Hashtable)session.getAttribute(sPageId);

User userInfo = (User)session.getAttribute("loginUser");
//(共通)错误消息或者其他消息
String sDispMsg = "";
if ( myValues != null )
{
    String sErrMsg = (String) myValues.get("errMsg");
    String sInitMsg = (String) myValues.get("initMsg");
    if ( sErrMsg != null )
    {
        sDispMsg = sErrMsg;
    }
    else if ( sInitMsg != null )
    {
        sDispMsg = sInitMsg;
    }
}


      out.write("\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n");
      out.write("  <title>");
      out.print(sHTMLTitle);
      out.write("</title>\r\n");
      out.write("  <meta http-equiv=\"Content-Type\" content=\"text/html; charset=gbk\">\r\n");
      out.write("  <script language=\"JAVASCRIPT\" src=\"common/cmnScript.js\"></script>\r\n");
      out.write("  <script language=\"JAVASCRIPT\" src=\"");
      out.print(sJSFile);
      out.write("\"></script>\r\n");
      out.write("  <link rel=\"stylesheet\" type=\"text/css\" href=\"common/cmnStyle.css\" TITLE=\"common\"></link>\r\n");
      out.write("\r\n");
      out.write("  <script language=\"JAVASCRIPT\">\r\n");
      out.write("    var sErrMsg = \"");
      out.print(sDispMsg);
      out.write("\";\r\n");
      out.write("  </script>\r\n");
      out.write("</head>\r\n");
      out.write("\r\n");
      out.write("<body>\r\n");
      out.write("<form name=\"form_main\" action=\"servlet/CommonServlet\" method=\"post\" \r\n");
      out.write("      onsubmit=\"return checkInput();\" onreset=\"resetForm()\">\r\n");
      out.write("  <table align=center border=0 cellpadding=0 cellspacing=1 bgcolor=\"#277325\" width=800>\r\n");
      out.write("    <tr>\r\n");
      out.write("      <td colspan=2 width=800>\r\n");
      out.write("        <table border=0 cellpadding=0 cellspacing=0 bgcolor=\"#FFFFFF\" width=800>\r\n");
      out.write("          <tr>\r\n");
      out.write("            <td background=\"img/titleback.gif\" height=40>\r\n");
      out.write("              <img border=0 src=\"img/titleTitle.gif\"/>\r\n");
      out.write("            </td>\r\n");
      out.write("          </tr>\r\n");
      out.write("          <tr>\r\n");
      out.write("            <td align=center>\r\n");
      out.write("              <img border=0 src=\"img/titleLogo.jpg\"/>\r\n");
      out.write("            </td>\r\n");
      out.write("          </tr>\r\n");
      out.write("          <tr>\r\n");
      out.write("            <td bgcolor=\"#BAD1B9\" height=20 valign=center>\r\n");
      out.write("              <table border=0 cellpadding=0 cellspacing=0 width=800>\r\n");
      out.write("                <tr>\r\n");
      out.write("                  <td align=left>\r\n");
      out.write("                    &nbsp;您现在的位置:<font color=blue>");
      out.print(CommonConst.getPageInfo(sPageId));
      out.write("</font>\r\n");
      out.write("                  </td>\r\n");
      out.write("                  <td align=right>\r\n");
      out.write("                    <a href=\"javascript: help('");
      out.print(sPageId);
      out.write("')\">帮助</a>\r\n");
      out.write("                    ┆\r\n");
      out.write("                    <a href=\"javascript: logout()\">退出登录</a>&nbsp;\r\n");
      out.write("                  </td>\r\n");
      out.write("                </tr>\r\n");
      out.write("              </table>\r\n");
      out.write("            </td>\r\n");
      out.write("          </tr>\r\n");
      out.write("          <tr>\r\n");
      out.write("            <td height=3> \r\n");
      out.write("            </td>\r\n");
      out.write("          </tr>\r\n");
      out.write("        </table>\r\n");
      out.write("      </td>\r\n");
      out.write("    </tr>\r\n");
      out.write("    <tr>\r\n");
      out.write("      <td width=160 bgcolor=\"#ffffff\" valign=\"top\" height=450>\r\n");
      out.write("        <table border=0 cellpadding=0 cellspacing=0 width=150 align=center>\r\n");
      out.write("          <tr>\r\n");
      out.write("            <td height=5 bgcolor=\"#ffffff\">\r\n");
      out.write("            </td>\r\n");
      out.write("          </tr>\r\n");
      out.write("          <tr>\r\n");
      out.write("            <td align=center>\r\n");
      out.write("              ");
      out.print(sShowDate);
      out.write("\r\n");
      out.write("            </td>\r\n");
      out.write("          </tr>\r\n");
      out.write("          <tr>\r\n");
      out.write("            <td>\r\n");
      out.write("              <div class=\"div_tip\">\r\n");
      out.write("                欢迎您,<font color=\"#2725c3\">");
      out.print(userInfo.getRealname());
      out.write("</font>!\r\n");
      out.write("              </div>\r\n");
      out.write("            </td>\r\n");
      out.write("          </tr>\r\n");
      out.write("          <tr>\r\n");
      out.write("            <td height=10>\r\n");
      out.write("            </td>\r\n");
      out.write("          </tr>\r\n");
      out.write("          <tr>\r\n");
      out.write("            <td valign=center align=center>\r\n");
      out.write("              <table border=0 cellpadding=0 cellspacing=1 bgcolor=\"#ddeedd\">\r\n");
      out.write("                <tr class=\"tr_head1\" \r\n");

⌨️ 快捷键说明

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