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.tools.*;
import jp.co.sint.basic.*;
import jp.co.sint.config.*;
import jp.co.sint.beans.front.*;
import jp.co.sint.beans.mallmgr.*;
import java.net.*;

public class cart_jsp extends HttpJspBase {


  private static java.util.Vector _jspx_includes;

  static {
    _jspx_includes = new java.util.Vector(6);
    _jspx_includes.add("/sp/include/header_inc.jsp");
    _jspx_includes.add("/sp/include/global_inc.jsp");
    _jspx_includes.add("/sp/include/action_errors.jsp");
    _jspx_includes.add("/sp/include/footer_no_menu_inc.jsp");
    _jspx_includes.add("/sp/include/modal_menu_inc.jsp");
    _jspx_includes.add("/sp/include/modal_search_inc.jsp");
  }

  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_webshop_session_type_name_id;
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_webshop_actionErrors;
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_datetime_format_pattern;
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_datetime_currentTime_nobody;
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_webshop_isFalse_value;
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_webshop_siiterator_type_id_collection;
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_webshop_isTrue_value;

  public cart_jsp() {
    _jspx_tagPool_webshop_session_type_name_id = new org.apache.jasper.runtime.TagHandlerPool();
    _jspx_tagPool_webshop_actionErrors = new org.apache.jasper.runtime.TagHandlerPool();
    _jspx_tagPool_datetime_format_pattern = new org.apache.jasper.runtime.TagHandlerPool();
    _jspx_tagPool_datetime_currentTime_nobody = new org.apache.jasper.runtime.TagHandlerPool();
    _jspx_tagPool_webshop_isFalse_value = new org.apache.jasper.runtime.TagHandlerPool();
    _jspx_tagPool_webshop_siiterator_type_id_collection = new org.apache.jasper.runtime.TagHandlerPool();
    _jspx_tagPool_webshop_isTrue_value = new org.apache.jasper.runtime.TagHandlerPool();
  }

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

