Changeset 4608 for temp/trunk/data/lib/slib.php
- Timestamp:
- 2006/09/11 19:37:56 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/data/lib/slib.php (modified) (15 diffs)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/data/lib/slib.php
r4599 r4608 430 430 431 431 //--¡¡»ØÄꤷ¤¿½ç°Ì¤Î¾¦Éʤ«¤é°Üư¤µ¤»¤ë¾¦ÉʤޤǤÎrank¤ò£±¤Ä¤º¤é¤¹ 432 $sql = "UPDATE $tableName SET rank = $term, update_date = NOW() WHERE rank BETWEEN ? AND ? AND del ete= 0";432 $sql = "UPDATE $tableName SET rank = $term, update_date = NOW() WHERE rank BETWEEN ? AND ? AND del_flg = 0"; 433 433 if($where != "") { 434 434 $sql.= " AND $where"; … … 439 439 440 440 //-- »ØÄꤷ¤¿½ç°Ì¤Ørank¤ò½ñ¤´¹¤¨¤ë¡£ 441 $sql = "UPDATE $tableName SET rank = ?, update_date = NOW() WHERE $keyIdColumn = ? AND del ete= 0 ";441 $sql = "UPDATE $tableName SET rank = ?, update_date = NOW() WHERE $keyIdColumn = ? AND del_flg = 0 "; 442 442 if($where != "") { 443 443 $sql.= " AND $where"; … … 462 462 if(!$delete) { 463 463 // ¥é¥ó¥¯¤òºÇ²¼°Ì¤Ë¤¹¤ë¡¢DEL¥Õ¥é¥°ON 464 $sqlup = "UPDATE $table SET rank = 0, del ete= 1, update_date = Now() ";464 $sqlup = "UPDATE $table SET rank = 0, del_flg = 1, update_date = Now() "; 465 465 $sqlup.= "WHERE $colname = ?"; 466 466 // UPDATE¤Î¼Â¹Ô … … 485 485 $arrCol = split("[, ]", $col); 486 486 487 $where = "del ete= 0";487 $where = "del_flg = 0"; 488 488 489 489 if($addwhere != "") { … … 774 774 function sfGetCategoryList($addwhere = "", $products_check = false, $head = CATEGORY_HEAD) { 775 775 $objQuery = new SC_Query(); 776 $where = "del ete= 0";776 $where = "del_flg = 0"; 777 777 778 778 if($addwhere != "") { … … 815 815 $objQuery = new SC_Query(); 816 816 $col = "category_id, category_name, level"; 817 $where = "del ete= 0";817 $where = "del_flg = 0"; 818 818 $objQuery->setoption("ORDER BY rank DESC"); 819 819 $arrRet = $objQuery->select($col, "dtb_category", $where); … … 871 871 $objQuery = new SC_Query(); 872 872 $col = "$keyname, $valname"; 873 $objQuery->setwhere("del ete= 0");873 $objQuery->setwhere("del_flg = 0"); 874 874 $objQuery->setorder("rank DESC"); 875 875 $arrList = $objQuery->select($col, $table); … … 1000 1000 $where = "to_char(now(),'YYYY/MM/DD/HH24') >= to_char(start_date,'YYYY/MM/DD/HH24') AND "; 1001 1001 $where .= "to_char(now(),'YYYY/MM/DD/HH24') < to_char(end_date,'YYYY/MM/DD/HH24') AND "; 1002 $where .= "del ete= 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 = ? )"; 1003 1003 //ÅÐÏ¿(¹¹¿·)ÆüÉÕ½ç 1004 1004 $objQuery->setorder('update_date DESC'); … … 1043 1043 $sql = "select count(dtb_class.class_id), dtb_class.class_id "; 1044 1044 $sql.= "from dtb_class inner join dtb_classcategory on dtb_class.class_id = dtb_classcategory.class_id "; 1045 $sql.= "where dtb_class.del ete = 0 AND dtb_classcategory.delete= 0 ";1045 $sql.= "where dtb_class.del_flg = 0 AND dtb_classcategory.del_flg = 0 "; 1046 1046 $sql.= "group by dtb_class.class_id, dtb_class.name;"; 1047 1047 $objQuery = new SC_Query(); … … 1288 1288 1289 1289 if($payment_id != "") { 1290 $where = "del ete= 0 AND payment_id = ?";1290 $where = "del_flg = 0 AND payment_id = ?"; 1291 1291 $arrRet = $objQuery->select("deliv_id", "dtb_payment", $where, array($payment_id)); 1292 1292 $deliv_id = $arrRet[0]['deliv_id']; … … 1310 1310 // »Ùʧ¤¤ÊýË¡¤¬»ØÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢Âбþ¤·¤¿ÇÛÁ÷¶È¼Ô¤ò¼èÆÀ¤¹¤ë 1311 1311 if($payment_id != "") { 1312 $where = "del ete= 0 AND payment_id = ?";1312 $where = "del_flg = 0 AND payment_id = ?"; 1313 1313 $arrRet = $objQuery->select("deliv_id", "dtb_payment", $where, array($payment_id)); 1314 1314 $deliv_id = $arrRet[0]['deliv_id']; 1315 1315 // »Ùʧ¤¤ÊýË¡¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï¡¢ÀèÆ¬¤ÎÇÛÁ÷¶È¼Ô¤ò¼èÆÀ¤¹¤ë 1316 1316 } else { 1317 $where = "del ete= 0";1317 $where = "del_flg = 0"; 1318 1318 $objQuery->setOrder("rank DESC"); 1319 1319 $objQuery->setLimitOffset(1); … … 1341 1341 $objQuery = new SC_Query(); 1342 1342 // ¹ØÆþ¶â³Û¤¬¾ò·ï³Û°Ê²¼¤Î¹àÌܤò¼èÆÀ 1343 $where = "del ete= 0";1343 $where = "del_flg = 0"; 1344 1344 $objQuery->setorder("fix, rank DESC"); 1345 1345 $arrRet = $objQuery->select("payment_id, payment_method, rule", "dtb_payment", $where); … … 1736 1736 $sql = "SELECT name, main_image, main_list_image, price01_min, price01_max, price02_min, price02_max, point_rate, 1737 1737 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.del ete= 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"; 1739 1739 $arrItems = $conn->getAll($sql, array($category_id)); 1740 1740 return $arrItems; … … 2116 2116 $sql .= " SELECT T1.category_id, count(T2.category_id) FROM dtb_category AS T1 LEFT JOIN dtb_products AS T2 "; 2117 2117 $sql .= " ON T1.category_id = T2.category_id "; 2118 $sql .= " WHERE T2.del ete= 0 AND T2.status = 1 ";2118 $sql .= " WHERE T2.del_flg = 0 AND T2.status = 1 "; 2119 2119 $sql .= " GROUP BY T1.category_id, T2.category_id "; 2120 2120 $objQuery->query($sql); … … 2273 2273 // ÅÐÏ¿¾¦ÉÊ¿ô¤Î¥Á¥§¥Ã¥¯ 2274 2274 if($count_check) { 2275 $where = "del ete= 0 AND product_count > 0";2276 } else { 2277 $where = "del ete= 0";2275 $where = "del_flg = 0 AND product_count > 0"; 2276 } else { 2277 $where = "del_flg = 0"; 2278 2278 } 2279 2279 $objQuery->setoption("ORDER BY rank DESC");
Note: See TracChangeset
for help on using the changeset viewer.
