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.mallmgr.*;

public class man_mail_temp_edit_jsp extends HttpJspBase {


  private static java.util.Vector _jspx_includes;

  static {
    _jspx_includes = new java.util.Vector(5);
    _jspx_includes.add("/mallmgr/basic/../../include/man_chk_login_inc.jsp");
    _jspx_includes.add("/mallmgr/basic/../../include/man_meta_inc.jsp");
    _jspx_includes.add("/mallmgr/basic/../../include/man_header_popup_inc.jsp");
    _jspx_includes.add("/mallmgr/basic/../../include/man_result_inc.jsp");
    _jspx_includes.add("/mallmgr/basic/../../include/man_footer_popup_inc.jsp");
  }

  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_webshop_isFalse_value;
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_response_sendRedirect;
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_webshop_notEmpty_value;
  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_actionErrors;
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_webshop_siselect_name_defaultAlways_default_collection_attributesText_nobody;

  public man_mail_temp_edit_jsp() {
    _jspx_tagPool_webshop_isFalse_value = new org.apache.jasper.runtime.TagHandlerPool();
    _jspx_tagPool_response_sendRedirect = new org.apache.jasper.runtime.TagHandlerPool();
    _jspx_tagPool_webshop_notEmpty_value = 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_actionErrors = new org.apache.jasper.runtime.TagHandlerPool();
    _jspx_tagPool_webshop_siselect_name_defaultAlways_default_collection_attributesText_nobody = new org.apache.jasper.runtime.TagHandlerPool();
  }

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

