Ignore:
Timestamp:
2006/09/11 19:37:56 (20 years ago)
Author:
kakinaka
Message:

blank

File:
1 edited

Legend:

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

    r4599 r4608  
    430430 
    431431    //--¡¡»ØÄꤷ¤¿½ç°Ì¤Î¾¦Éʤ«¤é°Üư¤µ¤»¤ë¾¦ÉʤޤǤÎrank¤ò£±¤Ä¤º¤é¤¹ 
    432     $sql = "UPDATE $tableName SET rank = $term, update_date = NOW() WHERE rank BETWEEN ? AND ? AND delete = 0"; 
     432    $sql = "UPDATE $tableName SET rank = $term, update_date = NOW() WHERE rank BETWEEN ? AND ? AND del_flg = 0"; 
    433433    if($where != "") { 
    434434        $sql.= " AND $where"; 
     
    439439 
    440440    //-- »ØÄꤷ¤¿½ç°Ì¤Ørank¤ò½ñ¤­´¹¤¨¤ë¡£ 
    441     $sql  = "UPDATE $tableName SET rank = ?, update_date = NOW() WHERE $keyIdColumn = ? AND delete = 0 "; 
     441    $sql  = "UPDATE $tableName SET rank = ?, update_date = NOW() WHERE $keyIdColumn = ? AND del_flg = 0 "; 
    442442    if($where != "") { 
    443443        $sql.= " AND $where"; 
     
    462462    if(!$delete) { 
    463463        // ¥é¥ó¥¯¤òºÇ²¼°Ì¤Ë¤¹¤ë¡¢DEL¥Õ¥é¥°ON 
    464         $sqlup = "UPDATE $table SET rank = 0, delete = 1, update_date = Now() "; 
     464        $sqlup = "UPDATE $table SET rank = 0, del_flg = 1, update_date = Now() "; 
    465465        $sqlup.= "WHERE $colname = ?"; 
    466466        // UPDATE¤Î¼Â¹Ô 
     
    485485    $arrCol = split("[, ]", $col); 
    486486         
    487     $where = "delete = 0"; 
     487    $where = "del_flg = 0"; 
    488488     
    489489    if($addwhere != "") { 
     
    774774function sfGetCategoryList($addwhere = "", $products_check = false, $head = CATEGORY_HEAD) { 
    775775    $objQuery = new SC_Query(); 
    776     $where = "delete = 0"; 
     776    $where = "del_flg = 0"; 
    777777     
    778778    if($addwhere != "") { 
     
    815815    $objQuery = new SC_Query(); 
    816816    $col = "category_id, category_name, level"; 
    817     $where = "delete = 0"; 
     817    $where = "del_flg = 0"; 
    818818    $objQuery->setoption("ORDER BY rank DESC"); 
    819819    $arrRet = $objQuery->select($col, "dtb_category", $where); 
     
    871871    $objQuery = new SC_Query(); 
    872872    $col = "$keyname, $valname"; 
    873     $objQuery->setwhere("delete = 0"); 
     873    $objQuery->setwhere("del_flg = 0"); 
    874874    $objQuery->setorder("rank DESC"); 
    875875    $arrList = $objQuery->select($col, $table); 
     
    10001000        $where = "to_char(now(),'YYYY/MM/DD/HH24') >= to_char(start_date,'YYYY/MM/DD/HH24') AND "; 
    10011001        $where .= "to_char(now(),'YYYY/MM/DD/HH24') < to_char(end_date,'YYYY/MM/DD/HH24') AND "; 
    1002         $where .= "delete = 0 AND campaign_id IN (SELECT campaign_id FROM dtb_campaign_detail where product_id = ? )"; 
     1002        $where .= "del_flg = 0 AND campaign_id IN (SELECT campaign_id FROM dtb_campaign_detail where product_id = ? )"; 
    10031003        //ÅÐÏ¿(¹¹¿·)ÆüÉÕ½ç 
    10041004        $objQuery->setorder('update_date DESC'); 
     
    10431043    $sql = "select count(dtb_class.class_id), dtb_class.class_id "; 
    10441044    $sql.= "from dtb_class inner join dtb_classcategory on dtb_class.class_id = dtb_classcategory.class_id "; 
    1045     $sql.= "where dtb_class.delete = 0 AND dtb_classcategory.delete = 0 "; 
     1045    $sql.= "where dtb_class.del_flg = 0 AND dtb_classcategory.del_flg = 0 "; 
    10461046    $sql.= "group by dtb_class.class_id, dtb_class.name;"; 
    10471047    $objQuery = new SC_Query(); 
     
    12881288     
    12891289    if($payment_id != "") { 
    1290         $where = "delete = 0 AND payment_id = ?"; 
     1290        $where = "del_flg = 0 AND payment_id = ?"; 
    12911291        $arrRet = $objQuery->select("deliv_id", "dtb_payment", $where, array($payment_id)); 
    12921292        $deliv_id = $arrRet[0]['deliv_id']; 
     
    13101310    // »Ùʧ¤¤ÊýË¡¤¬»ØÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢Âбþ¤·¤¿ÇÛÁ÷¶È¼Ô¤ò¼èÆÀ¤¹¤ë 
    13111311    if($payment_id != "") { 
    1312         $where = "delete = 0 AND payment_id = ?"; 
     1312        $where = "del_flg = 0 AND payment_id = ?"; 
    13131313        $arrRet = $objQuery->select("deliv_id", "dtb_payment", $where, array($payment_id)); 
    13141314        $deliv_id = $arrRet[0]['deliv_id']; 
    13151315    // »Ùʧ¤¤ÊýË¡¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï¡¢ÀèÆ¬¤ÎÇÛÁ÷¶È¼Ô¤ò¼èÆÀ¤¹¤ë 
    13161316    } else { 
    1317         $where = "delete = 0"; 
     1317        $where = "del_flg = 0"; 
    13181318        $objQuery->setOrder("rank DESC"); 
    13191319        $objQuery->setLimitOffset(1); 
     
    13411341    $objQuery = new SC_Query(); 
    13421342    // ¹ØÆþ¶â³Û¤¬¾ò·ï³Û°Ê²¼¤Î¹àÌܤò¼èÆÀ 
    1343     $where = "delete = 0"; 
     1343    $where = "del_flg = 0"; 
    13441344    $objQuery->setorder("fix, rank DESC"); 
    13451345    $arrRet = $objQuery->select("payment_id, payment_method, rule", "dtb_payment", $where); 
     
    17361736    $sql = "SELECT name, main_image, main_list_image, price01_min, price01_max, price02_min, price02_max, point_rate, 
    17371737             A.product_id, A.comment FROM dtb_best_products as A LEFT JOIN vw_products_allclass as B  
    1738             USING (product_id) WHERE A.category_id = ? AND A.delete = 0 AND status = 1 ORDER BY A.rank"; 
     1738            USING (product_id) WHERE A.category_id = ? AND A.del_flg = 0 AND status = 1 ORDER BY A.rank"; 
    17391739    $arrItems = $conn->getAll($sql, array($category_id)); 
    17401740    return $arrItems; 
     
    21162116    $sql .= " SELECT T1.category_id, count(T2.category_id) FROM dtb_category AS T1 LEFT JOIN dtb_products AS T2 "; 
    21172117    $sql .= " ON T1.category_id = T2.category_id  "; 
    2118     $sql .= " WHERE T2.delete = 0 AND T2.status = 1 "; 
     2118    $sql .= " WHERE T2.del_flg = 0 AND T2.status = 1 "; 
    21192119    $sql .= " GROUP BY T1.category_id, T2.category_id "; 
    21202120    $objQuery->query($sql); 
     
    22732273    // ÅÐÏ¿¾¦ÉÊ¿ô¤Î¥Á¥§¥Ã¥¯ 
    22742274    if($count_check) { 
    2275         $where = "delete = 0 AND product_count > 0"; 
    2276     } else { 
    2277         $where = "delete = 0"; 
     2275        $where = "del_flg = 0 AND product_count > 0"; 
     2276    } else { 
     2277        $where = "del_flg = 0"; 
    22782278    } 
    22792279    $objQuery->setoption("ORDER BY rank DESC"); 
Note: See TracChangeset for help on using the changeset viewer.