| 1 | <!--{* |
|---|
| 2 | /* |
|---|
| 3 | * This file is part of EC-CUBE |
|---|
| 4 | * |
|---|
| 5 | * Copyright(c) 2000-2010 LOCKON CO.,LTD. All Rights Reserved. |
|---|
| 6 | * |
|---|
| 7 | * http://www.lockon.co.jp/ |
|---|
| 8 | * |
|---|
| 9 | * This program is free software; you can redistribute it and/or |
|---|
| 10 | * modify it under the terms of the GNU General Public License |
|---|
| 11 | * as published by the Free Software Foundation; either version 2 |
|---|
| 12 | * of the License, or (at your option) any later version. |
|---|
| 13 | * |
|---|
| 14 | * This program is distributed in the hope that it will be useful, |
|---|
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 17 | * GNU General Public License for more details. |
|---|
| 18 | * |
|---|
| 19 | * You should have received a copy of the GNU General Public License |
|---|
| 20 | * along with this program; if not, write to the Free Software |
|---|
| 21 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|---|
| 22 | */ |
|---|
| 23 | *}--> |
|---|
| 24 | <script type="text/javascript"> |
|---|
| 25 | <!-- |
|---|
| 26 | var flag = 0; |
|---|
| 27 | |
|---|
| 28 | function setFlag(){ |
|---|
| 29 | flag = 1; |
|---|
| 30 | } |
|---|
| 31 | function checkFlagAndSubmit(){ |
|---|
| 32 | if ( flag == 1 ){ |
|---|
| 33 | if( confirm("内容が変更されています。続行すれば変更内容は破棄されます。宜しいでしょうか?") ){ |
|---|
| 34 | fnSetvalAndSubmit( 'form1', 'mode', 'id_set' ); |
|---|
| 35 | } else { |
|---|
| 36 | return false; |
|---|
| 37 | } |
|---|
| 38 | } else { |
|---|
| 39 | fnSetvalAndSubmit( 'form1', 'mode', 'id_set' ); |
|---|
| 40 | } |
|---|
| 41 | } |
|---|
| 42 | |
|---|
| 43 | //--> |
|---|
| 44 | </script> |
|---|
| 45 | |
|---|
| 46 | |
|---|
| 47 | <form name="form1" id="form1" method="post" action="?"> |
|---|
| 48 | <input type="hidden" name="mode" value="regist" /> |
|---|
| 49 | <div id="basis" class="contents-main"> |
|---|
| 50 | <table> |
|---|
| 51 | <tr> |
|---|
| 52 | <th>テンプレート<span class="attention"> *</span></th> |
|---|
| 53 | <td> |
|---|
| 54 | <!--{assign var=key value="template_id"}--> |
|---|
| 55 | <!--{if $arrErr[$key]}--> |
|---|
| 56 | <span class="attention"><!--{$arrErr[$key]}--></span> |
|---|
| 57 | <!--{/if}--> |
|---|
| 58 | <select name="template_id" onChange="return checkFlagAndSubmit();" style="<!--{$arrErr[$key]|sfGetErrorColor}-->"> |
|---|
| 59 | <option value="" selected="selected">選択してください</option> |
|---|
| 60 | <!--{html_options options=$arrMailTEMPLATE selected=$arrForm[$key]}--> |
|---|
| 61 | </select> |
|---|
| 62 | </td> |
|---|
| 63 | </tr> |
|---|
| 64 | <tr> |
|---|
| 65 | <th>メールタイトル<span class="attention"> *</span></th> |
|---|
| 66 | <td> |
|---|
| 67 | <!--{assign var=key value="subject"}--> |
|---|
| 68 | <!--{if $arrErr[$key]}--> |
|---|
| 69 | <span class="attention"><!--{$arrErr[$key]}--></span> |
|---|
| 70 | <!--{/if}--> |
|---|
| 71 | <input type="text" name="subject" value="<!--{$arrForm[$key]|escape}-->" onChange="setFlag();" size="30" class="box30" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" /> |
|---|
| 72 | </td> |
|---|
| 73 | </tr> |
|---|
| 74 | <tr> |
|---|
| 75 | <th>ヘッダー</th> |
|---|
| 76 | <td> |
|---|
| 77 | <!--{assign var=key value="header"}--> |
|---|
| 78 | <!--{if $arrErr[$key]}--> |
|---|
| 79 | <span class="attention"><!--{$arrErr[$key]}--></span> |
|---|
| 80 | <!--{/if}--> |
|---|
| 81 | <textarea name="header" cols="75" rows="12" class="area75" onChange="setFlag();" style="<!--{$arrErr[$key]|sfGetErrorColor}-->"><!--{$arrForm[$key]|escape}--></textarea><br /> |
|---|
| 82 | <span class="attention"> (上限<!--{$smarty.const.LTEXT_LEN}-->文字) |
|---|
| 83 | </span> |
|---|
| 84 | <div align="right"> |
|---|
| 85 | <button type="button" onclick="fnCharCount('form1','header','cnt_header');"><span>文字数カウント</span></button> |
|---|
| 86 | <br />今までに入力したのは |
|---|
| 87 | <input type="text" name="cnt_header" size="4" class="box4" readonly = true style="text-align:right" /> |
|---|
| 88 | 文字です。 |
|---|
| 89 | </div> |
|---|
| 90 | </td> |
|---|
| 91 | </tr> |
|---|
| 92 | <tr> |
|---|
| 93 | <th colspan="2" align="center">動的データ挿入部分</th> |
|---|
| 94 | </tr> |
|---|
| 95 | <tr> |
|---|
| 96 | <th>フッター</th> |
|---|
| 97 | <td> |
|---|
| 98 | <!--{assign var=key value="footer"}--> |
|---|
| 99 | <!--{if $arrErr[$key]}--> |
|---|
| 100 | <span class="attention"><!--{$arrErr[$key]}--></span> |
|---|
| 101 | <!--{/if}--> |
|---|
| 102 | <textarea name="footer" cols="75" rows="12" class="area75" onChange="setFlag();" style="<!--{$arrErr[$key]|sfGetErrorColor}-->"><!--{$arrForm[$key]|escape}--></textarea><br /> |
|---|
| 103 | <span class="attention"> (上限<!--{$smarty.const.LTEXT_LEN}-->文字)</span> |
|---|
| 104 | <div align="right"> |
|---|
| 105 | <button type="button" onclick="fnCharCount('form1','footer','cnt_footer');"><span>文字数カウント</span></button> |
|---|
| 106 | <br />今までに入力したのは |
|---|
| 107 | <input type="text" name="cnt_footer" size="4" class="box4" readonly = true style="text-align:right" /> |
|---|
| 108 | 文字です。 |
|---|
| 109 | </div> |
|---|
| 110 | </td> |
|---|
| 111 | </tr> |
|---|
| 112 | </table> |
|---|
| 113 | |
|---|
| 114 | <div class="btn"><button type="submit"><span>この内容で登録する</span></button></div> |
|---|
| 115 | </div> |
|---|
| 116 | </form> |
|---|
| 117 | |
|---|