  public void _jspDestroy() {
    _jspx_tagPool_webshop_isFalse_value.release();
    _jspx_tagPool_response_sendRedirect.release();
    _jspx_tagPool_webshop_notEmpty_value.release();
    _jspx_tagPool_datetime_format_pattern.release();
    _jspx_tagPool_datetime_currentTime_nobody.release();
    _jspx_tagPool_webshop_actionErrors.release();
    _jspx_tagPool_webshop_siselect_name_defaultAlways_default_collection_attributesText_nobody.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;

//7.2.0 ST0325 追加
//7.4.0 ST2060 修正
      out.write("\r\n");

/**
 * Copyright (c) 2003-2004 System Integrator Corporation.
 *                 All Rights Reserved.
 * @version $Id : mallmgr/basic/man_mail_temp_edit.jsp,v 1.0 2003/07/28 Exp $
 * @author      : Jinwang Chen
 * @Description : メールテンプレートの画面
 * @History
 * Author         Date        Reason
 * ============   ==========  ===========================
 * Jinwang Chen   2003/08/06  Original
 */

      out.write("\r\n");
//@ page contentType="text/html;charset=Shift_JIS" 
//7.2.0 ST0325 削除
      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");

/**
 * Copyright (c) 2003-2004 System Integrator Corporation.
 *                 All Rights Reserved.
 * @version $Id : include/man_chk_login_inc.jsp,v 1.0 2003/10/01 Exp $
 * @author      : Jinwang Chen
 * @Description : 管理画面に管理者がログインでかどうかをチェックします。
 *                 ログインしなければ、自動的に管理のトップログイン画面への遷移
 * @History
 * Author         Date        Reason
 * ============   ==========  ===========================
 * J.W.Chen       2003/10/01  Original
 */

      out.write("\r\n\r\n");
      out.write("\r\n");
      out.write("\r\n\r\n");
SILogin manLogin=SIHTMLUtil.getLogin(request);
      out.write("\r\n");
//7.3.0 ST2022 修正 ここから
      out.write("\r\n");
      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(manLogin.isLogin(request));
      int _jspx_eval_webshop_isFalse_0 = _jspx_th_webshop_isFalse_0.doStartTag();
      if (_jspx_eval_webshop_isFalse_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        do {
          out.write("\r\n");
//7.3.0 ST2022 修正 ここまで
          out.write("\r\n");
if (!SIConfig.SIWEBSHOP_MAN_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(_jspx_th_webshop_isFalse_0);
          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.getHttpsUrl(request,"webshop.jsp.manager.login"));
              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);
//7.1.1 ST0174 修正
          out.write("\r\n");
}
          out.write("\r\n");
//7.3.0 ST2022 修正 ここから
          out.write("\r\n");
          out.write("\r\n");
          int evalDoAfterBody = _jspx_th_webshop_isFalse_0.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
      }
      if (_jspx_th_webshop_isFalse_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
        return;
      _jspx_tagPool_webshop_isFalse_value.reuse(_jspx_th_webshop_isFalse_0);
      out.write("\r\n");
//7.3.0 ST2022 修正 ここまで
      out.write("\r\n");
      out.write("\r\n");

//トップサイトの生成
String webshopSite=SIHTMLUtil.getRootPath(request);
//ログ用のインスタンスの生成
Category log=Category.getInstance(SIConfig.SILOG4J_WEBSHOP_CATEGORY_NAME);

SIHTMLUtil.initRequest(request,SIConfig.SISESSION_MAN_MAIL_TEMP_EDIT_NAME);
UIRegMailTemp mailTempEditID=(UIRegMailTemp)session.getAttribute(SIConfig.SISESSION_MAN_MAIL_TEMP_EDIT_NAME);
SIURLParameter urlParam = new SIURLParameter(request);//7.1.1 ST0236 追加
if (mailTempEditID==null){
  mailTempEditID=new UIRegMailTemp();
  mailTempEditID.init(request,urlParam);//7.1.1 ST0236 修正
}

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

if (mailTempEditID.getResetEnable()){
  mailTempEditID.reset(connection);
}
Collection mailTempColl = mailTempEditID.getCollectionCombo(connection,mailTempEditID.getMallShopCode());
String onChange="onChange=\"return redirectSelect('"+SIConfig.SIACTION_MODIFY+"')\"";


      out.write("\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");

/**
 * Copyright (c) 2003-2004 System Integrator Corporation.
 *                 All Rights Reserved.
 * @version $Id : include/man_meta_inc.jsp,v 1.0 2003/10/14 R.Tosaka Exp $
 * @author      : R.Tosaka
 * @Description : 管理画面共通で使用するmetaタグ用スクリプト
 * @History
 * Author         Date        Reason
 * ============   ==========  ===========================
 * R.Tosaka       2003/10/14  Original
 */

      out.write("\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=Shift_JIS\">\r\n");
      out.write("<meta http-equiv=\"Content-Script-Type\" content=\"text/javascript\">\r\n");
      out.write("<meta http-equiv=\"Content-Style-Type\" content=\"text/css\">");
      out.write("\r\n  ");
      out.write("<title>メールテンプレート");
      out.write("</title>\r\n");
      out.write("<link href=\"");
      out.print(webshopSite);
      out.write("/style/SuperCSS.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 sendSrv(a){\r\n  document.forms[0].actionNameTxt.value = a;\r\n  document.forms[0].submit();\r\n  return true;\r\n}\r\nfunction redirectSelect(a){\r\n  document.forms[0].mailType.value=document.forms[0].typeA[document.forms[0].typeA.selectedIndex].value;\r\n  document.forms[0].classify.value=document.forms[0].typeA.options[document.forms[0].typeA.selectedIndex].text;\r\n  document.forms[0].actionNameTxt.value = a;\r\n  document.forms[0].submit();\r\n  return true;\r\n}\r\n//-->\r\n");
      out.write("</script>\r\n");
      out.write("</head>\r\n");
      out.write("<body onload=\"focusElement()\">\r\n");
      out.write("<form name=\"webshopFrm\" action=\"");
      out.print(SIURLMap.getHttpsUrl(request,"webshop.servlet.manager.mailtemp"));
      out.write("\" method=\"post\">");
//7.1.1 ST0174 修正
      out.write("\r\n");
      out.write("<table width=\"800\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" summary=\"LayoutTable\">\r\n  ");
      out.write("<tr>");
      out.write("<td class=\"Back_Edit_HeaderBG\">");

/**
 * Copyright (c) 2003-2004 System Integrator Corporation.
 *                 All Rights Reserved.
 * @version $Id : include/man_header_popup_inc.jsp,v 1.0 2003/07/28 jwchen Exp $
 * @author      : Shionoya Yoshiaki
 * @Description : 管理画面（ポップアップウィンドウ）に共通のヘッダ部分を表示するようのスクリプト
 * @History
 * Author         Date        Reason
 * ============   ==========  ===========================
 * Shionoya Yoshiaki      2004/01/30  Original
 */

      out.write("\r\n");
      out.write("<img src=\"");
      out.print(SIHTMLUtil.getRootPath(request));
      out.write("/image/mallmgr/WS_Title800.gif\" alt=\"Title\" width=\"100%\" height=\"30\">");
      out.write("</td>");
      out.write("</tr>\r\n  ");
      out.write("<tr>\r\n    ");
      out.write("<td width=\"780\" height=\"535\" valign=\"top\" class=\"Back_Edit_ScreenBG\">\r\n      ");
      out.write("<span class=\"Back_Edit_TitleText\">メールテンプレート");
      out.write("</span>\r\n      ");
      out.write("<br>");
      out.write("<br>\r\n      ");
      out.write("  ");
      /* ----  webshop:notEmpty ---- */
      jp.co.sint.taglib.SINotEmptyTag _jspx_th_webshop_notEmpty_0 = (jp.co.sint.taglib.SINotEmptyTag) _jspx_tagPool_webshop_notEmpty_value.get(jp.co.sint.taglib.SINotEmptyTag.class);
      _jspx_th_webshop_notEmpty_0.setPageContext(pageContext);
      _jspx_th_webshop_notEmpty_0.setParent(null);
      _jspx_th_webshop_notEmpty_0.setValue((String)request.getAttribute(SIConfig.SIMESSAGE_ATTRIBUTE_RESULT_NAME));
      int _jspx_eval_webshop_notEmpty_0 = _jspx_th_webshop_notEmpty_0.doStartTag();
      if (_jspx_eval_webshop_notEmpty_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        do {
          out.write("\r\n    ");
          out.write("<span class=\"Text_Red_Small_Bold\">");
          out.print((String)request.getAttribute(SIConfig.SIMESSAGE_ATTRIBUTE_RESULT_NAME));
          out.write("\r\n    ");
          out.write("<br>(");
          if (_jspx_meth_datetime_format_0(_jspx_th_webshop_notEmpty_0, pageContext))
            return;
          out.write(")\r\n    ");
          out.write("<br>");
          out.write("<br>");
          out.write("</span>\r\n  ");
          int evalDoAfterBody = _jspx_th_webshop_notEmpty_0.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
      }
      if (_jspx_th_webshop_notEmpty_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
        return;
      _jspx_tagPool_webshop_notEmpty_value.reuse(_jspx_th_webshop_notEmpty_0);
      out.write("\r\n      ");
      out.write("<span class=\"Text_ErrorMessage\">\r\n      ");
      out.write("<ul>\r\n      ");
      if (_jspx_meth_webshop_actionErrors_0(pageContext))
        return;
      out.write("\r\n      ");
      out.write("</ul>\r\n      ");
      out.write("</span>\r\n      ");
      out.write("<span class=\"Text_Red_Small_Bold\">");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/image/mallmgr/lbl_Hissu.gif\" alt=\"必須\" width=\"14\" height=\"14\">・・・必須項目");
      out.write("</span>\r\n      ");
      out.write("<table width=\"720\" border=\"0\" cellpadding=\"3\" cellspacing=\"1\" class=\"Back_Edit_TableBorder\" summary=\"メール種類選択欄\">\r\n        ");
      out.write("<tr class=\"Back_Edit_HeaderCell\">\r\n          ");
      out.write("<td width=\"120\" valign=\"middle\" >項目");
      out.write("</td>\r\n          ");
      out.write("<td width=\"580\" valign=\"middle\" >値");
      out.write("</td>\r\n        ");
      out.write("</tr>\r\n        ");
      out.write("<tr class=\"Back_Edit_DataCell\">\r\n          ");
      out.write("<td valign=\"middle\" class=\"Back_Edit_DataCell_Label\" width=\"120\">\r\n            ");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/image/mallmgr/lbl_Space.gif\" alt=\"\" width=\"14\" height=\"1\">\r\n            メール種類\r\n          ");
      out.write("</td>\r\n          ");
      out.write("<td>\r\n            ");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/image/mallmgr/lbl_Tanitu.gif\" alt=\"単一選択\" width=\"60\" height=\"16\" align=\"middle\">\r\n            ");
      /* ----  webshop:siselect ---- */
      jp.co.sint.taglib.SISelect _jspx_th_webshop_siselect_0 = (jp.co.sint.taglib.SISelect) _jspx_tagPool_webshop_siselect_name_defaultAlways_default_collection_attributesText_nobody.get(jp.co.sint.taglib.SISelect.class);
      _jspx_th_webshop_siselect_0.setPageContext(pageContext);
      _jspx_th_webshop_siselect_0.setParent(null);
      _jspx_th_webshop_siselect_0.setDefaultAlways("true");
      _jspx_th_webshop_siselect_0.setDefault(mailTempEditID.getMailType());
      _jspx_th_webshop_siselect_0.setName("typeA");
      _jspx_th_webshop_siselect_0.setCollection(mailTempColl);
      _jspx_th_webshop_siselect_0.setAttributesText(onChange);
      int _jspx_eval_webshop_siselect_0 = _jspx_th_webshop_siselect_0.doStartTag();
      if (_jspx_th_webshop_siselect_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
        return;
      _jspx_tagPool_webshop_siselect_name_defaultAlways_default_collection_attributesText_nobody.reuse(_jspx_th_webshop_siselect_0);
      out.write("\r\n            ");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/image/mallmgr/lbl_Space.gif\" alt=\"\" width=\"14\" height=\"1\">\r\n          ");
      out.write("</td>\r\n        ");
      out.write("</tr>\r\n      ");
      out.write("</table>\r\n      ");
      out.write("<br>\r\n      ");
      out.write("<table width=\"720\" border=\"0\" cellpadding=\"3\" cellspacing=\"1\" class=\"Back_Edit_TableBorder\" summary=\"入力欄\">\r\n        ");
      out.write("<tr>\r\n          ");
      out.write("<td width=\"120\" valign=\"middle\" class=\"Back_Edit_DataCell_Label\">\r\n            ");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/image/mallmgr/lbl_Hissu.gif\" alt=\"必須\" width=\"14\" height=\"14\">\r\n            メールタイトル\r\n          ");
      out.write("</td>\r\n          ");
      out.write("<td width=\"580\" valign=\"middle\" class=\"Back_Edit_DataCell\">\r\n            ");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/image/mallmgr/lbl_Zen.gif\" alt=\"全角\" width=\"60\" height=\"16\" align=\"middle\">\r\n            ");
      out.write("<input name=\"title\"  class=\"Form_TextBox_imeActive\" value=\"");
      out.print(SIHTMLUtil.HTMLEncode(mailTempEditID.getTitle()));
      out.write("\" size=\"60\" maxlength=\"50\">\r\n          ");
      out.write("</td>\r\n        ");
      out.write("</tr>\r\n        ");
      out.write("<tr>\r\n          ");
      out.write("<td valign=\"middle\" class=\"Back_Edit_DataCell_Label\">\r\n            ");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/image/mallmgr/lbl_Hissu.gif\" alt=\"必須\" width=\"14\" height=\"14\">\r\n            Fromアドレス\r\n          ");
      out.write("</td>\r\n          ");
      out.write("<td valign=\"middle\" class=\"Back_Edit_DataCell\">\r\n            ");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/image/mallmgr/lbl_HanEisuu.gif\" alt=\"半角英数\" width=\"60\" height=\"16\" align=\"middle\">\r\n            ");
      out.write("<input name=\"fromMail\" type=\"text\" class=\"Form_TextBox_imeInactive\" value=\"");
      out.print(SIHTMLUtil.HTMLEncode(mailTempEditID.getFromMail()));
      out.write("\" size=\"60\" maxlength=\"50\">\r\n          ");
      out.write("</td>\r\n        ");
      out.write("</tr>\r\n        ");
      out.write("<tr>\r\n          ");
      out.write("<td valign=\"middle\" align=\"center\" class=\"Back_Edit_DataCell\" colspan=\"2\">\r\n            ");
      out.write("<span class=\"Text_Blue_Small\">以下の本文はそれぞれ半角２０００文字まで入力できます。");
      out.write("</span>\r\n          ");
      out.write("</td>\r\n        ");
      out.write("</tr>\r\n        ");
      out.write("<tr>\r\n          ");
      out.write("<td valign=\"middle\" class=\"Back_Edit_DataCell_Label\">\r\n            ");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/image/mallmgr/lbl_Space.gif\" alt=\"\" width=\"14\" height=\"1\">\r\n            本文１\r\n          ");
      out.write("</td>\r\n          ");
      out.write("<td valign=\"middle\" class=\"Back_Edit_DataCell\">\r\n            ");
      out.write("<textarea name=\"content1\"  class=\"Form_TextBox_imeActive\" cols=\"80\" rows=\"3\">");
      out.print(SIHTMLUtil.HTMLEncode(mailTempEditID.getContent1()));
      out.write("</textarea>\r\n          ");
      out.write("</td>\r\n        ");
      out.write("</tr>\r\n        ");
