Esempio n. 1
0
  /// Save Sell Data
  @Listen("onClick = #btncheckout")
  public void btncheckou_Click() {
    Date datem = new Date();
    java.text.SimpleDateFormat dfm = new java.text.SimpleDateFormat();
    dfm.applyPattern("MMMM");

    java.text.SimpleDateFormat dfy = new java.text.SimpleDateFormat();
    dfy.applyPattern("yyyy");

    String strdatem = String.format(dfm.format(datem));
    String strdatey = String.format(dfy.format(datem));

    for (int i = 0; i < pointcount; i++) {
      Sell selldata = new Sell();
      selldata.setDateselly(strdatey);
      selldata.setDatesellm(strdatem);
      selldata.setDatesell(datem);
      selldata.setNameproduct(nameproduct.get(i));
      selldata.setIdp(idpro.get(i));
      selldata.setIdqty(qty.get(i));
      selldata.setUnitprice(unitprice.get(i));
      selldata.setSellprice(price.get(i));
      selldata.setCusname(namecus.get(i));
      selldata.persist();
    }
    Sessions.getCurrent().setAttribute("name", null);
    Executions.sendRedirect("sellid.zul");
  }
Esempio n. 2
0
  /** 将日期转换为 14 位的字符串(格式为yyyyMMddHHmmss). */
  public static String dateTo14String(Date date) {
    if (date == null) {
      return null;
    }

    java.text.SimpleDateFormat dateFormat = new java.text.SimpleDateFormat(" yyyyMMddHHmmss ");

    return dateFormat.format(date);
  }
Esempio n. 3
0
  /** 将日期转换为中文表示方式的字符串(格式为 yyyy年MM月dd日 HH:mm:ss). */
  public static String dateToChineseString(Date date) {
    if (date == null) {
      return "";
    }

    java.text.SimpleDateFormat dateFormat =
        new java.text.SimpleDateFormat(" yyyy年MM月dd日 HH:mm:ss ");

    return dateFormat.format(date);
  }
Esempio n. 4
0
 public static String getNoFormatToday() {
   java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyyMMdd");
   Calendar cl = new GregorianCalendar();
   try {
     //               return sdf.format(CMCodeManager.getDate("KEY_D1_1_1")) ;
     return sdf.format(cl.getTime());
   } catch (Exception ex) {
     return null;
   }
 }
Esempio n. 5
0
  public static int monthsBetween(String from, String to, String format)
      throws java.text.ParseException {
    java.util.Date fromDate = check(from, format);
    java.util.Date toDate = check(to, format);

    // if two date are same, return 0.
    if (fromDate.compareTo(toDate) == 0) return 0;

    java.text.SimpleDateFormat yearFormat =
        new java.text.SimpleDateFormat("yyyy", java.util.Locale.KOREA);
    java.text.SimpleDateFormat monthFormat =
        new java.text.SimpleDateFormat("MM", java.util.Locale.KOREA);
    java.text.SimpleDateFormat dayFormat =
        new java.text.SimpleDateFormat("dd", java.util.Locale.KOREA);

    int fromYear = Integer.parseInt(yearFormat.format(fromDate));
    int toYear = Integer.parseInt(yearFormat.format(toDate));
    int fromMonth = Integer.parseInt(monthFormat.format(fromDate));
    int toMonth = Integer.parseInt(monthFormat.format(toDate));
    int fromDay = Integer.parseInt(dayFormat.format(fromDate));
    int toDay = Integer.parseInt(dayFormat.format(toDate));

    int result = 0;
    result += ((toYear - fromYear) * 12);
    result += (toMonth - fromMonth);

    if (((toDay - fromDay) > 0)) result += toDate.compareTo(fromDate);

    return result;
  }
Esempio n. 6
0
  public static String getNoFormatTime() {
    java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("HHmmss");
    Calendar cl = new GregorianCalendar();
    try {

      return sdf.format(cl.getTime());
    } catch (Exception ex) {
      return null;
    }

    // Calendar cl = new GregorianCalendar();
    // return cl.get(Calendar.HOUR_OF_DAY)+""+cl.get(Calendar.MINUTE)+""+cl.get(Calendar.SECOND)+"";

  }
