Changeset 9436 for temp/trunk


Ignore:
Timestamp:
2006/11/29 18:46:00 (20 years ago)
Author:
kakinaka
Message:

blank

Location:
temp/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/data/lib/slib.php

    r9426 r9436  
    127127    if ($db_type == "pgsql") { 
    128128        $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"]; 
    130132    }else if ($db_type == "mysql") { 
    131133        $sql = "SHOW COLUMNS FROM $table_name"; 
  • temp/trunk/html/admin/products/product.php

    r9435 r9436  
    349349        // dtb_products_class ¤Î¥«¥é¥à¤ò¼èÆÀ 
    350350        $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¤ÏÅÐÏ¿¤·¤Ê¤¤ 
    352353         
    353354        sfprintr($arrColList); 
Note: See TracChangeset for help on using the changeset viewer.