package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
import jp.co.sint.tools.*;
import jp.co.sint.config.*;
import jp.co.sint.beans.front.*;

public class cmdty_info_popup2_jsp extends HttpJspBase {


  private static java.util.Vector _jspx_includes;

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

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

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

  public void _jspDestroy() {
    _jspx_tagPool_response_sendRedirect.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/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 : include/cmdty_info_popup2.jsp,v 1.0 2007/05/16 Exp $
 * @author      : Naotaka
 * @Description : 商品詳細用ポップアップ（エステスタイル）
 * @History
 * Author         Date        Reason
 * ============   ==========  ===========================
 * Naotaka        2007/05/16  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");

//beansの取得
UICmdtyInfo cmdtyInfoID=(UICmdtyInfo)session.getAttribute(SIConfig.SISESSION_CMDTY_POPUP_NAME);
if (cmdtyInfoID==null){
      out.write("\r\n");
      /* ----  response:sendRedirect ---- */
      org.apache.taglibs.response.SendRedirectTag _jspx_th_response_sendRedirect_0 = (org.apache.taglibs.response.SendRedirectTag) _jspx_tagPool_response_sendRedirect.get(org.apache.taglibs.response.SendRedirectTag.class);
      _jspx_th_response_sendRedirect_0.setPageContext(pageContext);
      _jspx_th_response_sendRedirect_0.setParent(null);
      int _jspx_eval_response_sendRedirect_0 = _jspx_th_response_sendRedirect_0.doStartTag();
      if (_jspx_eval_response_sendRedirect_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        if (_jspx_eval_response_sendRedirect_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
          javax.servlet.jsp.tagext.BodyContent _bc = pageContext.pushBody();
          out = _bc;
          _jspx_th_response_sendRedirect_0.setBodyContent(_bc);
          _jspx_th_response_sendRedirect_0.doInitBody();
        }
        do {
          out.print(SIURLMap.getUrl(request,"webshop.servlet.front.main"));
          int evalDoAfterBody = _jspx_th_response_sendRedirect_0.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
        if (_jspx_eval_response_sendRedirect_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
          out = pageContext.popBody();
      }
      if (_jspx_th_response_sendRedirect_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
        return;
      _jspx_tagPool_response_sendRedirect.reuse(_jspx_th_response_sendRedirect_0);
      out.write("\r\n");

}
//値の設定
String referIndex = cmdtyInfoID.getReferImageInx();
String crrIndex   = cmdtyInfoID.getCrrInx();
String maxImage   = cmdtyInfoID.getMaxImageCount();
String ImageName  = cmdtyInfoID.getImageName(crrIndex);
String currCtgryCode = cmdtyInfoID.getCtgryCodeTxt();
//サイトの設定
String webshopSite=SIHTMLUtil.getRootPath(request);
String cmdtySrvSite=SIURLMap.getUrl(request,"webshop.servlet.front.commodity")+"?ctc="+SIHTMLUtil.URLEncode(currCtgryCode)
                   +"&shc="+SIHTMLUtil.HTMLEncode(cmdtyInfoID.getShopCodeTxt())
                   +"&cmc="+SIHTMLUtil.HTMLEncode(cmdtyInfoID.getCmdtyCodeTxt())
                   +"&inc="+SIHTMLUtil.HTMLEncode(cmdtyInfoID.getIndividualCodeTxt());

      out.write("\r\n\r\n");
      out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r\n");
      out.write("<html LANG=\"ja-JP\">\r\n");
      out.write("<head>\r\n");
      out.write("<title>MORE DETAILS");
      out.write("</title>\r\n");
      out.write("<link href=\"");
      out.print(webshopSite);
      out.write("/css/text.css\" rel=\"stylesheet\" type=\"text/css\">\r\n");
      out.write("<script language=\"javascript1.2\" type=\"text/javascript\" SRC=\"");
      out.print(webshopSite);
      out.write("/script/SIAppCommon.js\">");
      out.write("</script>\r\n");
      out.write("<script language=\"javascript1.2\" type=\"text/javascript\">\r\n");
      out.write("<!--\r\nfunction preview(inx){\r\n  with (document.forms[0]){\r\n  action='");
      out.print(cmdtySrvSite);
      out.write("&actionNameTxt=");
      out.print(SIConfig.SIACTION_PREVIEW2);
      out.write("&referImageInxTxt='+inx;\r\n  submit();\r\n  }\r\n}\r\n//-->\r\n");
      out.write("</script>\r\n");
      out.write("</head>\r\n");
      out.write("<body text=\"#666666\" onload=\"focusElement()\">\r\n");
      out.write("<form name=\"webshopFrm\" action=\"");
      out.print(cmdtySrvSite);
      out.write("\" method=\"post\">\r\n");
      out.write("<table width=\"100%\" height=\"100%\"  border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n  ");
      out.write("<tr>\r\n    ");
      out.write("<td align=\"center\" valign=\"middle\">\r\n      ");
      out.write("<table border=\"0\" cellpadding=\"1\" cellspacing=\"0\" bgcolor=\"#999999\">\r\n        ");
      out.write("<tr>\r\n          ");
      out.write("<td>\r\n            ");
      out.write("<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#FFFFFF\">\r\n              ");
      out.write("<tr>\r\n                ");
      out.write("<td align=\"left\" background=\"");
      out.print(webshopSite);
      out.write("/img/all/base_esthe.gif\">");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/img/popup/_esthe/title01.gif\" width=\"76\" height=\"9\" hspace=\"5\" vspace=\"5\">");
      out.write("</td>\r\n              ");
      out.write("</tr>\r\n              ");
      out.write("<tr>\r\n                ");
      out.write("<td bgcolor=\"#999999\">");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/img/all/spacer.gif\" width=\"50\" height=\"1\">");
      out.write("</td>\r\n              ");
      out.write("</tr>\r\n              ");
      out.write("<tr>\r\n                ");
      out.write("<td>\r\n                  ");
      out.write("<table width=\"100%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"15\">\r\n                    ");
      out.write("<tr>\r\n                      ");
      out.write("<td align=\"center\" valign=\"middle\">\r\n                        ");
      out.write("<table width=\"600\" height=\"475\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n                          ");
      out.write("<tr>\r\n                            ");
      out.write("<td>\r\n                              ");
      out.write("<table width=\"100%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n                                ");
      out.write("<tr>\r\n                                  ");
      out.write("<td class=\"text14_16\" align=\"left\">");
      out.print(SIHTMLUtil.HTMLEncode(ImageName));
      out.write("</td>\r\n                                  ");
      out.write("<td class=\"text14_16\" align=\"right\">");
      out.print(crrIndex);
      out.write("/");
      out.print(maxImage);
      out.write("</td>\r\n                                ");
      out.write("</tr>\r\n                              ");
      out.write("</table>\r\n                            ");
      out.write("</td>\r\n                          ");
      out.write("</tr>\r\n                          ");
      out.write("<tr>\r\n                            ");
      out.write("<td>");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/img/all/spacer.gif\" width=\"7\" height=\"7\">");
      out.write("</td>\r\n                          ");
      out.write("</tr>\r\n                          ");
      out.write("<tr>\r\n                            ");
      out.write("<td align=\"center\" valign=\"middle\">");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/image/cmdty/");
      out.print(SIHTMLUtil.HTMLEncode(cmdtyInfoID.getCmdtyCodeTxt()));
      out.write("/");
      out.print(SIHTMLUtil.HTMLEncode(cmdtyInfoID.getCmdtyCodeTxt()));
      out.write("_");
      out.print(SIHTMLUtil.HTMLEncode(cmdtyInfoID.getIndividualCodeTxt()));
      out.write("_");
      out.print(referIndex);
      out.write(".jpg\">");
      out.write("</td>\r\n                          ");
      out.write("</tr>\r\n                        ");
      out.write("</table>\r\n                      ");
      out.write("</td>\r\n                    ");
      out.write("</tr>\r\n                  ");
      out.write("</table>\r\n                ");
      out.write("</td>\r\n              ");
      out.write("</tr>\r\n            ");
      out.write("</table>\r\n          ");
      out.write("</td>\r\n        ");
      out.write("</tr>\r\n      ");
      out.write("</table>\r\n      ");
      out.write("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n        ");
      out.write("<tr>\r\n          ");
      out.write("<td>");
      out.write("<img src=\"img/all/spacer.gif\" width=\"5\" height=\"5\">");
      out.write("</td>\r\n          ");
      out.write("<td>");
      out.write("<img src=\"img/all/spacer.gif\" width=\"5\" height=\"5\">");
      out.write("</td>\r\n          ");
      out.write("<td>");
      out.write("<img src=\"img/all/spacer.gif\" width=\"5\" height=\"5\">");
      out.write("</td>\r\n          ");
      out.write("<td>");
      out.write("<img src=\"img/all/spacer.gif\" width=\"5\" height=\"5\">");
      out.write("</td>\r\n          ");
      out.write("<td>");
      out.write("<img src=\"img/all/spacer.gif\" width=\"5\" height=\"5\">");
      out.write("</td>\r\n        ");
      out.write("</tr>\r\n        ");
      out.write("<tr>\r\n          ");
      out.write("<td>");
      out.write("<a href=\"javascript:preview(");
      out.print(cmdtyInfoID.getNextVal(crrIndex,true));
      out.write(")\">");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/img/popup/_esthe/back_btn.gif\" width=\"179\" height=\"18\" alt=\"前の画像\" border=\"0\">");
      out.write("</a>");
      out.write("</td>\r\n          ");
      out.write("<td>");
      out.write("<img src=\"img/all/spacer.gif\" width=\"30\" height=\"5\">");
      out.write("</td>\r\n          ");
      out.write("<td>");
      out.write("<a href=\"javascript:window.close()\">");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/img/popup/_esthe/close_btn.gif\" width=\"179\" close=\"18\" alt=\"閉じる\" border=\"0\">");
      out.write("</a>");
      out.write("</td>\r\n          ");
      out.write("<td>");
      out.write("<img src=\"img/all/spacer.gif\" width=\"30\" height=\"5\">");
      out.write("</td>\r\n          ");
      out.write("<td>");
      out.write("<a href=\"javascript:preview(");
      out.print(cmdtyInfoID.getNextVal(crrIndex,false));
      out.write(")\">");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/img/popup/_esthe/next_btn.gif\" width=\"179\" height=\"18\" alt=\"次の画像\" border=\"0\">");
      out.write("</a>");
      out.write("</td>\r\n        ");
      out.write("</tr>\r\n      ");
      out.write("</table>\r\n    ");
      out.write("</td>\r\n  ");
      out.write("</tr>\r\n");
      out.write("</table>\r\n");
      out.write("</form>\r\n");
      out.write("</body>");
    } 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);
    }
  }
}
