package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
import java.util.*;
import java.sql.*;
import org.apache.log4j.Category;
import jp.co.sint.database.*;
import jp.co.sint.basic.*;
import jp.co.sint.tools.*;
import jp.co.sint.config.*;
import jp.co.sint.beans.mallmgr.*;

public class man_login_jsp extends HttpJspBase {


  private static java.util.Vector _jspx_includes;

  static {
    _jspx_includes = new java.util.Vector(1);
    _jspx_includes.add("/mallmgr/../include/man_meta_inc.jsp");
  }

  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_webshop_actionErrors;
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_datetime_format_pattern;
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_datetime_currentTime_nobody;

  public man_login_jsp() {
    _jspx_tagPool_webshop_actionErrors = new org.apache.jasper.runtime.TagHandlerPool();
    _jspx_tagPool_datetime_format_pattern = new org.apache.jasper.runtime.TagHandlerPool();
    _jspx_tagPool_datetime_currentTime_nobody = new org.apache.jasper.runtime.TagHandlerPool();
  }

  public java.util.List getIncludes() {
    return _jspx_includes;
  }

  public void _jspDestroy() {
    _jspx_tagPool_webshop_actionErrors.release();
    _jspx_tagPool_datetime_format_pattern.release();
    _jspx_tagPool_datetime_currentTime_nobody.release();
  }

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

    JspFactory _jspxFactory = null;
    javax.servlet.jsp.PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;


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

//7.2.0 ST0325 追加
//7.4.0 ST2060 修正
      out.write("\r\n");

/**
 * Copyright (c) 2003-2004 System Integrator Corporation.
 *                 All Rights Reserved.
 * @version $Id : mallmgr/man_login.jsp,v 1.0 2003/10/01 Exp $
 * @author      : Jinwang Chen
 * @Description : 管理ログイン
 * @History
 * Author         Date        Reason
 * ============   ==========  ===========================
 * Jinwang Chen   2003/10/01  Original
 */

      out.write("\r\n");
//@ page contentType="text/html;charset=Shift_JIS" 
//7.2.0 ST0325 削除
      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");
      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");
      out.write("\r\n");
      out.write("\r\n");

String webshopSite=SIHTMLUtil.getRootPath(request);
//ログ用のインスタンスの生成
Category log=Category.getInstance(SIConfig.SILOG4J_WEBSHOP_CATEGORY_NAME);

SIHTMLUtil.initRequest(request,SIConfig.SISESSION_MAN_LOGIN_EDIT_NAME);
UILogin loginID=(UILogin)session.getAttribute(SIConfig.SISESSION_MAN_LOGIN_EDIT_NAME);
if (loginID==null)loginID=new UILogin();

      out.write("\r\n");
      out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r\n");
      out.write("<html LANG=\"ja-JP\">\r\n");
      out.write("<head>\r\n");

/**
 * Copyright (c) 2003-2004 System Integrator Corporation.
 *                 All Rights Reserved.
 * @version $Id : include/man_meta_inc.jsp,v 1.0 2003/10/14 R.Tosaka Exp $
 * @author      : R.Tosaka
 * @Description : 管理画面共通で使用するmetaタグ用スクリプト
 * @History
 * Author         Date        Reason
 * ============   ==========  ===========================
 * R.Tosaka       2003/10/14  Original
 */

