1 | <!--{* |
---|
2 | /* |
---|
3 | * This file is part of EC-CUBE |
---|
4 | * |
---|
5 | * Copyright(c) 2000-2012 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 | |
---|
25 | <script type="text/javascript"> |
---|
26 | <!-- |
---|
27 | function lfnCheckSubmit( fm ){ |
---|
28 | |
---|
29 | var err = ''; |
---|
30 | /* |
---|
31 | if ( ! fm["title"].value ){ |
---|
32 | err += '見出しコメントを入力して下さい。'; |
---|
33 | } |
---|
34 | */ |
---|
35 | if ( ! fm["comment"].value ){ |
---|
36 | if ( err ) err += ''; |
---|
37 | err += '<!--{t string="tpl_183"}-->'; |
---|
38 | } |
---|
39 | if ( err ){ |
---|
40 | alert(err); |
---|
41 | return false; |
---|
42 | } else { |
---|
43 | if(window.confirm('<!--{t string="tpl_184"}-->')){ |
---|
44 | fm.submit(); |
---|
45 | return true; |
---|
46 | } |
---|
47 | } |
---|
48 | } |
---|
49 | |
---|
50 | function lfnCheckSetItem( rank ){ |
---|
51 | var flag = true; |
---|
52 | var checkRank = '<!--{$checkRank|h}-->'; |
---|
53 | if ( checkRank ){ |
---|
54 | if ( rank != checkRank ){ |
---|
55 | if( ! window.confirm('<!--{t string="tpl_185" T_FIELD=$checkRank|h}-->')){ |
---|
56 | flag = false; |
---|
57 | } |
---|
58 | } |
---|
59 | } |
---|
60 | |
---|
61 | if ( flag ){ |
---|
62 | win03('./recommend_search.php?rank=' + rank,'search','615','600'); |
---|
63 | } |
---|
64 | } |
---|
65 | |
---|
66 | function lfnSortItem(mode,data){ |
---|
67 | var flag = true; |
---|
68 | var checkRank = '<!--{$checkRank|h}-->'; |
---|
69 | if ( checkRank ){ |
---|
70 | if( ! window.confirm('<!--{t string="tpl_185" T_FIELD=$checkRank|h}-->')){ |
---|
71 | flag = false; |
---|
72 | } |
---|
73 | } |
---|
74 | |
---|
75 | if ( flag ){ |
---|
76 | document.form1["mode"].value = mode; |
---|
77 | document.form1["rank"].value = data; |
---|
78 | document.form1.submit(); |
---|
79 | } |
---|
80 | } |
---|
81 | |
---|
82 | //--> |
---|
83 | </script> |
---|
84 | |
---|
85 | <!--{section name=cnt loop=$tpl_disp_max}--> |
---|
86 | |
---|
87 | <div id="admin-contents" class="contents-main"> |
---|
88 | <table class="list center" id="recommend-table"> |
---|
89 | <col width="13%" /> |
---|
90 | <col width="73%" /> |
---|
91 | <col width="7%" /> |
---|
92 | <col width="7%" /> |
---|
93 | <tr> |
---|
94 | <th><!--{t string="tpl_186"}--></th> |
---|
95 | <th><!--{t string="tpl_187"}--></th> |
---|
96 | <th><!--{t string="tpl_003"}--></th> |
---|
97 | <th><!--{t string="tpl_004"}--></th> |
---|
98 | <th><!--{t string="tpl_356"}--></th> |
---|
99 | </tr> |
---|
100 | |
---|
101 | <tr> |
---|
102 | <td><!--{t string="tpl_357"}-->(<!--{$smarty.section.cnt.iteration}-->)</td> |
---|
103 | <!--{if $arrItems[$smarty.section.cnt.iteration].product_id}--> |
---|
104 | <td> |
---|
105 | <div id="table-wrap" class="clearfix"> |
---|
106 | <div class="table-img"> |
---|
107 | <!--{if $arrItems[$smarty.section.cnt.iteration].product_id}--> |
---|
108 | <img src="<!--{$smarty.const.IMAGE_SAVE_URLPATH}--><!--{$arrItems[$smarty.section.cnt.iteration].main_list_image|sfNoImageMainList|h}-->" alt="<!--{$arrItems[$smarty.section.cnt.iteration].name|h}-->" width="100" height="100" /> |
---|
109 | <!--{/if}--> |
---|
110 | </div> |
---|
111 | <div class="table-detail"> |
---|
112 | <div class="detail-name"><!--{t string="tpl_188"}--> <!--{$arrItems[$smarty.section.cnt.iteration].name|h}--></div> |
---|
113 | <!--{/if}--> |
---|
114 | <div class="detail-form"> |
---|
115 | <form name="form<!--{$smarty.section.cnt.iteration}-->" id="form<!--{$smarty.section.cnt.iteration}-->" method="post" action="?"> |
---|
116 | <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> |
---|
117 | <input type="hidden" name="mode" value="regist" /> |
---|
118 | <input type="hidden" name="product_id" value="<!--{$arrItems[$smarty.section.cnt.iteration].product_id|h}-->" /> |
---|
119 | <input type="hidden" name="category_id" value="<!--{$category_id|h}-->" /> |
---|
120 | <input type="hidden" name="rank" value="<!--{$arrItems[$smarty.section.cnt.iteration].rank|h}-->" /> |
---|
121 | <span class="attention"><!--{$arrErr[$smarty.section.cnt.iteration].comment}--></span> |
---|
122 | <textarea class="top" name="comment" cols="45" rows="4" style="width: 586px; height: 80px; <!--{$arrErr[$smarty.section.cnt.iteration].comment|sfGetErrorColor}-->" <!--{$arrItems[$smarty.section.cnt.iteration].product_id|sfGetEnabled}-->><!--{"\n"}--><!--{$arrItems[$smarty.section.cnt.iteration].comment|h}--></textarea> |
---|
123 | </form> |
---|
124 | </div> |
---|
125 | </div> |
---|
126 | </div> |
---|
127 | </div> |
---|
128 | </td> |
---|
129 | <!--{else}--> |
---|
130 | <td class="AlignLeft"> |
---|
131 | <a class="btn-action-m" href="javascript:;" onclick="lfnCheckSetItem('<!--{$smarty.section.cnt.iteration}-->'); return false;" target="_blank"><span class="btn-next"><!--{t string="tpl_189"}--></span></a> |
---|
132 | <form name="form<!--{$smarty.section.cnt.iteration}-->" id="form<!--{$smarty.section.cnt.iteration}-->" method="post" action="?"> |
---|
133 | <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> |
---|
134 | <input type="hidden" name="mode" value="regist" /> |
---|
135 | <input type="hidden" name="product_id" value="<!--{$arrItems[$smarty.section.cnt.iteration].product_id|h}-->" /> |
---|
136 | <input type="hidden" name="category_id" value="<!--{$category_id|h}-->" /> |
---|
137 | <input type="hidden" name="rank" value="<!--{$arrItems[$smarty.section.cnt.iteration].rank|h}-->" /> |
---|
138 | </form> |
---|
139 | </td> |
---|
140 | <!--{/if}--> |
---|
141 | <td> |
---|
142 | <!--{if $arrItems[$smarty.section.cnt.iteration].product_id}--> |
---|
143 | <a href="javascript:;" onclick="lfnCheckSetItem('<!--{$smarty.section.cnt.iteration}-->'); return false;" target="_blank"> |
---|
144 | <!--{t string="tpl_003"}--></a> |
---|
145 | <!--{else}--> |
---|
146 | - - |
---|
147 | <!--{/if}--> |
---|
148 | </td> |
---|
149 | <td> |
---|
150 | <!--{if $arrItems[$smarty.section.cnt.iteration].product_id}--> |
---|
151 | <a href="javascript:;" onClick="return fnInsertValAndSubmit( document.form<!--{$smarty.section.cnt.iteration}-->, 'mode', 'delete', '<!--{t string="tpl_190"}-->' )"><!--{t string="tpl_004"}--></a> |
---|
152 | <!--{else}--> |
---|
153 | - - |
---|
154 | <!--{/if}--> |
---|
155 | </td> |
---|
156 | <td> |
---|
157 | <!--{* 移動 *}--> |
---|
158 | <!--{if $smarty.section.cnt.iteration != 1 && $arrItems[$smarty.section.cnt.iteration].product_id}--> |
---|
159 | <a href="?" onclick="lfnSortItem('up',<!--{$arrItems[$smarty.section.cnt.iteration].rank}-->); return false;"><!--{t string="tpl_077"}--></a><br> |
---|
160 | <!--{/if}--> |
---|
161 | <!--{if $smarty.section.cnt.iteration != $tpl_disp_max && $arrItems[$smarty.section.cnt.iteration].product_id}--> |
---|
162 | <a href="?" onclick="lfnSortItem('down',<!--{$arrItems[$smarty.section.cnt.iteration].rank}-->); return false;"><!--{t string="tpl_078"}--></a> |
---|
163 | <!--{/if}--> |
---|
164 | </td> |
---|
165 | </tr> |
---|
166 | |
---|
167 | <tr><td colspan="4" class="no-border-w" height="20"></td></tr> |
---|
168 | <!--{if $arrItems[$smarty.section.cnt.iteration].product_id}--> |
---|
169 | <tr><td colspan="4" class="no-border"> |
---|
170 | <a class="btn-action" href="javascript:;" onclick="lfnCheckSubmit(document.form<!--{$smarty.section.cnt.iteration}-->); return false;"><span class="btn-next"><!--{t string="tpl_021"}--></span></a> |
---|
171 | </td> |
---|
172 | </tr> |
---|
173 | <!--{/if}--> |
---|
174 | <!--▲おすすめ商品<!--{$smarty.section.cnt.iteration}-->--> |
---|
175 | <!--{/section}--> |
---|
176 | </table> |
---|
177 | </div> |
---|