Changeset 14563
- Timestamp:
- 2007/06/08 21:14:43 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/dev/data/conf/conf.php
r14471 r14563 922 922 923 923 // ViewÊÑ´¹ÍÑ(MySQLÂбþ) 924 924 925 $arrView = array( 925 926 "vw_cross_class" => ' … … 933 934 FROM dtb_classcategory AS T1, dtb_classcategory AS T2 ) AS T1 LEFT JOIN dtb_products_class AS T2 934 935 ON T1.classcategory_id1 = T2.classcategory_id1 AND T1.classcategory_id2 = T2.classcategory_id2) ', 935 936 "vw_products_nonclass" => '937 (SELECT938 T1.product_id,939 T1.name,940 T1.deliv_fee,941 T1.sale_limit,942 T1.sale_unlimited,943 T1.category_id,944 T1.rank,945 T1.status,946 T1.product_flag,947 T1.point_rate,948 T1.comment1,949 T1.comment2,950 T1.comment3,951 T1.comment4,952 T1.comment5,953 T1.comment6,954 T1.file1,955 T1.file2,956 T1.file3,957 T1.file4,958 T1.file5,959 T1.file6,960 T1.main_list_comment,961 T1.main_list_image,962 T1.main_comment,963 T1.main_image,964 T1.main_large_image,965 T1.sub_title1,966 T1.sub_comment1,967 T1.sub_image1,968 T1.sub_large_image1,969 T1.sub_title2,970 T1.sub_comment2,971 T1.sub_image2,972 T1.sub_large_image2,973 T1.sub_title3,974 T1.sub_comment3,975 T1.sub_image3,976 T1.sub_large_image3,977 T1.sub_title4,978 T1.sub_comment4,979 T1.sub_image4,980 T1.sub_large_image4,981 T1.sub_title5,982 T1.sub_comment5,983 T1.sub_image5,984 T1.sub_large_image5,985 T1.sub_title6,986 T1.sub_comment6,987 T1.sub_image6,988 T1.sub_large_image6,989 T1.del_flg,990 T1.creator_id,991 T1.create_date,992 T1.update_date,993 T1.deliv_date_id,994 T2.product_id_sub,995 T2.product_code,996 T2.price01,997 T2.price02,998 T2.stock,999 T2.stock_unlimited,1000 T2.classcategory_id1,1001 T2.classcategory_id21002 FROM (SELECT * FROM dtb_products &&noncls_where&&) AS T1 LEFT JOIN1003 (SELECT1004 product_id AS product_id_sub,1005 product_code,1006 price01,1007 price02,1008 stock,1009 stock_unlimited,1010 classcategory_id1,1011 classcategory_id21012 FROM dtb_products_class WHERE classcategory_id1 = 0 AND classcategory_id2 = 0)1013 AS T21014 ON T1.product_id = T2.product_id_sub) ',1015 936 1016 937 "vw_products_allclass" => ' … … 1102 1023 ON T1.category_id = T2.category_id) ' 1103 1024 ); 1025 1026 $vw_products_nonclass = " 1027 (SELECT 1028 T1.product_id, 1029 T1.name, 1030 T1.deliv_fee, 1031 T1.sale_limit, 1032 T1.sale_unlimited, 1033 T1.category_id, 1034 T1.rank, 1035 T1.status, 1036 T1.product_flag, 1037 T1.point_rate, 1038 T1.comment1, 1039 T1.comment2, 1040 T1.comment3, 1041 T1.comment4, 1042 T1.comment5, 1043 T1.comment6, 1044 T1.file1, 1045 T1.file2, 1046 T1.file3, 1047 T1.file4, 1048 T1.file5, 1049 T1.file6, 1050 T1.main_list_comment, 1051 T1.main_list_image, 1052 T1.main_comment, 1053 T1.main_image, 1054 T1.main_large_image,"; 1055 1056 for ($cnt = 1; $cnt <= PRODUCTSUB_MAX; $cnt++) { 1057 $vw_products_nonclass.= " 1058 T1.sub_title$cnt, 1059 T1.sub_comment$cnt, 1060 T1.sub_image$cnt, 1061 T1.sub_large_image$cnt,"; 1062 } 1063 1064 $vw_products_nonclass.= " 1065 T1.del_flg, 1066 T1.creator_id, 1067 T1.create_date, 1068 T1.update_date, 1069 T1.deliv_date_id, 1070 T2.product_id_sub, 1071 T2.product_code, 1072 T2.price01, 1073 T2.price02, 1074 T2.stock, 1075 T2.stock_unlimited, 1076 T2.classcategory_id1, 1077 T2.classcategory_id2 1078 FROM (SELECT * FROM dtb_products &&noncls_where&&) AS T1 LEFT JOIN 1079 (SELECT 1080 product_id AS product_id_sub, 1081 product_code, 1082 price01, 1083 price02, 1084 stock, 1085 stock_unlimited, 1086 classcategory_id1, 1087 classcategory_id2 1088 FROM dtb_products_class WHERE classcategory_id1 = 0 AND classcategory_id2 = 0) 1089 AS T2 1090 ON T1.product_id = T2.product_id_sub) "; 1091 1092 $arrView['vw_products_nonclass'] = $vw_products_nonclass; 1104 1093 ?>
Note: See TracChangeset
for help on using the changeset viewer.