- Timestamp:
- 2010/09/08 11:00:31 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/pages/admin/mail/LC_Page_Admin_Mail.php
r18792 r18797 478 478 $objQuery->insert("dtb_send_history", $dtb_send_history ); 479 479 480 // FIXME 値を取得できていない模様 480 481 $sendId = $objQuery->currval('dtb_send_history', 'send_id'); 481 482 … … 527 528 528 529 // HTMLテンプレートを使用する場合、データを取得する。 529 // FIXME530 530 function lfGetHtmlTemplateData($id) { 531 531 … … 538 538 $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 = ?"; 539 539 $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])); 540 559 $list_data["sub"][$k][$l] = $result[0]; 541 560 $list_data["sub"][$k]["data_exists"] = "OK"; // 当該段にデータが1つ以上存在するフラグ
Note: See TracChangeset
for help on using the changeset viewer.