- Timestamp:
- 2007/07/20 15:58:59 (17 years ago)
- Location:
- branches/feature-module-update
- Files:
-
- 1 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update
-
Property
svn:ignore
set to
.cache
.settings
.projectOptions
-
Property
svn:ignore
set to
-
branches/feature-module-update/html/admin/products/product_rank.php
r12157 r15078 13 13 $this->tpl_mainno = 'products'; 14 14 $this->tpl_subno = 'product_rank'; 15 $this->tpl_subtitle = ' ¾¦ÉÊʤÓÂؤ¨';15 $this->tpl_subtitle = '商品並び替え'; 16 16 } 17 17 } … … 22 22 $objSess = new SC_Session(); 23 23 24 // ǧ¾Ú²ÄÈݤÎȽÄê24 // 認証可否の判定 25 25 sfIsSuccess($objSess); 26 26 27 27 $objPage->tpl_pageno = $_POST['pageno']; 28 28 29 // Ä̾ï»þ¤Ï¿Æ¥«¥Æ¥´¥ê¤ò0¤ËÀßÄꤹ¤ë¡£29 // 通常時は親カテゴリを0に設定する。 30 30 $objPage->arrForm['parent_category_id'] = $_POST['parent_category_id']; 31 31 … … 48 48 break; 49 49 case 'tree': 50 // ¥«¥Æ¥´¥ê¤ÎÀÚÂؤϡ¢¥Ú¡¼¥¸ÈÖ¹æ¤ò¥¯¥ê¥¢¤¹¤ë¡£50 // カテゴリの切替は、ページ番号をクリアする。 51 51 $objPage->tpl_pageno = ""; 52 52 break; … … 62 62 63 63 //----------------------------------------------------------------------------------------------------------------------------------- 64 /* ¾¦ÉÊÆɤ߹þ¤ß*/64 /* 商品読み込み */ 65 65 function lfGetProduct($category_id) { 66 66 global $objPage; … … 71 71 $where = "del_flg = 0 AND category_id = ?"; 72 72 73 // ¹Ô¿ô¤Î¼èÆÀ73 // 行数の取得 74 74 $linemax = $objQuery->count("dtb_products", $where, array($category_id)); 75 // ½ç°Ì¡¢³ºÅö·ï¿ôɽ¼¨ÍÑ75 // 順位、該当件数表示用 76 76 $objPage->tpl_linemax = $linemax; 77 77 78 78 $objNavi = new SC_PageNavi($objPage->tpl_pageno, $linemax, SEARCH_PMAX, "fnNaviPage", NAVI_PMAX); 79 79 $startno = $objNavi->start_row; 80 $objPage->tpl_strnavi = $objNavi->strnavi; // Navi ɽ¼¨Ê¸»úÎó81 $objPage->tpl_pagemax = $objNavi->max_page; // ¥Ú¡¼¥¸ºÇÂç¿ô¡Ê¡Ö¾å¤Ø²¼¤Ø¡×ɽ¼¨È½ÄêÍÑ¡Ë82 $objPage->tpl_disppage = $objNavi->now_page; // ɽ¼¨¥Ú¡¼¥¸ÈÖ¹æ¡Ê¡Ö¾å¤Ø²¼¤Ø¡×ɽ¼¨È½ÄêÍÑ¡Ë80 $objPage->tpl_strnavi = $objNavi->strnavi; // Navi表示文字列 81 $objPage->tpl_pagemax = $objNavi->max_page; // ページ最大数(「上へ下へ」表示判定用) 82 $objPage->tpl_disppage = $objNavi->now_page; // 表示ページ番号(「上へ下へ」表示判定用) 83 83 84 // ¼èÆÀÈϰϤλØÄê(³«»Ï¹ÔÈֹ桢¹Ô¿ô¤Î¥»¥Ã¥È)84 // 取得範囲の指定(開始行番号、行数のセット) 85 85 if(DB_TYPE != "mysql") $objQuery->setlimitoffset(SEARCH_PMAX, $startno); 86 86 87 87 $objQuery->setorder("rank DESC"); 88 88 89 // view ¤â¹Ê¹þ¤ß¤ò¤«¤±¤ë(mysqlÍÑ)89 // viewも絞込みをかける(mysql用) 90 90 sfViewWhere("&&noncls_where&&", $where, array($category_id), $objQuery->order . " " . $objQuery->setlimitoffset(SEARCH_PMAX, $startno, true)); 91 91
Note: See TracChangeset
for help on using the changeset viewer.