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