if(SIUtil.isNotNull(SIMailTemp.getFirstHeaderName(mailTempEditID.getMailType()))){
      out.write("\r\n        ");
      out.write("<tr>\r\n          ");
      out.write("<td valign=\"middle\" class=\"Back_Edit_DataCell_Label\" colspan=\"2\" style=\"text-align:center\">\r\n            ・・・");
      out.print(SIMailTemp.getFirstHeaderName(mailTempEditID.getMailType()));
      out.write("を動的に表示するスペース・・・\r\n          ");
      out.write("</td>\r\n        ");
      out.write("</tr>\r\n        ");
}
      out.write("\r\n        ");
      out.write("<tr>\r\n          ");
      out.write("<td valign=\"middle\" class=\"Back_Edit_DataCell_Label\">\r\n            ");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/image/mallmgr/lbl_Space.gif\" alt=\"\" width=\"14\" height=\"1\">\r\n            本文２\r\n          ");
      out.write("</td>\r\n          ");
      out.write("<td valign=\"middle\" class=\"Back_Edit_DataCell\">\r\n            ");
      out.write("<textarea name=\"content2\"  class=\"Form_TextBox_imeActive\" cols=\"80\" rows=\"3\">");
      out.print(SIHTMLUtil.HTMLEncode(mailTempEditID.getContent2()));
      out.write("</textarea>\r\n          ");
      out.write("</td>\r\n        ");
      out.write("</tr>\r\n        ");
