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.mobile.au.*;
import jp.co.sint.tools.*;

public class a_member_registry_main_jsp extends HttpJspBase {


  private static java.util.Vector _jspx_includes;

  static {
    _jspx_includes = new java.util.Vector(3);
    _jspx_includes.add("/mobile/au/customer/../include/a_header_inc.jsp");
    _jspx_includes.add("/include/mobile_filter.jsp");
    _jspx_includes.add("/mobile/au/customer/../include/a_footer_inc.jsp");
  }

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

  public a_member_registry_main_jsp() {
    _jspx_tagPool_response_sendRedirect = new org.apache.jasper.runtime.TagHandlerPool();
    _jspx_tagPool_webshop_notEmpty_value = new org.apache.jasper.runtime.TagHandlerPool();
  }

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

  public void _jspDestroy() {
    _jspx_tagPool_response_sendRedirect.release();
    _jspx_tagPool_webshop_notEmpty_value.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/a_error.jsp", true, 8192, true);
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

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

/**
 * Copyright (c) 2003-2004 System Integrator Corporation.
 *                 All Rights Reserved.
 * @version $Id : a_mall_company.jsp,v 1.0 2004/02/26 Exp $
 * @author      : asakura
 * @Description : モール情報
 * @History
 * Author         Date        Reason
 * ============   ==========  ===========================
 * Hong M.J       2006/12/06  修正
 */

      out.write("\r\n\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);
//データベースへのコネンクション(common)
SIDatabaseConnection databaseConnection=new SIDatabaseConnection();try{
Connection connection=databaseConnection.getConnection();
//ショップ情報
SIMallShop shop=new SIMallShop();
shop.resetMall(connection);

//個人情報利用目的を取得
SIMsgTemp privacyPolicyInfo = new SIMsgTemp();
privacyPolicyInfo.reset(connection,shop.getMallShopCode(),"5");

      out.write("\r\n");
      out.write("<html>\r\n");
      out.write("<body>\r\n");
      out.write("\r\n");
      out.write("\r\n");
if (!SIURLMap.isMobile(request)) {
      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(null);
      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.getUrl(request,"webshop.servlet.front.main"));
          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);
      out.write("\r\n");
}else if (SIURLMap.isAU2(request)) {
      out.write("\r\n");
      if (_jspx_meth_response_sendRedirect_1(pageContext))
        return;
      out.write("\r\n");
}
      out.write("\r\n");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/img/mobile/bglogo.gif\" width=\"100%\" alt=\"BEAUTY GARAGE\">");
      out.write("<br>");
      out.write("<font size=\"1\">&nbsp;");
      out.write("</font>");
      out.write("<br>\r\n");

response.setHeader("Expires", "-1");
response.addHeader("Cache-Control", "no-cache");
response.setHeader("Pragma", "no-cache");
response.setDateHeader("max-age", 0);

