source: branches/version-2_4/data/Smarty/templates/default/admin/contents/recomend.tpl @ 18734

Revision 18734, 7.4 KB checked in by nanasess, 14 years ago (diff)

Copyright の更新(#601)

  • Property svn:eol-style set to LF
  • Property svn:mime-type set to text/html; 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( fm ){
27
28    var err = '';
29    /*
30    if ( ! fm["title"].value ){
31        err += '見出しコメントを入力して下さい。';
32    }
33    */
34    if ( ! fm["comment"].value ){
35        if ( err ) err += '\n';
36        err += 'オススメコメントを入力して下さい。';
37    }
38    if ( err ){
39        alert(err);
40        return false;
41    } else {
42        if(window.confirm('内容を登録しても宜しいですか')){
43            return true;
44        }
45        return false;
46    }
47}
48
49function lfnCheckSetItem( rank ){
50    var flag = true;
51    var checkRank = '<!--{$checkRank}-->';
52    if ( checkRank ){
53        if ( rank != checkRank ){
54            if( ! window.confirm('さきほど選択した<!--{$checkRank}-->位の情報は破棄されます。宜しいでしょうか')){
55                flag = false;
56            }
57        }
58    }
59
60    if ( flag ){
61        win03('./recommend_search.php?rank=' + rank,'search','500','500');
62    }
63}
64
65//-->
66</script>
67
68<!--★★メインコンテンツ★★-->
69<table width="878" border="0" cellspacing="0" cellpadding="0" summary=" ">
70    <tr valign="top">
71        <td background="<!--{$TPL_DIR}-->img/contents/navi_bg.gif" height="402">
72            <!--▼SUB NAVI-->
73            <!--{include file=$tpl_subnavi}-->
74            <!--▲SUB NAVI-->
75        </td>
76        <td class="mainbg" >
77        <table width="737" border="0" cellspacing="0" cellpadding="0" summary=" ">
78            <!--メインエリア-->
79            <tr>
80                <td align="center">
81                <table width="706" border="0" cellspacing="0" cellpadding="0" summary=" ">
82
83                    <tr><td height="14"></td></tr>
84                    <tr>
85                        <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_top.jpg" width="706" height="14" alt=""></td>
86                    </tr>
87                    <tr>
88                        <td background="<!--{$TPL_DIR}-->img/contents/main_left.jpg"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td>
89                        <td bgcolor="#cccccc">
90
91                        <!--登録テーブルここから-->
92                        <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
93                            <tr>
94                                <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_top.gif" width="678" height="7" alt=""></td>
95                            </tr>
96                            <tr>
97                                <td background="<!--{$TPL_DIR}-->img/contents/contents_title_left_bg.gif"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_left.gif" width="22" height="12" alt=""></td>
98                                <td bgcolor="#636469" width="638" class="fs14n"><span class="white"><!--コンテンツタイトル-->オススメ管理</span></td>
99                                <td background="<!--{$TPL_DIR}-->img/contents/contents_title_right_bg.gif"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="18" height="1" alt=""></td>
100                            </tr>
101                            <tr>
102                                <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_bottom.gif" width="678" height="7" alt=""></td>
103                            </tr>
104                            <tr>
105                                <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td>
106                            </tr>
107                        </table>
108
109                        <!--{section name=cnt loop=$tpl_disp_max}-->
110                        <!--▼おすすめ<!--{$smarty.section.cnt.iteration}-->-->
111                        <table width="678" border="0" cellspacing="1" cellpadding="8" summary=" ">
112                        <form name="form<!--{$smarty.section.cnt.iteration}-->" id="form<!--{$smarty.section.cnt.iteration}-->" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->">
113                        <input type="hidden" name="mode" value="regist">
114                        <input type="hidden" name="product_id" value="<!--{$arrItems[$smarty.section.cnt.iteration].product_id|escape}-->">
115                        <input type="hidden" name="category_id" value="<!--{$category_id|escape}-->">
116                        <input type="hidden" name="rank" value="<!--{$arrItems[$smarty.section.cnt.iteration].rank|escape}-->">
117
118                            <tr class="fs12n">
119                                <td bgcolor="#f2f1ec" width="15" align="center"><!--{$smarty.section.cnt.iteration}--></td>
120                                <td bgcolor="#ffffff" width="130" align="center">
121                                <!--{if $arrItems[$smarty.section.cnt.iteration].main_list_image != ""}-->
122                                    <!--{assign var=image_path value="`$smarty.const.IMAGE_SAVE_URL`/`$arrItems[$smarty.section.cnt.iteration].main_list_image`"}-->
123                                <!--{else}-->
124                                    <!--{assign var=image_path value="`$smarty.const.NO_IMAGE_URL`"}-->
125                                <!--{/if}-->
126                                <img src="<!--{$image_path}-->" alt="" />
127                                </td>
128                                <td bgcolor="#ffffff" width="40" align="center">
129                                    <!--{if $arrItems[$smarty.section.cnt.iteration].product_id}-->
130                                    <a href="#" onClick="return fnInsertValAndSubmit( document.form<!--{$smarty.section.cnt.iteration}-->, 'mode', 'delete', '削除します。宜しいですか' )">削除</a>
131                                    <!--{/if}-->
132                                </td>
133                                <td bgcolor="#ffffff" width="40" align="center">
134                                    <a href="#" onclick="lfnCheckSetItem('<!--{$smarty.section.cnt.iteration}-->'); return false;" target="_blank">
135                                    <!--{if $arrItems[$smarty.section.cnt.iteration].product_id}-->商品<br/>変更<!--{else}-->商品<br/>選択<!--{/if}--></a>
136                                </td>
137                                <td bgcolor="#ffffff" width="350">
138                                <table width="350" border="0" cellspacing="0" cellpadding="0" summary=" ">
139                                    <tr class="fs12">
140                                        <td width="70">商品名:<!--{$arrItems[$smarty.section.cnt.iteration].name|escape}--></td>
141                                    </tr>
142                                    <tr><td height="5"></td></tr>
143                                    <tr class="fs12">
144                                        <td colspan="2">オススメコメント:</td>
145                                    </tr>
146                                    <tr>
147                                        <td colspan="2" class="fs12n">
148                                        <span class="red"><!--{$arrErr[$smarty.section.cnt.iteration].comment}--></span>
149                                        <textarea name="comment" cols="45" rows="4" style="width: 337px; height: 82px; " <!--{$arrItems[$smarty.section.cnt.iteration].product_id|sfGetEnabled}-->><!--{$arrItems[$smarty.section.cnt.iteration].comment}--></textarea>
150                                        </td>
151                                    </tr>
152                                    <!--{if $arrItems[$smarty.section.cnt.iteration].product_id}-->
153                                    <tr><td colspan=2><input type="submit" name="subm" value="登録する" onclick="return lfnCheckSubmit(document.form<!--{$smarty.section.cnt.iteration}-->);"/></td></tr>
154                                    <!--{/if}-->
155                                </table>
156                                </td>
157                            </tr>
158                            </form>
159                        </table>
160                        <!--▲おすすめ<!--{$smarty.section.cnt.iteration}-->-->
161                        <!--{/section}-->
162
163                        <!--登録テーブルここまで-->
164                        </td>
165                        <td background="<!--{$TPL_DIR}-->img/contents/main_right.jpg"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td>
166                    </tr>
167                    <tr>
168                        <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bottom.jpg" width="706" height="14" alt=""></td>
169                    </tr>
170                    <tr><td height="30"></td></tr>
171
172                </table>
173                </td>
174            </tr>
175            <!--メインエリア-->
176        </table>
177        </td>
178    </tr>
179</table>
180<!--★★メインコンテンツ★★-->
Note: See TracBrowser for help on using the repository browser.