source: branches/version-2_5-dev/data/Smarty/templates/admin/basis/mail.tpl @ 20509

Revision 20509, 4.9 KB checked in by Seasoft, 13 years ago (diff)

#627(ソース整形・ソースコメントの改善)

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-smarty-template; charset=UTF-8
Line 
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<!--
26var flag = 0;
27
28function setFlag(){
29    flag = 1;
30}
31function 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="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
49<input type="hidden" name="mode" value="regist" />
50<div id="basis" class="contents-main">
51    <table>
52        <tr>
53            <th>テンプレート<span class="attention"> *</span></th>
54            <td>
55            <!--{assign var=key value="template_id"}-->
56            <!--{if $arrErr[$key]}-->
57            <span class="attention"><!--{$arrErr[$key]}--></span>
58            <!--{/if}-->
59            <select name="template_id" onChange="return checkFlagAndSubmit();" style="<!--{$arrErr[$key]|sfGetErrorColor}-->">
60            <option value="" selected="selected">選択してください</option>
61            <!--{html_options options=$arrMailTEMPLATE selected=$arrForm[$key]}-->
62            </select>
63            </td>
64        </tr>
65        <tr>
66            <th>メールタイトル<span class="attention"> *</span></th>
67            <td>
68            <!--{assign var=key value="subject"}-->
69            <!--{if $arrErr[$key]}-->
70            <span class="attention"><!--{$arrErr[$key]}--></span>
71            <!--{/if}-->
72            <input type="text" name="subject" value="<!--{$arrForm[$key]|h}-->" onChange="setFlag();" size="30" class="box30" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" />
73            </td>
74        </tr>
75        <tr>
76            <th>ヘッダー</th>
77            <td>
78            <!--{assign var=key value="header"}-->
79            <!--{if $arrErr[$key]}-->
80            <span class="attention"><!--{$arrErr[$key]}--></span>
81            <!--{/if}-->
82            <textarea name="header" cols="75" rows="12" class="area75" onChange="setFlag();" style="<!--{$arrErr[$key]|sfGetErrorColor}-->"><!--{$arrForm[$key]|h}--></textarea><br />
83            <span class="attention"> (上限<!--{$smarty.const.LTEXT_LEN}-->文字)
84            </span>
85            <div>
86                <a class="btn-normal" href="javascript:;" onclick="fnCharCount('form1','header','cnt_header'); return false;"><span>文字数カウント</span></a>
87                今までに入力したのは
88                <input type="text" name="cnt_header" size="4" class="box4" readonly = true style="text-align:right" />
89                文字です。
90            </div>
91            </td>
92        </tr>
93        <tr>
94            <th colspan="2" align="center">動的データ挿入部分</th>
95        </tr>
96        <tr>
97            <th>フッター</th>
98            <td>
99            <!--{assign var=key value="footer"}-->
100            <!--{if $arrErr[$key]}-->
101            <span class="attention"><!--{$arrErr[$key]}--></span>
102            <!--{/if}-->
103            <textarea name="footer" cols="75" rows="12" class="area75" onChange="setFlag();" style="<!--{$arrErr[$key]|sfGetErrorColor}-->"><!--{$arrForm[$key]|h}--></textarea><br />
104            <span class="attention"> (上限<!--{$smarty.const.LTEXT_LEN}-->文字)</span>
105            <div>
106                <a class="btn-normal" href="javascript:;" onclick="fnCharCount('form1','footer','cnt_footer'); return false;"><span>文字数カウント</span></a>
107                今までに入力したのは
108                <input type="text" name="cnt_footer" size="4" class="box4" readonly = true style="text-align:right" />
109                文字です。
110            </div>
111            </td>
112        </tr>
113    </table>
114
115    <div class="btn-area">
116        <ul>
117            <li><a class="btn-action" href="javascript:;" onclick="fnFormModeSubmit('form1', 'regist', '', ''); return false;"><span class="btn-next">この内容で登録する</span></a></li>
118        </ul>
119    </div>
120</div>
121</form>
Note: See TracBrowser for help on using the repository browser.