Ignore:
Timestamp:
2012/05/01 15:17:59 (12 years ago)
Author:
tokuhiro
Message:

refs #1789
おすすめ商品管理に並べ替え機能を追加

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/Smarty/templates/admin/contents/recommend.tpl

    r21539 r21802  
    6464} 
    6565 
     66function lfnSortItem(mode,data){ 
     67    var flag = true; 
     68    var checkRank = '<!--{$checkRank|h}-->'; 
     69    if ( checkRank ){ 
     70        if( ! window.confirm('さきほど選択した<!--{$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 
    6682//--> 
    6783</script> 
    68  
    6984 
    7085        <!--{section name=cnt loop=$tpl_disp_max}--> 
     
    8196            <th>編集</th> 
    8297            <th>削除</th> 
     98            <th>並び替え</th> 
    8399        </tr> 
    84100 
     
    137153                <!--{/if}--> 
    138154            </td> 
     155            <td> 
     156                <!--{* 移動 *}--> 
     157                <!--{if $smarty.section.cnt.iteration != 1 && $arrItems[$smarty.section.cnt.iteration].product_id}--> 
     158                    <a href="?" onclick="lfnSortItem('up',<!--{$arrItems[$smarty.section.cnt.iteration].rank}-->); return false;">上へ</a><br>&nbsp; 
     159                <!--{/if}--> 
     160                <!--{if $smarty.section.cnt.iteration != $tpl_disp_max && $arrItems[$smarty.section.cnt.iteration].product_id}--> 
     161                    <a href="?" onclick="lfnSortItem('down',<!--{$arrItems[$smarty.section.cnt.iteration].rank}-->); return false;">下へ</a> 
     162                <!--{/if}--> 
     163            </td> 
    139164        </tr> 
    140165 
Note: See TracChangeset for help on using the changeset viewer.