if(SIUtil.isNotNull(SIMailTemp.getSecondHeaderName(mailTempEditID.getMailType()))){
      out.write("\r\n        ");
      out.write("<tr>\r\n          ");
      out.write("<td valign=\"middle\" class=\"Back_Edit_DataCell_Label\" colspan=\"2\" style=\"text-align:center\">\r\n            ・・・");
      out.print(SIMailTemp.getSecondHeaderName(mailTempEditID.getMailType()));
      out.write("を動的に表示するスペース・・・\r\n          ");
      out.write("</td>\r\n        ");
      out.write("</tr>\r\n        ");
}
      out.write("\r\n        ");
      out.write("<tr>\r\n          ");
      out.write("<td valign=\"middle\" class=\"Back_Edit_DataCell_Label\">\r\n            ");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/image/mallmgr/lbl_Space.gif\" alt=\"\" width=\"14\" height=\"1\">\r\n            本文３\r\n          ");
      out.write("</td>\r\n          ");
      out.write("<td valign=\"middle\" class=\"Back_Edit_DataCell\">\r\n            ");
      out.write("<textarea name=\"content3\"  class=\"Form_TextBox_imeActive\" cols=\"80\" rows=\"3\">");
      out.print(SIHTMLUtil.HTMLEncode(mailTempEditID.getContent3()));
      out.write("</textarea>\r\n          ");
      out.write("</td>\r\n        ");
      out.write("</tr>\r\n        ");
