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

public class a_cart_jsp extends HttpJspBase {


  private static java.util.Vector _jspx_includes;

  static {
    _jspx_includes = new java.util.Vector(4);
    _jspx_includes.add("/mobile/au/cart/../include/a_header_inc.jsp");
    _jspx_includes.add("/include/mobile_filter.jsp");
    _jspx_includes.add("/mobile/au/cart/../include/a_nav_inc.jsp");
    _jspx_includes.add("/mobile/au/cart/../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;
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_webshop_siiterator_type_id_collection;
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_webshop_notEmpty_value;
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_webshop_isFalse_value;

  public a_cart_jsp() {
    _jspx_tagPool_response_sendRedirect = new org.apache.jasper.runtime.TagHandlerPool();
    _jspx_tagPool_webshop_actionErrors = new org.apache.jasper.runtime.TagHandlerPool();
    _jspx_tagPool_webshop_siiterator_type_id_collection = new org.apache.jasper.runtime.TagHandlerPool();
    _jspx_tagPool_webshop_notEmpty_value = new org.apache.jasper.runtime.TagHandlerPool();
    _jspx_tagPool_webshop_isFalse_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_actionErrors.release();
    _jspx_tagPool_webshop_siiterator_type_id_collection.release();
    _jspx_tagPool_webshop_notEmpty_value.release();
    _jspx_tagPool_webshop_isFalse_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;

    jp.co.sint.basic.SICart _jspx_cartID_1 = null;
    jp.co.sint.basic.SICartCmdty _jspx_compositionId_2 = 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_cart.jsp,v 1.0 2003/12/25 Exp $
 * @author      : Jinwang Chen
 * @Description : 商品画像
 * @History
 * Author         Date        Reason
 * ============   ==========  ===========================
 * Jinwang Chen   2003/12/25  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");

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

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

Collection shopColl=cartMan.getShopCollection(connection);
Collection cartColl=new ArrayList();
////各ｻｲﾄの設定(common)
String cartSrvSite=SIURLMap.getUrl(request,response,"webshop.servlet.front.au.cart");//ｶｰﾄ
String counterSrvSite=SIURLMap.getHttpsUrl(request,response,"webshop.servlet.front.au.counter");//ﾚｼﾞ
String webshopSite=SIHTMLUtil.getRootPath(request);
String priceOfCmdty="0";
String totalByShop="0";

      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=\"103\"/>&nbsp;&nbsp;");
      out.write("<font size=\"3\" color=\"black\">お会計(1/4)");
      out.write("</font>&nbsp;&nbsp;");
      out.write("<img localsrc=\"103\"/>");
      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");
if(shopColl.size()==0){
      out.write("<font size=\"2\" color=\"black\">ｶｰﾄには商品が入っておりません。");
      out.write("</font>\r\n");
}else{
      out.write("<font size=\"2\" color=\"black\">この商品でよろしければ、画面下にある｢ﾚｼﾞへ進む｣ﾎﾞﾀﾝを押してください。");
      out.write("</font>");
}
      out.write("\r\n");
      out.write("<br>\r\n");
      out.write("<a href=\"");
      out.print(SIURLMap.getUrl(request,"webshop.servlet.front.au.main"));
      out.write("\">");
      out.write("<font size=\"2\" color=\"blue\">お買い物を続ける");
      out.write("</font>");
      out.write("</a>\r\n");
      out.write("<br>");
      out.write("<br>\r\n");
      out.write("<font size=\"1\" color=\"red\">");
      if (_jspx_meth_webshop_actionErrors_0(pageContext))
        return;
      out.write("</font>\r\n");
      /* ----  webshop:siiterator ---- */
      jp.co.sint.taglib.SIIteratorTag _jspx_th_webshop_siiterator_0 = (jp.co.sint.taglib.SIIteratorTag) _jspx_tagPool_webshop_siiterator_type_id_collection.get(jp.co.sint.taglib.SIIteratorTag.class);
      _jspx_th_webshop_siiterator_0.setPageContext(pageContext);
      _jspx_th_webshop_siiterator_0.setParent(null);
      _jspx_th_webshop_siiterator_0.setId("mallShopID");
      _jspx_th_webshop_siiterator_0.setType("jp.co.sint.basic.SIMallShop");
      _jspx_th_webshop_siiterator_0.setCollection(shopColl);
      int _jspx_eval_webshop_siiterator_0 = _jspx_th_webshop_siiterator_0.doStartTag();
      if (_jspx_eval_webshop_siiterator_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        jp.co.sint.basic.SIMallShop mallShopID = null;
        mallShopID = (jp.co.sint.basic.SIMallShop) pageContext.findAttribute("mallShopID");
        do {
          out.write("\r\n");
          out.write("<form action=\"");
          out.print(cartSrvSite);
          out.write("\" method=\"post\">\r\n");
          out.write("<hr size=\"1\" color=\"blue\">");
          out.write("<br>\r\n");
cartColl=cartMan.getCartCollection(mallShopID.getMallShopCode());totalByShop="0";
          out.write("\r\n");
          /* ----  webshop:siiterator ---- */
          jp.co.sint.taglib.SIIteratorTag _jspx_th_webshop_siiterator_1 = (jp.co.sint.taglib.SIIteratorTag) _jspx_tagPool_webshop_siiterator_type_id_collection.get(jp.co.sint.taglib.SIIteratorTag.class);
          _jspx_th_webshop_siiterator_1.setPageContext(pageContext);
          _jspx_th_webshop_siiterator_1.setParent(_jspx_th_webshop_siiterator_0);
          _jspx_th_webshop_siiterator_1.setId("cartID");
          _jspx_th_webshop_siiterator_1.setType("jp.co.sint.basic.SICart");
          _jspx_th_webshop_siiterator_1.setCollection(cartColl);
          int _jspx_eval_webshop_siiterator_1 = _jspx_th_webshop_siiterator_1.doStartTag();
          if (_jspx_eval_webshop_siiterator_1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
            jp.co.sint.basic.SICart cartID = null;
            cartID = (jp.co.sint.basic.SICart) pageContext.findAttribute("cartID");
            do {
              out.write("\r\n");
              out.write("\r\n");
 if (!cartID.getCmdty().isCmdtyComposition()) { 
              out.write("\r\n");
              out.write("\r\n");
priceOfCmdty=cartID.getCartCmdty().getFinalUnitPriceIncTax();
              out.write("\r\n");
              out.write("<font size=\"2\" color=\"black\">商品ｺｰﾄﾞ：");
              out.print(SIHTMLUtil.HTMLEncode(cartID.getCmdty().getIndividualCode()));
              out.write("</font>");
              out.write("<br>\r\n");
              out.write("<font size=\"2\" color=\"black\">商品名：");
              out.write("</font>");
              out.write("<br>&nbsp;&nbsp;");
              out.write("<font size=\"2\" color=\"black\">");
              out.print(SIHTMLUtil.HTMLEncode(cartID.getCmdty().getCmdtyName()));
              out.write("</font>");
              out.write("<br>\r\n");
              out.write("<font size=\"2\" color=\"black\">数量:");
              out.write("</font>");
              out.write("<input type=\"text\" name=\"");
              out.print(cartID.getCmdty().getCompCode());
              out.write("\" size=\"8\" maxlength=\"8\" value=\"");
              out.print(cartID.getAmount());
              out.write("\" iSTYLE=4>");
              out.write("<br>\r\n");
              out.write("<input type=\"hidden\" name=\"shc\" value=\"");
              out.print(SIHTMLUtil.HTMLEncode(cartID.getCartCmdty().getShopCode()));
              out.write("\">\r\n");
              out.write("<input type=\"hidden\" name=\"cmc\" value=\"");
              out.print(cartID.getCartCmdty().getCmdtyCode());
              out.write("\">\r\n");
              out.write("<input type=\"hidden\" name=\"inc\" value=\"");
              out.print(cartID.getCartCmdty().getIndividualCode());
              out.write("\">\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(_jspx_th_webshop_siiterator_1);
              _jspx_th_webshop_notEmpty_0.setValue(cartID.getCartCmdty().getStndrdCode1());
              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("<input type=\"hidden\" name=\"snc1\" value=\"");
                  out.print(cartID.getCartCmdty().getStndrdCode1());
                  out.write("\">\r\n");
                  out.write("<input type=\"hidden\" name=\"ec1\" value=\"");
                  out.print(cartID.getCartCmdty().getElementCode1());
                  out.write("\">");
                  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");
              /* ----  webshop:notEmpty ---- */
              jp.co.sint.taglib.SINotEmptyTag _jspx_th_webshop_notEmpty_1 = (jp.co.sint.taglib.SINotEmptyTag) _jspx_tagPool_webshop_notEmpty_value.get(jp.co.sint.taglib.SINotEmptyTag.class);
              _jspx_th_webshop_notEmpty_1.setPageContext(pageContext);
              _jspx_th_webshop_notEmpty_1.setParent(_jspx_th_webshop_siiterator_1);
              _jspx_th_webshop_notEmpty_1.setValue(cartID.getCartCmdty().getStndrdCode2());
              int _jspx_eval_webshop_notEmpty_1 = _jspx_th_webshop_notEmpty_1.doStartTag();
              if (_jspx_eval_webshop_notEmpty_1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                do {
                  out.write("<input type=\"hidden\" name=\"snc2\" value=\"");
                  out.print(cartID.getCartCmdty().getStndrdCode2());
                  out.write("\">\r\n");
                  out.write("<input type=\"hidden\" name=\"ec2\" value=\"");
                  out.print(cartID.getCartCmdty().getElementCode2());
                  out.write("\">");
                  int evalDoAfterBody = _jspx_th_webshop_notEmpty_1.doAfterBody();
                  if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                    break;
                } while (true);
              }
              if (_jspx_th_webshop_notEmpty_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
                return;
              _jspx_tagPool_webshop_notEmpty_value.reuse(_jspx_th_webshop_notEmpty_1);
              out.write("\r\n");
              out.write("\r\n");
 } else {  
              out.write("\r\n");
              out.write("\r\n");
              out.write("\r\n");
              out.write("\r\n");
 String setPrice = "0"; 
              out.write("\r\n");
 LinkedHashMap workMap = cartID.getCmdty().getCartsCmdtyCompositionDetailMap();
              out.write("\r\n");
 Collection praiceColl = (Collection)workMap.get(cartID.getCmdty().getCmdtyCompositionKeySet());
              out.write("\r\n");
              /* ----  webshop:siiterator ---- */
              jp.co.sint.taglib.SIIteratorTag _jspx_th_webshop_siiterator_2 = (jp.co.sint.taglib.SIIteratorTag) _jspx_tagPool_webshop_siiterator_type_id_collection.get(jp.co.sint.taglib.SIIteratorTag.class);
              _jspx_th_webshop_siiterator_2.setPageContext(pageContext);
              _jspx_th_webshop_siiterator_2.setParent(_jspx_th_webshop_siiterator_1);
              _jspx_th_webshop_siiterator_2.setId("compositionId");
              _jspx_th_webshop_siiterator_2.setType("jp.co.sint.basic.SICartCmdty");
              _jspx_th_webshop_siiterator_2.setCollection(praiceColl);
              int _jspx_eval_webshop_siiterator_2 = _jspx_th_webshop_siiterator_2.doStartTag();
              if (_jspx_eval_webshop_siiterator_2 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                jp.co.sint.basic.SICartCmdty compositionId = null;
                compositionId = (jp.co.sint.basic.SICartCmdty) pageContext.findAttribute("compositionId");
                do {
                  out.write("\r\n");
 setPrice = SIUtil.add_LL(setPrice, SIUtil.multi_LL(compositionId.getSetCompositionCount(), compositionId.getUnitPrice())); 
                  out.write("\r\n");
                  int evalDoAfterBody = _jspx_th_webshop_siiterator_2.doAfterBody();
                  compositionId = (jp.co.sint.basic.SICartCmdty) pageContext.findAttribute("compositionId");
                  if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                    break;
                } while (true);
              }
              if (_jspx_th_webshop_siiterator_2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
                return;
              _jspx_tagPool_webshop_siiterator_type_id_collection.reuse(_jspx_th_webshop_siiterator_2);
              out.write("\r\n");
 setPrice = SIUtil.sub_LL(setPrice, cartID.getCmdty().getSetDiscountPrice()); 
              out.write("\r\n");
              out.write("\r\n");
 String setDiscountPrice = "0"; 
              out.write("\r\n");
              out.write("\r\n");
 String setDiscountDiscount = "0"; 
              out.write("\r\n");
 setDiscountDiscount = cartID.getCmdty().getSetDiscountPrice(cartID.getCmdty().getSetDiscountPrice()); 
              out.write("\r\n");
 Collection discountPraiceColl = (Collection)workMap.get(cartID.getCmdty().getCmdtyCompositionKeySet());
              out.write("\r\n");
              /* ----  webshop:siiterator ---- */
              jp.co.sint.taglib.SIIteratorTag _jspx_th_webshop_siiterator_3 = (jp.co.sint.taglib.SIIteratorTag) _jspx_tagPool_webshop_siiterator_type_id_collection.get(jp.co.sint.taglib.SIIteratorTag.class);
              _jspx_th_webshop_siiterator_3.setPageContext(pageContext);
              _jspx_th_webshop_siiterator_3.setParent(_jspx_th_webshop_siiterator_1);
              _jspx_th_webshop_siiterator_3.setId("compositionId");
              _jspx_th_webshop_siiterator_3.setType("jp.co.sint.basic.SICartCmdty");
              _jspx_th_webshop_siiterator_3.setCollection(discountPraiceColl);
              int _jspx_eval_webshop_siiterator_3 = _jspx_th_webshop_siiterator_3.doStartTag();
              if (_jspx_eval_webshop_siiterator_3 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                jp.co.sint.basic.SICartCmdty compositionId = null;
                compositionId = (jp.co.sint.basic.SICartCmdty) pageContext.findAttribute("compositionId");
                do {
                  out.write("\r\n");
 setDiscountPrice = SIUtil.add_LL(setDiscountPrice,
                                    SIUtil.multi_LL(compositionId.getSetCompositionCount()
                                                   ,cartID.getCmdty().getFinalUnitPrice(compositionId.getCalcUnitPrice()
                                                   ,compositionId.getUnitPrice()
                                                   ,compositionId.getSalesUnitPrice()
                                                   ,cartID.getCmdty().getSalesDiscountFlg()
                                                   ,cartID.getCmdty().getMemberDiscountFlg()
                                                   ,cartID.getCmdty().getDiscountFlg()))); 
                  out.write("\r\n");
                  int evalDoAfterBody = _jspx_th_webshop_siiterator_3.doAfterBody();
                  compositionId = (jp.co.sint.basic.SICartCmdty) pageContext.findAttribute("compositionId");
                  if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                    break;
                } while (true);
              }
              if (_jspx_th_webshop_siiterator_3.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
                return;
              _jspx_tagPool_webshop_siiterator_type_id_collection.reuse(_jspx_th_webshop_siiterator_3);
              out.write("\r\n");
 setDiscountPrice = SIUtil.sub_LL(setDiscountPrice, setDiscountDiscount); 
              out.write("\r\n");
              out.write("<font size=\"2\" color=\"black\">商品ｺｰﾄﾞ：");
              out.print(SIHTMLUtil.HTMLEncode(cartID.getCmdty().getIndividualCode()));
              out.write("</font>");
              out.write("<br>\r\n");
              out.write("<font size=\"2\" color=\"black\">商品名：");
              out.write("</font>");
              out.write("<br>&nbsp;&nbsp;");
              out.write("<font size=\"2\" color=\"black\">");
              out.print(SIHTMLUtil.HTMLEncode(cartID.getCmdty().getCmdtyName()));
              out.write("</font>");
              out.write("<br>\r\n\r\n");
 Collection coll = (Collection)workMap.get(cartID.getCmdty().getCmdtyCompositionKeySet());
              out.write("\r\n");
              /* ----  webshop:siiterator ---- */
              jp.co.sint.taglib.SIIteratorTag _jspx_th_webshop_siiterator_4 = (jp.co.sint.taglib.SIIteratorTag) _jspx_tagPool_webshop_siiterator_type_id_collection.get(jp.co.sint.taglib.SIIteratorTag.class);
              _jspx_th_webshop_siiterator_4.setPageContext(pageContext);
              _jspx_th_webshop_siiterator_4.setParent(_jspx_th_webshop_siiterator_1);
              _jspx_th_webshop_siiterator_4.setId("compositionId");
              _jspx_th_webshop_siiterator_4.setType("jp.co.sint.basic.SICartCmdty");
              _jspx_th_webshop_siiterator_4.setCollection(coll);
              int _jspx_eval_webshop_siiterator_4 = _jspx_th_webshop_siiterator_4.doStartTag();
              if (_jspx_eval_webshop_siiterator_4 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                jp.co.sint.basic.SICartCmdty compositionId = null;
                compositionId = (jp.co.sint.basic.SICartCmdty) pageContext.findAttribute("compositionId");
                do {
                  out.write("\r\n");
                  out.write("<font size=\"2\" color=\"black\">\r\n・（");
                  out.print(SIHTMLUtil.HTMLEncode(compositionId.getIndividualCode()));
                  out.write("）");
                  out.print(SIHTMLUtil.HTMLEncode(compositionId.getCartCmdtyName()));
                  out.write("\r\n");
 if (compositionId.getSetDetailFlg().equals(SIConfig.SET_DETAIL_FLG_APPENDED)) { 
                  out.write("\r\n(");
                  out.print(compositionId.getSetCount());
                  out.write("セット毎に");
                  out.print(compositionId.getSetCompositionCount());
                  out.write("個)\r\n");
 } 
                  out.write("\r\n");
                  out.write("</font>");
                  out.write("<br/>\r\n");
                  int evalDoAfterBody = _jspx_th_webshop_siiterator_4.doAfterBody();
                  compositionId = (jp.co.sint.basic.SICartCmdty) pageContext.findAttribute("compositionId");
                  if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                    break;
                } while (true);
              }
              if (_jspx_th_webshop_siiterator_4.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
                return;
              _jspx_tagPool_webshop_siiterator_type_id_collection.reuse(_jspx_th_webshop_siiterator_4);
              out.write("\r\n");
 if (!cartID.getCmdty().getSetDiscountPrice().equals("0")) { 
              out.write("\r\n");
 if (cartID.getCmdty().getSetDiscountPrice().equals(setDiscountDiscount)) { 
              out.write("\r\n");
              out.write("<font size=\"2\" color=\"black\">・セット値引き ￥-");
              out.print(SIUtil.NumberFormat(cartID.getCmdty().getSetDiscountPrice()));
              out.write("</font>");
              out.write("<br/>\r\n");
 } else { 
              out.write("\r\n");
              out.write("<font size=\"2\" color=\"black\">・セット値引き ￥-");
              out.print(SIUtil.NumberFormat(setDiscountDiscount));
              out.write("</font>");
              out.write("<br/>\r\n");
 } 
              out.write("\r\n");
 } 
              out.write("\r\n");
              out.write("<font size=\"2\" color=\"black\">数量:");
              out.write("</font>");
              out.write("<input type=\"text\" name=\"");
              out.print(cartID.getCmdty().getCompCode());
              out.write("\" size=\"8\" maxlength=\"8\" value=\"");
              out.print(cartID.getAmount());
              out.write("\" iSTYLE=4>");
              out.write("<br>\r\n");
              out.write("<input type=\"hidden\" name=\"shc\" value=\"");
              out.print(SIHTMLUtil.HTMLEncode(cartID.getCartCmdty().getShopCode()));
              out.write("\">\r\n");
              out.write("<input type=\"hidden\" name=\"cmc\" value=\"");
              out.print(cartID.getCartCmdty().getCmdtyCode());
              out.write("\">\r\n");
              out.write("<input type=\"hidden\" name=\"inc\" value=\"");
              out.print(cartID.getCartCmdty().getIndividualCode());
              out.write("\">\r\n");
              /* ----  webshop:notEmpty ---- */
              jp.co.sint.taglib.SINotEmptyTag _jspx_th_webshop_notEmpty_2 = (jp.co.sint.taglib.SINotEmptyTag) _jspx_tagPool_webshop_notEmpty_value.get(jp.co.sint.taglib.SINotEmptyTag.class);
              _jspx_th_webshop_notEmpty_2.setPageContext(pageContext);
              _jspx_th_webshop_notEmpty_2.setParent(_jspx_th_webshop_siiterator_1);
              _jspx_th_webshop_notEmpty_2.setValue(cartID.getCartCmdty().getStndrdCode1());
              int _jspx_eval_webshop_notEmpty_2 = _jspx_th_webshop_notEmpty_2.doStartTag();
              if (_jspx_eval_webshop_notEmpty_2 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                do {
                  out.write("<input type=\"hidden\" name=\"snc1\" value=\"");
                  out.print(cartID.getCartCmdty().getStndrdCode1());
                  out.write("\">\r\n");
                  out.write("<input type=\"hidden\" name=\"ec1\" value=\"");
                  out.print(cartID.getCartCmdty().getElementCode1());
                  out.write("\">");
                  int evalDoAfterBody = _jspx_th_webshop_notEmpty_2.doAfterBody();
                  if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                    break;
                } while (true);
              }
              if (_jspx_th_webshop_notEmpty_2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
                return;
              _jspx_tagPool_webshop_notEmpty_value.reuse(_jspx_th_webshop_notEmpty_2);
              out.write("\r\n");
              /* ----  webshop:notEmpty ---- */
              jp.co.sint.taglib.SINotEmptyTag _jspx_th_webshop_notEmpty_3 = (jp.co.sint.taglib.SINotEmptyTag) _jspx_tagPool_webshop_notEmpty_value.get(jp.co.sint.taglib.SINotEmptyTag.class);
              _jspx_th_webshop_notEmpty_3.setPageContext(pageContext);
              _jspx_th_webshop_notEmpty_3.setParent(_jspx_th_webshop_siiterator_1);
              _jspx_th_webshop_notEmpty_3.setValue(cartID.getCartCmdty().getStndrdCode2());
              int _jspx_eval_webshop_notEmpty_3 = _jspx_th_webshop_notEmpty_3.doStartTag();
              if (_jspx_eval_webshop_notEmpty_3 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                do {
                  out.write("<input type=\"hidden\" name=\"snc2\" value=\"");
                  out.print(cartID.getCartCmdty().getStndrdCode2());
                  out.write("\">\r\n");
                  out.write("<input type=\"hidden\" name=\"ec2\" value=\"");
                  out.print(cartID.getCartCmdty().getElementCode2());
                  out.write("\">");
                  int evalDoAfterBody = _jspx_th_webshop_notEmpty_3.doAfterBody();
                  if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                    break;
                } while (true);
              }
              if (_jspx_th_webshop_notEmpty_3.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
                return;
              _jspx_tagPool_webshop_notEmpty_value.reuse(_jspx_th_webshop_notEmpty_3);
              out.write("\r\n");
 } 
              out.write("\r\n");
              out.write("\r\n");
              out.write("<br>\r\n");
              int evalDoAfterBody = _jspx_th_webshop_siiterator_1.doAfterBody();
              cartID = (jp.co.sint.basic.SICart) pageContext.findAttribute("cartID");
              if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                break;
            } while (true);
          }
          if (_jspx_th_webshop_siiterator_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
            return;
          _jspx_tagPool_webshop_siiterator_type_id_collection.reuse(_jspx_th_webshop_siiterator_1);
          out.write("\r\n");
          out.write("<font size=\"2\" color=\"black\">数量を変更する場合には、数量を入力してから、下の｢数量を変更する｣ﾎﾞﾀﾝを押してください。");
          out.write("<br>\r\nｶｰﾄの商品を削除する場合には、数量に0を入力して数量変更を行ってください。\r\n");
          out.write("</font>");
          out.write("<br>\r\n");
          out.write("<input type=\"hidden\" name=\"shc\" value=\"");
          out.print(mallShopID.getMallShopCode());
          out.write("\">\r\n");
          out.write("<input type=\"hidden\" name=\"a\"   value=\"");
          out.print(SIConfig.SIACTION_MODIFY);
          out.write("\">\r\n&nbsp;");
          out.write("<input type=\"submit\" name=\"modify\" value=\"数量を変更する\">\r\n");
          out.write("</form>\r\n");
if (SIConfig.SIRUNNING_MODE_CURRENT!=SIConfig.SIRUNNING_MODE_TOGETHER){
          out.write("\r\n");
          out.write("<form name=\"webshopFrm\" action=\"");
          out.print(counterSrvSite);
          out.write("\" method=\"post\">\r\n");
          out.write("<input type=\"hidden\" name=\"shc\" value=\"");
          out.print(mallShopID.getMallShopCode());
          out.write("\">\r\n");
          out.write("<input type=\"submit\" name=\"reg\" value=\"ﾚｼﾞへ\">\r\n");
          out.write("</form>\r\n");
}
          out.write("\r\n");
          int evalDoAfterBody = _jspx_th_webshop_siiterator_0.doAfterBody();
          mallShopID = (jp.co.sint.basic.SIMallShop) pageContext.findAttribute("mallShopID");
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
      }
      if (_jspx_th_webshop_siiterator_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
        return;
      _jspx_tagPool_webshop_siiterator_type_id_collection.reuse(_jspx_th_webshop_siiterator_0);
      out.write("\r\n");
      out.write("<hr size=\"1\" color=\"blue\">\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(cartMan.isEmpty());
      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");
if (SIConfig.SIRUNNING_MODE_CURRENT==SIConfig.SIRUNNING_MODE_TOGETHER){
          out.write("\r\n");
          out.write("<form name=\"webshopFrm\" action=\"");
          out.print(counterSrvSite);
          out.write("\" method=\"post\">\r\n");
          out.write("<input type=\"submit\" name=\"reg\" value=\"ﾚｼﾞへ\">\r\n");
          out.write("</form>\r\n");
}
          out.write("\r\n ");
          out.write("<br>\r\n");
          out.write("<form action=\"");
          out.print(cartSrvSite);
          out.write("\" method=\"post\">\r\n");
          out.write("<input type=\"hidden\" name=\"a\" value=\"");
          out.print(SIConfig.SIACTION_DELETE);
          out.write("\">\r\n");
          out.write("<input type=\"submit\" name=\"del\" value=\"ｶｰﾄを空に\">\r\n");
          out.write("</form>\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");
      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;
  }
}