  public void _jspDestroy() {
    _jspx_tagPool_webshop_session_type_name_id.release();
    _jspx_tagPool_webshop_actionErrors.release();
    _jspx_tagPool_datetime_format_pattern.release();
    _jspx_tagPool_datetime_currentTime_nobody.release();
    _jspx_tagPool_webshop_isFalse_value.release();
    _jspx_tagPool_webshop_siiterator_type_id_collection.release();
    _jspx_tagPool_webshop_isTrue_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.SICartCmdty _jspx_compositionId_1 = 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;

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

/**
 * Copyright (c) 2003-2009 System Integrator Corporation. & Beautygarage Inc.
 *                 All Rights Reserved.
 * @version $Id : cart.jsp,v 2.0 2009/04/23 Exp $
 * @author      : Jinwang Chen
 * @Description : フロントのカート画面
 * @History
 * Author         Date        Reason
 * ============   ==========  ===========================
 * Naotaka        2009/04/23  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");

//ログ用のインスタンスの生成(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();
UICart cartEditID=(UICart)session.getAttribute(SIConfig.SISESSION_CART_EDIT_NAME);
if (cartEditID==null)cartEditID=new UICart();

//データベースへのコネンクション(common)
SIDatabaseConnection databaseConnection=new SIDatabaseConnection();
try{
Connection connection=databaseConnection.getConnection();
//各サイトの設定(common)
String webshopSite=SIHTMLUtil.getRootPath(request);
String mainSrvSite=SIURLMap.getUrl(request,"webshop.servlet.front.main");
String cartSrvSite=SIURLMap.getHttpsUrl(request,"webshop.servlet.front.cart");
String counterSrvSite=SIURLMap.getHttpsUrl(request,"webshop.servlet.front.counter");
String cmdtySrvSite=SIURLMap.getUrl(request,"webshop.servlet.front.commodity");
String priceOfCmdty="0";
String totalByShop="0";
String TOP = cartMan.getTotalOfPrice(request);
String TAX = SITax.getTaxRate(connection);
boolean openFlg=true;

boolean isEnd = UIRegClosedSaleItem.isEnd(connection);

String casherSrvSite=SIURLMap.getHttpsUrl(request,"webshop.servlet.front.casher");


      out.write("\r\n");
      out.write("<!DOCTYPE html>\r\n");
      out.write("<html lang=\"ja\">\r\n");
      out.write("<head>\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=Shift_JIS\"/>\r\n");
      out.write("<title>ショッピングカート | 理美容器具・エステ機器・美容用品の卸販売 BEAUTY GARAGE");
      out.write("</title>\r\n");
      out.write("<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, user-scalable=no\"/>\r\n");
      out.write("<meta name=\"description\" content=\"\" />\r\n");
      out.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"");
      out.print(webshopSite);
      out.write("/sp/css/base.css\" media=\"all\" />\r\n");
      out.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"");
      out.print(webshopSite);
      out.write("/sp/css/common.css\" media=\"all\" />\r\n");
      out.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"");
      out.print(webshopSite);
      out.write("/sp/css/style.css\" media=\"all\" />\r\n");
      out.write("<script type=\"text/javascript\" src=\"");
      out.print(webshopSite);
      out.write("/sp/js/jquery-1.9.1.min.js\">");
      out.write("</script>\r\n");
      out.write("<script type=\"text/javascript\" src=\"");
      out.print(webshopSite);
      out.write("/sp/js/common.js\">");
      out.write("</script>\r\n");
      out.write("<script type=\"text/javascript\" src=\"");
      out.print(webshopSite);
      out.write("/sp/js/idangerous.swiper.min.js\">");
      out.write("</script>\r\n\r\n");
      out.write("</head>\r\n");
      out.write("<body>\r\n  ");
      out.write("<!--▽ページ上部共通：ここから▽-->\r\n  ");
      out.write("<!--▼ヘッダ：ここから▼-->\r\n  ");

/**
 * Copyright (c) 2003-2009 System Integrator Corporation. & Beautygarage Inc.
 *                 All Rights Reserved.
 * @version $Id : include/header_inc.jsp,v 2.0 2009/04/03 Naotaka Ohsugi Exp $
 * @author      : Naotaka Ohsugi
 * @Description : 共通ヘッダー
 * @History
 * Author         Date        Reason
 * ============   ==========  ===========================
 * Naotaka        2009/04/03  Original
 */

      out.write("\r\n");
      out.write("<script type=\"text/javascript\">\r\n  var _gaq = _gaq || [];\r\n  var pluginUrl = \r\n  '//www.google-analytics.com/plugins/ga/inpage_linkid.js';\r\n  _gaq.push(['_require', 'inpage_linkid', pluginUrl]);\r\n  _gaq.push(['_setAccount', 'UA-1040584-1']);\r\n  ");
 if(SIHTMLUtil.getUserInfo(request).isLogin(request)){
      out.write("\r\n  _gaq.push(['_setCustomVar', 1, 'registered', 'true', 1]);\r\n  _gaq.push(['_setCustomVar', 2, 'sessionlogin', 'true', 2]);\r\n  _gaq.push(['_setCustomVar', 3, 'islogin', 'true', 3]);\r\n  ");
} else {
      out.write("\r\n  _gaq.push(['_setCustomVar', 3, 'islogin', 'false', 3]);\r\n  ");
}
      out.write("\r\n  _gaq.push(['_setCustomVar', 4, 'viewmode', 'SP', 3]);\r\n  _gaq.push(['_setVar',navigator.userAgent]);\r\n  _gaq.push(['_trackPageview']);\r\n  (function() {\r\n    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;\r\n    ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';\r\n    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);\r\n  })();\r\n  \r\n\t//for Google Tag Manager\r\n\tdataLayer= [{\r\n\t\t//'page_type' : '#ページカテゴリ#',\r\n\t\t'site_type':'m',\r\n\t\t//'customer_id':'#顧客ID#',\r\n\t\t//'product_id':'商品ID',\r\n\t\t//'keyword':'#サイト内検索キーワード#',\r\n\t\t//'order_id':'test',\r\n\t\t//'items':\r\n\t\t//\t\t   [\r\n\t\t//\t\t   {'id':'#商品ID1#','price':'#単価1#','qty':'#数量1#'},\r\n\t\t//\t\t   {'id':'#商品ID2#','price':'#単価2#','qty':'#数量2#'},\r\n\t\t//\t\t   {'id':'#商品ID3#','price':'#単価3#','qty':'#数量3#'}\r\n\t\t//\t\t   ]\r\n\t}];\r\n    \r\n");
      out.write("</script>\r\n");
      out.write("<!-- Google Tag Manager -->\r\n");
      out.write("<noscript>");
      out.write("<iframe src=\"//www.googletagmanager.com/ns.html?id=GTM-K5Q24Q\"\r\nheight=\"0\" width=\"0\" style=\"display:none;visibility:hidden\">");
      out.write("</iframe>");
      out.write("</noscript>\r\n");
      out.write("<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\r\nnew Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\r\nj=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\r\n'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\r\n})(window,document,'script','dataLayer','GTM-K5Q24Q');");
      out.write("</script>\r\n");
      out.write("<!-- End Google Tag Manager -->\r\n\r\n");
      out.write("<a id=\"pageTop\">");
      out.write("</a>\r\n");
      out.write("<!--▽ページ上部共通：ここから▽-->\r\n\r\n");
 //▼アプリでは非表示：ここから▼
 if (request.getHeader("user-agent").indexOf("bg-webview-")==-1) { 
      out.write("\r\n");
      out.write("<!--▼ヘッダ：ここから▼-->\r\n  ");
      out.write("<header id=\"header\">\r\n    ");
      out.write("<p>4,000円以上で");
      out.write("<strong>通常送料無料");
      out.write("</strong>　17：00迄のご注文で");
      out.write("<strong>当日出荷");
      out.write("</strong>");
      out.write("</p>\r\n    ");
      out.write("<div id=\"header-inner\">\r\n    ");
if("http://www.beautygarage.jp/ws/main".equals(request.getRequestURL().toString())){
      out.write("\r\n");
      out.write("<h1 id=\"logo\">");
      out.write("<a href=\"");
      out.print(SIURLMap.getUrl(request,"webshop.servlet.front.main"));
      out.write("\">BEAUTY GARAGE Online Shop for Salon Professionals");
      out.write("</a>");
      out.write("</h1>\r\n");
}else{
      out.write("\r\n");
      out.write("<div id=\"logo\">");
      out.write("<a href=\"");
      out.print(SIURLMap.getUrl(request,"webshop.servlet.front.main"));
      out.write("\">BEAUTY GARAGE Online Shop for Salon Professionals");
      out.write("</a>");
      out.write("</div>\r\n");
}
      out.write("\r\n\r\n      ");
      out.write("<dl id=\"siteinfo\">\r\n        ");
      out.write("<dt>会員数：");
      out.write("</dt>\r\n        ");
      out.write("<dd>");
      out.write("<span class=\"num salonCnt\">");
      JspRuntimeLibrary.include(request, response, "/other/cust_count.txt", out, true);
      out.write("</span>店");
      out.write("</dd>\r\n        ");
      out.write("<dt>商品数：");
      out.write("</dt>\r\n        ");
      out.write("<dd>");
      out.write("<span class=\"num itemCnt\">");
      JspRuntimeLibrary.include(request, response, "/other/item_count.txt", out, true);
      out.write("</span>品");
      out.write("</dd>\r\n      ");
      out.write("</dl>\r\n      ");
      out.write("<nav id=\"hdFunc\">\r\n        ");
      out.write("<ul id=\"hdFunc-list\" class=\"typeFlat\">\r\n          ");
      out.write("<li id=\"hdFunc-menu\">");
      out.write("<a href=\"#menuContents\">メニュー");
      out.write("</a>");
      out.write("</li>\r\n          ");
      out.write("<li id=\"hdFunc-search\">");
      out.write("<a href=\"#searchContents\">商品を探す");
      out.write("</a>");
      out.write("</li>\r\n        ");
      out.write("</ul>\r\n      ");
      out.write("</nav>\r\n    ");
      out.write("</div>\r\n");
      out.write("</header>\r\n");
      out.write("<!--▲ヘッダ：ここまで▲-->\r\n");
      out.write("<!--▽予約割り当て済：ここから▽-->\r\n");
      /* ----  webshop:session ---- */
      jp.co.sint.taglib.SISessionTag _jspx_th_webshop_session_0 = (jp.co.sint.taglib.SISessionTag) _jspx_tagPool_webshop_session_type_name_id.get(jp.co.sint.taglib.SISessionTag.class);
      _jspx_th_webshop_session_0.setPageContext(pageContext);
      _jspx_th_webshop_session_0.setParent(null);
      _jspx_th_webshop_session_0.setName(SIConfig.SISESSION_USERINFO_NAME);
      _jspx_th_webshop_session_0.setId("uidHeader");
      _jspx_th_webshop_session_0.setType("jp.co.sint.basic.SIUserInfo");
      int _jspx_eval_webshop_session_0 = _jspx_th_webshop_session_0.doStartTag();
      if (_jspx_eval_webshop_session_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        jp.co.sint.basic.SIUserInfo uidHeader = null;
        uidHeader = (jp.co.sint.basic.SIUserInfo) pageContext.findAttribute("uidHeader");
        do {
          out.write("\r\n");
if (SIUtil.isNotNull(uidHeader.getCustCode())&&SIDBUtil.hasData(connection,"SELECT * FROM reserveordertbl WHERE reserveflg=1 AND ShopName<>'EYELASHGARAGE' AND (shipmaildatetime IS NULL OR shipmaildatetime::date + '7 days'::interval >= current_date) AND custcode="+uidHeader.getCustCode())){
          out.write("\r\n");
          out.write("<div id=\"reserveinfo\">");
          out.write("<a href=\"");
          out.print(SIURLMap.getHttpsUrl(request,"webshop.servlet.front.reservelist"));
          out.write("\">ご予約商品が入荷しましたので決済を完了して下さい ≫");
          out.write("</a>");
          out.write("</div>\r\n");
}
          out.write("\r\n");
          int evalDoAfterBody = _jspx_th_webshop_session_0.doAfterBody();
          uidHeader = (jp.co.sint.basic.SIUserInfo) pageContext.findAttribute("uidHeader");
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
      }
      if (_jspx_th_webshop_session_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
        return;
      _jspx_tagPool_webshop_session_type_name_id.reuse(_jspx_th_webshop_session_0);
      out.write("\r\n");
      out.write("<!--▲予約割り当て済：ここまで▲-->\r\n");
} //▲アプリでは非表示：ここまで▲ 
      out.write("\r\n\r\n");
      out.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"");
      out.print(webshopSite);
      out.write("/sp/css/vex.css\" media=\"all\" />\r\n");
      out.write("<script type=\"text/javascript\" src=\"");
      out.print(webshopSite);
      out.write("/sp/js/vex.combined.min.js\">");
      out.write("</script>");
      out.write("\r\n  ");
      out.write("<!--▲ヘッダ：ここまで▲-->\r\n  ");
      out.write("<!--▼グローバル：ここから▼-->\r\n  ");
      out.write("\r\n\r\n");
      out.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"");
      out.print(webshopSite);
      out.write("/sp/css/global_inc.css\" media=\"all\" />\r\n");
      out.write("<script type=\"text/javascript\" src=\"");
      out.print(webshopSite);
      out.write("/script/jquery.cookie.js\">");
      out.write("</script>\r\n");
      out.write("<!--¥O[oF±±©ç¥-->\r\n");
      out.write("<nav id=\"global\">\r\n  ");
      out.write("<ul class=\"clr\">\r\n    ");
      out.write("<li id=\"global-mypage\">");
      out.write("<a href=\"");
      out.print(SIURLMap.getUrl(request,"webshop.servlet.front.mypage"));
      out.write("\">}Cy[W");
      out.write("</a>");
      out.write("</li>\r\n    ");
      out.write("<li id=\"global-favorite\">");
      out.write("<a href=\"");
      out.print(SIURLMap.getHttpsUrl(request,"webshop.servlet.front.mypage"));
      out.print(SIHTMLUtil.HTMLEncode("/a/" + SIConfig.SIACTION_LIST));
      out.write("\">¨CÉüè");
      out.write("</a> ");
      out.write("<span id=\"global-mypage_count\" class=\"global_count\">");
      out.write("</span>");
      out.write("</li>\r\n    ");
      out.write("<li id=\"global-history\">");
      out.write("<a href=\"");
      out.print(webshopSite);
      out.write("/mypage/a/list2\">Åß©½¤i");
      out.write("</a> ");
      out.write("<span id=\"global-checkhistory_count\" class=\"global_count\">");
      out.write("</span>");
      out.write("</li>\r\n    ");
      out.write("<li id=\"global-repeat\">");
      out.write("<a href=\"");
      out.print(webshopSite);
      out.write("/mypage/a/list3\">æ­wü·é¤i");
      out.write("</a> ");
      out.write("<span id=\"global-favoriteitem_count\" class=\"global_count\">");
      out.write("</span>");
      out.write("</li>\r\n    ");
      out.write("<li id=\"global-cart\"> ");
      out.write("<a href=\"");
      out.print(SIURLMap.getUrl(request,"webshop.servlet.front.cart"));
      out.write("\">J[g");
      out.write("</a> ");
      out.write("<span id=\"global-cart_count\" class=\"global_count\">");
      out.write("</span>");
      out.write("</li>\r\n  ");
      out.write("</ul>\r\n");
      out.write("</nav>\r\n");
      out.write("<!--£O[oF±±ÜÅ£-->\r\n\r\n");
      out.write("<script type=\"text/javascript\" src=\"");
      out.print(webshopSite);
      out.write("/sp/script/jquery.globalFavoriteCnt.js\">");
      out.write("</script>\r\n");
      out.write("<script type=\"text/javascript\" src=\"");
      out.print(webshopSite);
      out.write("/sp/script/jquery.globalCartCnt.js\">");
      out.write("</script>\r\n\r\n");
      out.write("<script type=\"text/javascript\">\r\n");
      out.write("<!-- \r\n//¨CÉüè\r\nvar favoriteStr = $.cookie(\"ws_favoriteBG\");\r\nif (favoriteStr == null) {\r\n  $(\"#global-mypage_count\").html(\"\");\r\n} else {\r\n  var favoriteArray = favoriteStr.split(\",\");\r\n  var favoriteCnt = favoriteArray.length;\r\n  if (favoriteCnt == 0) favoriteCnt = \"\";\r\n  $(\"#global-mypage_count\").html(favoriteCnt);\r\n}\r\n\r\n// Åß©½¤iÌJEg\r\nvar historyStr = $.cookie(\"ws_historyBG\");\r\nif (historyStr == null) {\r\n  $('#global-checkhistory_count').html(\"\");\r\n} else {\r\n  var historyArray = $.cookie(\"ws_historyBG\").split(\",\");\r\n  var history_count = historyArray.length;\r\n  if (history_count == 0) {\r\n    history_count = \"\";\r\n  }\r\n  $('#global-checkhistory_count').html(history_count);\r\n}\r\n\r\n\r\n-->\r\n");
      out.write("</script>\r\n\r\n");
 //¥AvÅÍñ\¦F±±©ç¥
 if (request.getHeader("user-agent").indexOf("bg-webview-")==-1) { 
      out.write("\r\n\r\n");
} //£AvÅÍñ\¦F±±ÜÅ£
 else { //¥AvÅÌÝ\¦F±±©ç¥
 
    Cookie[] cookies = request.getCookies();
    Cookie cmdtyCookieOrgFavoriteBG = null;
    Cookie cmdtyCookieOrgHistoryBG  = null;
    
    if (cookies != null) {
      for (int i = 0; i < cookies.length; i++) {
        if (cookies[i].getName().equals(SIApiConf.COOKIE_NAME_WS_FAVORITEBG)){
          cmdtyCookieOrgFavoriteBG = cookies[i];
        }
        if (cookies[i].getName().equals(SIApiConf.COOKIE_NAME_WS_HISTORYBG)){
          cmdtyCookieOrgHistoryBG = cookies[i];
        }
        if (cmdtyCookieOrgFavoriteBG != null && cmdtyCookieOrgHistoryBG != null) {
          break;
        }
      }
    }
    
    // ¨CÉüè
    String mycatalogCnt = "0";
    if (cmdtyCookieOrgFavoriteBG != null) {
      String cookieStr = cmdtyCookieOrgFavoriteBG.getValue();
      if (SIUtil.isNotNull(cookieStr)) {
        String[] favoriteItems = URLDecoder.decode(cmdtyCookieOrgFavoriteBG.getValue(),"Shift_JIS").split(",");
        mycatalogCnt = String.valueOf(favoriteItems.length);
      }
    }
    // Åß©½¤i
    String historyCnt = "0";
    if (cmdtyCookieOrgHistoryBG != null) {
      String cookieStr = cmdtyCookieOrgHistoryBG.getValue();
      if (SIUtil.isNotNull(cookieStr)) {
        String[] historyItems = URLDecoder.decode(cmdtyCookieOrgHistoryBG.getValue(),"Shift_JIS").split(",");
        historyCnt = String.valueOf(historyItems.length);
      }
    }
   // æ­wü·é¤i
    Collection favoriteColl2 = null;
    if (SIHTMLUtil.getUserInfo(request).isNotLogin(request)) {
      favoriteColl2 = new ArrayList();
    }else {
      //Connection connection = databaseConnection.getConnection();
      favoriteColl2 = UICampaign.getFavoriteItems(connection,request,200);
      if (favoriteColl2 == null) favoriteColl2 = new ArrayList();
    }

    String favoriteCnt = String.valueOf(favoriteColl2.size());
    // J[gü
    SICartManager headerCart = (SICartManager) session.getAttribute(SIConfig.SISESSION_CART_INFO_NAME);
    if (headerCart == null) headerCart = new SICartManager();
    String cartCnt = headerCart.getAmount(); 

/*
    JSONObject obj = new JSONObject();
    obj.put("result",SIApiConf.RESULT_OK);
    obj.put("mypage_id","1");
    obj.put("mycatalog_id","2");
    obj.put("mycatalog_count",mycatalogCnt);
    obj.put("history_id","3");
    obj.put("history_count",historyCnt);
    obj.put("favorite_id","4");
    obj.put("favorite_count",favoriteCnt);
    obj.put("cart_id","5");
    obj.put("cart_count",cartCnt);
    
    log.debug("[end]getCommonFooter");
    return obj;
*/

      out.write("\r\n\r\n");
      out.write("<iframe src=\"app://setBadgeNumber?mycatalog_count=");
      out.print(mycatalogCnt);
      out.write("&history_count=");
      out.print(historyCnt);
      out.write("&favorite_count=");
      out.print(favoriteCnt);
      out.write("&cart_count=");
      out.print(cartCnt);
      out.write("\" width=\"1\" height=\"1\" style=\"position:absolute; z-index:-1; top:-9999px;\">");
      out.write("</iframe>\r\n\r\n");
      out.write("<style type=\"text/css\">nav#global{position:absolute; z-index:-1; width:1px; height:1px; top:-9999px; left:-9999px;}");
      out.write("</style>\r\n\r\n");
} //£AvÅÌÝ\¦F±±ÜÅ£ 
      out.write("\r\n");
      out.write("\r\n  ");
      out.write("<!--▲グローバル：ここまで▲-->\r\n  ");
      out.write("<!--△ページ上部共通：ここまで△-->\r\n  ");
      out.write("<!--▽メイン：ここから▽-->\r\n  ");
      out.write("<div id=\"container\">\r\n  ");
      out.write("<!--▼パンくず：ここから▼-->\r\n  ");
      out.write("<nav id=\"yrHere\" class=\"swiper-container\">\r\n    ");
      out.write("<div class=\"swiper-wrapper\">\r\n      ");
      out.write("<ul class=\"horizontal clr swiper-slide\">\r\n        ");
      out.write("<li>");
      out.write("<a href=\"");
      out.print(mainSrvSite);
      out.write("\">HOME");
      out.write("</a>");
      out.write("</li>\r\n        ");
      out.write("<li>カート");
      out.write("</li>\r\n      ");
      out.write("</ul>\r\n    ");
      out.write("</div>\r\n  ");
      out.write("</nav>\r\n  ");
      out.write("<!--▲パンくず：ここまで▲-->\r\n  ");
      out.write("<!--▼ショッピングカート：ここから▼-->\r\n  ");
      out.write("<h1>ショッピングカート");
      out.write("</h1>\r\n  ");
      out.write("<div class=\"inner\">\r\n  ");
      out.write("<form name=\"cartForm\" action=\"");
      out.print(cartSrvSite);
      out.write("\" method=\"post\">\r\n  ");
      out.write("<script language=\"javascript1.2\" type=\"text/javascript\">\r\n  ");
      out.write("<!--\r\n  function clearCart(){\r\n    with(document.cartForm){\r\n      actionNameTxt.value=\"");
      out.print(SIConfig.SIACTION_CLEAR);
      out.write("\";\r\n      submit();\r\n    }\r\n  }\r\n  function modifyCart(){\r\n    with(document.cartForm){\r\n      actionNameTxt.value=\"");
      out.print(SIConfig.SIACTION_MODIFY);
      out.write("\";\r\n      submit();\r\n    }\r\n  }\r\n  function deleteCart(delRow){\r\n    with(document.cartForm){\r\n      actionNameTxt.value=\"");
      out.print(SIConfig.SIACTION_DELETE);
      out.write("\";\r\n      delRowTxt.value=delRow;\r\n      submit();\r\n    }\r\n  }\r\n  function goCounter(){\r\n    with(document.cartForm){\r\n      action=\"");
      out.print(casherSrvSite);
      out.write("\";\r\n      actionNameTxt.value=\"");
      out.print(SIConfig.SIACTION_SP_CONFIRM);
      out.write("\";\r\n      submit();\r\n    }\r\n  }\r\n  //-->\r\n  ");
      out.write("</script>\r\n  ");
      out.write("<!-- エラーメッセージ -->\r\n");
      out.write("<ol class=\"error\" style=\"color:red;\">\r\n");
      if (_jspx_meth_webshop_actionErrors_0(pageContext))
        return;
      out.write("\r\n");
SICustomErrors pageError = (SICustomErrors)request.getAttribute(SIConfig.SIERROR_ATTRIBUTE_MESSAGE_KEY);
if (pageError==null) pageError = new SICustomErrors();
      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(pageError.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("<li class=\"footer\">");
          out.write("</li>");
          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("</ol>");
      out.write("\r\n    ");
      out.write("<ul class=\"cartList\">\r\n");
      /* ----  webshop:isFalse ---- */
      jp.co.sint.taglib.SIIsFalseTag _jspx_th_webshop_isFalse_1 = (jp.co.sint.taglib.SIIsFalseTag) _jspx_tagPool_webshop_isFalse_value.get(jp.co.sint.taglib.SIIsFalseTag.class);
      _jspx_th_webshop_isFalse_1.setPageContext(pageContext);
      _jspx_th_webshop_isFalse_1.setParent(null);
      _jspx_th_webshop_isFalse_1.setValue(cartMan.isEmpty());
      int _jspx_eval_webshop_isFalse_1 = _jspx_th_webshop_isFalse_1.doStartTag();
      if (_jspx_eval_webshop_isFalse_1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        do {
          out.write("\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(_jspx_th_webshop_isFalse_1);
          _jspx_th_webshop_siiterator_0.setId("cartID");
          _jspx_th_webshop_siiterator_0.setType("jp.co.sint.basic.SICart");
          _jspx_th_webshop_siiterator_0.setCollection(cartMan.getCartCollection("0"));
          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.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=SIUtil.multi_LL(cartID.getAmount(),cartID.getCmdty().getFinalUnitPrice());
totalByShop=SIUtil.add_LL(totalByShop,priceOfCmdty);

              out.write("\r\n      ");
              out.write("<!--▼個別アイテム：ここから▼-->\r\n      ");
              out.write("<li class=\"cartList-item\">\r\n        ");
              out.write("<span class=\"cartList-item_data\">\r\n          ");
              out.write("<span class=\"thumb cell\">");
              out.write("<img src=\"");
              out.print(webshopSite);
              out.write("/image/cmdty/");
              out.print(SIHTMLUtil.HTMLEncode(cartID.getCmdty().getCmdtyCode()));
              out.write("/");
              out.print(SIHTMLUtil.HTMLEncode(cartID.getCmdty().getCmdtyCode()));
              out.write("_");
              out.print(SIHTMLUtil.HTMLEncode(cartID.getCmdty().getIndividualCode()));
              out.write("_t.jpg\"　width=\"51\" height=\"51\">");
              out.write("</span>\r\n          ");
              out.write("<span class=\"name cell w60\">");
              out.write("<a href=\"");
              out.print(cmdtySrvSite+"/"+cartID.getCmdty().getCmdtyCode()+"/"+cartID.getCmdty().getIndividualCode());
              out.write("\">");
              out.print(SIHTMLUtil.HTMLEncode(cartID.getCmdty().getCartCmdtyName()));
              out.write("</a>");
              out.write("</span>\r\n          ");
              out.write("<span class=\"taR cell\">\r\n            ");
              out.write("<a href=\"javascript:deleteCart('");
              out.print(cartID.getCmdty().getCompCode());
              out.write("')\">");
              out.write("<span class=\"btnDel\">削除");
              out.write("</span>");
              out.write("</a>\r\n          ");
              out.write("</span>\r\n        ");
              out.write("</span>\r\n        ");
              out.write("<table class=\"colorBox2 cartItem-table\">\r\n        ");
              out.write("<tr>\r\n          ");
              out.write("<th>単価：");
              out.write("</th>\r\n          ");
if("1".equals(cartID.getCmdty().getBGPriceDispFlg())&&SIHTMLUtil.getUserInfo(request).isNotLogin(request)){openFlg=false;
              out.write("\r\n          ");
              out.write("<td>");
              out.write("<strong>BG卸価はログイン表示");
              out.write("</strong>");
              out.write("</td>\r\n          ");
}else if(cartID.getCmdty().getFinalUnitPrice().equals(cartID.getCmdty().getUnitPrice())){
              out.write("\r\n          ");
              out.write("<td>￥");
              out.print(SIUtil.NumberFormat(cartID.getCmdty().getFinalUnitPriceWithoutTax()));
              out.write("</td>\r\n          ");
}else{
              out.write("\r\n          ");
              out.write("<td>");
              out.write("<strike>￥");
              out.print(SIUtil.NumberFormat(cartID.getCmdty().getUnitPriceWithoutTax()));
              out.write("</strike>");
              out.write("<br/>￥");
              out.print(SIUtil.NumberFormat(cartID.getCmdty().getFinalUnitPriceWithoutTax()));
              out.write("</td>\r\n          ");
}
              out.write("\r\n        ");
              out.write("</tr>\r\n        ");
              out.write("<tr>\r\n          ");
              out.write("<th>数量：");
              out.write("</th>\r\n          ");
              out.write("<td>\r\n            ");
              out.write("<input type=\"tel\" name=\"");
              out.print(cartID.getCmdty().getCompCode());
              out.write("\" value=\"");
              out.print(cartID.getAmount());
              out.write("\" size=\"10\" maxlength=\"8\" />");
              out.write("<a href=\"javascript:modifyCart()\" class=\"btnReCalc\">再計算");
              out.write("</a>\r\n            ");
              out.write("<input type=\"hidden\" name=\"preAmount_");
              out.print(cartID.getCmdty().getCompCode());
              out.write("\" value=\"");
              out.print(cartID.getAmount());
              out.write("\" />\r\n          ");
              out.write("</td>\r\n        ");
              out.write("</tr>\r\n        ");
              out.write("<tr class=\"total\">\r\n          ");
              out.write("<th>商品合計：");
              out.write("</th>\r\n          ");
if("1".equals(cartID.getCmdty().getBGPriceDispFlg())&&SIHTMLUtil.getUserInfo(request).isNotLogin(request)){openFlg=false;
              out.write("\r\n          ");
              out.write("<td>");
              out.write("<span class=\"fwB\">");
              out.write("<strong>BG卸価はログイン表示");
              out.write("</strong>");
              out.write("</span>");
              out.write("</td>\r\n          ");
}else{
              out.write("\r\n          ");
              out.write("<td>");
              out.write("<span class=\"fwB\">￥");
              out.print(SIUtil.NumberFormat(SIUtil.getPriceWithoutTax(priceOfCmdty,TAX)));
              out.write("</span>");
              out.write("</td>\r\n          ");
}
              out.write("\r\n        ");
              out.write("</tr>\r\n        ");
              out.write("</table>\r\n      ");
              out.write("</li>\r\n      ");
              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_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("compositionId");
              _jspx_th_webshop_siiterator_1.setType("jp.co.sint.basic.SICartCmdty");
              _jspx_th_webshop_siiterator_1.setCollection(praiceColl);
              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.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_1.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_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");
 setPrice = SIUtil.sub_LL(setPrice, cartID.getCmdty().getSetDiscountPrice()); 
              out.write("\r\n\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_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_0);
              _jspx_th_webshop_siiterator_2.setId("compositionId");
              _jspx_th_webshop_siiterator_2.setType("jp.co.sint.basic.SICartCmdty");
              _jspx_th_webshop_siiterator_2.setCollection(discountPraiceColl);
              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");
 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_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");
 setDiscountPrice = SIUtil.sub_LL(setDiscountPrice, setDiscountDiscount); 
              out.write("\r\n      ");
              out.write("<li class=\"cartList-item\">\r\n        ");
              out.write("<span class=\"cartList-item_data\">\r\n          ");
              out.write("<span class=\"thumb cell\">");
              out.write("<img src=\"");
              out.print(webshopSite);
              out.write("/image/cmdty/");
              out.print(SIHTMLUtil.HTMLEncode(cartID.getCmdty().getCmdtyCode()));
              out.write("/");
              out.print(SIHTMLUtil.HTMLEncode(cartID.getCmdty().getCmdtyCode()));
              out.write("_");
              out.print(SIHTMLUtil.HTMLEncode(cartID.getCmdty().getIndividualCode()));
              out.write("_t.jpg\"　width=\"51\" height=\"51\">");
              out.write("</span>\r\n          ");
              out.write("<span class=\"name cell w60\">\r\n            ");
              out.write("<a href=\"");
              out.print(cmdtySrvSite+"/"+cartID.getCmdty().getCmdtyCode()+"/"+cartID.getCmdty().getIndividualCode());
              out.write("\">\r\n            ");
              out.print(SIHTMLUtil.HTMLEncode(cartID.getCmdty().getCartCmdtyName()));
              out.write("\r\n            ");
              out.write("</a>\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_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_0);
              _jspx_th_webshop_siiterator_3.setId("compositionId");
              _jspx_th_webshop_siiterator_3.setType("jp.co.sint.basic.SICartCmdty");
              _jspx_th_webshop_siiterator_3.setCollection(coll);
              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            ");
                  out.write("<br/>・（");
                  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            ");
                  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            ");
 if (!cartID.getCmdty().getSetDiscountPrice().equals("0")) { 
              out.write("\r\n            ");
 if (cartID.getCmdty().getSetDiscountPrice().equals(setDiscountDiscount)) { 
              out.write("\r\n            ");
              out.write("<br/>・セット値引き ￥-");
              out.print(SIUtil.NumberFormat(cartID.getCmdty().getSetDiscountPrice()));
              out.write("\r\n            ");
 } else { 
              out.write("\r\n            ");
              out.write("<br/>・セット値引き ￥-");
              out.print(SIUtil.NumberFormat(setDiscountDiscount));
              out.write("\r\n            ");
 } 
              out.write("\r\n            ");
 } 
              out.write("\r\n          ");
              out.write("</span>\r\n          ");
              out.write("<span class=\"taR cell\">\r\n            ");
              out.write("<a href=\"javascript:deleteCart('");
              out.print(cartID.getCmdty().getCompCode());
              out.write("')\">");
              out.write("<span class=\"btnDel\">削除");
              out.write("</span>");
              out.write("</a>\r\n          ");
              out.write("</span>\r\n        ");
              out.write("</span>\r\n        ");
              out.write("<table class=\"colorBox2 cartItem-table\">\r\n        ");
              out.write("<tr>\r\n          ");
              out.write("<th>単価：");
              out.write("</th>\r\n          ");
if("1".equals(cartID.getCmdty().getBGPriceDispFlg())&&SIHTMLUtil.getUserInfo(request).isNotLogin(request)){openFlg=false;
              out.write("\r\n          ");
              out.write("<td>");
              out.write("<strong>BG卸価はログイン表示");
              out.write("</strong>");
              out.write("</td>\r\n          ");
}else if(setPrice.equals(setDiscountPrice)){
              out.write("\r\n          ");
 priceOfCmdty = SIUtil.multi_LL(setPrice, cartID.getAmount()); 
              out.write("\r\n          ");
              out.write("<td>￥");
              out.print(SIUtil.NumberFormat(SIUtil.getPriceWithoutTax(setPrice,TAX)));
              out.write("</td>\r\n          ");
}else{
              out.write("\r\n          ");
 priceOfCmdty = SIUtil.multi_LL(setDiscountPrice, cartID.getAmount()); 
              out.write("\r\n          ");
              out.write("<td>");
              out.write("<strike>￥");
              out.print(SIUtil.NumberFormat(SIUtil.getPriceWithoutTax(setPrice,TAX)));
              out.write("</strike>");
              out.write("<br/>￥");
              out.print(SIUtil.NumberFormat(SIUtil.getPriceWithoutTax(setDiscountPrice,TAX)));
              out.write("</td>\r\n          ");
}
              out.write("\r\n        ");
              out.write("</tr>\r\n        ");
              out.write("<tr>\r\n          ");
              out.write("<th>数量：");
              out.write("</th>\r\n          ");
              out.write("<td>\r\n            ");
              out.write("<input type=\"tel\" name=\"");
              out.print(cartID.getCmdty().getCompCode());
              out.write("\" value=\"");
              out.print(cartID.getAmount());
              out.write("\" size=\"10\" maxlength=\"8\" />");
              out.write("<a href=\"javascript:modifyCart()\" class=\"btnReCalc\">再計算");
              out.write("</a>\r\n            ");
              out.write("<input type=\"hidden\" name=\"preAmount_");
              out.print(cartID.getCmdty().getCompCode());
              out.write("\" value=\"");
              out.print(cartID.getAmount());
              out.write("\" />\r\n          ");
              out.write("</td>\r\n        ");
              out.write("</tr>\r\n        ");
              out.write("<tr class=\"total\">\r\n          ");
              out.write("<th>商品合計：");
              out.write("</th>\r\n          ");
if("1".equals(cartID.getCmdty().getBGPriceDispFlg())&&SIHTMLUtil.getUserInfo(request).isNotLogin(request)){openFlg=false;
              out.write("\r\n          ");
              out.write("<td>");
              out.write("<span class=\"fwB\">");
              out.write("<strong>BG卸価はログイン表示");
              out.write("</strong>");
              out.write("</span>");
              out.write("</td>\r\n          ");
}else{
              out.write("\r\n          ");
              out.write("<td>");
              out.write("<span class=\"fwB\">￥");
              out.print(SIUtil.NumberFormat(SIUtil.getPriceWithoutTax(priceOfCmdty,TAX)));
              out.write("</span>");
              out.write("</td>\r\n          ");
}
              out.write("\r\n          ");
 totalByShop=SIUtil.add_LL(totalByShop, priceOfCmdty);
              out.write("\r\n        ");
              out.write("</tr>\r\n        ");
              out.write("</table>\r\n      ");
              out.write("</li>\r\n");
 } 
              out.write("\r\n");
              out.write("\r\n");
              int evalDoAfterBody = _jspx_th_webshop_siiterator_0.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_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");
          int evalDoAfterBody = _jspx_th_webshop_isFalse_1.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
      }
      if (_jspx_th_webshop_isFalse_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
        return;
      _jspx_tagPool_webshop_isFalse_value.reuse(_jspx_th_webshop_isFalse_1);
      out.write("\r\n    ");
      out.write("</ul>\r\n    ");
      out.write("<div class=\"cartArrow\">\r\n      ");
if(openFlg){
      out.write("\r\n      ");
      out.write("<div style=\"display:inline-block;\">");
      out.write("<p class=\"price fs15\">商品合計 ￥");
      out.print(SIUtil.NumberFormat(SIUtil.getPriceWithoutTax(totalByShop,TAX)));
      out.write("<span class=\"fs12\">（税別）");
      out.write("</span>");
      out.write("</p>");
      out.write("<span style=\"display:block; text-align:right; padding-right:8px;\">[￥");
      out.print(SIUtil.NumberFormat(totalByShop));
      out.write("<span class=\"tax\">（税込）");
      out.write("</span>]");
      out.write("</span>");
      out.write("</div>\r\n      ");
}else{
      out.write("\r\n      ");
      out.write("<p>商品合計　￥ログイン後表示");
      out.write("</p>\r\n      ");
}
      out.write("\r\n    ");
      out.write("</div>\r\n    ");
      out.write("<div class=\"inner\">\r\n      ");
      out.write("<button class=\"btnYl w100\" onclick=\"javascript:goCounter()\">\r\n      ");
if(SIHTMLUtil.getUserInfo(request).isNotLogin(request)){
      out.write("\r\n        ");
      out.write("<span>ログインしてご購入手続きに進む");
      out.write("</span>\r\n      ");
 } else { 
      out.write("\r\n        ");
      out.write("<span>ご購入手続きに進む");
      out.write("</span>\r\n      ");
 } 
      out.write("\r\n      ");
      out.write("</button>\r\n      ");
      out.write("<p class=\"btn btnBack\">");
      out.write("<a href=\"");
      out.print(mainSrvSite);
      out.write("\">買い物を続ける");
      out.write("</a>");
      out.write("</p>\r\n    ");
      out.write("</div>\r\n    ");
      out.write("<input type=\"hidden\" name=\"shopCode\" value=\"0\"/>\r\n    ");
      out.write("<input type=\"hidden\" name=\"delRowTxt\" value=\"\"/>\r\n    ");
      out.write("<input type=\"hidden\" name=\"actionNameTxt\" value=\"\"/>\r\n  ");
      out.write("</form>\r\n  ");
      out.write("</div>\r\n  ");
      out.write("<!--▲ショッピングカート：ここまで▲-->\r\n  ");
      out.write("<form name=\"cartForm2\" action=\"");
      out.print(cartSrvSite);
      out.write("\" method=\"post\">\r\n  ");
      out.write("<script language=\"javascript1.2\" type=\"text/javascript\">\r\n  ");
      out.write("<!--\r\n  function addCart(lCmdtyCode,lIndividualCode){\r\n    with(document.cartForm2){\r\n      cartCmdtyCodeTxt.value=lCmdtyCode;\r\n      cartIndividualCodeTxt.value=lIndividualCode;\r\n      //submit();\r\n    }\r\n  }\r\n  //-->\r\n  ");
      out.write("</script>\r\n  ");
Collection cartRecommendColl=jp.co.sint.servlet.front.SICommoditySrv.readCartRecommend(request,connection); int count=0;
      out.write("\r\n  ");
      /* ----  webshop:isFalse ---- */
      jp.co.sint.taglib.SIIsFalseTag _jspx_th_webshop_isFalse_2 = (jp.co.sint.taglib.SIIsFalseTag) _jspx_tagPool_webshop_isFalse_value.get(jp.co.sint.taglib.SIIsFalseTag.class);
      _jspx_th_webshop_isFalse_2.setPageContext(pageContext);
      _jspx_th_webshop_isFalse_2.setParent(null);
      _jspx_th_webshop_isFalse_2.setValue(cartRecommendColl.size()==0);
      int _jspx_eval_webshop_isFalse_2 = _jspx_th_webshop_isFalse_2.doStartTag();
      if (_jspx_eval_webshop_isFalse_2 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        do {
          out.write("\r\n  ");
          out.write("<!--▼いっしょに買われている商品：ここから▼-->\r\n  ");
          out.write("<div id=\"\">\r\n    ");
          out.write("<h2>カート内の商品とよくいっしょに買われている商品");
          out.write("</h2>\r\n    ");
          out.write("<!--▼▼リストここから▼▼-->\r\n    ");
          out.write("<ul class=\"itemListWide small\">\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_isFalse_2);
          _jspx_th_webshop_siiterator_4.setType("jp.co.sint.basic.SICmdty");
          _jspx_th_webshop_siiterator_4.setCollection(cartRecommendColl);
          _jspx_th_webshop_siiterator_4.setId("recommendID");
          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.SICmdty recommendID = null;
            recommendID = (jp.co.sint.basic.SICmdty) pageContext.findAttribute("recommendID");
            do {
              out.write("\r\n    ");
count++;
              out.write("\r\n    ");
              /* ----  webshop:isTrue ---- */
              jp.co.sint.taglib.SIIsTrueTag _jspx_th_webshop_isTrue_0 = (jp.co.sint.taglib.SIIsTrueTag) _jspx_tagPool_webshop_isTrue_value.get(jp.co.sint.taglib.SIIsTrueTag.class);
              _jspx_th_webshop_isTrue_0.setPageContext(pageContext);
              _jspx_th_webshop_isTrue_0.setParent(_jspx_th_webshop_siiterator_4);
              _jspx_th_webshop_isTrue_0.setValue(count<=10);
              int _jspx_eval_webshop_isTrue_0 = _jspx_th_webshop_isTrue_0.doStartTag();
              if (_jspx_eval_webshop_isTrue_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                do {
                  out.write("\r\n    ");
                  out.write("<!--▼個別アイテム：ここから▼-->\r\n    ");
                  out.write("<li class=\"itemListWide-item\">\r\n      ");
                  out.write("<span class=\"thumb cell\">");
                  out.write("<img src=\"");
                  out.print(webshopSite);
                  out.write("/image/cmdty/");
                  out.print(recommendID.getCmdtyCode());
                  out.write("/");
                  out.print(recommendID.getCmdtyCode());
                  out.write("_");
                  out.print(recommendID.getIndividualCode());
                  out.write("_t.jpg\" width=\"34\" height=\"34\">");
                  out.write("</span>\r\n      ");
                  out.write("<span class=\"data cell\">\r\n        ");
                  out.write("<span class=\"name\">");
                  out.write("<a href=\"");
                  out.print(cmdtySrvSite+"/"+recommendID.getCmdtyCode()+"/"+recommendID.getIndividualCode());
                  out.write("\">");
                  out.print(recommendID.getCmdtyName());
                  out.write("</a>");
                  out.write("</span>");
                  out.write("<br/>\r\n        ");
if(recommendID.isContractFlg()){
                  out.write("<span class=\"price\">");
                  out.write("<strong>BG卸価：契約後表示");
                  out.write("</strong>");
                  out.write("</span>\r\n        ");
}else if(recommendID.getBGPriceDispFlg().equals("2")){
                  out.write("<span class=\"price\">");
                  out.write("<strong>BG卸価：お問い合わせ下さい");
                  out.write("</strong>");
                  out.write("</span>\r\n        ");
}else if(recommendID.getBGPriceDispFlg().equals("1")&&SIHTMLUtil.getUserInfo(request).isNotLogin(request)){
                  out.write("<span class=\"price\">");
                  out.write("<strong>BG卸価：ログイン表示");
                  out.write("</strong>");
                  out.write("</span>\r\n        ");
}else{
                  out.write("\r\n        ");
if (!recommendID.isCmdtyComposition()){
                  out.write("\r\n        ");
if(recommendID.getFinalUnitPriceWithoutTax().equals(recommendID.getUnitPriceWithoutTax())){
                  out.write("\r\n        ");
                  out.write("<span class=\"price\">￥");
                  out.print(SIUtil.NumberFormat(recommendID.getFinalUnitPriceWithoutTax()));
                  out.write("</span>");
                  out.write("<span class=\"tax fcRed\">（税別）");
                  out.write("</span>\r\n        ");
}else{
                  out.write("\r\n        ");
                  out.write("<span class=\"price\">");
                  out.write("<strike>￥");
                  out.print(SIUtil.NumberFormat(recommendID.getUnitPriceWithoutTax()));
                  out.write("（税別）");
                  out.write("</strike>");
                  out.write("<br/>￥");
                  out.print(SIUtil.NumberFormat(recommendID.getFinalUnitPriceWithoutTax()));
                  out.write("</span>");
                  out.write("<span class=\"tax fcRed\">（税別）");
                  out.write("</span>\r\n        ");
}
                  out.write("\r\n        ");
}else{
                  out.write("\r\n        ");
 String setUnitPrice = recommendID.getSetUnitPriceWithoutTax(connection); 
                  out.write("\r\n        ");
 String setDiscountUnitPrice = recommendID.getSetDiscountUnitPriceWithoutTax(connection); 
                  out.write("\r\n        ");
if(setUnitPrice.equals(setDiscountUnitPrice)){
                  out.write("\r\n        ");
                  out.write("<span class=\"price\">￥");
                  out.print(SIUtil.NumberFormat(setUnitPrice));
                  out.write("</span>");
                  out.write("<span class=\"tax fcRed\">（税別）");
                  out.write("</span>\r\n        ");
}else{
                  out.write("\r\n        ");
                  out.write("<span class=\"price\">");
                  out.write("<strike>￥");
                  out.print(SIUtil.NumberFormat(setUnitPrice));
                  out.write("（税別）");
                  out.write("</strike>");
                  out.write("</span>");
                  out.write("<br/>￥");
                  out.print(SIUtil.NumberFormat(setDiscountUnitPrice));
                  out.write("<span class=\"tax fcRed\">（税別）");
                  out.write("</span>\r\n        ");
}
                  out.write("\r\n        ");
}}
                  out.write("\r\n      ");
                  out.write("</span>\r\n      ");
                  out.write("<span class=\"form cell\" style=\"width:120px;\">\r\n        ");
if(recommendID.isHairCosmeFlg()){
                  out.write("\r\n        ");
                  out.write("<a href=\"");
                  out.print(SIURLMap.getHttpsUrl(request,"webshop.servlet.front.haircosme"));
                  out.write("\">\r\n          ");
                  out.write("<span>契約顧客様限定");
                  out.write("<br>お取引申込はこちら");
                  out.write("</span>\r\n        ");
                  out.write("</a>\r\n        ");
}else if(recommendID.isContractFlg()&&SIHTMLUtil.getUserInfo(request).isNotLogin(request)){
                  out.write("\r\n        ");
                  out.write("<a href=\"");
                  out.print(SIURLMap.getHttpsUrl(request,"webshop.servlet.front.user.login")+"?nid=/cart_param");
                  out.write("\">\r\n          ");
                  out.write("<span>契約顧客様限定");
                  out.write("<br>ログインはこちら");
                  out.write("</span>\r\n        ");
                  out.write("</a>\r\n        ");
}else if(recommendID.isContractFlg()&&recommendID.isMailContract(connection)){
                  out.write("\r\n        ");
                  out.write("<a href=\"");
                  out.print(SIURLMap.getHttpsUrl(request,"webshop.servlet.front.contract_peachpeau")+"?contractMaker="+recommendID.getMakerCode());
                  out.write("\">\r\n          ");
                  out.write("<span>契約顧客様限定");
                  out.write("<br>お取引申込はこちら");
                  out.write("</span>\r\n        ");
                  out.write("</a>\r\n        ");
}else if(recommendID.isContractFlg()){
                  out.write("\r\n        ");
                  out.write("<a href=\"");
                  out.print(SIHTMLUtil.consURL(request,webshopSite+"/guide/license.html",false));
                  out.write("\">\r\n          ");
                  out.write("<span>契約顧客様限定");
                  out.write("<br>お取引申込はこちら");
                  out.write("</span>\r\n        ");
                  out.write("</a>\r\n        ");
}else{
                  out.write("\r\n        ");
                  out.write("<button class=\"btnAddCartSS\" onclick=\"javascript:addCart('");
                  out.print(recommendID.getCmdtyCode());
                  out.write("','");
                  out.print(recommendID.getIndividualCode());
                  out.write("')\">\r\n          ");
                  out.write("<span>カートに入れる");
                  out.write("</span>\r\n        ");
                  out.write("</button>\r\n        ");
}
                  out.write("\r\n      ");
                  out.write("</span>\r\n    ");
                  out.write("</li>\r\n    ");
                  out.write("<!--▲個別アイテム：ここまで▲-->\r\n    ");
                  int evalDoAfterBody = _jspx_th_webshop_isTrue_0.doAfterBody();
                  if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                    break;
                } while (true);
              }
              if (_jspx_th_webshop_isTrue_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
                return;
              _jspx_tagPool_webshop_isTrue_value.reuse(_jspx_th_webshop_isTrue_0);
              out.write("\r\n    ");
              int evalDoAfterBody = _jspx_th_webshop_siiterator_4.doAfterBody();
              recommendID = (jp.co.sint.basic.SICmdty) pageContext.findAttribute("recommendID");
              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    ");
          out.write("</ul>\r\n    ");
          out.write("<!--▲▲リストここまで▲▲-->\r\n  ");
          out.write("</div>\r\n  ");
          out.write("<!--▲いっしょに買われている商品：ここまで▲-->\r\n  ");
          int evalDoAfterBody = _jspx_th_webshop_isFalse_2.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
      }
      if (_jspx_th_webshop_isFalse_2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
        return;
      _jspx_tagPool_webshop_isFalse_value.reuse(_jspx_th_webshop_isFalse_2);
      out.write("\r\n  ");
Collection commodityHistoryColl=jp.co.sint.servlet.front.SICommoditySrv.readCmdtyHistory(request,connection,50,true);
      out.write("\r\n  ");
      /* ----  webshop:isFalse ---- */
      jp.co.sint.taglib.SIIsFalseTag _jspx_th_webshop_isFalse_3 = (jp.co.sint.taglib.SIIsFalseTag) _jspx_tagPool_webshop_isFalse_value.get(jp.co.sint.taglib.SIIsFalseTag.class);
      _jspx_th_webshop_isFalse_3.setPageContext(pageContext);
      _jspx_th_webshop_isFalse_3.setParent(null);
      _jspx_th_webshop_isFalse_3.setValue(commodityHistoryColl.size()==0);
      int _jspx_eval_webshop_isFalse_3 = _jspx_th_webshop_isFalse_3.doStartTag();
      if (_jspx_eval_webshop_isFalse_3 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        do {
          out.write("\r\n  ");
          out.write("<!--▼最近チェックした商品：ここから▼-->\r\n  ");
          out.write("<div id=\"\">\r\n    ");
          out.write("<h2>最近チェックした商品");
          out.write("</h2>\r\n    ");
          out.write("<!--▼▼リストここから▼▼-->\r\n    ");
          out.write("<ul class=\"itemListWide small\">\r\n    ");
          /* ----  webshop:siiterator ---- */
          jp.co.sint.taglib.SIIteratorTag _jspx_th_webshop_siiterator_5 = (jp.co.sint.taglib.SIIteratorTag) _jspx_tagPool_webshop_siiterator_type_id_collection.get(jp.co.sint.taglib.SIIteratorTag.class);
          _jspx_th_webshop_siiterator_5.setPageContext(pageContext);
          _jspx_th_webshop_siiterator_5.setParent(_jspx_th_webshop_isFalse_3);
          _jspx_th_webshop_siiterator_5.setType("jp.co.sint.basic.SICmdty");
          _jspx_th_webshop_siiterator_5.setCollection(commodityHistoryColl);
          _jspx_th_webshop_siiterator_5.setId("historyID");
          int _jspx_eval_webshop_siiterator_5 = _jspx_th_webshop_siiterator_5.doStartTag();
          if (_jspx_eval_webshop_siiterator_5 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
            jp.co.sint.basic.SICmdty historyID = null;
            historyID = (jp.co.sint.basic.SICmdty) pageContext.findAttribute("historyID");
            do {
              out.write("\r\n    ");
              out.write("<!--▼個別アイテム：ここから▼-->\r\n    ");
              out.write("<li class=\"itemListWide-item\">\r\n      ");
              out.write("<span class=\"thumb cell\">");
              out.write("<img src=\"");
              out.print(webshopSite);
              out.write("/image/cmdty/");
              out.print(historyID.getCmdtyCode());
              out.write("/");
              out.print(historyID.getCmdtyCode());
              out.write("_");
              out.print(historyID.getIndividualCode());
              out.write("_t.jpg\" width=\"34\" height=\"34\">");
              out.write("</span>\r\n      ");
              out.write("<span class=\"data cell\">\r\n        ");
              out.write("<span class=\"name\">");
              out.write("<a href=\"");
              out.print(cmdtySrvSite+"/"+historyID.getCmdtyCode()+"/"+historyID.getIndividualCode());
              out.write("\">");
              out.print(historyID.getCmdtyName());
              out.write("</a>");
              out.write("</span>");
              out.write("<br/>\r\n        ");
if(historyID.isContractFlg()){
              out.write("<span class=\"price\">");
              out.write("<strong>BG卸価：契約後表示");
              out.write("</strong>");
              out.write("</span>\r\n        ");
}else if(historyID.getBGPriceDispFlg().equals("2")){
              out.write("<span class=\"price\">");
              out.write("<strong>BG卸価：お問い合わせ下さい");
              out.write("</strong>");
              out.write("</span>\r\n        ");
}else if(historyID.getBGPriceDispFlg().equals("1")&&SIHTMLUtil.getUserInfo(request).isNotLogin(request)){
              out.write("<span class=\"price\">");
              out.write("<strong>BG卸価：ログイン表示");
              out.write("</strong>");
              out.write("</span>\r\n        ");
}else{
              out.write("\r\n        ");
if (!historyID.isCmdtyComposition()){
              out.write("\r\n        ");
if(historyID.getFinalUnitPriceWithoutTax().equals(historyID.getUnitPriceWithoutTax())){
              out.write("\r\n        ");
              out.write("<span class=\"price\">￥");
              out.print(SIUtil.NumberFormat(historyID.getFinalUnitPriceWithoutTax()));
              out.write("</span>");
              out.write("<span class=\"tax fcRed\">（税別）");
              out.write("</span>\r\n        ");
}else{
              out.write("\r\n        ");
              out.write("<span class=\"price\">");
              out.write("<strike>￥");
              out.print(SIUtil.NumberFormat(historyID.getUnitPriceWithoutTax()));
              out.write("（税別）");
              out.write("</strike>");
              out.write("<br/>￥");
              out.print(SIUtil.NumberFormat(historyID.getFinalUnitPriceWithoutTax()));
              out.write("</span>");
              out.write("<span class=\"tax fcRed\">（税別）");
              out.write("</span>\r\n        ");
}
              out.write("\r\n        ");
}else{
              out.write("\r\n        ");
 String setUnitPrice = historyID.getSetUnitPriceWithoutTax(connection); 
              out.write("\r\n        ");
 String setDiscountUnitPrice = historyID.getSetDiscountUnitPriceWithoutTax(connection); 
              out.write("\r\n        ");
if(setUnitPrice.equals(setDiscountUnitPrice)){
              out.write("\r\n        ");
              out.write("<span class=\"price\">￥");
              out.print(SIUtil.NumberFormat(setUnitPrice));
              out.write("</span>");
              out.write("<span class=\"tax fcRed\">（税込）");
              out.write("</span>\r\n        ");
}else{
              out.write("\r\n        ");
              out.write("<span class=\"price\">");
              out.write("<strike>￥");
              out.print(SIUtil.NumberFormat(setUnitPrice));
              out.write("（税別）");
              out.write("</strike>");
              out.write("<br/>￥");
              out.print(SIUtil.NumberFormat(setDiscountUnitPrice));
              out.write("</span>");
              out.write("<span class=\"tax fcRed\">（税別）");
              out.write("</span>\r\n        ");
}
              out.write("\r\n        ");
}}
              out.write("\r\n      ");
              out.write("</span>\r\n      ");
              out.write("<span class=\"form cell\" style=\"width:120px;\">\r\n        ");
if(historyID.isHairCosmeFlg()){
              out.write("\r\n        ");
              out.write("<a href=\"");
              out.print(SIURLMap.getHttpsUrl(request,"webshop.servlet.front.haircosme"));
              out.write("\">\r\n          ");
              out.write("<span>契約顧客様限定");
              out.write("<br>お取引申込はこちら");
              out.write("</span>\r\n        ");
              out.write("</a>\r\n        ");
}else if(historyID.isContractFlg()&&SIHTMLUtil.getUserInfo(request).isNotLogin(request)){
              out.write("\r\n        ");
              out.write("<a href=\"");
              out.print(SIURLMap.getHttpsUrl(request,"webshop.servlet.front.user.login")+"?nid=/cart_param");
              out.write("\">\r\n          ");
              out.write("<span>契約顧客様限定");
              out.write("<br>ログインはこちら");
              out.write("</span>\r\n        ");
              out.write("</a>\r\n        ");
}else if(historyID.isContractFlg()&&historyID.isMailContract(connection)){
              out.write("\r\n        ");
              out.write("<a href=\"");
              out.print(SIURLMap.getHttpsUrl(request,"webshop.servlet.front.contract_peachpeau")+"?contractMaker="+historyID.getMakerCode());
              out.write("\">\r\n          ");
              out.write("<span>契約顧客様限定");
              out.write("<br>お取引申込はこちら");
              out.write("</span>\r\n        ");
              out.write("</a>\r\n        ");
}else if(historyID.isContractFlg()){
              out.write("\r\n        ");
              out.write("<a href=\"");
              out.print(SIHTMLUtil.consURL(request,webshopSite+"/guide/license.html",false));
              out.write("\">\r\n          ");
              out.write("<span>契約顧客様限定");
              out.write("<br>お取引申込はこちら");
              out.write("</span>\r\n        ");
              out.write("</a>\r\n        ");
}else{
              out.write("\r\n        ");
              out.write("<button class=\"btnAddCartSS\" onclick=\"javascript:addCart('");
              out.print(historyID.getCmdtyCode());
              out.write("','");
              out.print(historyID.getIndividualCode());
              out.write("')\">\r\n          ");
              out.write("<span>カートに入れる");
              out.write("</span>\r\n        ");
              out.write("</button>\r\n        ");
}
              out.write("\r\n      ");
              out.write("</span>\r\n    ");
              out.write("</li>\r\n    ");
              out.write("<!--▲個別アイテム：ここまで▲-->\r\n    ");
              int evalDoAfterBody = _jspx_th_webshop_siiterator_5.doAfterBody();
              historyID = (jp.co.sint.basic.SICmdty) pageContext.findAttribute("historyID");
              if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                break;
            } while (true);
          }
          if (_jspx_th_webshop_siiterator_5.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
            return;
          _jspx_tagPool_webshop_siiterator_type_id_collection.reuse(_jspx_th_webshop_siiterator_5);
          out.write("\r\n    ");
          out.write("</ul>\r\n    ");
          out.write("<!--▲▲リストここまで▲▲-->\r\n  ");
          out.write("</div>\r\n  ");
          out.write("<!--▲最近チェックした商品：ここまで▲-->\r\n  ");
          int evalDoAfterBody = _jspx_th_webshop_isFalse_3.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
      }
      if (_jspx_th_webshop_isFalse_3.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
        return;
      _jspx_tagPool_webshop_isFalse_value.reuse(_jspx_th_webshop_isFalse_3);
      out.write("\r\n  ");
      out.write("<input name=\"cartShopCodeTxt\" type=\"hidden\" value=\"0\"/>\r\n  ");
      out.write("<input name=\"cartCmdtyCodeTxt\" type=\"hidden\" value=\"\"/>\r\n  ");
      out.write("<input name=\"cartIndividualCodeTxt\" type=\"hidden\" value=\"\"/>\r\n  ");
      out.write("<input name=\"actionNameTxt\" type=\"hidden\" value=\"");
      out.print(SIConfig.SIACTION_ADD);
      out.write("\"/>\r\n  ");
      out.write("</form>\r\n  ");
      out.write("</div>\r\n  ");
      out.write("<!--△メイン：ここまで△-->\r\n\r\n  ");
      out.write("<!--▽ページ下部共通：ここから▽-->\r\n  ");
 //▼アプリでは非表示：ここから▼
 if (request.getHeader("user-agent").indexOf("bg-webview-")==-1) { 
      out.write("\r\n");
      out.write("<!--▼フッタ：ここから▼-->\r\n");
      out.write("<footer id=\"footer\" class=\"topBorder\">\r\n  ");
      out.write("<p id=\"copyright\"> &copy; BEAUTY GARAGE INC.  All Rights Reserved. ");
      out.write("</p>\r\n");
      out.write("</footer>\r\n");
      out.write("<!--▲フッタ：ここまで▲-->\r\n");
} //▲アプリでは非表示：ここまで▲ 
      out.write("\r\n  ");
      out.write("<!--△ページ下部共通：ここまで△-->\r\n  ");
      out.write("<!--▽モーダル：ここから▽-->\r\n  ");
      out.write("<div id=\"modalContentsWrap\">\r\n  ");
      out.write("<!--▽メニュー：ここから▽-->\r\n  ");
 SIUserInfo userLoginForMenu = SIHTMLUtil.getUserInfo(request); 
   String[] urlForMenu = request.getRequestURL().toString().split(webshopSite);
   String nidForMenu = "";
   if (urlForMenu.length == 2) {
     nidForMenu= urlForMenu[1];
   }
   if (nidForMenu.indexOf("logout") != -1) {
     nidForMenu = "";
   }

      out.write("\r\n\r\n");
      out.write("<!--▽メニュー：ここから▽-->\r\n");
      out.write("<div id=\"menuContents\" class=\"modalContents\">\r\n  ");
      out.write("<div class=\"inner\">\r\n    ");
      out.write("<h2>メニュー");
      out.write("</h2>\r\n    ");
      out.write("<ul class=\"linkList\">\r\n      ");
      out.write("<span id=\"login_menu\">\r\n      ");
      out.write("<li>");
      out.write("<a id=\"check_url\" href=\"");
      out.print(SIURLMap.getHttpsUrl(request,"webshop.servlet.front.user.login")+"?nid="+nidForMenu);
      out.write("\">ログイン");
      out.write("</a>");
      out.write("</li>\r\n      ");
      out.write("</span>\r\n      ");
      out.write("<span id=\"logout_menu\">\r\n      ");
      out.write("<li>");
      out.write("<a href=\"");
      out.print(SIURLMap.getHttpsUrl(request,"webshop.servlet.front.user.logout"));
      out.write("\">ログアウト");
      out.write("</a>");
      out.write("</li>\r\n      ");
      out.write("</span>\r\n      ");
      out.write("<li>");
      out.write("<a href=\"");
      out.print(SIURLMap.getUrl(request,"webshop.servlet.front.mypage"));
      out.write("\">マイページ");
      out.write("</a>");
      out.write("</li>\r\n      ");
      out.write("<li>");
      out.write("<a href=\"");
      out.print("http://"+request.getServerName()+webshopSite);
      out.write("/guide/first.html\">はじめてのお客様");
      out.write("</a>");
      out.write("</li>\r\n      ");
      out.write("<li>");
      out.write("<a href=\"");
      out.print(SIHTMLUtil.consURL(request,webshopSite+"/showroom/index.html",false));
      out.write("\">ショールームのご案内");
      out.write("</a>");
      out.write("</li>\r\n      ");
      out.write("<li>");
      out.write("<a href=\"");
      out.print(SIHTMLUtil.consURL(request,webshopSite+"/catalog",false));
      out.write("\">カタログ・商品コードからのご注文");
      out.write("</a>");
      out.write("</li>\r\n      ");
      out.write("<li>");
      out.write("<a href=\"");
      out.print(SIHTMLUtil.consURL(request,webshopSite+"/guide/index.html",false));
      out.write("\">ご利用ガイド");
      out.write("</a>");
      out.write("</li>\r\n      ");
      out.write("<li class=\"opener open\">");
      out.write("<a href=\"javascript:void(0);\">各種サポート");
      out.write("</a>\r\n        ");
      out.write("<ul class=\"child col-2 clr\">\r\n          ");
      out.write("<li>");
      out.write("<a href=\"");
      out.print(SIHTMLUtil.consURL(request,webshopSite+"/guide/guarantee.html",false));
      out.write("\">保証/アフターフォロー");
      out.write("</a>");
      out.write("</li>\r\n          ");
      out.write("<li>");
      out.write("<a href=\"");
      out.print(SIURLMap.getHttpsUrl(request,"webshop.servlet.front.search"));
      out.write("\">商品お探しします");
      out.write("</a>");
      out.write("</li>\r\n          ");
      out.write("<li>");
      out.write("<a href=\"");
      out.print(SIHTMLUtil.consURL(request,webshopSite+"/guide/repair.html",false));
      out.write("\">レザー張替サービス");
      out.write("</a>");
      out.write("</li>\r\n          ");
      out.write("<li>");
      out.write("<a href=\"");
      out.print(SIHTMLUtil.consURL(request,webshopSite+"/guide/setting.html",false));
      out.write("\">器具取付設置サービス");
      out.write("</a>");
      out.write("</li>\r\n          ");
      out.write("<li>");
      out.write("<a href=\"");
      out.print(SIHTMLUtil.consURL(request,webshopSite+"/catalog_request",false));
      out.write("\">カタログ無料プレゼント");
      out.write("</a>");
      out.write("</li>\r\n          ");
      out.write("<li>");
      out.write("<a href=\"");
      out.print(SIHTMLUtil.consURL(request,webshopSite+"/guide/kaitori.html",false));
      out.write("\">器具買取サービス");
      out.write("</a>");
      out.write("</li>\r\n          ");
      out.write("<li>");
      out.write("<a href=\"");
      out.print(SIHTMLUtil.consURL(request,webshopSite+"/guide/srent.html",false));
      out.write("\">中古理美容機器レンタル");
      out.write("</a>");
      out.write("</li>\r\n          ");
      out.write("<li>");
      out.write("<a href=\"");
      out.print(SIHTMLUtil.consURL(request,webshopSite+"/guide/overseas_shipping.html",false));
      out.write("\">海外発送サービス");
      out.write("</a>");
      out.write("</li>\r\n        ");
      out.write("</ul>\r\n      ");
      out.write("</li>\r\n      ");
      out.write("<li>");
      out.write("<a href=\"");
      out.print(webshopSite);
      out.write("/guide/faq.html\">Q＆A");
      out.write("</a>");
      out.write("</li>\r\n      ");
      out.write("<li>");
      out.write("<a href=\"");
      out.print(SIHTMLUtil.consURL(request,"/form/sp/contact/",true));
      out.write("\">お問い合わせ");
      out.write("</a>");
      out.write("</li>\r\n    ");
      out.write("</ul>\r\n    ");
      out.write("<p class=\"modalClose\">閉じる");
      out.write("</p>\r\n  ");
      out.write("</div>\r\n");
      out.write("</div>\r\n");
      out.write("<!--△メニュー：ここまで△-->\r\n\r\n");
      out.write("<script type=\"text/javascript\" src=\"");
      out.print(webshopSite);
      out.write("/sp/script/jquery.modalMenuLoginCheck.js\">");
      out.write("</script>\r\n");
      out.write("<script type=\"text/javascript\">\r\n$(document).ready(function() {\r\n\t$('a#check_url').each(function() {\r\n\t\tvar targetUrl = null;\r\n\t\tvar targetUrl = $(this).attr('href');\r\n\t\tif(targetUrl.indexOf('Srv/param') != -1){\r\n\t\t\tvar targetUrl = $(this).attr('href').replace('Srv/param','').replace('+','/');\r\n\t\t}else return;\r\n\t\t$(this).attr('href',targetUrl);\r\n\t});\t\r\n\t$('input#check_value').each(function() {\r\n\t\tvar targetValue = null;\r\n\t\tvar targetValue = $(this).attr('value');\r\n\t\tif(targetValue.indexOf('Srv/param') != -1){\r\n\t\t\tvar targetValue = $(this).attr('value').replace('Srv/param','').replace('+','/');\r\n\t\t}else return;\r\n\t\t$(this).attr('value',targetValue);\r\n\t});\r\n});\r\n");
      out.write("</script>\r\n");
      out.write("\r\n  ");
      out.write("<!--△メニュー：ここまで△-->\r\n  ");
      out.write("<!--▽モーダル用商品を探す：ここから▽-->\r\n  ");
      out.write("<!--▽モーダル用商品を探す：ここから▽-->\r\n");
      out.write("<div id=\"searchContents\" class=\"modalContents\">\r\n  ");
      out.write("<div class=\"inner\">\r\n    ");
      out.write("<h2>商品を探す");
      out.write("</h2>\r\n      ");
      out.write("<div id=\"searchBox\">\r\n    ");
      out.write("<form name=\"headerSearch\" action=\"");
      out.print(SIHTMLUtil.consURL(request, webshopSite, true) + "/advancedsearch");
      out.write("\" method=\"get\">\r\n      ");
      out.write("<input type=\"text\" name=\"srchWordTxt\" id=\"textSearchBox\" onKeyPress=\"enterSearchHead(event);\" placeholder=\"キーワードを入力\" >\r\n      ");
      out.write("<input type=\"submit\" id=\"headerSearchBtn\" value=\"検索\" onClick=\"headsearch();\">\r\n      ");
      out.write("<input name=\"cmdtyFlagTxt\" type=\"hidden\" value=\"sr\">\r\n      ");
      out.write("<input name=\"dispModeTxt\" type=\"hidden\" value=\"");
      out.print(SIConfig.DEFAULT_DISPMODE);
      out.write("\">\r\n      ");
      out.write("<input name=\"actionNameTxt\" type=\"hidden\" value=\"");
      out.print(SIConfig.SIACTION_LIST);
      out.write("\">\r\n      ");
      out.write("<input name=\"cmdtySortSel\" type=\"hidden\" value=\"2\">\r\n      ");
      out.write("<input name=\"pass\" type=\"hidden\" value=\"advancedsearch\">\r\n      ");
      out.write("<input name=\"active\" type=\"hidden\" value=\"advancedsearch\">\r\n    ");
      out.write("</form>\r\n  ");
      out.write("</div>\r\n    ");
      out.write("<!-- デフォルト -->\r\n    ");
      out.write("<ul class=\"linkList2 child2 col-2 clr\">\r\n      ");
      /* ----  webshop:siiterator ---- */
      jp.co.sint.taglib.SIIteratorTag _jspx_th_webshop_siiterator_6 = (jp.co.sint.taglib.SIIteratorTag) _jspx_tagPool_webshop_siiterator_type_id_collection.get(jp.co.sint.taglib.SIIteratorTag.class);
      _jspx_th_webshop_siiterator_6.setPageContext(pageContext);
      _jspx_th_webshop_siiterator_6.setParent(null);
      _jspx_th_webshop_siiterator_6.setType("jp.co.sint.basic.SINameValueForSP");
      _jspx_th_webshop_siiterator_6.setCollection(UICtgryGroup.getSpCtgryListColl(connection));
      _jspx_th_webshop_siiterator_6.setId("headID");
      int _jspx_eval_webshop_siiterator_6 = _jspx_th_webshop_siiterator_6.doStartTag();
      if (_jspx_eval_webshop_siiterator_6 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        jp.co.sint.basic.SINameValueForSP headID = null;
        headID = (jp.co.sint.basic.SINameValueForSP) pageContext.findAttribute("headID");
        do {
          out.write("\r\n        ");
 if ("/".equals(headID.getValue().split(",")[0])) { 
          out.write("\r\n          ");
          out.write("<li>");
          out.write("<a href=\"");
          out.print(webshopSite);
          out.write("/");
          out.print(headID.getValue().split(",")[1]);
          out.write("\">");
          out.print(headID.getName());
          out.write("</a>");
          out.write("</li>\r\n        ");
 } 
          out.write("\r\n      ");
          int evalDoAfterBody = _jspx_th_webshop_siiterator_6.doAfterBody();
          headID = (jp.co.sint.basic.SINameValueForSP) pageContext.findAttribute("headID");
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
      }
      if (_jspx_th_webshop_siiterator_6.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
        return;
      _jspx_tagPool_webshop_siiterator_type_id_collection.reuse(_jspx_th_webshop_siiterator_6);
      out.write("\r\n      ");
      out.write("<li>");
      out.write("<a href=\"");
      out.print(webshopSite);
      out.write("/used\">中古品・アウトレット品");
      out.write("</a>");
      out.write("</li>\r\n    ");
      out.write("</ul>  \r\n    ");
      out.write("<ul class=\"linkList\">  \r\n      ");
      out.write("<li class=\"color2\">");
      out.write("<a href=\"");
      out.print(SIURLMap.getUrl(request,"webshop.servlet.front.advancedsearch"));
      out.write("\">詳細検索");
      out.write("</a>");
      out.write("</li>\r\n      ");
      out.write("<li class=\"color2\">");
      out.write("<a href=\"");
      out.print("http://"+request.getServerName()+webshopSite);
      out.write("/listpickup/listpickup.html\">キャンペーン・特集から探す");
      out.write("</a>");
      out.write("</li>\r\n      ");
      out.write("<li class=\"color2\">");
      out.write("<a href=\"");
      out.print(webshopSite);
      out.write("/main?actionNameTxt=ranking&inx=0\">人気商品ランキングから探す");
      out.write("</a>");
      out.write("</li>      \r\n      ");
      out.write("<li class=\"color2\">");
      out.write("<a href=\"");
      out.print(mainSrvSite+"?actionNameTxt="+SIConfig.SIACTION_RECOMMEND+"&inx="+SIConfig.CTGRYGROUP_INX_ALL);
      out.write("\">新着おすすめ商品から探す");
      out.write("</a>");
      out.write("</li>\r\n      ");
 //▼iPhoneWebでのみ表示：ここから▼
      if ( (request.getHeader("user-agent").indexOf("bg-webview-")==-1) && (request.getHeader("user-agent").indexOf("iPhone")>0) ) { 
      out.write("\r\n      \t\t");
      out.write("<li class=\"color2\">");
      out.write("<a href=\"https://itunes.apple.com/jp/app/id973916219?mt=8\">");
      out.write("<span style=\"  background: #f00; border: none; color: #FFF; padding: 2px; -webkit-border-radius: 5px; border-radius: 5px; -webkit-appearance: none; appearance: none;\">NEW");
      out.write("</span> バーコードから注文（スマホアプリ）");
      out.write("</a>");
      out.write("</li>\r\n      ");
} //▲iPhoneWebでのみ表示：ここまで▲ 
      out.write("\r\n      ");
 //▼AndroidWebでのみ表示：ここから▼
      if ( (request.getHeader("user-agent").indexOf("bg-webview-")==-1) && (request.getHeader("user-agent").indexOf("Android")>0) ) { 
      out.write("\r\n      \t\t");
      out.write("<li class=\"color2\">");
      out.write("<a href=\"https://play.google.com/store/apps/details?id=jp.co.beautygarage.android.bgsmartorder\">");
      out.write("<span style=\"  background: #f00; border: none; color: #FFF; padding: 2px; -webkit-border-radius: 5px; border-radius: 5px; -webkit-appearance: none; appearance: none;\">NEW");
      out.write("</span> バーコードから注文（スマホアプリ）");
      out.write("</a>");
      out.write("</li>\r\n      ");
} //▲AndroidWebでのみ表示：ここまで▲ 
      out.write("\r\n    ");
      out.write("</ul>\r\n    ");
      out.write("<p class=\"modalClose\">閉じる");
      out.write("</p>\r\n  ");
      out.write("</div>\r\n");
      out.write("</div>\r\n");
      out.write("<!--△モーダル用商品を探す：ここまで△-->");
      out.write("\r\n  ");
      out.write("<!--△モーダル用商品を探す：ここまで△-->\r\n  ");
      out.write("</div>\r\n  ");
      out.write("<!--△モーダル：ここまで△-->\r\n\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_webshop_actionErrors_0(javax.servlet.jsp.PageContext pageContext)
          throws Throwable {
    JspWriter out = pageContext.getOut();
    /* ----  webshop:actionErrors ---- */
    jp.co.sint.taglib.SIActionErrorsTag _jspx_th_webshop_actionErrors_0 = (jp.co.sint.taglib.SIActionErrorsTag) _jspx_tagPool_webshop_actionErrors.get(jp.co.sint.taglib.SIActionErrorsTag.class);
    _jspx_th_webshop_actionErrors_0.setPageContext(pageContext);
    _jspx_th_webshop_actionErrors_0.setParent(null);
    int _jspx_eval_webshop_actionErrors_0 = _jspx_th_webshop_actionErrors_0.doStartTag();
    if (_jspx_eval_webshop_actionErrors_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      if (_jspx_eval_webshop_actionErrors_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
        javax.servlet.jsp.tagext.BodyContent _bc = pageContext.pushBody();
        out = _bc;
        _jspx_th_webshop_actionErrors_0.setBodyContent(_bc);
        _jspx_th_webshop_actionErrors_0.doInitBody();
      }
      do {
        out.write("\r\n");
        out.write("<li>下記のメッセージの発生日時は、");
        if (_jspx_meth_datetime_format_0(_jspx_th_webshop_actionErrors_0, pageContext))
          return true;
        out.write("です。");
        out.write("</li>\r\n");
        int evalDoAfterBody = _jspx_th_webshop_actionErrors_0.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
      if (_jspx_eval_webshop_actionErrors_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
        out = pageContext.popBody();
    }
    if (_jspx_th_webshop_actionErrors_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
      return true;
    _jspx_tagPool_webshop_actionErrors.reuse(_jspx_th_webshop_actionErrors_0);
    return false;
  }

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

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