if(SIUtil.isNotNull(SIMailTemp.getThirdHeaderName(mailTempEditID.getMailType()))){
      out.write("\r\n        ");
      out.write("<tr>\r\n          ");
      out.write("<td valign=\"middle\" class=\"Back_Edit_DataCell_Label\" colspan=\"2\" style=\"text-align:center\">\r\n            ・・・");
      out.print(SIMailTemp.getThirdHeaderName(mailTempEditID.getMailType()));
      out.write("を動的に表示するスペース・・・\r\n          ");
      out.write("</td>\r\n        ");
      out.write("</tr>\r\n        ");
}
      out.write("\r\n        ");
      out.write("<tr>\r\n          ");
      out.write("<td valign=\"middle\" class=\"Back_Edit_DataCell_Label\">\r\n            ");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/image/mallmgr/lbl_Space.gif\" alt=\"\" width=\"14\" height=\"1\">\r\n            署名\r\n          ");
      out.write("</td>\r\n          ");
      out.write("<td valign=\"middle\" class=\"Back_Edit_DataCell\">\r\n            ");
      out.write("<textarea name=\"signature\" class=\"Form_TextBox_imeActive\" cols=\"80\" rows=\"3\">");
      out.print(SIHTMLUtil.HTMLEncode(mailTempEditID.getSignature()));
      out.write("</textarea>\r\n          ");
      out.write("</td>\r\n        ");
      out.write("</tr>\r\n      ");
      out.write("</table>\r\n      ");
      out.write("<br>\r\n      ");
      out.write("<table width=\"700\" summary=\"ボタン配置\">\r\n        ");
      out.write("<tr>\r\n          ");
      out.write("<td colspan=\"5\">");
      out.write("<span class=\"Text_Blue_Small\">メール送信テストは、管理者のアドレスに送信されます。");
      out.write("</span>");
      out.write("</td>\r\n        ");
      out.write("</tr>\r\n        ");
      out.write("<tr>\r\n          ");
      out.write("<td width=\"140\" height=\"30\" align=\"left\">");
      out.write("<a href=\"javascript:sendSrv('");
      out.print(SIConfig.SIACTION_MAIL);
      out.write("')\">");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/image/mallmgr/btn_L_TestMail.gif\" alt=\"送信テスト\" width=\"125\" height=\"30\" class=\"imgBtn\" >");
      out.write("</a>");
      out.write("</td>");