      out.write("\r\n");
      out.write("<table width=\"100%\" BGCOLOR=\"gainsboro\">\r\n");
      out.write("<tr>");
      out.write("<td>");
      out.write("<br>");
      out.write("</td>");
      out.write("</tr>\r\n");
      out.write("<tr BGCOLOR=\"cyan\">");
      out.write("<td >");
      out.write("<div align=\"center\">");
      out.write("<img localsrc=\"120\"/>&nbsp;&nbsp;");
      out.write("<font size=\"3\" color=\"black\">BG会員登録");
      out.write("</font>&nbsp;&nbsp;");
      out.write("<img localsrc=\"120\"/>");
      out.write("</div>");
      out.write("</td>");
      out.write("</tr>\r\n");
      out.write("<tr>");
      out.write("<td>");
      out.write("<br>");
      out.write("</td>");
      out.write("</tr>\r\n");
      out.write("</table>\r\n");
      out.write("<br>\r\n");
      out.write("<font size=\"3\" color=\"black\">BG会員登録(無料)で、便利でお得なｼｮｯﾋﾟﾝｸﾞ!");
      out.write("</font>");
      out.write("<br>");
      out.write("<br>\r\n");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/img/mobile/point01.gif\">");
      out.write("<br>");
      out.write("<a href=\"");
      out.print(SIURLMap.getUrl(request,"webshop.jsp.front.au.member1"));
      out.write("\">");
      out.write("<font color=\"blue\" size=\"2\">お買い物が便利に！");
      out.write("</font>");
      out.write("</a>");
      out.write("<br>");
      out.write("<br>\r\n");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/img/mobile/point02.gif\">");
      out.write("<br>");
      out.write("<a href=\"");
      out.print(SIURLMap.getUrl(request,"webshop.jsp.front.au.member2"));
      out.write("\">");
      out.write("<font color=\"blue\" size=\"2\">ﾎﾟｲﾝﾄでお得！");
      out.write("</font>");
      out.write("</a>");
      out.write("<br>");
      out.write("<br>\r\n");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/img/mobile/point03.gif\">");
      out.write("<br>");
      out.write("<a href=\"");
      out.print(SIURLMap.getUrl(request,"webshop.jsp.front.au.member3"));
      out.write("\">");
      out.write("<font color=\"blue\" size=\"2\">納品日指定が可能！");
      out.write("</font>");
      out.write("</a>");
      out.write("<br>");
      out.write("<br>\r\n");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/img/mobile/point04.gif\">");
      out.write("<br>");
      out.write("<a href=\"");
      out.print(SIURLMap.getUrl(request,"webshop.jsp.front.au.member4"));
      out.write("\">");
      out.write("<font color=\"blue\" size=\"2\">お探しします！");
      out.write("</font>");
      out.write("</a>");
      out.write("<br>");
      out.write("<br>\r\n");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/img/mobile/point05.gif\">");
      out.write("<br>");
      out.write("<a href=\"");
      out.print(SIURLMap.getUrl(request,"webshop.jsp.front.au.member5"));
      out.write("\">");
      out.write("<font color=\"blue\" size=\"2\">他にもこんなことが！");
      out.write("</font>");
      out.write("</a>");
      out.write("<br>");
      out.write("<br>\r\n");
      out.write("<center>");
      out.write("<a href=\"");
      out.print(SIURLMap.getHttpsUrl(request,"webshop.servlet.front.au.member"));
      out.write("\">");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/img/member/regi_btn.gif\" >");
      out.write("</center>");
      out.write("</a>\r\n");
      out.write("<br>\r\n");
      out.write("<font size=\"2\">※BEAUTY GARAGE Online Shopはプロフェッショナル専用の卸サイトとなっております。");
      out.write("<br>\r\n※当サイトの会員登録には、美容室、理容室、エステサロン、SPA、リラクゼーションサロン、ネイルサロン、ビューティサロン、整体院、クリニック、各種スクールなどのオーナー/従業員の方または開業（勤務）予定の方であることが必須条件となります。誠に申し訳ありませんが、一般の方のご登録やご購入は一切受け付けておりませんので、予めご了承のほどお願い申し上げます。");
      out.write("<br>\r\n");
      out.write("</font>\r\n");
      out.write("<hr size=\"1\" color=\"blue\">\r\n");
      out.write("<font size=\"2\" color=\"orange\">BG会員規約");
      out.write("</font>\r\n");
      out.write("<hr size=\"1\" color=\"blue\">\r\n");
      /* ----  webshop:notEmpty ---- */
      jp.co.sint.taglib.SINotEmptyTag _jspx_th_webshop_notEmpty_0 = (jp.co.sint.taglib.SINotEmptyTag) _jspx_tagPool_webshop_notEmpty_value.get(jp.co.sint.taglib.SINotEmptyTag.class);
      _jspx_th_webshop_notEmpty_0.setPageContext(pageContext);
      _jspx_th_webshop_notEmpty_0.setParent(null);
      _jspx_th_webshop_notEmpty_0.setValue(privacyPolicyInfo.getContent1());
      int _jspx_eval_webshop_notEmpty_0 = _jspx_th_webshop_notEmpty_0.doStartTag();
      if (_jspx_eval_webshop_notEmpty_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        do {
          out.write("\r\n");
          out.write("<font size=\"1\" color=\"black\">\r\n");
          out.print(SIHTMLUtil.ToHTMLNewLine(privacyPolicyInfo.getContent1()));
          out.write("<br>\r\n");
          out.print(SIHTMLUtil.ToHTMLNewLine(privacyPolicyInfo.getContent2()));
          out.write("<br>\r\n");
          out.print(SIHTMLUtil.ToHTMLNewLine(privacyPolicyInfo.getContent3()));
          out.write("\r\n");
          out.write("</font>\r\n");
          int evalDoAfterBody = _jspx_th_webshop_notEmpty_0.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
      }
      if (_jspx_th_webshop_notEmpty_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
        return;
      _jspx_tagPool_webshop_notEmpty_value.reuse(_jspx_th_webshop_notEmpty_0);
      out.write("\r\n");
      out.write("<br>");
      out.write("<br>\r\n");
      out.write("<center>\r\n");
      out.write("<a href=\"");
      out.print(SIURLMap.getHttpsUrl(request,"webshop.servlet.front.au.member"));
      out.write("\">");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/img/member/regi_btn.gif\" >");
      out.write("</a>\r\n");
      out.write("</center>\r\n");
      out.write("<br>\r\n");
      out.write("<table width=\"100%\" BGCOLOR=\"gainsboro\">\r\n");
      out.write("<tr>");
      out.write("<td>");
      out.write("<hr size=\"1\" color=\"blue\">");
      out.write("</td>");
      out.write("</tr>\r\n");
      out.write("<tr>");
      out.write("<td>");
      out.write("<font size=\"2\" color=\"blue\">&nbsp;");
      out.write("<img localsrc=\"325\"/>&nbsp;");
      out.write("</font>");
      out.write("<a href=\"");
      out.print(SIURLMap.getUrl(request,"webshop.servlet.front.au.main"));
      out.write("\" accesskey=\"0\">");
      out.write("<font size=\"2\" color=\"blue\">ﾄｯﾌﾟに戻る");
      out.write("</font>");
      out.write("</a>");
      out.write("<br>");
      out.write("</td>");
      out.write("</tr>\r\n");
      out.write("<tr>");
      out.write("<td>");
      out.write("<hr size=\"1\" color=\"blue\">\r\n");
      out.write("<div align=\"center\">");
      out.write("<font size=\"1\" >Copyright by");
      out.write("</font>");
      out.write("</div>\r\n");
      out.write("<div align=\"center\">");
      out.write("<font size=\"1\" >BEAUTY GARAGE INC.");
      out.write("</font>");
      out.write("</div>\r\n");
      out.write("<div align=\"center\">");
      out.write("<font size=\"1\" >All rights reserved.");
      out.write("</font>");
      out.write("</div>\r\n");
      out.write("<img src=\"");
      out.print(SIBGUtil.googleAnalyticsGetImageUrl(request,""));
      out.write("\" />");
      out.write("</td>");
      out.write("</tr>\r\n");
      out.write("</table>\r\n");
      out.write("</body>\r\n");
      out.write("</html>\r\n");

}catch(Exception e){
  e.printStackTrace();
  throw new ServletException();
}finally{
  databaseConnection.close();
}

      out.write("\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_response_sendRedirect_1(javax.servlet.jsp.PageContext pageContext)
          throws Throwable {
    JspWriter out = pageContext.getOut();
    /* ----  response:sendRedirect ---- */
    org.apache.taglibs.response.SendRedirectTag _jspx_th_response_sendRedirect_1 = (org.apache.taglibs.response.SendRedirectTag) _jspx_tagPool_response_sendRedirect.get(org.apache.taglibs.response.SendRedirectTag.class);
    _jspx_th_response_sendRedirect_1.setPageContext(pageContext);
    _jspx_th_response_sendRedirect_1.setParent(null);
    int _jspx_eval_response_sendRedirect_1 = _jspx_th_response_sendRedirect_1.doStartTag();
    if (_jspx_eval_response_sendRedirect_1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      if (_jspx_eval_response_sendRedirect_1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
        javax.servlet.jsp.tagext.BodyContent _bc = pageContext.pushBody();
        out = _bc;
        _jspx_th_response_sendRedirect_1.setBodyContent(_bc);
        _jspx_th_response_sendRedirect_1.doInitBody();
      }
      do {
        out.write("http://www.beautygarage.jp/errorAU.html");
        int evalDoAfterBody = _jspx_th_response_sendRedirect_1.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
      if (_jspx_eval_response_sendRedirect_1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
        out = pageContext.popBody();
    }
    if (_jspx_th_response_sendRedirect_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
      return true;
    _jspx_tagPool_response_sendRedirect.reuse(_jspx_th_response_sendRedirect_1);
    return false;
  }
}