      out.write("\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=Shift_JIS\">\r\n");
      out.write("<meta http-equiv=\"Content-Script-Type\" content=\"text/javascript\">\r\n");
      out.write("<meta http-equiv=\"Content-Style-Type\" content=\"text/css\">");
      out.write("\r\n");
      out.write("<title>SI Web Shopping Ver.7 管理ログイン");
      out.write("</title>\r\n");
      out.write("<link href=\"");
      out.print(webshopSite);
      out.write("/style/SuperCSS.css\" rel=\"stylesheet\" type=\"text/css\">\r\n");
      out.write("<script language=\"javascript1.2\" type=\"text/javascript\" SRC=\"");
      out.print(webshopSite);
      out.write("/script/SIAppCommon.js\">");
      out.write("</script>\r\n");
      out.write("<script language=\"javascript\" type=\"text/javascript\">\r\n");
      out.write("<!--\r\nfunction enterSearch(){\r\n  if (event.keyCode == 13){\r\n    sendAction('");
      out.print(SIConfig.SIACTION_LOGIN);
      out.write("');\r\n  }\r\n} \r\nfunction loginAlert(){\r\n  window.alert('データ移行作業中のため、現在ログインを禁止しております。');\r\n  return;\r\n}\r\n//-->\r\n");
      out.write("</script>\r\n\r\n");
      out.write("</head>\r\n");
      out.write("<BODY class=\"Back_Edit_ScreenBG\" onload=\"focusElement()\" onkeypress=\"enterSearch()\">\r\n");
      out.write("<form name=\"webshopFrm\" action=\"");
      out.print(SIURLMap.getHttpsUrl(request,"webshop.servlet.manager.login"));
      out.write("\" method=\"post\">");
//7.1.1 ST0174 修正
      out.write("\r\n");
      out.write("<CENTER>");
      out.write("<BR>");
      out.write("<BR>");
      out.write("<BR>");
      out.write("<BR>\r\n");
      out.write("<IMG src=\"");
      out.print(webshopSite);
      out.write("/image/mallmgr/lbl_LoginBaner.gif\" width=\"400\" height=\"80\">");
      out.write("<BR>\r\n");
      out.write("<TABLE width=\"354\">\r\n  ");
      out.write("<TR>\r\n    ");
      out.write("<TD>\r\n      ");
      out.write("<br>\r\n      ");
      out.write("<span class=\"Text_ErrorMessage\">\r\n      ");
      out.write("<ul>\r\n      ");
      if (_jspx_meth_webshop_actionErrors_0(pageContext))
        return;
      out.write("\r\n      ");
      out.write("</ul>\r\n      ");
      out.write("</span>\r\n    ");
      out.write("</TD>\r\n  ");
      out.write("</TR>\r\n");
      out.write("</TABLE>\r\n");
      out.write("<TABLE height=237 width=354>\r\n  ");
      out.write("<TBODY>\r\n  ");
      out.write("<TR>\r\n    ");
      out.write("<TD background=\"");
      out.print(webshopSite);
      out.write("/image/mallmgr/card.gif\">\r\n      ");
      out.write("<DIV align=center>");
      out.write("<BR>");
      out.write("<BR>");
      out.write("<BR>\r\n      ");
      out.write("<TABLE>\r\n        ");
      out.write("<TBODY>\r\n\t\t");
      out.write("<INPUT type=\"hidden\" name=\"mallShopCodeTxt\" value=\"0\">\r\n        ");
      out.write("<TR>\r\n          ");
      out.write("<TD>");
      out.write("<p align=\"center\">");
      out.write("<b>");
      out.write("<font size=\"2\" color=\"#FFFFFF\">管理者ID");
      out.write("</font>");
      out.write("</b>");
      out.write("</TD>\r\n          ");
      out.write("<TD>");
      out.write("<INPUT type=\"text\" class=\"Form_TextBox_imeInactive\" name=\"adminNameTxt\" size=\"20\" maxLength=\"16\" value=\"");
      out.print(SIHTMLUtil.HTMLEncode(loginID.getAdminNameTxt()));
      out.write("\">");
      out.write("</TD>\r\n        ");
      out.write("</TR>\r\n        ");
      out.write("<TR>\r\n          ");
      out.write("<TD>");
      out.write("<b>");
      out.write("<font size=\"2\" color=\"#FFFFFF\">パスワード");
      out.write("</font>");
      out.write("</b>");
      out.write("</TD>\r\n          ");
      out.write("<TD>");
      out.write("<INPUT type=\"password\" class=\"Form_TextBox_imeInactive\" name=\"adminPassTxt\" size=\"20\" maxLength=\"16\" value=\"");
      out.print(SIHTMLUtil.HTMLEncode(loginID.getAdminPassTxt()));
      out.write("\">");
      out.write("</TD>\r\n        ");
      out.write("</TR>\r\n        ");
      out.write("</TBODY>\r\n      ");
      out.write("</TABLE>\r\n      ");
      out.write("\r\n      ");
      out.write("<INPUT type=\"button\"  name=\"logonBtn\" value=\"ログイン\" onClick=\"sendAction('");
      out.print(SIConfig.SIACTION_LOGIN);
      out.write("')\">\r\n      ");
      out.write("<INPUT type=\"button\"  name=\"resetBtn\" value=\"リセット\" onClick=\"sendAction('");
      out.print(SIConfig.SIACTION_RESET);
      out.write("')\">\r\n      ");
      out.write("</DIV>\r\n    ");
      out.write("</TD>\r\n  ");
      out.write("</TR>\r\n  ");
      out.write("</TBODY>\r\n");
      out.write("</TABLE>\r\n");
      out.write("</CENTER>\r\n");
      out.write("<input type=\"hidden\" name=\"actionNameTxt\" value=\"\">\r\n");
      out.write("</form>\r\n");
      out.write("</BODY>\r\n");
      out.write("</HTML>\r\n");
    } catch (Throwable t) {
      out = _jspx_out;
      if (out != null && out.getBufferSize() != 0)
        out.clearBuffer();
      if (pageContext != null) pageContext.handlePageException(t);
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
    }
  }

  private boolean _jspx_meth_webshop_actionErrors_0(javax.servlet.jsp.PageContext pageContext)
          throws Throwable {
    JspWriter out = pageContext.getOut();
    /* ----  webshop:actionErrors ---- */
    jp.co.sint.taglib.SIActionErrorsTag _jspx_th_webshop_actionErrors_0 = (jp.co.sint.taglib.SIActionErrorsTag) _jspx_tagPool_webshop_actionErrors.get(jp.co.sint.taglib.SIActionErrorsTag.class);
    _jspx_th_webshop_actionErrors_0.setPageContext(pageContext);
    _jspx_th_webshop_actionErrors_0.setParent(null);
    int _jspx_eval_webshop_actionErrors_0 = _jspx_th_webshop_actionErrors_0.doStartTag();
    if (_jspx_eval_webshop_actionErrors_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      if (_jspx_eval_webshop_actionErrors_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
        javax.servlet.jsp.tagext.BodyContent _bc = pageContext.pushBody();
        out = _bc;
        _jspx_th_webshop_actionErrors_0.setBodyContent(_bc);
        _jspx_th_webshop_actionErrors_0.doInitBody();
      }
      do {
        out.write("\r\n      下記のメッセージの発生日時は、");
        if (_jspx_meth_datetime_format_0(_jspx_th_webshop_actionErrors_0, pageContext))
          return true;
        out.write("です。\r\n      ");
        int evalDoAfterBody = _jspx_th_webshop_actionErrors_0.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
      if (_jspx_eval_webshop_actionErrors_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
        out = pageContext.popBody();
    }
    if (_jspx_th_webshop_actionErrors_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
      return true;
    _jspx_tagPool_webshop_actionErrors.reuse(_jspx_th_webshop_actionErrors_0);
    return false;
  }

  private boolean _jspx_meth_datetime_format_0(javax.servlet.jsp.tagext.Tag _jspx_th_webshop_actionErrors_0, javax.servlet.jsp.PageContext pageContext)
          throws Throwable {
    JspWriter out = pageContext.getOut();
    /* ----  datetime:format ---- */
    org.apache.taglibs.datetime.FormatTag _jspx_th_datetime_format_0 = (org.apache.taglibs.datetime.FormatTag) _jspx_tagPool_datetime_format_pattern.get(org.apache.taglibs.datetime.FormatTag.class);
    _jspx_th_datetime_format_0.setPageContext(pageContext);
    _jspx_th_datetime_format_0.setParent(_jspx_th_webshop_actionErrors_0);
    _jspx_th_datetime_format_0.setPattern("yyyy/MM/dd HH:mm:ss");
    int _jspx_eval_datetime_format_0 = _jspx_th_datetime_format_0.doStartTag();
    if (_jspx_eval_datetime_format_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      if (_jspx_eval_datetime_format_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
        javax.servlet.jsp.tagext.BodyContent _bc = pageContext.pushBody();
        out = _bc;
        _jspx_th_datetime_format_0.setBodyContent(_bc);
        _jspx_th_datetime_format_0.doInitBody();
      }
      do {
        if (_jspx_meth_datetime_currentTime_0(_jspx_th_datetime_format_0, pageContext))
          return true;
        int evalDoAfterBody = _jspx_th_datetime_format_0.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
      if (_jspx_eval_datetime_format_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
        out = pageContext.popBody();
    }
    if (_jspx_th_datetime_format_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
      return true;
    _jspx_tagPool_datetime_format_pattern.reuse(_jspx_th_datetime_format_0);
    return false;
  }

  private boolean _jspx_meth_datetime_currentTime_0(javax.servlet.jsp.tagext.Tag _jspx_th_datetime_format_0, javax.servlet.jsp.PageContext pageContext)
          throws Throwable {
    JspWriter out = pageContext.getOut();
    /* ----  datetime:currentTime ---- */
    org.apache.taglibs.datetime.CurrentTimeTag _jspx_th_datetime_currentTime_0 = (org.apache.taglibs.datetime.CurrentTimeTag) _jspx_tagPool_datetime_currentTime_nobody.get(org.apache.taglibs.datetime.CurrentTimeTag.class);
    _jspx_th_datetime_currentTime_0.setPageContext(pageContext);
    _jspx_th_datetime_currentTime_0.setParent(_jspx_th_datetime_format_0);
    int _jspx_eval_datetime_currentTime_0 = _jspx_th_datetime_currentTime_0.doStartTag();
    if (_jspx_th_datetime_currentTime_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
      return true;
    _jspx_tagPool_datetime_currentTime_nobody.reuse(_jspx_th_datetime_currentTime_0);
    return false;
  }
}
