Changeset 15078 for branches/feature-module-update/html/frontparts/bloc
- Timestamp:
- 2007/07/20 15:58:59 (17 years ago)
- Location:
- branches/feature-module-update
- Files:
-
- 6 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/frontparts/bloc/best5.php
r12157 r15078 7 7 class LC_Best5Page { 8 8 function LC_Best5Page() { 9 /** ɬ¤ºÊѹ¹¤¹¤ë**/10 $this->tpl_mainpage = BLOC_PATH . 'best5.tpl'; // ¥á¥¤¥ó9 /** 必ず変更する **/ 10 $this->tpl_mainpage = BLOC_PATH . 'best5.tpl'; // メイン 11 11 } 12 12 } … … 16 16 $objSiteInfo = $objView->objSiteInfo; 17 17 18 // ´ðËܾðÊó¤òÅϤ¹18 // 基本情報を渡す 19 19 $objSiteInfo = new SC_SiteInfo(); 20 20 $objSubPage->arrInfo = $objSiteInfo->data; 21 21 22 // ¤ª¤¹¤¹¤á¾¦ÉÊɽ¼¨22 //おすすめ商品表示 23 23 $objSubPage->arrBestProducts = lfGetRanking(); 24 24 … … 26 26 $objSubView->display($objSubPage->tpl_mainpage); 27 27 //----------------------------------------------------------------------------------------------------------------------------------- 28 // ¤ª¤¹¤¹¤á¾¦Éʸ¡º÷28 //おすすめ商品検索 29 29 function lfGetRanking(){ 30 30 $objQuery = new SC_Query(); -
branches/feature-module-update/html/frontparts/bloc/cart.php
r12157 r15078 7 7 class LC_CartPage { 8 8 function LC_CartPage() { 9 /** ɬ¤ºÊѹ¹¤¹¤ë**/10 $this->tpl_mainpage = BLOC_PATH . 'cart.tpl'; // ¥á¥¤¥ó9 /** 必ず変更する **/ 10 $this->tpl_mainpage = BLOC_PATH . 'cart.tpl'; // メイン 11 11 } 12 12 } … … 18 18 19 19 if (count($_SESSION[$objCart->key]) > 0){ 20 // ¥«¡¼¥È¾ðÊó¤ò¼èÆÀ20 // カート情報を取得 21 21 $arrCartList = $objCart->getCartList(); 22 22 23 // ¥«¡¼¥ÈÆâ¤Î¾¦ÉʣɣİìÍ÷¤ò¼èÆÀ23 // カート内の商品ID一覧を取得 24 24 $arrAllProductID = $objCart->getAllProductID(); 25 // ¾¦Éʤ¬1¤Ä°Ê¾åÆþ¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¾¦ÉÊ̾¾Î¤ò¼èÆÀ25 // 商品が1つ以上入っている場合には商品名称を取得 26 26 if (count($arrAllProductID) > 0){ 27 27 $objQuery = new SC_Query(); … … 42 42 } 43 43 } 44 // ŹÊÞ¾ðÊó¤Î¼èÆÀ44 // 店舗情報の取得 45 45 $arrInfo = $objSiteInfo->data; 46 // ¹ØÆþ¶â³Û¹ç·×46 // 購入金額合計 47 47 $ProductsTotal = $objCart->getAllProductsTotal($arrInfo); 48 48 49 // ¹ç·×¸Ä¿ô49 // 合計個数 50 50 $TotalQuantity = $objCart->getTotalQuantity(); 51 51 52 // Á÷ÎÁ̵ÎÁ¤Þ¤Ç¤Î¶â³Û52 // 送料無料までの金額 53 53 $arrCartList[0]['ProductsTotal'] = $ProductsTotal; 54 54 $arrCartList[0]['TotalQuantity'] = $TotalQuantity; -
branches/feature-module-update/html/frontparts/bloc/category.php
r12157 r15078 6 6 */ 7 7 class LC_CatPage { 8 9 /** ɬ¤ºÊѹ¹¤¹¤ë**/10 $this->tpl_mainpage = BLOC_PATH . 'category.tpl'; // ¥á¥¤¥ó 11 8 function LC_CatPage() { 9 /** 必ず変更する **/ 10 $this->tpl_mainpage = BLOC_PATH . 'category.tpl'; // メイン 11 } 12 12 } 13 13 … … 15 15 $objSubView = new SC_SiteView(); 16 16 17 // ÁªÂòÃæ¤Î¥«¥Æ¥´¥êID¤òȽÄꤹ¤ë18 $category_id = sfGetCategoryId($_GET['product_id'], $_GET['category_id']);17 // 選択中のカテゴリIDを判定する 18 $category_id = SC_Utils::sfGetCategoryId($_GET['product_id'], $_GET['category_id']); 19 19 20 // ÁªÂòÃæ¤Î¥«¥Æ¥´¥êID20 // 選択中のカテゴリID 21 21 $objSubPage->tpl_category_id = $category_id; 22 22 $objSubPage = lfGetCatTree($category_id, true, $objSubPage); … … 25 25 $objSubView->display($objSubPage->tpl_mainpage); 26 26 //----------------------------------------------------------------------------------------------------------------------------------- 27 // ¥«¥Æ¥´¥ê¥Ä¥ê¡¼¤Î¼èÆÀ27 // カテゴリツリーの取得 28 28 function lfGetCatTree($parent_category_id, $count_check = false, $objSubPage) { 29 30 31 32 // ÅÐÏ¿¾¦ÉÊ¿ô¤Î¥Á¥§¥Ã¥¯ 33 34 35 36 37 38 39 40 41 $arrParentID =sfGetParents($objQuery, 'dtb_category', 'parent_category_id', 'category_id', $parent_category_id);42 $arrBrothersID =sfGetBrothersArray($arrRet, 'parent_category_id', 'category_id', $arrParentID);43 $arrChildrenID =sfGetUnderChildrenArray($arrRet, 'parent_category_id', 'category_id', $parent_category_id);44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 29 $objQuery = new SC_Query(); 30 $col = "*"; 31 $from = "dtb_category left join dtb_category_total_count using (category_id)"; 32 // 登録商品数のチェック 33 if($count_check) { 34 $where = "del_flg = 0 AND product_count > 0"; 35 } else { 36 $where = "del_flg = 0"; 37 } 38 $objQuery->setoption("ORDER BY rank DESC"); 39 $arrRet = $objQuery->select($col, $from, $where); 40 41 $arrParentID = SC_Utils::sfGetParents($objQuery, 'dtb_category', 'parent_category_id', 'category_id', $parent_category_id); 42 $arrBrothersID = SC_Utils::sfGetBrothersArray($arrRet, 'parent_category_id', 'category_id', $arrParentID); 43 $arrChildrenID = SC_Utils::sfGetUnderChildrenArray($arrRet, 'parent_category_id', 'category_id', $parent_category_id); 44 45 $objSubPage->root_parent_id = $arrParentID[0]; 46 47 $arrDispID = array_merge($arrBrothersID, $arrChildrenID); 48 49 foreach($arrRet as $key => $array) { 50 foreach($arrDispID as $val) { 51 if($array['category_id'] == $val) { 52 $arrRet[$key]['display'] = 1; 53 break; 54 } 55 } 56 } 57 58 $objSubPage->arrTree = $arrRet; 59 return $objSubPage; 60 60 } 61 61 ?> -
branches/feature-module-update/html/frontparts/bloc/login.php
r12157 r15078 8 8 var $tpl_login_email; 9 9 function LC_LoginPage() { 10 /** ɬ¤ºÊѹ¹¤¹¤ë**/11 $this->tpl_mainpage = BLOC_PATH . 'login.tpl'; // ¥á¥¤¥ó10 /** 必ず変更する **/ 11 $this->tpl_mainpage = BLOC_PATH . 'login.tpl'; // メイン 12 12 $this->tpl_login = false; 13 13 $this->tpl_disable_logout = false; … … 17 17 $objSubPage = new LC_LoginPage(); 18 18 $objCustomer = new SC_Customer(); 19 // ¥¯¥Ã¥¡¼´ÉÍý¥¯¥é¥¹19 // クッキー管理クラス 20 20 $objCookie = new SC_Cookie(COOKIE_EXPIRE); 21 21 22 // ¥í¥°¥¤¥óȽÄê22 // ログイン判定 23 23 if($objCustomer->isLoginSuccess()) { 24 24 $objSubPage->tpl_login = true; … … 27 27 $objSubPage->tpl_name2 = $objCustomer->getValue('name02'); 28 28 } else { 29 // ¥¯¥Ã¥¡¼È½Äê29 // クッキー判定 30 30 $objSubPage->tpl_login_email = $objCookie->getCookie('login_email'); 31 31 if($objSubPage->tpl_login_email != "") { … … 33 33 } 34 34 35 // POST ¤µ¤ì¤Æ¤¤¿ID¤¬¤¢¤ë¾ì¹ç¤ÏÍ¥À褹¤ë¡£35 // POSTされてきたIDがある場合は優先する。 36 36 if($_POST['login_email'] != "") { 37 37 $objSubPage->tpl_login_email = $_POST['login_email']; -
branches/feature-module-update/html/frontparts/bloc/news.php
r12157 r15078 7 7 class LC_NewsPage { 8 8 function LC_NewsPage() { 9 /** ɬ¤ºÊѹ¹¤¹¤ë**/10 $this->tpl_mainpage = BLOC_PATH . 'news.tpl'; // ¥á¥¤¥ó9 /** 必ず変更する **/ 10 $this->tpl_mainpage = BLOC_PATH . 'news.tpl'; // メイン 11 11 } 12 12 } … … 15 15 $objSubView = new SC_SiteView(); 16 16 17 // ¿·Ãå¾ðÊó¼èÆÀ17 //新着情報取得 18 18 $objSubPage->arrNews = lfGetNews(); 19 19 -
branches/feature-module-update/html/frontparts/bloc/search_products.php
r12157 r15078 7 7 class LC_SearchProductsPage { 8 8 function LC_SearchProductsPage() { 9 /** ɬ¤ºÊѹ¹¤¹¤ë**/10 $this->tpl_mainpage = BLOC_PATH . 'search_products.tpl'; // ¥á¥¤¥ó9 /** 必ず変更する **/ 10 $this->tpl_mainpage = BLOC_PATH . 'search_products.tpl'; // メイン 11 11 } 12 12 } 13 13 14 14 $objSubPage = new LC_SearchProductsPage(); 15 $arrSearch = array(); // ¸¡º÷¹àÌÜɽ¼¨ÍÑ15 $arrSearch = array(); // 検索項目表示用 16 16 17 // ÁªÂòÃæ¤Î¥«¥Æ¥´¥êID¤òȽÄꤹ¤ë17 // 選択中のカテゴリIDを判定する 18 18 $objSubPage->category_id = sfGetCategoryId($_GET['product_id'], $_GET['category_id']); 19 // ¥«¥Æ¥´¥ê¸¡º÷ÍÑÁªÂò¥ê¥¹¥È20 $arrRet = sfGetCategoryList('', true, ' ¡¡');19 // カテゴリ検索用選択リスト 20 $arrRet = sfGetCategoryList('', true, ' '); 21 21 22 22 if(is_array($arrRet)) { 23 // ʸ»ú¥µ¥¤¥º¤òÀ©¸Â¤¹¤ë23 // 文字サイズを制限する 24 24 foreach($arrRet as $key => $val) { 25 25 $arrRet[$key] = sfCutString($val, SEARCH_CATEGORY_LEN);
Note: See TracChangeset
for help on using the changeset viewer.