Changeset 22559


Ignore:
Timestamp:
2013/02/18 12:18:22 (8 years ago)
Author:
Qwert
Message:

#2143 「おすすめ商品の検索画面にて非公開の商品もリストアップされる」を修正

おすすめ商品管理・おすすめ商品検索画面で非公開の商品のセルは色付きに。またおすすめ商品検索画面で検索条件に商品ステータスを追加。

Location:
branches/version-2_12-dev
Files:
5 edited

Legend:

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

    r22557 r22559  
    8585<div id="admin-contents" class="contents-main"> 
    8686    <!--{section name=cnt loop=$tpl_disp_max}--> 
    87     <div class="recommend-product"> 
     87    <div class="recommend-product <!--{if $arrItems[$smarty.section.cnt.iteration].status == "2"}-->hidden<!--{/if}-->"> 
    8888        <table class="list center recommend-table"> 
    8989            <col width="13%" /> 
  • branches/version-2_12-dev/data/Smarty/templates/admin/contents/recommend_search.tpl

    r22206 r22559  
    6666            <td><input type="text" name="search_name" value="<!--{$arrForm.search_name}-->" size="35" class="box35" /></td> 
    6767        </tr> 
     68        <tr> 
     69            <th>商品ステータス</th> 
     70            <td> 
     71                <input type="hidden" name="search_status" value="1" /> 
     72                <label> 
     73                    <input type="checkbox" name="search_status" value="" <!--{if $arrForm.search_status === ""}-->checked<!--{/if}--> /> 
     74                    非公開の商品を含む 
     75                </label> 
     76            </td> 
     77        </tr> 
    6878    </table> 
    6979    <div class="btn-area"> 
     
    7787    <!--{$tpl_strnavi}--> 
    7888 
    79     <table class="list"> 
     89    <table id="recommend-search-results" class="list"> 
    8090        <col width="15%" /> 
    8191        <col width="12.5%" /> 
     
    91101        <!--{foreach name=loop from=$arrProducts item=arr}--> 
    92102        <!--▼商品<!--{$smarty.foreach.loop.iteration}-->--> 
    93         <tr> 
     103        <tr class="<!--{if $arr.status == "2"}-->hidden<!--{/if}-->"> 
    94104            <td class="center"> 
    95105                <img src="<!--{$smarty.const.ROOT_URLPATH}-->resize_image.php?image=<!--{$arr.main_list_image|sfNoImageMainList|h}-->&width=65&height=65" alt="" /> 
  • branches/version-2_12-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_Recommend.php

    r22206 r22559  
    175175    function getRecommendProducts() { 
    176176        $objQuery = $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    177         $col = 'dtb_products.name,dtb_products.main_list_image,dtb_best_products.*'; 
     177        $col = 'dtb_products.name,dtb_products.main_list_image,dtb_best_products.*,dtb_products.status'; 
    178178        $table = 'dtb_best_products INNER JOIN dtb_products ON dtb_best_products.product_id = dtb_products.product_id'; 
    179179        $where = 'dtb_best_products.del_flg = 0'; 
  • branches/version-2_12-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_RecommendSearch.php

    r22206 r22559  
    125125        $objFormParam->addParam('商品ID', 'search_category_id', INT_LEN, 'n', array('MAX_LENGTH_CHECK','NUM_CHECK')); 
    126126        $objFormParam->addParam('商品コード', 'search_product_code', LTEXT_LEN, 'KVa', array('MAX_LENGTH_CHECK')); 
     127        $objFormParam->addParam('商品ステータス', 'search_status', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK')); 
    127128        $objFormParam->addParam('ページ番号', 'search_pageno', INT_LEN, 'n', array('MAX_LENGTH_CHECK','NUM_CHECK')); 
    128129    } 
     
    169170                    $where .=    ' AND alldtl.product_id IN (SELECT product_id FROM dtb_products_class WHERE product_code LIKE ? GROUP BY product_id)'; 
    170171                    $bind[] = '%'.$val.'%'; 
     172                    break; 
     173                case 'search_status': 
     174                    $where .= ' AND alldtl.status = ?'; 
     175                    $bind[] = $val; 
    171176                    break; 
    172177                default: 
  • branches/version-2_12-dev/html/user_data/packages/admin/css/admin_contents.css

    r22558 r22559  
    184184} 
    185185 
     186.recommend-product.hidden td{ 
     187    background: #C9C9C9; 
     188} 
     189 
    186190div.table-wrap { 
    187191    margin-top: 6px; 
     
    206210    text-align: left; 
    207211    padding-left: 11px; 
     212} 
     213 
     214/*おすすめ商品検索画面*/ 
     215 
     216#recommend-search-results .hidden td, 
     217#recommend-search-results .hidden th{ 
     218    background: #C9C9C9; 
    208219} 
    209220 
Note: See TracChangeset for help on using the changeset viewer.