Esempio n. 7
0
  public static java.util.Date check(String s, String format) throws java.text.ParseException {
    if (s == null) throw new java.text.ParseException("date string to check is null", 0);
    if (format == null)
      throw new java.text.ParseException("format string to check date is null", 0);

    java.text.SimpleDateFormat formatter =
        new java.text.SimpleDateFormat(format, java.util.Locale.KOREA);
    java.util.Date date = null;
    try {
      date = formatter.parse(s);
    } catch (java.text.ParseException e) {
      throw new java.text.ParseException(
          " wrong date:\"" + s + "\" with format \"" + format + "\"", 0);
    }

    if (!formatter.format(date).equals(s))
      throw new java.text.ParseException(
          "Out of bound date:\"" + s + "\" with format \"" + format + "\"", 0);
    return date;
  }
  /**
   * Test the program
   *
   * @param args the args
   * @throws IOException _more_
   */
  public static void main(String args[]) throws IOException {
    StringBuffer errlog = new StringBuffer();
    String ds_location = null;
    TDSRadarDatasetCollection dsc = null;
    List stns = null;

    ds_location =
        // "http://localhost:8080/thredds/radarServer/nexrad/level3/CCS039/dataset.xml";
        // "http://motherlode.ucar.edu:8081/thredds/radarServer/nexrad/level3/CCS039/dataset.xml";
        "http://thredds.ucar.edu/thredds/radarServer/nexrad/level3/CCS039/dataset.xml";
    dsc = TDSRadarDatasetCollection.factory("test", ds_location, errlog);
    System.out.println(" errs= " + errlog);
    stns = dsc.getStations();
    System.out.println(" nstns= " + stns.size());

    // System.exit(0);
    stns = dsc.getStations();
    System.out.println(" nstns= " + stns.size());

    Station stn = dsc.getRadarStation("DVN"); // (StationImpl)stns.get(12);
    System.out.println("stn = " + stn);

    // List ulist = stn.getRadarStationURIs();
    // assert null != ulist;
    List tl = dsc.getRadarTimeSpan();
    Date ts1 = DateUnit.getStandardOrISO("1998-06-28T01:01:21Z");
    Date ts2 = DateUnit.getStandardOrISO("1998-07-30T19:01:21Z");
    List pd = dsc.getRadarProducts();
    List<Date> tlist = dsc.getRadarStationTimes(stn.getName(), "BREF1", ts1, ts2);
    int sz = tlist.size();
    for (int i = 0; i < 3; i++) {
      Date ts0 = (Date) tlist.get(i);
      RadialDatasetSweep rds = dsc.getRadarDataset(stn.getName(), "BREF1", ts0);
      int tt = 0;
    }

    Date ts0 = (Date) tlist.get(0);
    URI stURL = dsc.getRadarDatasetURI(stn.getName(), "BREF1", ts0);
    assert null != stURL;
    DateSelection dateS = new DateSelection(ts1, ts2);
    dateS.setInterval((double) 3600 * 1000);
    dateS.setRoundTo((double) 3600 * 1000);
    dateS.setPreRange((double) 500 * 1000);
    dateS.setPostRange((double) 500 * 1000);

    for (int i = 0; i < stns.size(); i++) {
      stn = (Station) stns.get(i);
      List<Date> times =
          dsc.getRadarStationTimes(
              stn.getName(),
              "BREF1",
              new Date(System.currentTimeMillis() - 3600 * 1000 * 24 * 100),
              new Date(System.currentTimeMillis()));
      if (times.size() > 0) {
        System.err.println(
            stn
                + " times:"
                + times.size()
                + " "
                + times.get(0)
                + " - "
                + times.get(times.size() - 1));
      } else {
        System.err.println(stn + " no times");
      }
    }

    Date ts = (Date) tlist.get(1);
    java.text.SimpleDateFormat isoDateTimeFormat;
    isoDateTimeFormat = new java.text.SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
    isoDateTimeFormat.setTimeZone(java.util.TimeZone.getTimeZone("GMT"));
    String st = isoDateTimeFormat.format(ts);
  }
  /**
   * _more_
   *
   * @param args _more_
   * @throws IOException _more_
   */
  public static void main(String args[]) throws IOException {
    StringBuffer errlog = new StringBuffer();
    String dqc_location = "http://thredds.ucar.edu/thredds/idd/radarLevel2";
    DqcRadarDatasetCollection ds = factory("test", dqc_location, errlog);
    System.out.println(" errs= " + errlog);

    List stns = ds.getStations();
    System.out.println(" nstns= " + stns.size());

    Station stn = (Station) (stns.get(2));

    // List ulist = stn.getRadarStationURIs();
    // assert null != ulist;
    Date ts1 = DateUnit.getStandardOrISO("2007-06-9T12:12:00");
    Date ts2 = DateUnit.getStandardOrISO("2007-06-9T23:12:00");

    List tlist = ds.getRadarStationTimes(stn.getValue(), ts1, ts2);
    int sz = tlist.size();
    Date ts0 = DateUnit.getStandardOrISO((String) tlist.get(1));
    RadialDatasetSweep rds = ds.getRadarDataset(stn.getValue(), ts0);
    URI stURL = ds.getRadarDatasetURI(stn.getValue(), ts0);
    assert null != stURL;
    assert 0 != sz;
    DateSelection dateS = new DateSelection(ts1, ts2);
    dateS.setInterval((double) 3600 * 1000);
    dateS.setRoundTo((double) 3600 * 1000);
    dateS.setPreRange((double) 500 * 1000);
    dateS.setPostRange((double) 500 * 1000);

    for (int i = 0; i < stns.size(); i++) {
      stn = (Station) stns.get(i);
      List times =
          ds.getRadarStationTimes(
              stn.getValue(),
              new Date(System.currentTimeMillis() - 3600 * 1000 * 24 * 100),
              new Date(System.currentTimeMillis()));
      if (times.size() > 0) {
        System.err.println(
            stn
                + " times:"
                + times.size()
                + " "
                + times.get(0)
                + " - "
                + times.get(times.size() - 1));
      } else {
        System.err.println(stn + " no times");
      }
    }
    System.exit(0);

    List jList = ds.getDataURIs("KABX", dateS);

    assert null != jList;
    List mList = ds.getData("KABX", dateS, null);
    assert null != mList;

    // Date ts0 =
    // DateFromString.getDateUsingCompleteDateFormat((String)tlist.get(1),"yyyy-MM-dd'T'HH:mm:ss");
    Date ts = DateUnit.getStandardOrISO((String) tlist.get(1));
    java.text.SimpleDateFormat isoDateTimeFormat;
    isoDateTimeFormat = new java.text.SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
    isoDateTimeFormat.setTimeZone(java.util.TimeZone.getTimeZone("GMT"));
    String st = isoDateTimeFormat.format(ts);
  }
  private void jButton1ActionPerformed(
      java.awt.event.ActionEvent evt) { // GEN-FIRST:event_jButton1ActionPerformed
    // TODO add your handling code here:
    String str = "";
    String str1;
    java.text.SimpleDateFormat fmt = new java.text.SimpleDateFormat("dd-MM-yyyy");
    String formattedDate = fmt.format(jDateChooser1.getDate());
    if (jRadioButton1.isSelected()) str = jRadioButton1.getText();
    if (jRadioButton2.isSelected()) str = jRadioButton2.getText();
    if (jRadioButton3.isSelected()) str = jRadioButton3.getText();
    if (jRadioButton4.isSelected()) str = jRadioButton4.getText();
    if (jRadioButton5.isSelected()) str = jRadioButton5.getText();
    if (jRadioButton6.isSelected()) str = jRadioButton6.getText();
    /*   if(formattedDate.compareTo(str)==0)
    {
        information.setText("Un booked");
    }
    else
       information.setText(str);*/
    try {
      res = st.executeQuery("select * from Booking where Event_date='" + formattedDate + "'");
      if (res.next()) { // txtroll.setText(res.getString(0));
        // jTextField1.setText(res.getString(6));
        // jTextField1.setText(res.getString(6));
        // jTextField1.setText(res.getString(7));
        str1 = res.getString(7);
        if (formattedDate.compareTo(res.getString(6)) == 0) {
          if (str1.compareTo("A-2") == 0) jRadioButton1.setVisible(false);
          else jRadioButton1.setVisible(true);
          if (str1.compareTo("A-11") == 0) jRadioButton2.setVisible(false);
          else jRadioButton2.setVisible(true);
          if (str1.compareTo("A-12") == 0) jRadioButton3.setVisible(false);
          else jRadioButton3.setVisible(true);
          if (str1.compareTo("A-13") == 0) jRadioButton4.setVisible(false);
          else jRadioButton4.setVisible(true);
          if (str1.compareTo("EEE-Auditorium") == 0) jRadioButton5.setVisible(false);
          else jRadioButton5.setVisible(true);
          if (str1.compareTo("Barn") == 0) jRadioButton6.setVisible(false);
          else jRadioButton6.setVisible(true);
          // repaint();
        }
        // str1=res.getString(6).toString();
        // jTextField1.setText(str1);
        // javax.swing.JOptionPane.showMessageDialog(null,"Invalid.....");
        // jRadioButton3.setVisible(false);

        // txtcontact.setText(res.getString(12));

      } else {
        jRadioButton1.setVisible(true);
        jRadioButton2.setVisible(true);
        jRadioButton3.setVisible(true);
        jRadioButton4.setVisible(true);
        jRadioButton5.setVisible(true);
        jRadioButton6.setVisible(true);
      }
    } catch (Exception e) {
      javax.swing.JOptionPane.showMessageDialog(null, e.toString());
    }
    str1 = formattedDate;
  } // GEN-LAST:event_jButton1ActionPerformed
