Changeset 21829 for branches/version-2_12-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_Recommend.php
- Timestamp:
- 2012/05/14 00:54:43 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_Recommend.php
r21809 r21829 78 78 switch ($this->getMode()) { 79 79 case 'down': //商品の並び替えをする。おすすめはデータベースの登録が昇順なので、Modeを逆にする。 80 $arrRet = $objQuery->select( "best_id", "dtb_best_products", "rank = ?", array($_POST["rank"])); //おすすめidの取得81 $best_id = $arrRet[0][ "best_id"];80 $arrRet = $objQuery->select('best_id', 'dtb_best_products', 'rank = ?', array($_POST['rank'])); //おすすめidの取得 81 $best_id = $arrRet[0]['best_id']; 82 82 $objDb->sfRankUp('dtb_best_products','best_id',$best_id); 83 83 $arrPost = $objFormParam->getHashArray(); 84 84 $arrItems = $this->getRecommendProducts(); 85 85 break; 86 86 87 87 case 'up': //商品の並び替えをする。おすすめのみデータベースの登録が昇順なので、Modeを逆にする。 88 $arrRet = $objQuery->select( "best_id", "dtb_best_products", "rank = ?", array($_POST["rank"])); //おすすめidの取得89 $best_id = $arrRet[0][ "best_id"];88 $arrRet = $objQuery->select('best_id', 'dtb_best_products', 'rank = ?', array($_POST['rank'])); //おすすめidの取得 89 $best_id = $arrRet[0]['best_id']; 90 90 $objDb->sfRankDown('dtb_best_products','best_id',$best_id); 91 91 $arrPost = $objFormParam->getHashArray();
Note: See TracChangeset
for help on using the changeset viewer.