//7.1.1 ST1090 修正
      out.write("\r\n          ");
      out.write("<td width=\"140\">&nbsp;");
      out.write("</td>\r\n          ");
      out.write("<td width=\"140\" align=\"left\">");
      out.write("<a href=\"javascript:sendSrv('");
      out.print(SIConfig.SIACTION_MODIFY);
      out.write("')\">");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/image/mallmgr/btn_L_Reset.gif\" alt=\"リセット\" width=\"125\" height=\"30\" class=\"imgBtn\" >");
      out.write("</a>");
      out.write("</td>");
//7.1.1 ST1090 修正
      out.write("\r\n          ");
      out.write("<td width=\"140\" align=\"left\">");
      out.write("<a href=\"javascript:window.close()\">");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/image/mallmgr/btn_L_Close.gif\" width=\"125\" height=\"30\" alt=\"閉じる\" class=\"imgBtn\" >");
      out.write("</a>");
      out.write("</td>");
//7.1.1 ST1090 修正
      out.write("\r\n          ");
      out.write("<td width=\"140\" align=\"left\">");
      out.write("<a href=\"javascript:sendSrv('");
      out.print(SIConfig.SIACTION_CONFIRM);
      out.write("')\">");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/image/mallmgr/btn_L_Confirm.gif\" alt=\"登録\" width=\"125\" height=\"30\" class=\"imgBtn\" >");
      out.write("</a>");
      out.write("</td>");
