Changeset 9436 for temp/trunk
- Timestamp:
- 2006/11/29 18:46:00 (20 years ago)
- Location:
- temp/trunk
- Files:
-
- 2 edited
-
data/lib/slib.php (modified) (1 diff)
-
html/admin/products/product.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/data/lib/slib.php
r9426 r9436 127 127 if ($db_type == "pgsql") { 128 128 $sql = "SELECT a.attname FROM pg_class c, pg_attribute a WHERE c.relname=? AND c.oid=a.attrelid AND a.attnum > 0 ORDER BY a.attnum"; 129 $arrRet = $objQuery->getAll($sql, array($table_name)); 129 $arrColList = $objQuery->getAll($sql, array($table_name)); 130 $arrColList = sfswaparray($arrColList); 131 $arrRet = $arrColList["attname"]; 130 132 }else if ($db_type == "mysql") { 131 133 $sql = "SHOW COLUMNS FROM $table_name"; -
temp/trunk/html/admin/products/product.php
r9435 r9436 349 349 // dtb_products_class ¤Î¥«¥é¥à¤ò¼èÆÀ 350 350 $arrColList = sfGetColumnList("dtb_products_class", $objQuery); 351 unset($arrColList["product_class_id"]); //µ¬³ÊID¤ÏÅÐÏ¿¤·¤Ê¤¤ 351 $arrColList_tmp = array_flip($arrColList); 352 unset($arrColList[$arrColList_tmp["product_class_id"]]); //µ¬³ÊID¤ÏÅÐÏ¿¤·¤Ê¤¤ 352 353 353 354 sfprintr($arrColList);
Note: See TracChangeset
for help on using the changeset viewer.
