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

Revision 19785, 3.4 KB checked in by Seasoft, 13 years ago (diff)

#862(テンプレート上のエスケープを簡単に)
#628(未使用処理・定義などの削除)

  • Smarty 変数 tpl_start

#879(jQuery の ready イベントと競合する body の onload イベントを使用している)

  • Property svn:eol-style set to LF
  • 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 language="JavaScript">
25<!--
26function lfnCheckSubmit(){
27 
28  fm = document.form1;
29  var err = '';
30 
31  if ( ! fm["subject"].value ){
32    err += 'Subjectを入力して下さい。';
33  }
34  if ( ! fm["body"].value ){
35    if ( err ) err += '
36';
37    err += '本文を入力して下さい。';
38  }
39  if ( err ){
40    alert(err);
41    return false;
42  } else {
43    if(window.confirm('内容を登録しても宜しいですか')){
44      return true;
45    }else{
46      return false;
47    }
48  }
49}
50//-->
51</script>
52
53
54<form name="form1" id="form1" method="post" action="?" onSubmit="return lfnCheckSubmit();">
55<input type="hidden" name="mode" value="<!--{$mode}-->" />
56<input type="hidden" name="template_id" value="<!--{$arrForm.template_id}-->" />
57<div id="mail" class="contents-main">
58  <table class="form">
59    <tr>
60      <th>メール形式<span class="attention"> *</span></th>
61      <td>
62        <span <!--{if $arrErr.mail_method}--><!--{sfSetErrorStyle}--><!--{/if}-->><!--{html_radios name="mail_method" options=$arrMagazineType separator="&nbsp;" selected=$arrForm.mail_method}--></span>
63        <!--{if $arrErr.mail_method}--><br /><span class="attention"><!--{$arrErr.mail_method}--></span><!--{/if}-->
64      </td>
65    </tr>
66    <tr>
67      <th>Subject<span class="attention"> *</span></th>
68      <td>
69        <input type="text" name="subject" size="65" class="box65" <!--{if $arrErr.subject}--><!--{sfSetErrorStyle}--><!--{/if}--> value="<!--{$arrForm.subject|h}-->" />
70        <!--{if $arrErr.subject}--><br /><span class="attention"><!--{$arrErr.subject}--></span><!--{/if}-->
71      </td>
72    </tr>
73    <tr>
74      <th>本文<span class="attention"> *</span><br />(名前差し込み時は {name} といれてください)</th>
75      <td>
76        <textarea name="body" cols="90" rows="40" class="area90" <!--{if $arrErr.body}--><!--{sfSetErrorStyle}--><!--{/if}-->><!--{$arrForm.body|h}--></textarea>
77        <!--{if $arrErr.body}--><br /><span class="attention"><!--{$arrErr.body}--></span><!--{/if}-->
78                <div>
79                    <a class="btn-normal" href="javascript:;" onclick="fnCharCount('form1','body','cnt_footer');" name="next" id="next"><span>文字数カウント</span></a>
80                    <span>今までに入力したのは<input type="text" name="cnt_footer" size="4" class="box4" readonly = true style="text-align:right" />文字です。</span>
81                </div>
82      </td>
83    </tr>
84  </table>
85  <div class="btn">
86    <a class="btn-normal" href="javascript:;" onclick="fnFormModeSubmit('form1', '<!--{$mode}-->', '', '');"><span>この内容で登録する</span></a>
87  </div>
88</table>
89
Note: See TracBrowser for help on using the repository browser.