1 | <!--{* |
---|
2 | /* |
---|
3 | * This file is part of EC-CUBE |
---|
4 | * |
---|
5 | * Copyright(c) 2000-2008 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 | <!-- |
---|
26 | function lfc_del_product( pname ){ |
---|
27 | fm = document.form1; |
---|
28 | fm[pname].value = ''; |
---|
29 | fm['photo_' + pname].src = '<!--{$smarty.const.NO_IMAGE_URL}-->'; |
---|
30 | fm['name_' + pname].value = ''; |
---|
31 | |
---|
32 | return false; |
---|
33 | } |
---|
34 | //--> |
---|
35 | </script> |
---|
36 | |
---|
37 | |
---|
38 | <form name="form1" id="form1" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->" enctype="multipart/form-data"> |
---|
39 | <input type="hidden" name="template_id" value="<!--{$arrForm.template_id|escape}-->" /> |
---|
40 | <input type="hidden" name="mail_method" value="3" /> |
---|
41 | <input type="hidden" name="image_key" value="" /> |
---|
42 | <input type="hidden" name="product_key" value="" /> |
---|
43 | <input type="hidden" name="sub_product_num" value="" /> |
---|
44 | <input type="hidden" name="mode" value="confirm" /> |
---|
45 | <!--{foreach key=key item=item from=$arrHidden}--> |
---|
46 | <!--{if $key ne "mode"}--> |
---|
47 | <input type="hidden" name="<!--{$key}-->" value="<!--{$item|escape}-->" /> |
---|
48 | <!--{/if}--> |
---|
49 | <!--{/foreach}--> |
---|
50 | <div id="mail" class="contents-main"> |
---|
51 | <h2>HTMLメール作成</h2> |
---|
52 | <table> |
---|
53 | <tr> |
---|
54 | <th>Subject<span class="attention"> *</span></th> |
---|
55 | <td> |
---|
56 | <input type="text" name="subject" size="65" class="box65" <!--{if $arrErr.subject}--><!--{sfSetErrorStyle}--><!--{/if}--> value="<!--{$arrForm.subject|escape}-->" /> |
---|
57 | <!--{if $arrErr.subject}--><br /><span class="attention"><!--{$arrErr.subject}--></span><!--{/if}--> |
---|
58 | </td> |
---|
59 | </tr> |
---|
60 | <tr> |
---|
61 | <th>メール担当写真<span class="attention"> *</span><br />[130×130]</th> |
---|
62 | <!--{assign var=key value="charge_image"}--> |
---|
63 | <td> |
---|
64 | <!--{if $arrFile[$key].filepath != ""}--> |
---|
65 | <img src="<!--{$arrFile[$key].filepath}-->" alt="メール担当写真" width="<!--{$arrFile[$key].width}-->" height="<!--{$arrFile[$key].height}-->" /><br /><br /> |
---|
66 | <!--{/if}--> |
---|
67 | <!--{if $arrErr[$key]}--><span class="attention"><!--{$arrErr[$key]}--></span><!--{/if}--> |
---|
68 | <input type="file" name="<!--{$key}-->" size="45" class="box45" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" /> |
---|
69 | <button type="button" onclick="fnModeSubmit('upload_image','image_key','<!--{$key}-->');"><span>アップロード</span></button> |
---|
70 | </td> |
---|
71 | </tr> |
---|
72 | <tr> |
---|
73 | <th>ヘッダーテキスト<span class="attention"> *</span></th> |
---|
74 | <td> |
---|
75 | <textarea name="header" cols="70" rows="8" class="area70" <!--{if $arrErr.header}--><!--{sfSetErrorStyle}--><!--{/if}-->><!--{$arrForm.header|escape}--></textarea> |
---|
76 | <!--{if $arrErr.header}--><br /><span class="attention"><!--{$arrErr.header}--></span><!--{/if}--> |
---|
77 | </td> |
---|
78 | </tr> |
---|
79 | <tr> |
---|
80 | <th>メイン商品タイトル<span class="attention"> *</span></th> |
---|
81 | <td> |
---|
82 | <input type="text" name="main_title" size="65" class="box65" <!--{if $arrErr.main_title}--><!--{sfSetErrorStyle}--><!--{/if}--> value="<!--{$arrForm.main_title|escape}-->" /> |
---|
83 | <!--{if $arrErr.main_title}--><br /><span class="attention"><!--{$arrErr.main_title}--></span><!--{/if}--> |
---|
84 | </td> |
---|
85 | </tr> |
---|
86 | <tr> |
---|
87 | <th>メイン商品コメント<span class="attention"> *</span></th> |
---|
88 | <td> |
---|
89 | <textarea name="main_comment" cols="70" rows="8" class="area70" <!--{if $arrErr.main_comment}--><!--{sfSetErrorStyle}--><!--{/if}-->><!--{$arrForm.main_comment|escape}--></textarea> |
---|
90 | <!--{if $arrErr.main_comment}--><br /><span class="attention"><!--{$arrErr.main_comment}--></span><!--{/if}--> |
---|
91 | </td> |
---|
92 | </tr> |
---|
93 | <tr> |
---|
94 | <th>メイン商品選択<span class="attention"> *</span><br />[110×120]</th> |
---|
95 | <td> |
---|
96 | <!--{if is_numeric($arrForm.template_id)}--> |
---|
97 | <!--{assign var=image_path value="`$smarty.const.IMAGE_SAVE_URL`/`$arrFileName[0].main_image`"}--> |
---|
98 | <!--{elseif $arrFileName[0].main_image != ""}--> |
---|
99 | <!--{assign var=image_path value="`$smarty.const.IMAGE_SAVE_URL`/`$arrFileName[0].main_image`"}--> |
---|
100 | <!--{else}--> |
---|
101 | <!--{assign var=image_path value="`$smarty.const.NO_IMAGE_URL`"}--> |
---|
102 | <!--{/if}--> |
---|
103 | <img src="<!--{$image_path}-->" width="<!--{$smarty.const.SMALL_IMAGE_WIDTH}-->" height="<!--{$smarty.const.SMALL_IMAGE_HEIGHT}-->" alt="商品画像main" /> |
---|
104 | <input type="hidden" name="main_product_id" value="<!--{$arrForm.main_product_id}-->" /> |
---|
105 | <a href="#" onclick="win03('./htmlmail_select.php?name=main_product_id','select','450','300'); return false;" target="_blank">商品選択</a><br /> |
---|
106 | <!--{if $arrErr.main_product_id}--><br /><span class="attention"><!--{$arrErr.main_product_id}--></span><!--{/if}--> |
---|
107 | <input type="text" name="name_main_product_id" value="<!--{$arrFileName[0].name|escape}-->" disabled="disabled" size="65" class="box65" style="background:#FFF;border-style:solid;border-color:#FFFFFF;" /> |
---|
108 | </td> |
---|
109 | </tr> |
---|
110 | <tr> |
---|
111 | <th>サブ商品群タイトル<span class="attention"> *</span></th> |
---|
112 | <td> |
---|
113 | <input type="text" name="sub_title" size="65" class="box65" <!--{if $arrErr.sub_title}--><!--{sfSetErrorStyle}--><!--{/if}--> value="<!--{$arrForm.sub_title|escape}-->" /> |
---|
114 | <!--{if $arrErr.sub_title}--><br /><span class="attention"><!--{$arrErr.sub_title}--></span><!--{/if}--> |
---|
115 | </td> |
---|
116 | </tr> |
---|
117 | <tr> |
---|
118 | <th>サブ商品群コメント<span class="attention"> *</span></th> |
---|
119 | <td> |
---|
120 | <textarea name="sub_comment" cols="70" rows="8" class="area70" <!--{if $arrErr.sub_comment}--><!--{sfSetErrorStyle}--><!--{/if}-->><!--{$arrForm.sub_comment|escape}--></textarea> |
---|
121 | <!--{if $arrErr.sub_comment}--><br /><span class="attention"><!--{$arrErr.sub_comment}--></span><!--{/if}--> |
---|
122 | </td> |
---|
123 | </tr> |
---|
124 | <!--{section name=cnt loop=$smarty.const.HTML_TEMPLATE_SUB_MAX}--> |
---|
125 | <!--{assign var=subProductNum value=`$smarty.section.cnt.iteration`}--> |
---|
126 | <tr> |
---|
127 | <th>商品画像(<!--{$subProductNum}-->)</th> |
---|
128 | <td> |
---|
129 | <!--{if is_numeric($arrForm.template_id)}--> |
---|
130 | <!--{if strlen($arrFileName[$smarty.section.cnt.iteration].main_image) > 0}--><!--{assign var=image_path value="`$smarty.const.IMAGE_SAVE_URL`/`$arrFileName[$smarty.section.cnt.iteration].main_image`"}--><!--{else}--><!--{assign var=image_path value="`$smarty.const.NO_IMAGE_URL`"}--><!--{/if}--> |
---|
131 | <!--{elseif $arrFileName[$smarty.section.cnt.iteration].main_image != ""}--> |
---|
132 | <!--{assign var=image_path value="`$smarty.const.IMAGE_SAVE_URL`/`$arrFileName[$smarty.section.cnt.iteration].main_image`"}--> |
---|
133 | <!--{else}--> |
---|
134 | <!--{assign var=image_path value="`$smarty.const.NO_IMAGE_URL`"}--> |
---|
135 | <!--{/if}--> |
---|
136 | <!--{if $smarty.section.cnt.iteration <= 9}--> |
---|
137 | <!--{assign var=sub_product_id value="sub_product_id0`$smarty.section.cnt.iteration`"}--> |
---|
138 | <!--{else}--> |
---|
139 | <!--{assign var=sub_product_id value="sub_product_id`$smarty.section.cnt.iteration`"}--> |
---|
140 | <!--{/if}--> |
---|
141 | <img src="<!--{$image_path}-->" width="<!--{$smarty.const.SMALL_IMAGE_WIDTH}-->" height="<!--{$smarty.const.SMALL_IMAGE_HEIGHT}-->" alt="商品画像<!--{$subProductNum}-->" /> |
---|
142 | <input type="hidden" name="<!--{$sub_product_id}-->" value="<!--{$arrFileName[$smarty.section.cnt.iteration].product_id|escape}-->" /> |
---|
143 | <a href="#" onclick="win03('./htmlmail_select.php?name=<!--{$sub_product_id}-->' ,'select','450','300'); return false;" target="_blank">商品選択</a> |
---|
144 | <!--{assign var=sub_box value="delete_sub`$smarty.section.cnt.iteration`"}--> |
---|
145 | <!--{if $arrForm[$sub_product_id]}--><input type="checkbox" name="delete_sub<!--{$smarty.section.cnt.iteration}-->" value="1" <!--{if $arrForm[$sub_box] == '1'}-->checked<!--{/if}--> />商品削除<br /><!--{/if}--> |
---|
146 | <input type="text" name="name_sub_product" value="<!--{$arrFileName[$smarty.section.cnt.iteration].name|escape}-->" disabled="disabled" size="65" class="box65" style="background:#FFF;border-style:solid;border-color:#FFF;" /> |
---|
147 | </td> |
---|
148 | </tr> |
---|
149 | <!--{/section}--> |
---|
150 | </table> |
---|
151 | |
---|
152 | <div class="btn"> |
---|
153 | <button type="submit"><span>確認ページへ</span></button> |
---|
154 | </div> |
---|
155 | </div> |
---|
156 | </form> |
---|