Ignore:
Timestamp:
2010/09/08 11:00:31 (14 years ago)
Author:
Seasoft
Message:

#565(SC_DbConn クラスの削除)

  • r18772 による誤りを改修
  • SC_Query#currval が動作していない箇所にコメント追加
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/pages/admin/mail/LC_Page_Admin_Mail.php

    r18792 r18797  
    478478        $objQuery->insert("dtb_send_history", $dtb_send_history ); 
    479479 
     480        // FIXME 値を取得できていない模様 
    480481        $sendId = $objQuery->currval('dtb_send_history', 'send_id'); 
    481482 
     
    527528 
    528529    // HTMLテンプレートを使用する場合、データを取得する。 
    529     // FIXME 
    530530    function lfGetHtmlTemplateData($id) { 
    531531 
     
    538538        $sql = "SELECT name, main_image, point_rate, deliv_fee, price01_min, price01_max, price02_min, price02_max FROM vw_products_allclass AS allcls WHERE product_id = ?"; 
    539539        $main = $objQuery->getAll($sql, array($list_data["sub_product_id" .$j])); 
     540        $list_data["main"] = $main[0]; 
     541 
     542        // サブ商品の情報取得 
     543        $sql = "SELECT product_id, name, main_list_image, price01_min, price01_max, price02_min, price02_max FROM vw_products_allclass AS allcls WHERE product_id = ?"; 
     544        $k = 0; 
     545        $l = 0; 
     546        for ($i = 1; $i <= 12; $i ++) { 
     547            if ($l == 4) { 
     548                $l = 0; 
     549                $k ++; 
     550            } 
     551            $result = ""; 
     552            $j = sprintf("%02d", $i); 
     553            if ($i > 0 && $i < 5 ) $k = 0; 
     554            if ($i > 4 && $i < 9 ) $k = 1; 
     555            if ($i > 8 && $i < 13 ) $k = 2; 
     556 
     557            if (is_numeric($list_data["sub_product_id" .$j])) { 
     558                $result = $objQuery->getAll($sql, array($list_data["sub_product_id" .$j])); 
    540559                $list_data["sub"][$k][$l] = $result[0]; 
    541560                $list_data["sub"][$k]["data_exists"] = "OK";    // 当該段にデータが1つ以上存在するフラグ 
Note: See TracChangeset for help on using the changeset viewer.