Changeset 20212
- Timestamp:
- 2011/02/19 22:25:14 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/Smarty/templates/admin/mail/template_input.tpl
r20211 r20212 22 22 */ 23 23 *}--> 24 <script language="JavaScript"> 25 <!-- 26 function 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();"> 24 <form name="form1" id="form1" method="post" action=""> 55 25 <input type="hidden" name="mode" value="<!--{$mode}-->" /> 56 26 <input type="hidden" name="template_id" value="<!--{$arrForm.template_id|h}-->" /> … … 76 46 <textarea name="body" cols="90" rows="40" class="area90 top" <!--{if $arrErr.body}--><!--{sfSetErrorStyle}--><!--{/if}-->><!--{$arrForm.body|h}--></textarea> 77 47 <!--{if $arrErr.body}--><br /><span class="attention"><!--{$arrErr.body}--></span><!--{/if}--> 78 79 80 81 48 <div> 49 <a class="btn-normal" href="javascript:;" onclick="fnCharCount('form1','body','cnt_footer'); return false;" name="next" id="next"><span>文字数カウント</span></a> 50 <span>今までに入力したのは<input type="text" name="cnt_footer" size="4" class="box4" readonly = true style="text-align:right" />文字です。</span> 51 </div> 82 52 </td> 83 53 </tr>
Note: See TracChangeset
for help on using the changeset viewer.