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.front.*;
import jp.co.sint.beans.mallmgr.*;

public class man_cust_address_conf_jsp extends HttpJspBase {


  private static java.util.Vector _jspx_includes;

  static {
    _jspx_includes = new java.util.Vector(4);
    _jspx_includes.add("/mallmgr/cust/../../include/man_chk_login_inc.jsp");
    _jspx_includes.add("/mallmgr/cust/../../include/man_meta_inc.jsp");
    _jspx_includes.add("/mallmgr/cust/../../include/man_header_popup_inc.jsp");
    _jspx_includes.add("/mallmgr/cust/../../include/man_footer_popup_inc.jsp");
  }

  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_webshop_isFalse_value;
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_response_sendRedirect;

  public man_cust_address_conf_jsp() {
    _jspx_tagPool_webshop_isFalse_value = new org.apache.jasper.runtime.TagHandlerPool();
    _jspx_tagPool_response_sendRedirect = new org.apache.jasper.runtime.TagHandlerPool();
  }

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

  public void _jspDestroy() {
    _jspx_tagPool_webshop_isFalse_value.release();
    _jspx_tagPool_response_sendRedirect.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 : customer/addr_edit.jsp,v 1.0 2003/12/09 Exp $
 * @author      : Jinwang Chen
 * @Description : アドレス帳編集
 * @History
 * Author         Date        Reason
 * ============   ==========  ===========================
 * Jinwang Chen   2003/12/09  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");
      out.write("\r\n");
      out.write("\r\n");
/**ユーザーログイン情報のチェックのセクション*/
      out.write("\r\n");

/**
 * Copyright (c) 2003-2004 System Integrator Corporation.
 *                 All Rights Reserved.
 * @version $Id : include/man_chk_login_inc.jsp,v 1.0 2003/10/01 Exp $
 * @author      : Jinwang Chen
 * @Description : 管理画面に管理者がログインでかどうかをチェックします。
 *                 ログインしなければ、自動的に管理のトップログイン画面への遷移
 * @History
 * Author         Date        Reason
 * ============   ==========  ===========================
 * J.W.Chen       2003/10/01  Original
 */

      out.write("\r\n\r\n");
      out.write("\r\n");
      out.write("\r\n\r\n");
SILogin manLogin=SIHTMLUtil.getLogin(request);
      out.write("\r\n");
//7.3.0 ST2022 修正 ここから
      out.write("\r\n");
      out.write("\r\n");
      /* ----  webshop:isFalse ---- */
      jp.co.sint.taglib.SIIsFalseTag _jspx_th_webshop_isFalse_0 = (jp.co.sint.taglib.SIIsFalseTag) _jspx_tagPool_webshop_isFalse_value.get(jp.co.sint.taglib.SIIsFalseTag.class);
      _jspx_th_webshop_isFalse_0.setPageContext(pageContext);
      _jspx_th_webshop_isFalse_0.setParent(null);
      _jspx_th_webshop_isFalse_0.setValue(manLogin.isLogin(request));
      int _jspx_eval_webshop_isFalse_0 = _jspx_th_webshop_isFalse_0.doStartTag();
      if (_jspx_eval_webshop_isFalse_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        do {
          out.write("\r\n");
//7.3.0 ST2022 修正 ここまで
          out.write("\r\n");
if (!SIConfig.SIWEBSHOP_MAN_DEVELOPING) {
          out.write("\r\n  ");
          /* ----  response:sendRedirect ---- */
          org.apache.taglibs.response.SendRedirectTag _jspx_th_response_sendRedirect_0 = (org.apache.taglibs.response.SendRedirectTag) _jspx_tagPool_response_sendRedirect.get(org.apache.taglibs.response.SendRedirectTag.class);
          _jspx_th_response_sendRedirect_0.setPageContext(pageContext);
          _jspx_th_response_sendRedirect_0.setParent(_jspx_th_webshop_isFalse_0);
          int _jspx_eval_response_sendRedirect_0 = _jspx_th_response_sendRedirect_0.doStartTag();
          if (_jspx_eval_response_sendRedirect_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
            if (_jspx_eval_response_sendRedirect_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
              javax.servlet.jsp.tagext.BodyContent _bc = pageContext.pushBody();
              out = _bc;
              _jspx_th_response_sendRedirect_0.setBodyContent(_bc);
              _jspx_th_response_sendRedirect_0.doInitBody();
            }
            do {
              out.print(SIURLMap.getHttpsUrl(request,"webshop.jsp.manager.login"));
              int evalDoAfterBody = _jspx_th_response_sendRedirect_0.doAfterBody();
              if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                break;
            } while (true);
            if (_jspx_eval_response_sendRedirect_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
              out = pageContext.popBody();
          }
          if (_jspx_th_response_sendRedirect_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
            return;
          _jspx_tagPool_response_sendRedirect.reuse(_jspx_th_response_sendRedirect_0);
//7.1.1 ST0174 修正
          out.write("\r\n");
}
          out.write("\r\n");
//7.3.0 ST2022 修正 ここから
          out.write("\r\n");
          out.write("\r\n");
          int evalDoAfterBody = _jspx_th_webshop_isFalse_0.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
      }
      if (_jspx_th_webshop_isFalse_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
        return;
      _jspx_tagPool_webshop_isFalse_value.reuse(_jspx_th_webshop_isFalse_0);
      out.write("\r\n");
//7.3.0 ST2022 修正 ここまで
      out.write("\r\n");
      out.write("\r\n");

//ログ用のインスタンスの生成(common)
Category log=Category.getInstance(SIConfig.SILOG4J_WEBSHOP_CATEGORY_NAME);
//本画面に関わるbeansのデータ
UICustAddress custAddrEditID=(UICustAddress)session.getAttribute(SIConfig.SISESSION_ADDR_EDIT_NAME);
if (custAddrEditID==null)custAddrEditID=new UICustAddress();
//各サイトの設定(common)
String webshopSite=SIHTMLUtil.getRootPath(request);
String addrSrvSite=SIURLMap.getHttpsUrl(request,"webshop.servlet.manager.address");
int spaceNum=18;

      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>アドレス帳編集 （登録確認）");
      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("</head>\r\n");
      out.write("<body>\r\n");
      out.write("<form name=\"webshopFrm\" action=\"");
      out.print(addrSrvSite);
      out.write("\" method=\"post\">\r\n");
      out.write("<table width=\"800\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" summary=\"Header\">\r\n  ");
      out.write("<tr>\r\n    ");
      out.write("<td>");

/**
 * Copyright (c) 2003-2004 System Integrator Corporation.
 *                 All Rights Reserved.
 * @version $Id : include/man_header_popup_inc.jsp,v 1.0 2003/07/28 jwchen Exp $
 * @author      : Shionoya Yoshiaki
 * @Description : 管理画面（ポップアップウィンドウ）に共通のヘッダ部分を表示するようのスクリプト
 * @History
 * Author         Date        Reason
 * ============   ==========  ===========================
 * Shionoya Yoshiaki      2004/01/30  Original
 */

      out.write("\r\n");
      out.write("<img src=\"");
      out.print(SIHTMLUtil.getRootPath(request));
      out.write("/image/mallmgr/WS_Title800.gif\" alt=\"Title\" width=\"100%\" height=\"30\">");
      out.write("</td>\r\n  ");
      out.write("</tr>\r\n  ");
      out.write("<tr>\r\n    ");
      out.write("<td width=\"100%\" height=\"410\" valign=\"top\" class=\"Back_Edit_ScreenBG\">\r\n      ");
      out.write("<span class=\"Back_Edit_TitleText\">アドレス帳編集（登録確認）");
      out.write("</span>\r\n      ");
      out.write("<br>");
      out.write("<br>\r\n      ");
      out.write("<span class=\"Text_ErrorMessage\">この内容で登録します。よろしいですか？");
      out.write("</span>\r\n      ");
      out.write("<br>");
      out.write("<br>\r\n      ");
      out.write("<table width=\"700\" border=\"0\" cellpadding=\"3\" cellspacing=\"1\" class=\"Back_Edit_TableBorder\" summary=\"入力欄\">\r\n        ");
      out.write("<tr class=\"Back_Edit_ScreenBG\">\r\n          ");
      out.write("<td valign=\"middle\" class=\"Back_Edit_HeaderCell\">項目");
      out.write("</td>\r\n          ");
      out.write("<td valign=\"middle\" class=\"Back_Edit_HeaderCell\">値");
      out.write("</td>\r\n        ");
      out.write("</tr>\r\n        ");
      out.write("<tr>\r\n          ");
      out.write("<td valign=\"middle\" class=\"Back_Edit_DataCell_Label\">配送先呼称");
      out.write("</td>\r\n          ");
      out.write("<td valign=\"middle\" class=\"Back_Edit_DataCell\">");
      out.write("<span class=\"Text_UserMessage\">");
      out.print(SIHTMLUtil.HTMLEncode(custAddrEditID.getDeliveryName()));
      out.write("</span>");
      out.write("</td>\r\n        ");
      out.write("</tr>\r\n        ");
      out.write("<tr>\r\n          ");
      out.write("<td valign=\"middle\" class=\"Back_Edit_DataCell_Label\">宛名");
      out.write("</td>\r\n          ");
      out.write("<td valign=\"middle\" class=\"Back_Edit_DataCell\">");
      out.write("<span class=\"Text_UserMessage\">");
      out.print(SIHTMLUtil.HTMLEncode(custAddrEditID.getDeliveryAddressee()));
      out.write("</span>");
      out.write("</td>\r\n        ");
      out.write("</tr>\r\n        ");
      out.write("\r\n        ");
      out.write("<tr>\r\n          ");
      out.write("<td valign=\"middle\" class=\"Back_Edit_DataCell_Label\">郵便番号");
      out.write("</td>\r\n          ");
      out.write("<td valign=\"middle\" class=\"Back_Edit_DataCell\">");
      out.write("<span class=\"Text_UserMessage\">");
      out.print(SIHTMLUtil.HTMLEncode(custAddrEditID.getPostCode()));
      out.write("</span>");
      out.write("</td>\r\n        ");
      out.write("</tr>\r\n        ");
      out.write("<tr>\r\n          ");
      out.write("<td valign=\"middle\" class=\"Back_Edit_DataCell_Label\">住所１（都道府県）");
      out.write("</td>\r\n          ");
      out.write("<td valign=\"middle\" class=\"Back_Edit_DataCell\">");
      out.write("<span class=\"Text_UserMessage\">");
      out.print(SIHTMLUtil.HTMLEncode(custAddrEditID.getAddress1()));
      out.write("</span>");
      out.write("</td>\r\n        ");
      out.write("</tr>\r\n        ");
      out.write("<tr>\r\n          ");
      out.write("<td valign=\"middle\" class=\"Back_Edit_DataCell_Label\">住所２（市区町村・番地）");
      out.write("</td>\r\n          ");
      out.write("<td valign=\"middle\" class=\"Back_Edit_DataCell\">");
      out.write("<span class=\"Text_UserMessage\">");
      out.print(SIHTMLUtil.HTMLEncode(custAddrEditID.getAddress2()));
      out.write("</span>");
      out.write("</td>\r\n        ");
      out.write("</tr>\r\n        ");
      out.write("<tr>\r\n          ");
      out.write("<td valign=\"middle\" class=\"Back_Edit_DataCell_Label\">住所３（ビル名・階など）");
      out.write("</td>\r\n          ");
      out.write("<td valign=\"middle\" class=\"Back_Edit_DataCell\">");
      out.write("<span class=\"Text_UserMessage\">");
      out.print(SIHTMLUtil.HTMLEncode(custAddrEditID.getAddress3()));
      out.write("</span>");
      out.write("</td>\r\n        ");
      out.write("</tr>\r\n        ");
      out.write("<tr>\r\n          ");
      out.write("<td valign=\"middle\" class=\"Back_Edit_DataCell_Label\">サロン名");
      out.write("</td>");
//7.3.0 PI-NES0501 修正
      out.write("\r\n          ");
      out.write("<td valign=\"middle\" class=\"Back_Edit_DataCell\">");
      out.write("<span class=\"Text_UserMessage\">");
      out.print(SIHTMLUtil.HTMLEncode(custAddrEditID.getCompanyName()));
      out.write("</span>");
      out.write("</td>\r\n        ");
      out.write("</tr>\r\n        ");
      out.write("<tr>\r\n          ");
      out.write("<td valign=\"middle\" class=\"Back_Edit_DataCell_Label\">会社名");
      out.write("</td>\r\n          ");
      out.write("<td valign=\"middle\" class=\"Back_Edit_DataCell\">");
      out.write("<span class=\"Text_UserMessage\">");
      out.print(SIHTMLUtil.HTMLEncode(custAddrEditID.getCorporationName()));
      out.write("</span>");
      out.write("</td>\r\n        ");
      out.write("</tr>\r\n        ");
      out.write("<tr>\r\n          ");
      out.write("<td valign=\"middle\" class=\"Back_Edit_DataCell_Label\">連絡先電話番号");
      out.write("</td>\r\n          ");
      out.write("<td valign=\"middle\" class=\"Back_Edit_DataCell\">");
      out.write("<span class=\"Text_UserMessage\">");
      out.print(SIHTMLUtil.HTMLEncode(custAddrEditID.getTel()));
      out.write("</span>");
      out.write("</td>\r\n        ");
      out.write("</tr>\r\n      ");
      out.write("</table>\r\n      ");
      out.write("<br>\r\n      ");
      out.write("<table width=\"700\" summary=\"ボタン\">\r\n        ");
      out.write("<tr>\r\n          ");
      out.write("<td width=\"400\">");
      out.write("</td>\r\n          ");
      out.write("<td width=\"140\" align=\"right\">");
      out.write("<a href=\"javascript:sendAction('");
      out.print(SIConfig.SIACTION_REMODIFY);
      out.write("')\">");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/image/mallmgr/btn_L_Back.gif\" alt=\"戻る\" width=\"125\" height=\"30\" class=\"imgBtn\">");
      out.write("</a>");
      out.write("</td>");
//7.1.1 ST1090 修正
      out.write("\r\n          ");
      out.write("<td width=\"140\" align=\"right\">");
      out.write("<a href=\"javascript:sendAction('");
      out.print(SIConfig.SIACTION_REGIST);
      out.write("')\">");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/image/mallmgr/btn_L_Submit.gif\" alt=\"登録\" width=\"125\" height=\"30\" class=\"imgBtn\">");
      out.write("</a>");
      out.write("</td>");
//7.1.1 ST1090 修正
      out.write("\r\n          ");
      out.write("<td width= \"20\">");
      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>");
      out.write("<td width=\"100%\" height=\"20\">");

/**
 * Copyright (c) 2003-2004 System Integrator Corporation.
 *                 All Rights Reserved.
 * @version $Id : include/man_footer_popup_inc.jsp,v 1.0 2004/01/30 Shionoya Exp $
 * @author      : Shionoya Yoshiaki
 * @Description : 管理画面（ポップアップ）に共通のフッタ部分を表示するようのスクリプト
 * @History
 * Author         Date        Reason
 * ============   ==========  ===========================
 * J.W.Chen       2004/01/30  Original
 */

      out.write("\r\n");
      out.write("<img src=\"");
      out.print(SIHTMLUtil.getRootPath(request));
      out.write("/image/mallmgr/WS_Footer800.gif\" alt=\"Footer\" width=\"100%\" height=\"20\">");
      out.write("</td>");
      out.write("</tr>\r\n");
      out.write("</table>\r\n");
      out.write("<input type=\"hidden\" name=\"callflag\" value=\"");
      out.print(custAddrEditID.getCallFlag());
      out.write("\">\r\n");
      out.write("<input type=\"hidden\" name=\"actionNameTxt\" value=\"");
      out.print(custAddrEditID.getActionNameTxt());
      out.write("\">\r\n");
      out.write("<input type=\"hidden\" name=\"editModeTxt\" value=\"");
      out.print(custAddrEditID.getEditModeTxt());
      out.write("\">\r\n");
      out.write("</form>\r\n");
      out.write("</body>\r\n");
      out.write("</html>");
    } 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);
    }
  }
}
