source: branches/version-2_13-dev/data/Smarty/templates/admin/products/product_rank.tpl @ 23066

Revision 23066, 5.9 KB checked in by pineray, 11 years ago (diff)

#2342 JavaScript?のグローバルな宣言を減らす
eccubeオブジェクト内の階層を減らす.

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Id
  • 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-2013 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" src="<!--{$TPL_URLPATH}-->js/breadcrumbs.js"></script>
26<script type="text/javascript">//<![CDATA[
27    $(function() {
28        $('h2').breadcrumbs({
29            'bread_crumbs': <!--{$tpl_bread_crumbs}-->
30        });
31    });
32//]]></script>
33
34<form name="form1" id="form1" method="post" action="?" enctype="multipart/form-data">
35    <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
36    <input type="hidden" name="mode" value="edit" />
37    <input type="hidden" name="parent_category_id" value="<!--{$arrForm.parent_category_id|h}-->" />
38    <input type="hidden" name="category_id" value="<!--{$arrForm.category_id|h}-->" />
39    <input type="hidden" name="product_id" value="" />
40    <input type="hidden" name="pageno" value="<!--{$tpl_pageno|h}-->" />
41    <div id="products" class="contents-main">
42
43        <!--{* ▼画面左 *}-->
44        <div id="products-rank-left">
45            <ul>
46                <li>
47                    <a href="?"><img src="<!--{$TPL_URLPATH}-->img/contents/folder_close.gif" alt="フォルダ" />&nbsp;ホーム</a>
48                    <!--{include file="`$smarty.const.TEMPLATE_ADMIN_REALDIR`products/product_rank_tree_fork.tpl" children=$arrTree treeID="f0" display=1}-->
49                </li>
50            </ul>
51        </div>
52        <!--{* ▲画面左 *}-->
53
54        <!--▼画面右-->
55        <div id="products-rank-right">
56            <h2><!--{* jQuery で挿入される *}--></h2>
57            <!--{if count($arrProductsList) > 0}-->
58
59                <p class="remark"><span class="attention"><!--{$tpl_linemax}-->件</span>が該当しました。</p>
60                <div class="pager">
61                    <!--{$tpl_strnavi}-->
62                </div>
63
64                <!--{if $smarty.const.ADMIN_MODE == '1'}-->
65                    <p class="right"><a class="btn-normal" href="javascript:;" onclick="eccube.setModeAndSubmit('renumber', '', ''); return false;">内部順位再割り当て</a></p>
66                <!--{/if}-->
67
68                <table class="list" id="categoryTable">
69                    <col width="20%" />
70                    <col width="47.5%" />
71                    <col width="10%" />
72                    <col width="7.5%" />
73                    <col width="15%" />
74                    <tr class="nodrop nodrag">
75                        <th>商品コード</th>
76                        <th>商品名</th>
77                        <th>商品画像</th>
78                        <th>順位</th>
79                        <th>移動</th>
80                    </tr>
81
82                    <!--{assign var=rank value=$tpl_start_row}-->
83                    <!--{section name=cnt loop=$arrProductsList}-->
84                        <tr>
85                            <td><!--{from_to from=$arrProductsList[cnt].product_code_min to=$arrProductsList[cnt].product_code_max separator="~<br />"}--></td>
86                            <td>
87                                <!--{$arrProductsList[cnt].name|h}-->
88                            </td>
89                            <td align="center">
90                                <!--{* 商品画像 *}-->
91                                <img src="<!--{$smarty.const.IMAGE_SAVE_URLPATH}--><!--{$arrProductsList[cnt].main_list_image|sfNoImageMainList|h}-->" style="max-width: 65px;max-height: 65;" alt="<!--{$arrProducts[cnt].name|h}-->" />
92                            </td>
93                            <!--{assign var=rank value=`$rank+1`}-->
94                            <td align="center">
95                                <!--{$rank}-->
96                                <!--{if $arrProductsList[cnt].status == "2"}--><br />(非公開)<!--{/if}-->
97                            </td>
98                            <td align="center">
99                            <!--{* 移動 *}-->
100                            <!--{if !(count($arrProductsList) == 1 && $rank == 1)}-->
101                            <input type="text" name="pos-<!--{$arrProductsList[cnt].product_id}-->" size="3" class="box3" />番目へ<a href="?" onclick="eccube.setModeAndSubmit('move','product_id', '<!--{$arrProductsList[cnt].product_id}-->'); return false;">移動</a><br />
102                            <!--{/if}-->
103                            <!--{if !($smarty.section.cnt.first && $tpl_disppage eq 1)}-->
104                            <a href="?" onclick="eccube.setModeAndSubmit('up','product_id', '<!--{$arrProductsList[cnt].product_id}-->'); return false;">上へ</a>
105                            <!--{/if}-->
106                            <!--{if !($smarty.section.cnt.last && $tpl_disppage eq $tpl_pagemax)}-->
107                            <a href="?" onclick="eccube.setModeAndSubmit('down','product_id', '<!--{$arrProductsList[cnt].product_id}-->'); return false;">下へ</a>
108                            <!--{/if}-->
109                            </td>
110                        </tr>
111                    <!--{/section}-->
112                </table>
113            <!--{else}-->
114                <p>カテゴリを選択してください。</p>
115            <!--{/if}-->
116        </div>
117        <!--▲画面右-->
118
119    </div>
120</form>
Note: See TracBrowser for help on using the repository browser.