Esempio n. 11
0
  public void _jspService(HttpServletRequest request, HttpServletResponse response)
      throws java.io.IOException, ServletException {

    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 {
      response.setContentType("text/html; charset=UTF-8");
      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");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");

      String path = request.getContextPath();
      String basePath =
          request.getScheme()
              + "://"
              + ("xsaqjy".equals(request.getServerName())
                  ? "xsaqjy.ljgps.net"
                  : request.getServerName())
              + (request.getServerPort() == 80 ? "" : ":" + request.getServerPort())
              + path
              + "/";
      Long userno = (Long) session.getAttribute("userno"); // 获得当前登录用户的id用户号
      if (userno == null) {
        response.sendRedirect(basePath + "page/admin/login.jsp");
        return;
      }
      Long admin = (Long) session.getAttribute("adminflag"); // 获得标记当前登录用户是否为数据管理员
      if (admin == null) {
        response.sendRedirect(basePath + "page/admin/login.jsp");
      }
      Long dwtype = (Long) session.getAttribute("dwtype"); // 获得当前登录用户所在单位类型 0代表交警  1代表货运公司
      if (dwtype == null) {
        response.sendRedirect(basePath + "page/admin/login.jsp");
      }
      String username = (String) request.getSession().getAttribute("username");
      if (username == null) {
        response.sendRedirect(basePath + "page/admin/login.jsp");
      }
      List<String> list = (List<String>) session.getAttribute("list"); // 获得权限的集合
      if (list == null) {
        response.sendRedirect(basePath + "page/admin/login.jsp");
      }
      Long userid = (long) Integer.parseInt((String) request.getSession().getAttribute("driverid"));
      if (userid == null) {
        response.sendRedirect(basePath + "page/admin/login.jsp");
        return;
      }
      Object u = request.getSession().getAttribute("onlineuser"); // 获得当前登录用户的对象
      if (u == null) {
        response.sendRedirect(basePath + "page/admin/login.jsp");
      } // 假如获得不到用户,就重新定向到登录页面
      session.setAttribute("basePath", basePath); // 把basepath放到session中以便所有的页面使用

      out.write("\r\n");
      out.write("\r\n");
      out.write("<!-- 获取当前日期,时间,星期 -->\r\n");

      String week = "";
      if (new Date().getDay() == 0) week = "星期日";
      if (new Date().getDay() == 1) week = "星期一";
      if (new Date().getDay() == 2) week = "星期二";
      if (new Date().getDay() == 3) week = "星期三";
      if (new Date().getDay() == 4) week = "星期四";
      if (new Date().getDay() == 5) week = "星期五";
      if (new Date().getDay() == 6) week = "星期六";
      java.text.SimpleDateFormat formatter = new java.text.SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
      java.util.Date currentTime = new java.util.Date(); // 得到当前系统时间
      String date1 = formatter.format(currentTime); // 将日期时间格式化
      String date2 = currentTime.toString(); // 将Date型日期时间转换成字符串形式

      out.write("\r\n");
      out.write(
          "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<base href=\"");
      out.print(basePath);
      out.write("\" />\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\r\n");
      out.write("<title>机动车网上交通安全宣传教育监管平台</title>\r\n");
      out.write(
          "<link href=\"page/admin/css/style.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n");
      out.write(
          "<script type=\"text/javascript\" src=\"page/admin/javascript/jquery.min.js\"></script>\r\n");
      out.write("<script type=\"text/javascript\">\r\n");
      out.write("\t$(function() {\r\n");
      out.write("\t\t//setMenuHeight\r\n");
      out.write("\t\t$('.menu').height($(window).height() - 56 - 27 - 26);\r\n");
      out.write("\t\t$('.sidebar').height($(window).height() - 56 - 27 - 26);\r\n");
      out.write("\t\t$('.page').height($(window).height() - 56 - 27 - 26);\r\n");
      out.write("\t\t$('.page iframe').width($(window).width() - 15 - 168);\r\n");
      out.write("\t\t$('.subMenu a[href=\"#\"]').next('ul').toggle();\r\n");
      out.write("\t\t//menu on and off\r\n");
      out.write("\t\t$('.btn').click(function() {\r\n");
      out.write("\t\t\t$('.menu').toggle();\r\n");
      out.write("\r\n");
      out.write("\t\t\tif ($(\".menu\").is(\":hidden\")) {\r\n");
      out.write("\t\t\t\t$('iframe').width($(window).width() - 15 + 5);\r\n");
      out.write("\t\t\t} else {\r\n");
      out.write("\t\t\t\t$('iframe').width($(window).width() - 15 - 168);\r\n");
      out.write("\t\t\t}\r\n");
      out.write("\t\t});\r\n");
      out.write(" \r\n");
      out.write("\t\t//\r\n");
      out.write("\t\t$('.subMenu a[href=\"#\"]').click(function() {\r\n");
      out.write("\t\t\t$(this).next('ul').toggle();\r\n");
      out.write("\t\t\treturn false;\r\n");
      out.write("\t\t});\r\n");
      out.write("\t});\r\n");
      out.write("\t\r\n");
      out.write("\tfunction clickmenu(topage){\r\n");
      out.write("\t\t $('iframe')[0].src = topage;\r\n");
      out.write("\t}\r\n");
      out.write("</script>\r\n");
      out.write("\r\n");
      out.write("<!-- 后台页面权限的分配 -->\r\n");
      out.write("<script type=\"text/javascript\">\r\n");
      out.write("//页面初始化进行\r\n");
      out.write("window.onload = function() \r\n");
      out.write("{\r\n");
      out.write("\tif(\"");
      out.print(admin);
      out.write("\" == \"1\")//数据管理员的id号设置为0,当id号为0时,拥有一切权限\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\t$(\"li\").show();\r\n");
      out.write("\t\t\t$(\"#otherreprimand\").remove();\r\n");
      out.write("\t\t\t$(\"#driverreprimand\").remove();\r\n");
      out.write("\t\t\t\r\n");
      out.write("\t\t}\r\n");
      out.write("\telse\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t$(\"li\").hide();\r\n");
      out.write("\t\t$(\"#subMenu\").show();\r\n");
      out.write("\t\t");

      if (dwtype == 0) // 当登录的账号为交警部门时,默认的显示前台页面的8个模块对应的后台数据管理
      {

        out.write("\r\n");
        out.write("\t\t    $(\"#firstpage\").show();\r\n");
        out.write("\t\t\t$(\"#rulenmanage\").show();\r\n");
        out.write("\t\t\t$(\"#edunmanage\").show();\r\n");
        out.write("\t\t\t$(\"#baseinfo\").show();\r\n");
        out.write("\t\t\t$(\"#policeorgmanage\").show();\r\n");
        out.write("\t\t\t$(\"#companymanage\").show();\r\n");
        out.write("\t\t\t$(\"#carmanage\").show();\r\n");
        out.write("\t\t\t$(\"#drivermanage\").show();\r\n");
        out.write("\t\t\t$(\"#rulenmanage\").show();\r\n");
        out.write("\t\t\t$(\"#branchmanage\").show();\r\n");
        out.write("\t\t\t$(\"#safenoticemanage\").show();\r\n");
        out.write("\t\t\t$(\"#meetnoticemanage\").show();\r\n");
        out.write("\t\t\t$(\"#interchangemanage\").show();\r\n");
        out.write("\t\t\t$(\"#micromessagemanage\").show();\r\n");
        out.write("\t\t\t$(\"#editpassword\").show();\r\n");
        out.write("\t\t\t$(\"#reprimand\").show();\r\n");
        out.write("\t\t\t$(\"#carlist\").show();\r\n");
        out.write("\t");
      }
      out.write("\r\n");
      out.write("\t\r\n");
      out.write("\t");

      if (dwtype == 1) // 当登录的账号为货运部门时,默认显示货运公司对应的后台数据管理
      {

        out.write("\r\n");
        out.write("\t    $(\"#firstpage\").show();\r\n");
        out.write("\t\t$(\"#baseinfo\").show();\r\n");
        out.write("\t\t$(\"#interchangemanage\").show();\r\n");
        out.write("\t\t$(\"#editpassword\").show();\r\n");
        out.write("\t\t$(\"#safelearn\").show();\r\n");
        out.write("\t\t$(\"#otherreprimand\").show();\r\n");
        out.write("\t\t$(\"#drivermanage\").show();\r\n");
        out.write("\t\t$(\"#micromessagemanage\").show();\r\n");
        out.write("\t\t$(\"#carmanage\").show();\r\n");
        out.write("\t\t$(\"#companymanage\").show();\r\n");
      }
      out.write("\r\n");
      out.write("\r\n");

      if (dwtype == 2) // 当登录的账号为货运部门的驾驶员时,默认显示货运公司驾驶员对应的后台数据管理
      {

        out.write("\r\n");
        out.write("    $(\"#firstpage\").show();\r\n");
        out.write("\t$(\"#baseinfo\").show();\r\n");
        out.write("\t$(\"#drivermanage\").show();\r\n");
        out.write("\t$(\"#editpassword\").show();\r\n");
        out.write("\t$(\"#interchangemanage\").show();\r\n");
        out.write("\t$(\"#safelearn\").show();\r\n");
        out.write("\t$(\"#micromessagemanage\").show();\r\n");
        out.write("\t$(\"#driverreprimand\").show();\r\n");
      }
      out.write("\r\n");
      out.write("\t\t");

      if (u != null) {
        String string = "";
        for (int i = 0; i < list.size(); i++) {
          string = list.get(i);

          out.write("\r\n");
          out.write("\t\t$(\"#");
          out.print(string);
          out.write("\").show();\r\n");
          out.write("\t\t");
        }
      }
      out.write("\r\n");
      out.write("      }\r\n");
      out.write("}\r\n");
      out.write("</script>\r\n");
      out.write("</head>\r\n");
      out.write("<body>\r\n");
      out.write(
          "\t<table border=\"0\" width=\"100%\" height=\"100%\"style=\"margin: 0; padding: 0; background-color: #198bc9\">\r\n");
      out.write("\t\t<tr>\r\n");
      out.write("\t\t\t<td colspan=\"3\">\r\n");
      out.write("\t\t\t\t<div id=\"header\">\r\n");
      out.write(
          "\t\t\t\t<table border=\"0\" width=\"100%\" height=\"100%\" style=\"margin: 0; padding: 0;\">\r\n");
      out.write("\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t<td width=\"50%\" style=\"text-align:left\">\r\n");
      out.write("\t\t\t\t<div class=\"logo fleft\">&nbsp;</div>\r\n");
      out.write("\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t<td width=\"30%\"></td>\r\n");
      out.write("\t\t\t\t<td width=\"20%\" style=\"text-align:right\">\r\n");
      out.write("\t\t\t\t<div  class=\"logoright fleft\" align=\"right\">&nbsp;</div>\r\n");
      out.write("\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t</tr>\r\n");
      out.write("\t\t\t\t</table>\r\n");
      out.write("\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t</td>\r\n");
      out.write("\t\t</tr>\r\n");
      out.write("\t\t\r\n");
      out.write("\t\t<tr>\r\n");
      out.write("\t\t\t<td colspan=\"3\" align=\"left\">\r\n");
      out.write("\t\t\t<div class=\"logofont\" style=\"margin-left:25px\">\r\n");
      out.write(
          "\t\t\t<table border=\"0\" width=\"100%\" height=\"100%\" style=\"margin: 0; padding: 0;\">\r\n");
      out.write("\t\t\t<tr><td align=\"left\">\r\n");
      out.write("\t\t\t<font>用户:");
      out.print(username);
      out.write("&nbsp;&nbsp;时间:");
      out.print(date1);
      out.write("&nbsp;&nbsp;");
      out.print(week);
      out.write("&nbsp;&nbsp;</font>\r\n");
      out.write("\t\t\t</td>\r\n");
      out.write("\t\t\t<td align=\"right\">\r\n");
      out.write(
          "\t\t\t<a href=\"loginout.action\"><font color=\"#FFFFF0\">退出&nbsp;&nbsp;</font></a>\r\n");
      out.write("\t\t\t</td>\r\n");
      out.write("\t\t\t</tr>\r\n");
      out.write("\t\t\t</table>\r\n");
      out.write("\t\t\t</div>\r\n");
      out.write("\t\t\t</td>\r\n");
      out.write("\t\t</tr>\r\n");
      out.write("\t\t\r\n");
      out.write("\t\t<tr>\r\n");
      out.write("\t\t\t<td width=\"168px\">\r\n");
      out.write("\t\t\t\t<div class=\"menu fleft\">\r\n");
      out.write("\t\t\t\t\t<ul>\r\n");
      out.write("\t\t\t\t\t\t<li class=\"subMenuTitle\" id=\"subMenu\">机动车网安教后台管理</li>\r\n");
      out.write("\t\t\t\t\t\t<li class=\"subMenu\" id=\"firstpage\">首页设置</li>\r\n");
      out.write(
          "\t\t\t\t\t\t<li class=\"subMenu\" id=\"stationmanage\"><a href=\"#\">参数配置</a>\r\n");
      out.write("\t\t\t\t\t\t\t<ul>\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t<li><a href=\"javascript:clickmenu('page/admin/page/config_viewConfigList.action')\">网站信息</a>\r\n");
      out.write("\t\t\t\t\t\t\t\t</li>\r\n");
      out.write("\t\t\t\t\t\t\t</ul></li>\r\n");
      out.write("\r\n");
      out.write(
          "\t\t\t\t\t\t<li class=\"subMenu\" id=\"accountmanage\"><a href=\"#\">系统管理</a>\r\n");
      out.write("\t\t\t\t\t\t\t<ul>\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t<li id=\"rolemanage\"><a href=\"javascript:clickmenu('page/admin/page/role_viewRoleList.action')\">角色管理</a></li>\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t<li id=\"accountmanage\"><a href=\"javascript:clickmenu('page/admin/page/account_viewAccountList.action')\">账号管理</a></li>\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t<li id=\"permisionmanage\"><a href=\"javascript:clickmenu('page/admin/page/permission_viewPermissionList.action')\">权限管理</a></li>\r\n");
      out.write(
          "\t\t\t\t\t\t\t\t<li  id=\"areamanage\"><a href=\"javascript:clickmenu('page/admin/page/areaback_viewAreaList.action')\">地域管理</a></li>\r\n");
      out.write("\t\t\t\t\t\t\t</ul>\r\n");
      out.write("\t\t\t\t\t\t</li>\r\n");
      out.write("\t\t\t\t\t\t\r\n");
      out.write(
          "\t\t\t\t\t\t<li class=\"subMenu\" id=\"rulenmanage\"><a href=\"javascript:clickmenu('page/admin/page/ruleback_viewRuleList.action')\">交通法规</a></li>\r\n");
      out.write(
          "\t\t\t\t\t\t<li class=\"subMenu\" id=\"edunmanage\"><a href=\"javascript:clickmenu('page/admin/page/eduback_viewEduList.action')\">宣教中心</a></li>\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t <li class=\"subMenu\" id=\"baseinfo\"><a href=\"#\">基本信息</a>\r\n");
      out.write("\t\t\t\t\t\t <ul>\r\n");
      out.write(
          "\t\t\t\t\t\t    <!-- <li id=\"policeorgmanage\"><a href=\"javascript:clickmenu('page/admin/page/orgback_viewPoliceOrgList.action')\">交警部门</a></li> -->\r\n");
      out.write(
          "\t\t\t\t\t\t    <li  id=\"orgmanage\"><a href=\"javascript:clickmenu('page/admin/page/policeorgback_viewPoliceOrgList.action')\">交警部门</a></li>\r\n");
      out.write(
          "\t\t\t\t\t\t    <li class=\"subMenu\" id=\"carlist\"><a href=\"javascript:clickmenu('page/admin/page/policeback_viewPoliceList.action')\">交警信息</a></li>\r\n");
      out.write(
          "\t\t\t\t\t\t\t<li id=\"companymanage\"><a href=\"javascript:clickmenu('page/admin/page/companyback_viewCompanyList.action')\">企业安全组</a></li>\r\n");
      out.write(
          "\t\t\t\t\t\t\t<li id=\"carmanage\"><a href=\"javascript:clickmenu('page/admin/page/carback_viewCarList.action')\">车辆管理</a></li>\r\n");
      out.write(
          "\t\t\t\t\t\t\t<li id=\"drivermanage\"><a href=\"javascript:clickmenu('page/admin/page/driverback_viewDriverList.action')\">驾驶员管理</a></li>\r\n");
      out.write(
          "\t\t\t\t\t\t  \t<li class=\"subMenu\" id=\"editpassword\"><a href=\"javascript:clickmenu('page/admin/page/account_viewPassword.action?id=");
      out.print(userid);
      out.write("')\">修改密码</a></li>\r\n");
      out.write("\t\t\t\t\t\t  </ul>\r\n");
      out.write("\t\t\t\t\t </li>\r\n");
      out.write(
          "\t\t\t\t\t\t<li class=\"subMenu\" id=\"rulenmanage\"><a href=\"javascript:clickmenu('page/admin/page/illegalback_viewIllegalList.action')\">违法查询</a></li>\r\n");
      out.write("\r\n");
      out.write(
          "\t\t\t\t\t\t<li class=\"subMenu\" id=\"branchmanage\"><a href=\"javascript:clickmenu('page/admin/page/branchback_viewBranchList.action')\">快速处理点</a></li>\r\n");
      out.write("\r\n");
      out.write(
          "\t\t\t\t\t\t<li class=\"subMenu\" id=\"safenoticemanage\"><a href=\"javascript:clickmenu('page/admin/page/safenoticeback_viewSafeNoticeList.action')\">安全提醒</a></li>\r\n");
      out.write("\r\n");
      out.write(
          "\t\t\t\t\t\t<li class=\"subMenu\" id=\"meetnoticemanage\"><a href=\"javascript:clickmenu('page/admin/page/meetnoticeback_viewMeetNoticeList.action')\">会议通知</a></li>\r\n");
      out.write("\r\n");
      out.write(
          "\t\t\t\t\t\t<li class=\"subMenu\" id=\"safelearn\"><a href=\"javascript:clickmenu('page/admin/page/safelearnback_viewEduList.action')\">安全教育学习</a></li>\r\n");
      out.write("\t\t\t\t\t\t\r\n");
      out.write(
          "\t\t\t\t\t\t<li class=\"subMenu\" id=\"reprimand\"><a href=\"javascript:clickmenu('page/admin/page/reprimandback_viewReprimandList.action')\">通报批评</a></li>\r\n");
      out.write("\t\t\t\t\t\r\n");
      out.write(
          "\t\t\t\t\t    <li class=\"subMenu\" id=\"otherreprimand\"><a href=\"javascript:clickmenu('page/admin/page/otherreprimandback_viewReprimandList.action')\">通报批评</a></li>\r\n");
      out.write("\t\t\t\t\t    \r\n");
      out.write(
          "\t\t\t\t\t    <li class=\"subMenu\" id=\"driverreprimand\"><a href=\"javascript:clickmenu('page/admin/page/otherreprimandback_showDriverReprimand.action')\">通报批评</a></li>\r\n");
      out.write("\t\t\t\t\t   \r\n");
      out.write(
          "\t\t\t\t\t    <li class=\"subMenu\" id=\"interchangemanage\"><a href=\"javascript:clickmenu('page/admin/page/interchangeback_viewInterchangeList.action')\">问题答疑</a></li>\r\n");
      out.write("\r\n");
      out.write(
          "\t\t\t\t\t\t<li class=\"subMenu\" id=\"micromessagemanage\"><a href=\"javascript:clickmenu('page/admin/page/micromessage/micromessagelist.jsp')\">微博互动</a></li>\r\n");
      out.write("\t\t\t\t\t\r\n");
      out.write("\t\t\t\t\t</ul>\r\n");
      out.write("\t\t\t\t\t\r\n");
      out.write("\t\t\t\t</div>\r\n");
      out.write("\t\t\t</td>\r\n");
      out.write("\t\t\t<td width=\"5px\">\r\n");
      out.write("\t\t\t\t<div class=\"sidebar fleft\">\r\n");
      out.write("\t\t\t\t\t<div class=\"btn\"></div>\r\n");
      out.write("\t\t\t\t</div>\r\n");
      out.write("\t\t\t</td>\r\n");
      out.write("\t\t\t<td class=\"page\"><iframe width=\"100%\" scrolling=\"auto\"\r\n");
      out.write("\t\t\t\t\theight=\"100%\" FRAMEBORDER=0 style=\"border: medium none;\"\r\n");
      out.write(
          "\t\t\t\t\tsrc=\"/TrafficPolice/page/admin/page/Startpage.jsp\" id=\"rightMain\"\r\n");
      out.write("\t\t\t\t\tname=\"right\"></iframe>\r\n");
      out.write("\t\t\t</td>\r\n");
      out.write("\t\t</tr>\r\n");
      out.write("\t\t<tr>\r\n");
      out.write("\t\t\t<td colspan=\"3\"><div id=\"footer\"></div></td>\r\n");
      out.write("\t\t</tr>\r\n");
      out.write("\t</table>\r\n");
      out.write("</body>\r\n");
      out.write("\r\n");
      out.write("</html>");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            out.clearBuffer();
          } catch (java.io.IOException e) {
          }
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }