package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
import java.util.*;
import java.sql.*;
import org.apache.log4j.Category;
import jp.co.sint.database.*;
import jp.co.sint.basic.*;
import jp.co.sint.tools.*;
import jp.co.sint.config.*;
import jp.co.sint.beans.front.*;
import jp.co.sint.beans.mobile.vod.*;
import jp.co.sint.beans.mallmgr.UIRegMaker;
import jp.co.sint.tools.*;

public class v_ctgry_list_jsp extends HttpJspBase {


  private static java.util.Vector _jspx_includes;

  static {
    _jspx_includes = new java.util.Vector(6);
    _jspx_includes.add("/mobile/vod/cmdty/../include/v_chk_userinfo_inc.jsp");
    _jspx_includes.add("/mobile/vod/cmdty/../include/v_header_inc.jsp");
    _jspx_includes.add("/include/mobile_filter.jsp");
    _jspx_includes.add("/mobile/vod/cmdty/../../common/searchctgry_inc.jsp");
    _jspx_includes.add("/mobile/vod/cmdty/../include/v_nav_inc.jsp");
    _jspx_includes.add("/mobile/vod/cmdty/../include/v_footer_inc.jsp");
  }

  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_response_sendRedirect;
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_response_encodeRedirectUrl;
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_webshop_isTrue_value;
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_webshop_siiterator_type_id_collection;

  public v_ctgry_list_jsp() {
    _jspx_tagPool_response_sendRedirect = new org.apache.jasper.runtime.TagHandlerPool();
    _jspx_tagPool_response_encodeRedirectUrl = new org.apache.jasper.runtime.TagHandlerPool();
    _jspx_tagPool_webshop_isTrue_value = new org.apache.jasper.runtime.TagHandlerPool();
    _jspx_tagPool_webshop_siiterator_type_id_collection = new org.apache.jasper.runtime.TagHandlerPool();
  }

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

  public void _jspDestroy() {
    _jspx_tagPool_response_sendRedirect.release();
    _jspx_tagPool_response_encodeRedirectUrl.release();
    _jspx_tagPool_webshop_isTrue_value.release();
    _jspx_tagPool_webshop_siiterator_type_id_collection.release();
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    JspFactory _jspxFactory = null;
    javax.servlet.jsp.PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;


    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html;charset=MS932");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			"../util/v_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-2007 System Integrator Corporation.
 *                 All Rights Reserved.
 * @version $Id : v_ctgry_list.jsp,v 1.0 2007/01/26 Exp $
 * @author      : Naotaka Ohsugi
 * @Description : 商品リスト用のトップ画面
 * @History
 * Author         Date        Reason
 * ============   ==========  ===========================
 * Naotaka        2007/01/26  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");

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

String currCtgryCode=cmdtyListID.getCtgryCodeTxt();
if(currCtgryCode.equals(SIConfig.SICATEGORY_ROOT_CODE)){
  currCtgryCode = "";
}
//データベースへのコネンクション(common)
SIDatabaseConnection databaseConnection=new SIDatabaseConnection();try{
Connection connection=databaseConnection.getConnection();
if(!cmdtyListID.loginCheck(connection)){
      out.write("\r\n");

/**
 * Copyright (c) 2003-2004 System Integrator Corporation.
 *                 All Rights Reserved.
 * @version $Id : include/v_chk_userinfo_inc.jsp,v 1.0 2003/12/26 Exp $
 * @author      : Jinwang Chen
 * @Description : VODのフロント側に、ﾕｰｻﾞｰがﾛｸﾞｲﾝ情報を確認します。
 * @History
 * Author         Date        Reason
 * ============   ==========  ===========================
 * J.W.Chen       2003/12/26  Original
 */

      out.write("\r\n");
      out.write("\r\n\r\n");
SIUserInfo lUserInfo=SIHTMLUtil.getUserInfo(request);
      out.write("\r\n");
if (lUserInfo.isNotLogin(request) && !SIConfig.SIWEBSHOP_DEVELOPING){
      out.write("\r\n  ");
      /* ----  response:sendRedirect ---- */
      org.apache.taglibs.response.SendRedirectTag _jspx_th_response_sendRedirect_0 = (org.apache.taglibs.response.SendRedirectTag) _jspx_tagPool_response_sendRedirect.get(org.apache.taglibs.response.SendRedirectTag.class);
      _jspx_th_response_sendRedirect_0.setPageContext(pageContext);
      _jspx_th_response_sendRedirect_0.setParent(null);
      int _jspx_eval_response_sendRedirect_0 = _jspx_th_response_sendRedirect_0.doStartTag();
      if (_jspx_eval_response_sendRedirect_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        if (_jspx_eval_response_sendRedirect_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
          javax.servlet.jsp.tagext.BodyContent _bc = pageContext.pushBody();
          out = _bc;
          _jspx_th_response_sendRedirect_0.setBodyContent(_bc);
          _jspx_th_response_sendRedirect_0.doInitBody();
        }
        do {
          out.write("\r\n    ");
          /* ----  response:encodeRedirectUrl ---- */
          org.apache.taglibs.response.EncodeRedirectURLTag _jspx_th_response_encodeRedirectUrl_0 = (org.apache.taglibs.response.EncodeRedirectURLTag) _jspx_tagPool_response_encodeRedirectUrl.get(org.apache.taglibs.response.EncodeRedirectURLTag.class);
          _jspx_th_response_encodeRedirectUrl_0.setPageContext(pageContext);
          _jspx_th_response_encodeRedirectUrl_0.setParent(_jspx_th_response_sendRedirect_0);
          int _jspx_eval_response_encodeRedirectUrl_0 = _jspx_th_response_encodeRedirectUrl_0.doStartTag();
          if (_jspx_eval_response_encodeRedirectUrl_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
            if (_jspx_eval_response_encodeRedirectUrl_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
              javax.servlet.jsp.tagext.BodyContent _bc = pageContext.pushBody();
              out = _bc;
              _jspx_th_response_encodeRedirectUrl_0.setBodyContent(_bc);
              _jspx_th_response_encodeRedirectUrl_0.doInitBody();
            }
            do {
              out.print(SIURLMap.getUrl(request,"webshop.jsp.front.vod.login"));
              int evalDoAfterBody = _jspx_th_response_encodeRedirectUrl_0.doAfterBody();
              if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                break;
            } while (true);
            if (_jspx_eval_response_encodeRedirectUrl_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
              out = pageContext.popBody();
          }
          if (_jspx_th_response_encodeRedirectUrl_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
            return;
          _jspx_tagPool_response_encodeRedirectUrl.reuse(_jspx_th_response_encodeRedirectUrl_0);
          out.write("\r\n  ");
          int evalDoAfterBody = _jspx_th_response_sendRedirect_0.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
        if (_jspx_eval_response_sendRedirect_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
          out = pageContext.popBody();
      }
      if (_jspx_th_response_sendRedirect_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
        return;
      _jspx_tagPool_response_sendRedirect.reuse(_jspx_th_response_sendRedirect_0);
      out.write("\r\n");
}
      out.write("\r\n");
      out.write("\r\n");
}
//カテゴリの条件SQL文の設定
cmdtyListID.setCtgryConditionSQLL("c2",currCtgryCode);
//商品リストの取得
Collection cmdtyColl=cmdtyListID.getCollection(connection,request);
//各ｻｲﾄの設定(common)
String webshopSite=SIHTMLUtil.getRootPath(request);
String cmdtyListSrvSite=SIURLMap.getUrl(request,"webshop.servlet.front.vod.cmdty.list");
String cmdtyDetailSrvSite=SIURLMap.getUrl(request,"webshop.servlet.front.vod.cmdty.detail");
String rsrvSrvSite=SIURLMap.getHttpsUrl(request,"webshop.servlet.front.vod.reserve");
StringBuffer queryBuf=new StringBuffer();
queryBuf.append("a=").append(SIConfig.SIACTION_LIST);

if (SIUtil.isNotNull(cmdtyListID.getSrchWordTxt())){
  queryBuf.append("&srchWordTxt="+SIHTMLUtil.URLEncode(cmdtyListID.getSrchWordTxt()));
}
if (SIUtil.isNotNull(currCtgryCode)){
  queryBuf.append("&ctc="+SIHTMLUtil.URLEncode(currCtgryCode));
}
queryBuf.append("&cmdtyFlagTxt="+SIHTMLUtil.URLEncode(cmdtyListID.getCmdtyFlagTxt()));
queryBuf.append("&radioButton="+SIHTMLUtil.URLEncode(cmdtyListID.getSrchKey().getRadioButton()));
queryBuf.append("&cmdtySortSel="+SIHTMLUtil.URLEncode(cmdtyListID.getCmdtySortSel()));
//会員値引き率をセット
SIUserInfo userLogin=SIHTMLUtil.getUserInfo(request);
String discountRate="0";
if(userLogin.isLogin(request)){
discountRate = userLogin.getDiscountRate();
}

      out.write("\r\n");
      out.write("<head>\r\n");
      out.write("<title>");
      out.print(SIHTMLUtil.HTMLEncode(SIConfig.SIMALL.getFrontShopName()));
      out.write("</title>\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=SHIFT_JIS\">\r\n");
      out.write("</head>\r\n");
      out.write("<body bgcolor=\"white\">\r\n");
      out.write("\r\n");
      out.write("\r\n");
if (!SIURLMap.isMobile(request)) {
      out.write("\r\n");
      /* ----  response:sendRedirect ---- */
      org.apache.taglibs.response.SendRedirectTag _jspx_th_response_sendRedirect_1 = (org.apache.taglibs.response.SendRedirectTag) _jspx_tagPool_response_sendRedirect.get(org.apache.taglibs.response.SendRedirectTag.class);
      _jspx_th_response_sendRedirect_1.setPageContext(pageContext);
      _jspx_th_response_sendRedirect_1.setParent(null);
      int _jspx_eval_response_sendRedirect_1 = _jspx_th_response_sendRedirect_1.doStartTag();
      if (_jspx_eval_response_sendRedirect_1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        if (_jspx_eval_response_sendRedirect_1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
          javax.servlet.jsp.tagext.BodyContent _bc = pageContext.pushBody();
          out = _bc;
          _jspx_th_response_sendRedirect_1.setBodyContent(_bc);
          _jspx_th_response_sendRedirect_1.doInitBody();
        }
        do {
          out.print(SIURLMap.getUrl(request,"webshop.servlet.front.main"));
          int evalDoAfterBody = _jspx_th_response_sendRedirect_1.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
        if (_jspx_eval_response_sendRedirect_1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
          out = pageContext.popBody();
      }
      if (_jspx_th_response_sendRedirect_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
        return;
      _jspx_tagPool_response_sendRedirect.reuse(_jspx_th_response_sendRedirect_1);
      out.write("\r\n");
}else if (SIURLMap.isAU2(request)) {
      out.write("\r\n");
      if (_jspx_meth_response_sendRedirect_2(pageContext))
        return;
      out.write("\r\n");
}
      out.write("\r\n");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/img/mobile/bglogo.gif\" width=\"100%\" alt=\"BEAUTY GARAGE\">");
      out.write("<br>");
      out.write("<font size=\"1\">&nbsp;");
      out.write("</font>");
      out.write("<br>\r\n");

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

      out.write("\r\n");
      out.write("<font size=\"3\" color=\"black\">");
      out.print(SIHTMLUtil.HTMLEncode(cmdtyListID.getDisplayTitleName()));
      out.write("</font>");
      out.write("<br>\r\n");
if(cmdtyColl.size()==0){
      out.write("\r\n");
      out.write("</center>\r\n");
      out.write("<hr size=\"1\" color=\"blue\">\r\n");
      out.write("<font size=\"2\" color=\"black\">登録されている商品がありません。");
      out.write("</font>\r\n");
}else{
      out.write("\r\n");
      out.write("<font size=\"2\" color=\"black\">");
      out.print(cmdtyColl.size());
      out.write("件");
      out.write("</font>");
      out.write("<br>\r\n");
String mother = SIDBUtil.getFirstData(connection,"SELECT parentCtgryCode From ctgrymtbl WHERE ctgryCode='"+cmdtyListID.getCtgryCodeTxt()+"'");
if(SIUtil.isNull(mother)){
      out.write("\r\n");
      out.write("<br>");
      out.write("<font color=\"gray\">◆ｶﾃｺﾞﾘ一覧");
      out.write("</font>");
      out.write("<br>\r\n");
      out.write("<table width=\"100%\" BGCOLOR=\"#eda305\">");
      out.write("<tr>");
      out.write("<td>");
      out.write("<font size=\"2\" color=\"white\">");
      out.print(SIStringUtil.toHankakuKana(SIConfig.ctgryGroupName[SIConfig.CTGRYGROUP_HAIR]));
      out.write("</font>");
      out.write("</td>");
      out.write("</tr>");
      out.write("</table>\r\n");
      out.write("<font size=\"2\">");
      out.print(UICtgryGroup.getHairCtgryPlateMobile(connection,cmdtyListSrvSite));
      out.write("</font>\r\n");
      out.write("<font size=\"1\">");
      out.write("<br>&nbsp;");
      out.write("</font>");
      out.write("<br>\r\n");
      out.write("<table width=\"100%\" BGCOLOR=\"#2ea4cb\">");
      out.write("<tr>");
      out.write("<td>");
      out.write("<font size=\"2\" color=\"white\">");
      out.print(SIStringUtil.toHankakuKana(SIConfig.ctgryGroupName[SIConfig.CTGRYGROUP_HAIRCOSME]));
      out.write("</font>");
      out.write("</td>");
      out.write("</tr>");
      out.write("</table> \r\n");
      out.write("<font size=\"2\">");
      out.print(UICtgryGroup.getHairCosmeCtgryPlateMobile(connection,cmdtyListSrvSite));
      out.write("</font>\r\n");
      out.write("<font size=\"1\">");
      out.write("<br>&nbsp;");
      out.write("</font>");
      out.write("<br>\r\n");
      out.write("<table width=\"100%\" BGCOLOR=\"#f2303a\">");
      out.write("<tr>");
      out.write("<td>");
      out.write("<font size=\"2\" color=\"white\">");
      out.print(SIStringUtil.toHankakuKana(SIConfig.ctgryGroupName[SIConfig.CTGRYGROUP_ESTHE]));
      out.write("</font>");
      out.write("</td>");
      out.write("</tr>");
      out.write("</table> \r\n");
      out.write("<font size=\"2\">");
      out.print(UICtgryGroup.getEstheCtgryPlateMobile(connection,cmdtyListSrvSite));
      out.write("</font>\r\n");
      out.write("<font size=\"1\">");
      out.write("<br>&nbsp;");
      out.write("</font>");
      out.write("<br>\r\n");
      out.write("<table width=\"100%\" BGCOLOR=\"#2dbf22\">");
      out.write("<tr>");
      out.write("<td>");
      out.write("<font size=\"2\" color=\"white\">");
      out.print(SIStringUtil.toHankakuKana(SIConfig.ctgryGroupName[SIConfig.CTGRYGROUP_BED]));
      out.write("</font>");
      out.write("</td>");
      out.write("</tr>");
      out.write("</table> \r\n");
      out.write("<font size=\"2\">");
      out.print(UICtgryGroup.getBedCtgryPlateMobile(connection,cmdtyListSrvSite));
      out.write("</font>\r\n");
      out.write("<font size=\"1\">");
      out.write("<br>&nbsp;");
      out.write("</font>");
      out.write("<br>\r\n");
      out.write("<table width=\"100%\" BGCOLOR=\"#ff579d\">");
      out.write("<tr>");
      out.write("<td>");
      out.write("<font size=\"2\" color=\"white\">");
      out.print(SIStringUtil.toHankakuKana(SIConfig.ctgryGroupName[SIConfig.CTGRYGROUP_COSME]));
      out.write("</font>");
      out.write("</td>");
      out.write("</tr>");
      out.write("</table> \r\n");
      out.write("<font size=\"2\">");
      out.print(UICtgryGroup.getCosmeCtgryPlateMobile(connection,cmdtyListSrvSite));
      out.write("</font>\r\n");
      out.write("<font size=\"1\">");
      out.write("<br>&nbsp;");
      out.write("</font>");
      out.write("<br>\r\n");
      out.write("<table width=\"100%\" BGCOLOR=\"#d073ff\">");
      out.write("<tr>");
      out.write("<td>");
      out.write("<font size=\"2\" color=\"white\">");
      out.print(SIStringUtil.toHankakuKana(SIConfig.ctgryGroupName[SIConfig.CTGRYGROUP_NAIL]));
      out.write("</font>");
      out.write("</td>");
      out.write("</tr>");
      out.write("</table> \r\n");
      out.write("<font size=\"2\">");
      out.print(UICtgryGroup.getNailCtgryPlateMobile(connection,cmdtyListSrvSite));
      out.write("</font>\r\n");
      out.write("<font size=\"1\">");
      out.write("<br>&nbsp;");
      out.write("</font>");
      out.write("<br>\r\n");
}else{
  String lSql = SICtgry.getChildListSql(cmdtyListID.getCtgryCodeTxt());
  Collection ctgryColl = SIDBUtil.getCollectionHankaku(connection,lSql);
  if(ctgryColl.size()>0 && SIUtil.isNull(cmdtyListID.getMaker())){

      out.write("\r\n");
      out.write("<!-- mc-marker remove-begin when='CAR == SMART' -->  \t\r\n");
      out.write("<br>");
      out.write("<font color=\"gray\">◆詳細ｶﾃｺﾞﾘで絞込み");
      out.write("</font>");
      out.write("<br>\r\n");
      out.write("<!-- mc-marker remove-end -->\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(null);
      _jspx_th_webshop_isTrue_0.setValue(SIStringUtil.isBelong(SIConfig.MAKERCTGRY,cmdtyListID.getCtgryCodeTxt()));
      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("<!-- mc-marker menu-begin mcsp='fi_bd' style='01' color='df02' open=''  font='01' -->\r\n");
          out.write("<br>");
          out.write("<font color=\"gray\">◆ﾌﾞﾗﾝﾄﾞで絞込み");
          out.write("</font>\r\n");
if (userLogin.isLogin(request)) {lSql = SIMaker.getChildListSql(cmdtyListID.getCtgryCodeTxt());
} else {lSql = SIMaker.getChildListSql2(cmdtyListID.getCtgryCodeTxt());}
Collection makerListColl = SIDBUtil.getCollectionHankaku(connection,lSql);
          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_isTrue_0);
          _jspx_th_webshop_siiterator_0.setId("ctgryID");
          _jspx_th_webshop_siiterator_0.setType("jp.co.sint.basic.SINameValue");
          _jspx_th_webshop_siiterator_0.setCollection(makerListColl);
          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.SINameValue ctgryID = null;
            ctgryID = (jp.co.sint.basic.SINameValue) pageContext.findAttribute("ctgryID");
            do {
              out.write("\r\n");
              out.write("<font color=\"blue\">○");
              out.write("<a href=\"");
              out.print(cmdtyListSrvSite+"?a="+SIConfig.SIACTION_LIST+"&ctc="+cmdtyListID.getCtgryCodeTxt()+"&maker="+ctgryID.getValue());
              out.write("\">");
              out.print(ctgryID.getName());
              out.write("</a>");
              out.write("</font>");
              out.write("<br>\r\n");
              int evalDoAfterBody = _jspx_th_webshop_siiterator_0.doAfterBody();
              ctgryID = (jp.co.sint.basic.SINameValue) pageContext.findAttribute("ctgryID");
              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_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("<!-- mc-marker menu-end -->");
      out.write("<br>\r\n");
      out.write("<!-- mc-marker convert-insert when='CAR == SMART' :: \r\n  \t \t");
      out.write("<table width=\"100%\" BGCOLOR=\"#235ba9\">");
      out.write("<tr>");
      out.write("<td>");
      out.write("<font size=\"2\" color=\"white\">◆詳細ｶﾃｺﾞﾘで絞込み");
      out.write("</font>");
      out.write("</td>");
      out.write("</tr>");
      out.write("</table>\r\n-->\r\n\r\n");
      out.write("<!-- mc-marker insert when='CAR == SMART' :: ");
      out.write("<div id=\"look-ahead\"> -->\r\n\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(null);
      _jspx_th_webshop_siiterator_1.setId("ctgryID");
      _jspx_th_webshop_siiterator_1.setType("jp.co.sint.basic.SINameValue");
      _jspx_th_webshop_siiterator_1.setCollection(ctgryColl);
      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.SINameValue ctgryID = null;
        ctgryID = (jp.co.sint.basic.SINameValue) pageContext.findAttribute("ctgryID");
        do {
          out.write("\r\n");
 String CtgryName = ctgryID.getName(); 
	if ( CtgryName.getBytes("Shift-JIS").length <= 18 ){
		int SpCount = (19 - CtgryName.getBytes("Shift-JIS").length) /2;
  		for ( int i=0 ; i < SpCount;i++){
  				CtgryName = CtgryName + "　";
  		}
	}
          out.write("\r\n    \r\n");
          out.write("<!-- mc-marker remove-begin when='CAR == SMART' -->\r\n  \t");
          out.write("<font color=\"blue\">○\r\n");
          out.write("<!-- mc-marker remove-end -->\r\n");
          out.write("<!-- mc-marker link-begin mcsp='fi_bd' style='01' color='gd02'-->\r\n");
 if (SIURLMap.isMobile(request)){
          out.write("\r\n   \t\t");
          out.write("<a href=\"");
          out.print(cmdtyListSrvSite+"?a="+SIConfig.SIACTION_LIST+"&ctc="+ctgryID.getValue());
          out.write("\">");
          out.print(ctgryID.getName());
if("JU".equals(ctgryID.getValue())){
          out.write("(理美容)");
}else if("JE".equals(ctgryID.getValue())){
          out.write("(ｴｽﾃ)");
}else if("JB".equals(ctgryID.getValue())){
          out.write("(ﾍﾞｯﾄﾞ)");
}
          out.write("</a>");
          out.write("</font>");
          out.write("<br>\r\n");
}else{
          out.write("\r\n \t\t");
          out.write("<a href=\"");
          out.print(cmdtyListSrvSite+"?a="+SIConfig.SIACTION_LIST+"&ctc="+ctgryID.getValue());
          out.write("\">");
          out.print(CtgryName);
if("JU".equals(ctgryID.getValue())){
          out.write("(理美容)");
}else if("JE".equals(ctgryID.getValue())){
          out.write("(ｴｽﾃ)");
}else if("JB".equals(ctgryID.getValue())){
          out.write("(ﾍﾞｯﾄﾞ)");
}
          out.write("</a>");
          out.write("</font>");
          out.write("<br>\r\n");
}
          out.write("\r\n");
          out.write("<!-- mc-marker link-end -->\r\n");
          int evalDoAfterBody = _jspx_th_webshop_siiterator_1.doAfterBody();
          ctgryID = (jp.co.sint.basic.SINameValue) pageContext.findAttribute("ctgryID");
          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\r\n");
      out.write("<!-- mc-marker insert when='CAR == SMART' :: ");
      out.write("</div\"> -->\r\n\r\n");
      out.write("<!-- mc-marker remove-begin when='CAR == SMART' -->\r\n");
      /* ----  webshop:isTrue ---- */
      jp.co.sint.taglib.SIIsTrueTag _jspx_th_webshop_isTrue_1 = (jp.co.sint.taglib.SIIsTrueTag) _jspx_tagPool_webshop_isTrue_value.get(jp.co.sint.taglib.SIIsTrueTag.class);
      _jspx_th_webshop_isTrue_1.setPageContext(pageContext);
      _jspx_th_webshop_isTrue_1.setParent(null);
      _jspx_th_webshop_isTrue_1.setValue(SIStringUtil.isBelong(SIConfig.MAKERCTGRY,cmdtyListID.getCtgryCodeTxt()));
      int _jspx_eval_webshop_isTrue_1 = _jspx_th_webshop_isTrue_1.doStartTag();
      if (_jspx_eval_webshop_isTrue_1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        do {
          out.write("\r\n");
          out.write("<br>");
          out.write("<font color=\"gray\">◆ﾒｰｶｰ/ﾌﾞﾗﾝﾄﾞで絞込み");
          out.write("</font>\r\n");
if (userLogin.isLogin(request)) {lSql = SIMaker.getChildListSql(cmdtyListID.getCtgryCodeTxt());
} else {lSql = SIMaker.getChildListSql2(cmdtyListID.getCtgryCodeTxt());}
Collection makerListColl = SIDBUtil.getCollectionHankaku(connection,lSql);
          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_isTrue_1);
          _jspx_th_webshop_siiterator_2.setId("ctgryID");
          _jspx_th_webshop_siiterator_2.setType("jp.co.sint.basic.SINameValue");
          _jspx_th_webshop_siiterator_2.setCollection(makerListColl);
          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.SINameValue ctgryID = null;
            ctgryID = (jp.co.sint.basic.SINameValue) pageContext.findAttribute("ctgryID");
            do {
              out.write("\r\n");
              out.write("<font color=\"blue\">○");
              out.write("<a href=\"");
              out.print(cmdtyListSrvSite+"?a="+SIConfig.SIACTION_LIST+"&ctc="+cmdtyListID.getCtgryCodeTxt()+"&maker="+ctgryID.getValue());
              out.write("\">");
              out.print(ctgryID.getName());
              out.write("</a>");
              out.write("</font>");
              out.write("<br>\r\n");
              int evalDoAfterBody = _jspx_th_webshop_siiterator_2.doAfterBody();
              ctgryID = (jp.co.sint.basic.SINameValue) pageContext.findAttribute("ctgryID");
              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");
          int evalDoAfterBody = _jspx_th_webshop_isTrue_1.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
      }
      if (_jspx_th_webshop_isTrue_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
        return;
      _jspx_tagPool_webshop_isTrue_value.reuse(_jspx_th_webshop_isTrue_1);
      out.write("<!-- mc-marker remove-end -->\r\n");
}else if(SIUtil.isNotNull(cmdtyListID.getMaker())){
      out.write("\r\n");
      out.write("<br>");
      out.write("<font color=\"blue\">○");
      out.write("<a href=\"");
      out.print(cmdtyListSrvSite+"?a="+SIConfig.SIACTION_CTGRY+"&ctc="+cmdtyListID.getCtgryCodeTxt());
      out.write("\">ﾒｰｶｰ/ﾌﾞﾗﾝﾄﾞ選択へ戻る");
      out.write("</a>");
      out.write("</font>\r\n");
}else{
      out.write("\r\n");
      out.write("<br>");
      out.write("<font color=\"blue\">○");
      out.write("<a href=\"");
      out.print(cmdtyListSrvSite+"?a="+SIConfig.SIACTION_CTGRY+"&ctc="+mother);
      out.write("\">ｶﾃｺﾞﾘ選択へ戻る");
      out.write("</a>");
      out.write("</font>\r\n");
}}
      out.write("\r\n");
      out.write("<br>");
      out.write("<br>\r\n");
}
      out.write("\r\n");
      out.write("<table width=\"100%\" BGCOLOR=\"gainsboro\">\r\n");
      out.write("<tr>");
      out.write("<td>");
      out.write("<hr size=\"1\" color=\"blue\">");
      out.write("</td>");
      out.write("</tr>\r\n");
      out.write("<tr>");
      out.write("<td>");
      out.write("<font size=\"2\" color=\"blue\">&nbsp;&#xE220;&nbsp;");
      out.write("</font>");
      out.write("<a href=\"");
      out.print(SIURLMap.getUrl(request,"webshop.servlet.front.vod.main"));
      out.write("\" accesskey=\"5\">");
      out.write("<font size=\"2\" color=\"blue\">ﾄｯﾌﾟに戻る");
      out.write("</font>");
      out.write("</a>");
      out.write("<br>\r\n");
      out.write("<font size=\"2\" color=\"blue\">&nbsp;&#xE221;&nbsp;");
      out.write("</font>");
      out.write("<a href=\"");
      out.print(SIURLMap.getUrl(request,"webshop.servlet.front.vod.cart"));
      out.write("\" accesskey=\"6\">");
      out.write("<font size=\"2\" color=\"blue\">お会計");
      out.write("</font>");
      out.write("</a>");
      out.write("<br>\r\n");
      out.write("<font size=\"2\" color=\"blue\">&nbsp;&#xE222;&nbsp;");
      out.write("</font>");
      out.write("<a href=\"");
      out.print(SIURLMap.getUrl(request,"webshop.servlet.front.vod.customer.menu"));
      out.write("\" accesskey=\"7\">");
      out.write("<font size=\"2\" color=\"blue\">ﾏｲﾍﾟｰｼﾞ");
      out.write("</font>");
      out.write("</a>");
      out.write("<br>\r\n");
      out.write("<font size=\"2\" color=\"blue\">&nbsp;&#xE223;&nbsp;");
      out.write("</font>");
      out.write("<a href=\"");
      out.print(SIURLMap.getUrl(request,"webshop.servlet.front.vod.howto"));
      out.write("\" accesskey=\"8\">");
      out.write("<font size=\"2\" color=\"blue\">ご利用方法");
      out.write("</font>");
      out.write("</a>");
      out.write("<br>\r\n");
      out.write("<font size=\"2\" color=\"blue\">&nbsp;&#xE224;&nbsp;");
      out.write("</font>");
      out.write("<a href=\"");
      out.print(SIURLMap.getUrl(request,"webshop.servlet.front.vod.mall.company"));
      out.write("\" accesskey=\"9\">");
      out.write("<font size=\"2\" color=\"blue\">全国ｼｮｰﾙｰﾑご案内");
      out.write("</font>");
      out.write("</a>");
      out.write("<br>\r\n");
      out.write("<font size=\"2\" color=\"blue\">&nbsp;&#xE234;&nbsp;");
      out.write("</font>");
      out.write("<a href=\"");
      out.print(SIURLMap.getHttpsUrl(request,"webshop.servlet.front.vod.login"));
      out.write("\" accesskey=\"0\">");
      out.write("<font size=\"2\" color=\"blue\">ﾛｸﾞｲﾝ");
      out.write("</font>");
      out.write("</a>\r\n");
      out.write("</td>");
      out.write("</tr>\r\n");
      out.write("<tr>");
      out.write("<td>");
      out.write("<hr size=\"1\" color=\"blue\">\r\n");
      out.write("<div align=\"center\">");
      out.write("<font size=\"1\" >Copyright by");
      out.write("</font>");
      out.write("</div>\r\n");
      out.write("<div align=\"center\">");
      out.write("<font size=\"1\" >BEAUTY GARAGE INC.");
      out.write("</font>");
      out.write("</div>\r\n");
      out.write("<div align=\"center\">");
      out.write("<font size=\"1\" >All rights reserved.");
      out.write("</font>");
      out.write("</div>\r\n");
      out.write("<img src=\"");
      out.print(SIBGUtil.googleAnalyticsGetImageUrl(request,""));
      out.write("\" />");
      out.write("</td>");
      out.write("</tr>\r\n");
      out.write("</table>\r\n");
      out.write("</body>\r\n");
      out.write("</html>\r\n");
}catch(Exception e){e.printStackTrace();throw new ServletException();}finally{databaseConnection.close();}
    } catch (Throwable t) {
      out = _jspx_out;
      if (out != null && out.getBufferSize() != 0)
        out.clearBuffer();
      if (pageContext != null) pageContext.handlePageException(t);
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
    }
  }

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