| Line | |
|---|
| 1 | <?php
|
|---|
| 2 | /**
|
|---|
| 3 | * zencart¤«¤éec-cube¤Ø¤Î¾¦Éʥǡ¼¥¿°Ü¹Ô¥¹¥¯¥ê¥×¥È(»ÃÄê)
|
|---|
| 4 | */
|
|---|
| 5 |
|
|---|
| 6 | require_once("../../require.php");
|
|---|
| 7 |
|
|---|
| 8 | // zencart¤ÎDSN¤òÀßÄê
|
|---|
| 9 | $zen_db_dsn = 'mysql://root:password@localhost/zencart_db';
|
|---|
| 10 |
|
|---|
| 11 | lfConvertProducts();
|
|---|
| 12 |
|
|---|
| 13 | function lfGetObjQuery($dsn = ''){
|
|---|
| 14 | global $zen_db_dsn;
|
|---|
| 15 | if (strtolower($dsn) == 'zen') {
|
|---|
| 16 | $dsn = $zen_db_dsn;
|
|---|
| 17 | }
|
|---|
| 18 | return new SC_Query($dsn, true, true);
|
|---|
| 19 | }
|
|---|
| 20 |
|
|---|
| 21 | function lfConvertProducts(){
|
|---|
| 22 | $arrError = 0;
|
|---|
| 23 |
|
|---|
| 24 | $ZenQuery = lfGetObjQuery('zen');
|
|---|
| 25 | $CubeQuery = lfGetObjQuery();
|
|---|
| 26 |
|
|---|
| 27 | $z_tbl_products = 'products';
|
|---|
| 28 | $z_tbl_customers_info = 'customers_info';
|
|---|
| 29 | $z_tbl_customers_wishlist = 'customers_wishlist';
|
|---|
| 30 |
|
|---|
| 31 | $arrRet = $CubeQuery->select('*', 'vw_products_allclass_detail');
|
|---|
| 32 | sfprintr($arrRet);
|
|---|
| 33 | }
|
|---|
Note: See
TracBrowser
for help on using the repository browser.