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

public class a_cartin_jsp extends HttpJspBase {


  private static java.util.Vector _jspx_includes;

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

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

  public a_cartin_jsp() {
    _jspx_tagPool_response_sendRedirect = new org.apache.jasper.runtime.TagHandlerPool();
    _jspx_tagPool_webshop_actionErrors = 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_actionErrors.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/i_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-2009 System Integrator Corporation. & Beautygarage Inc.
 *                 All Rights Reserved.
 * @version $Id : a_cartin.jsp,v 1.0 2009/10/09 Exp $
 * @author      : Naotaka Ohsugi
 * @Description : ｶﾀﾛｸﾞ･商品ｺｰﾄﾞからのご注文
 * @History
 * Author        Date        Reason
 * ============  ==========  ===========================
 * Naotaka       2009/10/09  Original
 */

      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");

//ログ用のインスタンスの生成(common)
Category log=Category.getInstance(SIConfig.SILOG4J_WEBSHOP_CATEGORY_NAME);
//本画面に関わるbeansのデータ
UICatalogCmdty catalogID = (UICatalogCmdty) session.getAttribute(SIConfig.SISESSION_A_CATALOG_CARTIN_NAME);
if (catalogID == null) catalogID = new UICatalogCmdty(true);

//データベースへのコネンクション(common)
SIDatabaseConnection databaseConnection=new SIDatabaseConnection();try{
Connection connection=databaseConnection.getConnection();

String webshopSite=SIHTMLUtil.getRootPath(request);
String catalogSrvSite=SIURLMap.getUrl(request,"webshop.servlet.front.au.catalog");


      out.write("\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<title>");
      out.print(SIHTMLUtil.HTMLEncode(SIConfig.SIMALL.getFrontShopName()));
      out.write("</title>\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=SHIFT_JIS\">\r\n");
      out.write("</head>\r\n");
      out.write("<body bgcolor=\"white\">\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 align=\"center\">");
      out.write("<img localsrc=\"103\"/>&nbsp;");
      out.write("<font size=\"2\" color=\"black\">ｶﾀﾛｸﾞ･商品ｺｰﾄﾞからのご注文");
      out.write("</font>&nbsp;");
      out.write("<img localsrc=\"103\"/>");
      out.write("</td>");
      out.write("</tr>\r\n");
      out.write("</table>\r\n");
      out.write("<font size=\"2\" color=\"black\">");
      out.write("<br>とっても便利！ﾋﾞｭｰﾃｨｶﾞﾚｰｼﾞのｶﾀﾛｸﾞを見ながら欲しい商品のご注文ができます。");
      out.write("<br>");
      out.write("</font>\r\n");
      out.write("<font size=\"1\" color=\"red\">");
      if (_jspx_meth_webshop_actionErrors_0(pageContext))
        return;
      out.write("</font>\r\n");
      out.write("<form name=\"cartInForm\" action =\"");
      out.print(catalogSrvSite);
      out.write("\" method=\"post\">\r\n");
      out.write("<hr size=\"1\" color=\"gray\">\r\n");
      out.write("<font size=\"2\" color=\"black\">[商品1]");
      out.write("<br>■商品ｺｰﾄﾞ");
      out.write("<br>");
      out.write("</font>\r\n");
      out.write("<font size=\"2\" color=\"gray\">例)SE-0001N");
      out.write("<br>");
      out.write("</font>\r\n");
      out.write("<input name=\"individualHead\" type=\"text\" value=\"");
      out.print(catalogID.getIndividualHead()[0]);
      out.write("\" size=\"3\" maxlength=\"2\" iSTYLE=\"3\"/>-");
      out.write("<input name=\"individualBody\" type=\"text\" value=\"");
      out.print(catalogID.getIndividualBody()[0]);
      out.write("\" size=\"8\" maxlength=\"5\" iSTYLE=\"4\"/>");
      out.write("<br>\r\n");
      out.write("<font size=\"2\" color=\"black\">数量");
      out.write("<br>");
      out.write("</font>\r\n");
      out.write("<font size=\"2\" color=\"gray\">例)1");
      out.write("<br>");
      out.write("</font>\r\n");
      out.write("<input name=\"amount\" type=\"text\" value=\"");
      out.print(catalogID.getAmount()[0]);
      out.write("\" size=\"4\" maxlength=\"3\" iSTYLE=\"4\">\r\n");
      out.write("<hr size=\"1\" color=\"gray\">\r\n");
      out.write("<font size=\"2\" color=\"black\">[商品2]");
      out.write("<br>■商品ｺｰﾄﾞ");
      out.write("<br>");
      out.write("</font>\r\n");
      out.write("<input name=\"individualHead\" type=\"text\" value=\"");
      out.print(catalogID.getIndividualHead()[1]);
      out.write("\" size=\"3\" maxlength=\"2\" iSTYLE=\"3\"/>-");
      out.write("<input name=\"individualBody\" type=\"text\" value=\"");
      out.print(catalogID.getIndividualBody()[1]);
      out.write("\" size=\"8\" maxlength=\"5\" iSTYLE=\"4\"/>");
      out.write("<br>\r\n");
      out.write("<font size=\"2\" color=\"black\">数量");
      out.write("<br>");
      out.write("</font>\r\n");
      out.write("<input name=\"amount\" type=\"text\" value=\"");
      out.print(catalogID.getAmount()[1]);
      out.write("\" size=\"4\" maxlength=\"3\" iSTYLE=\"4\">\r\n");
      out.write("<hr size=\"1\" color=\"gray\">\r\n");
      out.write("<font size=\"2\" color=\"black\">[商品3]");
      out.write("<br>■商品ｺｰﾄﾞ");
      out.write("<br>");
      out.write("</font>\r\n");
      out.write("<input name=\"individualHead\" type=\"text\" value=\"");
      out.print(catalogID.getIndividualHead()[2]);
      out.write("\" size=\"3\" maxlength=\"2\" iSTYLE=\"3\"/>-");
      out.write("<input name=\"individualBody\" type=\"text\" value=\"");
      out.print(catalogID.getIndividualBody()[2]);
      out.write("\" size=\"8\" maxlength=\"5\" iSTYLE=\"4\"/>");
      out.write("<br>\r\n");
      out.write("<font size=\"2\" color=\"black\">数量");
      out.write("<br>");
      out.write("</font>\r\n");
      out.write("<input name=\"amount\" type=\"text\" value=\"");
      out.print(catalogID.getAmount()[2]);
      out.write("\" size=\"4\" maxlength=\"3\" iSTYLE=\"4\">\r\n");
      out.write("<hr size=\"1\" color=\"gray\">\r\n");
      out.write("<font size=\"2\" color=\"black\">[商品4]");
      out.write("<br>■商品ｺｰﾄﾞ");
      out.write("<br>");
      out.write("</font>\r\n");
      out.write("<input name=\"individualHead\" type=\"text\" value=\"");
      out.print(catalogID.getIndividualHead()[3]);
      out.write("\" size=\"3\" maxlength=\"2\" iSTYLE=\"3\"/>-");
      out.write("<input name=\"individualBody\" type=\"text\" value=\"");
      out.print(catalogID.getIndividualBody()[3]);
      out.write("\" size=\"8\" maxlength=\"5\" iSTYLE=\"4\"/>");
      out.write("<br>\r\n");
      out.write("<font size=\"2\" color=\"black\">数量");
      out.write("<br>");
      out.write("</font>\r\n");
      out.write("<input name=\"amount\" type=\"text\" value=\"");
      out.print(catalogID.getAmount()[3]);
      out.write("\" size=\"4\" maxlength=\"3\" iSTYLE=\"4\">\r\n");
      out.write("<hr size=\"1\" color=\"gray\">\r\n");
      out.write("<font size=\"2\" color=\"black\">[商品5]");
      out.write("<br>■商品ｺｰﾄﾞ");
      out.write("<br>");
      out.write("</font>\r\n");
      out.write("<input name=\"individualHead\" type=\"text\" value=\"");
      out.print(catalogID.getIndividualHead()[4]);
      out.write("\" size=\"3\" maxlength=\"2\" iSTYLE=\"3\"/>-");
      out.write("<input name=\"individualBody\" type=\"text\" value=\"");
      out.print(catalogID.getIndividualBody()[4]);
      out.write("\" size=\"8\" maxlength=\"5\" iSTYLE=\"4\"/>");
      out.write("<br>\r\n");
      out.write("<font size=\"2\" color=\"black\">数量");
      out.write("<br>");
      out.write("</font>\r\n");
      out.write("<input name=\"amount\" type=\"text\" value=\"");
      out.print(catalogID.getAmount()[4]);
      out.write("\" size=\"4\" maxlength=\"3\" iSTYLE=\"4\">\r\n");
      out.write("<hr size=\"1\" color=\"gray\">\r\n");
      out.write("<input type=\"hidden\" name=\"actionNameTxt\" value=\"");
      out.print(SIConfig.SIACTION_CART);
      out.write("\">\r\n");
      out.write("<input type=\"submit\" name=\"addCart\" value=\"ｶｰﾄに入れる\">\r\n");
      out.write("</form>\r\n");
      out.write("<font size=\"1\" color=\"gray\">※掲載商品によっては、販売中止になっている商品や、在庫切れの場合がございますので、予めご了承下さい。");
      out.write("</font>\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("&nbsp;");
      out.write("<img localsrc=\"184\"/>&nbsp;");
      out.write("<a href=\"");
      out.print(SIURLMap.getUrl(request,"webshop.servlet.front.au.main"));
      out.write("\" accesskey=\"5\">");
      out.write("<font size=\"2\" color=\"blue\">ﾄｯﾌﾟに戻る");
      out.write("</font>");
      out.write("</a>");
      out.write("<br>\r\n&nbsp;");
      out.write("<img localsrc=\"185\"/>&nbsp;");
      out.write("<a href=\"");
      out.print(SIURLMap.getUrl(request,"webshop.servlet.front.au.cart"));
      out.write("\" accesskey=\"6\">");
      out.write("<font size=\"2\" color=\"blue\">お会計");
      out.write("</font>");
      out.write("</a>");
      out.write("<br>\r\n&nbsp;");
      out.write("<img localsrc=\"186\"/>&nbsp;");
      out.write("<a href=\"");
      out.print(SIURLMap.getUrl(request,"webshop.servlet.front.au.customer.menu"));
      out.write("\" accesskey=\"7\">");
      out.write("<font size=\"2\" color=\"blue\">ﾏｲﾍﾟｰｼﾞ");
      out.write("</font>");
      out.write("</a>");
      out.write("<br>\r\n&nbsp;");
      out.write("<img localsrc=\"187\"/>&nbsp;");
      out.write("<a href=\"");
      out.print(SIURLMap.getUrl(request,"webshop.servlet.front.au.howto"));
      out.write("\" accesskey=\"8\">");
      out.write("<font size=\"2\" color=\"blue\">ご利用方法");
      out.write("</font>");
      out.write("</a>");
      out.write("<br>\r\n&nbsp;");
      out.write("<img localsrc=\"188\"/>&nbsp;");
      out.write("<a href=\"");
      out.print(SIURLMap.getUrl(request,"webshop.servlet.front.au.mall.company"));
      out.write("\" accesskey=\"9\">");
      out.write("<font size=\"2\" color=\"blue\">全国ｼｮｰﾙｰﾑご案内");
      out.write("</font>");
      out.write("</a>");
      out.write("<br>\r\n&nbsp;");
      out.write("<img localsrc=\"325\"/>&nbsp;");
      out.write("<a href=\"");
      out.print(SIURLMap.getHttpsUrl(request,"webshop.servlet.front.au.login"));
      out.write("\" accesskey=\"0\">");
      out.write("<font size=\"2\" color=\"blue\">ﾛｸﾞｲﾝ");
      out.write("</font>");
      out.write("</a>\r\n");
      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();}
    } 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;
  }

  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("<br>");
        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;
  }
}