//7.1.1 ST1090 修正
      out.write("\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>");
      out.write("<td width=\"100%\" height=\"20\">");

/**
 * Copyright (c) 2003-2004 System Integrator Corporation.
 *                 All Rights Reserved.
 * @version $Id : include/man_footer_popup_inc.jsp,v 1.0 2004/01/30 Shionoya Exp $
 * @author      : Shionoya Yoshiaki
 * @Description : 管理画面（ポップアップ）に共通のフッタ部分を表示するようのスクリプト
 * @History
 * Author         Date        Reason
 * ============   ==========  ===========================
 * J.W.Chen       2004/01/30  Original
 */

      out.write("\r\n");
      out.write("<img src=\"");
      out.print(SIHTMLUtil.getRootPath(request));
      out.write("/image/mallmgr/WS_Footer800.gif\" alt=\"Footer\" width=\"100%\" height=\"20\">");
      out.write("</td>");
      out.write("</tr>\r\n");
      out.write("</table>\r\n");
      out.write("<input type=\"hidden\" name=\"actionNameTxt\"  value=\"");
      out.print(SIConfig.SIACTION_CONFIRM);
      out.write("\">\r\n");
      out.write("<input type=\"hidden\" name=\"editModeTxt\" value=\"\">\r\n");
      out.write("<input type=\"hidden\" name=\"mallShopCode\" value=\"");
      out.print(SIHTMLUtil.HTMLEncode(mailTempEditID.getMallShopCode()));
      out.write("\">\r\n");
      out.write("<input type=\"hidden\" name=\"mailType\" value=\"");
      out.print(SIHTMLUtil.HTMLEncode(mailTempEditID.getMailType()));
      out.write("\">\r\n");
      out.write("<input type=\"hidden\" name=\"classify\" value=\"");
      out.print(SIHTMLUtil.HTMLEncode(mailTempEditID.getClassify()));
      out.write("\">\r\n");
      out.write("</form>\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_datetime_format_0(javax.servlet.jsp.tagext.Tag _jspx_th_webshop_notEmpty_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_notEmpty_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;
  }

  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      下記のメッセージの発生日時は、");
        if (_jspx_meth_datetime_format_1(_jspx_th_webshop_actionErrors_0, pageContext))
          return true;
        out.write("です。\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_1(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_1 = (org.apache.taglibs.datetime.FormatTag) _jspx_tagPool_datetime_format_pattern.get(org.apache.taglibs.datetime.FormatTag.class);
    _jspx_th_datetime_format_1.setPageContext(pageContext);
    _jspx_th_datetime_format_1.setParent(_jspx_th_webshop_actionErrors_0);
    _jspx_th_datetime_format_1.setPattern("yyyy/MM/dd HH:mm:ss");
    int _jspx_eval_datetime_format_1 = _jspx_th_datetime_format_1.doStartTag();
    if (_jspx_eval_datetime_format_1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      if (_jspx_eval_datetime_format_1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
        javax.servlet.jsp.tagext.BodyContent _bc = pageContext.pushBody();
        out = _bc;
        _jspx_th_datetime_format_1.setBodyContent(_bc);
        _jspx_th_datetime_format_1.doInitBody();
      }
      do {
        if (_jspx_meth_datetime_currentTime_1(_jspx_th_datetime_format_1, pageContext))
          return true;
        int evalDoAfterBody = _jspx_th_datetime_format_1.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
      if (_jspx_eval_datetime_format_1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
        out = pageContext.popBody();
    }
    if (_jspx_th_datetime_format_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
      return true;
    _jspx_tagPool_datetime_format_pattern.reuse(_jspx_th_datetime_format_1);
    return false;
  }

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