Changeset 6529 for temp/trunk
- Timestamp:
- 2006/10/24 16:16:01 (20 years ago)
- Location:
- temp/trunk
- Files:
-
- 2 edited
-
data/Smarty/templates/rss/product.tpl (modified) (previous)
-
html/rss/product.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/html/rss/product.php
r6528 r6529 27 27 if($product_id != ""){ 28 28 //¾¦Éʾܺ٤ò¼èÆÀ 29 $arrProduct = lfGetProductsDetail($objQuery, $product_id); 29 $arrProductTmp = lfGetProductsDetail($objQuery, $product_id); 30 31 // ÃͤΥ»¥Ã¥È¤·Ä¾¤· 32 foreach($arrProductTmp as $key => $val){ 33 34 switch ($key){ 35 case "main_list_image": 36 case "main_image": 37 case "main_large_image": 38 $arrProductTmp[$key] = IMAGE_SAVE_URL . $arrProductTmp[$key]; 39 break; 40 } 41 } 42 30 43 }else{ 31 44 //¾¦ÉʰìÍ÷¤ò¼èÆÀ … … 48 61 //XML¥Æ¥¥¹¥È(¤³¤ì¤¬¤Ê¤¤¤ÈÀµ¾ï¤ËRSS¤È¤·¤ÆÇ§¼±¤·¤Æ¤¯¤ì¤Ê¤¤¥Ä¡¼¥ë¤¬¤¢¤ë¤¿¤á) 49 62 header("Content-type: application/xml"); 63 DETAIL_P_HTML; 50 64 51 65 //²èÌÌɽ¼¨ … … 62 76 function lfGetProductsDetail($objQuery, $product_id){ 63 77 $sql = ""; 64 $sql .= "SELECT 65 prod.product_id66 ,prod.name AS product_name67 ,prod.category_id68 ,prod.point_rate69 ,prod.comment370 ,prod.main_list_comment71 ,prod.main_list_image72 ,prod.main_comment73 ,prod.main_image74 ,prod.main_large_image75 ,cls.price0176 ,cls.price0277 ,cls.classcategory_id178 ,cls.classcategory_id279 ,(SELECT name FROM dtb_classcategory AS clscat WHERE clscat.classcategory_id = cls.classcategory_id1) AS classcategory_name180 ,(SELECT name FROM dtb_classcategory AS clscat WHERE clscat.classcategory_id = cls.classcategory_id2) AS classcategory_name281 ,(SELECT category_name FROM dtb_category AS cat WHERE cat.category_id = prod.category_id) AS category_name";78 $sql .= "SELECT "; 79 $sql .= " prod.product_id "; 80 $sql .= " ,prod.name AS product_name "; 81 $sql .= " ,prod.category_id "; 82 $sql .= " ,prod.point_rate "; 83 $sql .= " ,prod.comment3 "; 84 $sql .= " ,prod.main_list_comment "; 85 $sql .= " ,prod.main_list_image "; 86 $sql .= " ,prod.main_comment "; 87 $sql .= " ,prod.main_image "; 88 $sql .= " ,prod.main_large_image "; 89 $sql .= " ,cls.price01 "; 90 $sql .= " ,cls.price02 "; 91 $sql .= " ,cls.classcategory_id1 "; 92 $sql .= " ,cls.classcategory_id2 "; 93 $sql .= " ,(SELECT name FROM dtb_classcategory AS clscat WHERE clscat.classcategory_id = cls.classcategory_id1) AS classcategory_name1 "; 94 $sql .= " ,(SELECT name FROM dtb_classcategory AS clscat WHERE clscat.classcategory_id = cls.classcategory_id2) AS classcategory_name2 "; 95 $sql .= " ,(SELECT category_name FROM dtb_category AS cat WHERE cat.category_id = prod.category_id) AS category_name"; 82 96 $sql .= " FROM dtb_products AS prod, dtb_products_class AS cls"; 83 97 $sql .= " WHERE prod.product_id = cls.product_id AND prod.del_flg = 0 AND prod.status = 1";
Note: See TracChangeset
for help on using the changeset viewer.
