| 1 | <!--{* |
---|
| 2 | /* |
---|
| 3 | * This file is part of EC-CUBE |
---|
| 4 | * |
---|
| 5 | * Copyright(c) 2000-2011 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 type="text/javascript" src="<!--{$TPL_URLPATH}-->js/breadcrumbs.js"></script> |
---|
| 25 | <script type="text/javascript">//<![CDATA[ |
---|
| 26 | $(function() { |
---|
| 27 | $('h2').breadcrumbs({ |
---|
| 28 | 'bread_crumbs': <!--{$tpl_bread_crumbs}--> |
---|
| 29 | }); |
---|
| 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 | <a href="?"><img src="<!--{$TPL_URLPATH}-->img/contents/folder_close.gif" alt="フォルダ"> ホーム</a><br /> |
---|
| 46 | <!--{section name=cnt loop=$arrTree}--> |
---|
| 47 | <!--{assign var=level value="`$arrTree[cnt].level`}--> |
---|
| 48 | |
---|
| 49 | <!--{* 上の階層表示の時にdivを閉じる *}--> |
---|
| 50 | <!--{assign var=close_cnt value="`$before_level-$level+1`}--> |
---|
| 51 | <!--{if $close_cnt > 0}--> |
---|
| 52 | <!--{section name=n loop=$close_cnt}--></div><!--{/section}--> |
---|
| 53 | <!--{/if}--> |
---|
| 54 | |
---|
| 55 | <!--{* スペース繰り返し *}--> |
---|
| 56 | <!--{section name=n loop=$level}--> <!--{/section}--> |
---|
| 57 | |
---|
| 58 | <!--{* カテゴリ名表示 *}--> |
---|
| 59 | <!--{assign var=disp_name value="`$arrTree[cnt].category_id`.`$arrTree[cnt].category_name`"}--> |
---|
| 60 | <a href="?" onclick="fnModeSubmit('tree', 'parent_category_id', <!--{$arrTree[cnt].category_id}-->); return false"> |
---|
| 61 | <!--{if $arrForm.parent_category_id == $arrTree[cnt].category_id}--> |
---|
| 62 | <img src="<!--{$TPL_URLPATH}-->img/contents/folder_open.gif" alt="フォルダ"> |
---|
| 63 | <!--{else}--> |
---|
| 64 | <img src="<!--{$TPL_URLPATH}-->img/contents/folder_close.gif" alt="フォルダ"> |
---|
| 65 | <!--{/if}--> |
---|
| 66 | <!--{$disp_name|sfCutString:10:false|h}-->(<!--{$arrTree[cnt].product_count|default:0}-->)</a> |
---|
| 67 | <br /> |
---|
| 68 | <!--{if $arrTree[cnt].display == true}--> |
---|
| 69 | <div id="f<!--{$arrTree[cnt].category_id}-->"> |
---|
| 70 | <!--{else}--> |
---|
| 71 | <div id="f<!--{$arrTree[cnt].category_id}-->" style="display:none"> |
---|
| 72 | <!--{/if}--> |
---|
| 73 | <!--{if $smarty.section.cnt.last}--> |
---|
| 74 | <!--{section name=n loop=$level}--></div><!--{/section}--> |
---|
| 75 | <!--{/if}--> |
---|
| 76 | <!--{assign var=before_level value="`$arrTree[cnt].level`}--> |
---|
| 77 | <!--{/section}--> |
---|
| 78 | </div> |
---|
| 79 | <!--{* ▲画面左 *}--> |
---|
| 80 | |
---|
| 81 | <!--▼画面右--> |
---|
| 82 | <div id="products-rank-right"> |
---|
| 83 | <h2><!--{* jQuery で挿入される *}--></h2> |
---|
| 84 | <!--{if count($arrProductsList) > 0}--> |
---|
| 85 | |
---|
| 86 | <p class="remark"><span class="attention"><!--{$tpl_linemax}-->件</span>が該当しました。</p> |
---|
| 87 | <div class="pager"> |
---|
| 88 | <!--{$tpl_strnavi}--> |
---|
| 89 | </div> |
---|
| 90 | |
---|
| 91 | <!--{if $smarty.const.ADMIN_MODE == '1'}--> |
---|
| 92 | <p class="right"><a class="btn-normal" href="javascript:;" onclick="fnModeSubmit('renumber', '', ''); return false;">内部順位再割り当て</a></p> |
---|
| 93 | <!--{/if}--> |
---|
| 94 | |
---|
| 95 | <table class="list" id="categoryTable"> |
---|
| 96 | <col width="20%" /> |
---|
| 97 | <col width="47.5%" /> |
---|
| 98 | <col width="10%" /> |
---|
| 99 | <col width="7.5%" /> |
---|
| 100 | <col width="15%" /> |
---|
| 101 | <tr class="nodrop nodrag"> |
---|
| 102 | <th>商品コード</th> |
---|
| 103 | <th>商品名</th> |
---|
| 104 | <th>商品画像</th> |
---|
| 105 | <th>順位</th> |
---|
| 106 | <th>移動</th> |
---|
| 107 | </tr> |
---|
| 108 | |
---|
| 109 | <!--{assign var=rank value=$tpl_start_row}--> |
---|
| 110 | <!--{section name=cnt loop=$arrProductsList}--> |
---|
| 111 | <tr> |
---|
| 112 | <td><!--{from_to from=$arrProductsList[cnt].product_code_min to=$arrProductsList[cnt].product_code_max separator="~<br />"}--></td> |
---|
| 113 | <td> |
---|
| 114 | <!--{$arrProductsList[cnt].name|h}--> |
---|
| 115 | </td> |
---|
| 116 | <td align="center"> |
---|
| 117 | <!--{* 商品画像 *}--> |
---|
| 118 | <img src="<!--{$smarty.const.ROOT_URLPATH}-->resize_image.php?image=<!--{$arrProductsList[cnt].main_list_image|sfNoImageMainList|h}-->&width=65&height=65" alt="<!--{$arrProducts[cnt].name|h}-->"> |
---|
| 119 | </td> |
---|
| 120 | <!--{assign var=rank value=`$rank+1`}--> |
---|
| 121 | <td align="center"> |
---|
| 122 | <!--{$rank}--> |
---|
| 123 | <!--{if $arrProductsList[cnt].status == "2"}--><br />(非公開)<!--{/if}--> |
---|
| 124 | </td> |
---|
| 125 | <td align="center"> |
---|
| 126 | <!--{* 移動 *}--> |
---|
| 127 | <!--{if !(count($arrProductsList) == 1 && $rank == 1)}--> |
---|
| 128 | <input type="text" name="pos-<!--{$arrProductsList[cnt].product_id}-->" size="3" class="box3" />番目へ<a href="?" onclick="fnModeSubmit('move','product_id', '<!--{$arrProductsList[cnt].product_id}-->'); return false;">移動</a><br /> |
---|
| 129 | <!--{/if}--> |
---|
| 130 | <!--{if !($smarty.section.cnt.first && $tpl_disppage eq 1)}--> |
---|
| 131 | <a href="?" onclick="fnModeSubmit('up','product_id', '<!--{$arrProductsList[cnt].product_id}-->'); return false;">上へ</a> |
---|
| 132 | <!--{/if}--> |
---|
| 133 | <!--{if !($smarty.section.cnt.last && $tpl_disppage eq $tpl_pagemax)}--> |
---|
| 134 | <a href="?" onclick="fnModeSubmit('down','product_id', '<!--{$arrProductsList[cnt].product_id}-->'); return false;">下へ</a> |
---|
| 135 | <!--{/if}--> |
---|
| 136 | </td> |
---|
| 137 | </tr> |
---|
| 138 | <!--{/section}--> |
---|
| 139 | </table> |
---|
| 140 | <!--{else}--> |
---|
| 141 | <p>カテゴリを選択してください。</p> |
---|
| 142 | <!--{/if}--> |
---|
| 143 | </div> |
---|
| 144 | <!--▲画面右--> |
---|
| 145 | |
---|
| 146 | </div> |
---|
| 147 | </form> |
---|