Changeset 18134 for branches/comu-ver2/data/class/pages/admin/products/LC_Page_Admin_Products_ProductRank.php
- Timestamp:
- 2009/06/20 18:44:34 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/comu-ver2/data/class/pages/admin/products/LC_Page_Admin_Products_ProductRank.php
r18076 r18134 96 96 case 'renumber': 97 97 $sql = <<< __EOS__ 98 UPDATE dtb_product_categories tgt98 UPDATE dtb_product_categories 99 99 SET 100 100 rank = … … 102 102 SELECT COUNT(*) 103 103 FROM dtb_product_categories t_in 104 WHERE t_in.category_id = tgt.category_id104 WHERE t_in.category_id = dtb_product_categories.category_id 105 105 AND ( 106 t_in.rank < tgt.rank106 t_in.rank < dtb_product_categories.rank 107 107 OR ( 108 t_in.rank = tgt.rank109 AND t_in.product_id < tgt.product_id108 t_in.rank = dtb_product_categories.rank 109 AND t_in.product_id < dtb_product_categories.product_id 110 110 ) 111 111 ) 112 112 ) + 1 113 WHERE tgt.category_id = ?113 WHERE dtb_product_categories.category_id = ? 114 114 __EOS__; 115 115 $objQuery->query($sql, array($_POST['parent_category_id']));
Note: See TracChangeset
for help on using the changeset viewer.