Changeset 10963 for temp/branches


Ignore:
Timestamp:
2006/12/18 23:24:16 (20 years ago)
Author:
uehara
Message:
 
Location:
temp/branches/ec-cube-beta/html
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • temp/branches/ec-cube-beta/html/admin/contents/campaign_create_tag.php

    r10958 r10963  
    114114    break; 
    115115case 'view': 
     116    lfGetProductsClass(); 
    116117    $create_tag = "<a href=\"#\" onclick=\"fnFormModeSubmit('form1', 'cart', 'product_id', 404)\"><img src=\"images/top/button_03.jpg\" alt=\"¹ØÆþ¤¹¤ë\" width=\"138\" height=\"60\" border=\"0\" style=\"margin-left:10px;\" /></a>"; 
    117      
    118118    $objPage->tpl_create_tag = $create_tag; 
    119119    break; 
    … …  
    151151} 
    152152 
    153  
     153/* ¾¦Éʵ¬³Ê¾ðÊó¤Î¼èÆÀ */ 
     154function lfGetProductsClass($product_id) { 
     155    $arrRet = array(); 
     156    if(sfIsInt($product_id)) { 
     157        // ¾¦Éʵ¬³Ê¼èÆÀ 
     158        $objQuery = new SC_Query(); 
     159        $col = "product_class_id, classcategory_id1, classcategory_id2, class_id1, class_id2, stock, stock_unlimited"; 
     160        $table = "vw_product_class AS prdcls"; 
     161        $where = "product_id = ?"; 
     162        $objQuery->setorder("rank1 DESC, rank2 DESC"); 
     163        $arrRet = $objQuery->select($col, $table, $where, array($product_id)); 
     164    } 
     165    return $arrRet; 
     166} 
    154167?> 
  • temp/branches/ec-cube-beta/html/campaign/default/index.php

    r10912 r10963  
    5151    $arrRet = $objQuery->select($col, "dtb_campaign", "directory_name = ? AND del_flg = 0", array($directory_name)); 
    5252 
    53     // ³«»ÏÆü»þ¡¦Ää»ßÆü»þ¤òʬ²ò 
    54     $start_date = (date("YmdHis" , strtotime($arrRet[0]['start_date']))); 
    55     $end_date = (date("YmdHis" , strtotime($arrRet[0]['end_date']))); 
     53    // ³«»ÏÆü»þ¡¦Ää»ßÆü»þ¤òÀ®·¿ 
     54    $start_date = (date("YmdHis", strtotime($arrRet[0]['start_date']))); 
     55    $end_date = (date("YmdHis", strtotime($arrRet[0]['end_date']))); 
    5656    $now_date = (date("YmdHis")); 
    5757 
Note: See TracChangeset for help on using the changeset viewer.