Ignore:
Timestamp:
2013/07/08 13:07:51 (11 years ago)
Author:
Seasoft
Message:

#2059 (HTML構文誤り for 2.13.0)

  • 閉じ漏れ

#2043 (typo修正・ソース整形・ソースコメントの改善 for 2.13.0)

  • インデント
  • wordwrap の引数

#2140 (標準テンプレートのカスタマイズ性を高める)

  • インデント
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/data/Smarty/templates/admin/products/product_rank.tpl

    r22597 r22954  
    3333 
    3434<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"> 
     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"> 
    4242 
    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> 
     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="fnModeSubmit('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.ROOT_URLPATH}-->resize_image.php?image=<!--{$arrProductsList[cnt].main_list_image|sfNoImageMainList|h}-->&amp;width=65&amp;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="fnModeSubmit('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="fnModeSubmit('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="fnModeSubmit('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 
    51119    </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="fnModeSubmit('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.ROOT_URLPATH}-->resize_image.php?image=<!--{$arrProductsList[cnt].main_list_image|sfNoImageMainList|h}-->&amp;width=65&amp;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="fnModeSubmit('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="fnModeSubmit('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="fnModeSubmit('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> 
    120120</form> 
Note: See TracChangeset for help on using the changeset viewer.