¿¤¯¤Î¥·¥ç¥Ã¥Ô¥ó¥°¥â¡¼¥ë¤Ç¸«¤«¤±¤é¤ì¤ë¡ØºÇ¶á¥Á¥§¥Ã¥¯¤·¤¿¾¦Éʡ٤ε¡Ç½¤òÄɲä·¤Þ¤¿¡£
²¿¸Î¤«¤È¤¤¤¦¤È¡¢¾¦Éʤξܺ٤ò³Îǧ¸å¡ÖÅö¥µ¥¤¥È¤Ë¤Ä¤¤¤Æ¡×¡Ö¥µ¥¤¥È¥È¥Ã¥×¡×¤Ë°Üư¤·¤¿¸å¤Ë
¥µ¥¤¥ÈÆâ¤ò½Û´Ä¤·¡¢·ë¶É¥µ¥¤¥È¤«¤é½Ð¤Æ¹Ô¤Ã¤Æ¤·¤Þ¤¦¡¢¤ªµÒÍͤ¬Â¿¤¯¤¤¤é¤ì¤¿¤Î¤Ç¡¢¡¢¡¢
¸¶°ø¤ò¹Í¤¨¤Æ¤ß¤Þ¤·¤¿¡£
¡¦¥µ¥¤¥È¤Î¥µ¡¼¥Ó¥¹¤ËÉÔËþ
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¢Í¡¡Æñ¤·¤¤ÌäÂê¤Ç¤¹¤Í¡Ê´À¡Ë
¡¦¸µ¸«¤Æ¤¤¤¿¾¦Éʤ¬²¿½è¤Ë¤¢¤ë¤«Ê¬¤«¤é¤Ê¤¯¤Ê¤Ã¤Æ¤·¤Þ¤Ã¤¿
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¢Í¡¡µ¡²ñ»¼º¤Ç¤¹¤Í
¤Ç¤Ï¡¢¤³¤Î¤â¤Ã¤¿¤¤¤Ê¤¤Â»¼º¤ò¤Ê¤¯¤¹¤¿¤á¤Ë¡¢²¿¤¬½ÐÍè¤ë¤«¤È¤¤¤¦¤È¡¢¤³¤Î¡ÖºÇ¶á¥Á¥§¥Ã¥¯¤·¤¿¾¦Éʡפε¡Ç½¤Ç
°ã¤¦¥Ú¡¼¥¸¤Ë¹Ô¤Ã¤Æ¤â¤¹¤°¤ËÌá¤ì¤ë¡¢£²¤ÄÁ°¡¢£³¤ÄÁ°¤Ë¸«¤¿¾¦Éʤˤ⤹¤°¤Ë¹Ô¤±¤ë¤È¤¤¤¦µ¡Ç½¤È¹Í¤¨µ¡Ç½¤ò¤Ä¤¤¤«¤·¤Þ¤·¤¿¡£

¤Ç¤ÏÊѹ¹¤·¤¿¾ì½ê¤ÈÊѹ¹ÊýË¡¤Ç¤¹
¡¸½ºß¤ß¤Æ¤¤¤ë¾¦ÉÊ¥Ú¡¼¥¸¤òÇÛÎó¤Ë³ÊǼ¤¹¤ë
Âоݥե¡¥¤¥ë¡§
/data/class/pages/products/LC_Page_Products_Detail.php
ÄÉ²ÃÆâÍÆ¡§
$Item_id = $_GET['product_id'];
//¡ÖºÇ¶á¥Á¥§¥Ã¥¯¤·¤¿¾¦ÉÊ¡×ÍѤΥ»¥Ã¥·¥ç¥ó¤¬¤¢¤ë»þ
if( is_array($_SESSION['arrChkItemNum']) ){
//¤½¤Î¾¦Éʤ¬¥»¥Ã¥·¥ç¥ó¤Ë¤Ê¤±¤ì¤ÐÄɲÃ.
if( !(in_array( $Item_id, $_SESSION['arrChkItemNum'] ))){
$_SESSION['arrChkItemNum'][] = $Item_id;
$_SESSION['arrChkItemDat'][] = $arrRet[0];
//£´¤Ä»È¤¤ÀڤäƤì¤Ð¡¢Æ¬¤Ò¤È¤Ä¼è¤ë
if( $_SESSION['arrChkItemNum'][5] != "" ){
array_shift($_SESSION['arrChkItemNum']);
array_shift($_SESSION['arrChkItemDat']);
}
}
}
//¥»¥Ã¥·¥ç¥ó¼«ÂΤ¬Ìµ¤±¤ì¤Ðºî¤ë
else{
$_SESSION['arrChkItemNum'][] = $Item_id;
$_SESSION['arrChkItemDat'][] = $arrRet[0];
}
$_SESSION['arrChkItemNum2'] = array_reverse($_SESSION['arrChkItemNum'], false);
$_SESSION['arrChkItemDat2'] = array_reverse($_SESSION['arrChkItemDat'], false);
¢´ÉÍý¼Ô²èÌ̤ǿ·µ¬¥Ö¥í¥Ã¥¯¤òºîÀ®¤¹¤ë
¥Ö¥í¥Ã¥¯Ì¾¡§ºÇ¶á¥Á¥§¥Ã¥¯¤·¤¿¾¦ÉÊ
¥Õ¥¡¥¤¥ë̾¡§checkItem.tpl
¥Ö¥í¥Ã¥¯ÆâÍÆ¡§
<!--¢§ÍúÎò¾ðÊ󤳤³¤«¤é-->
<!--{if $smarty.session.arrChkItemDat2}-->
<div id="recommendation">
<div class="sectionheader"><h2>ºÇ¶á¥Á¥§¥Ã¥¯¤·¤¿¾¦ÉÊ</h2></div>
<!--{section name=cnt start=0 loop=$smarty.session.arrChkItemDat2 }-->
<!--{if $smarty.session.arrChkItemDat2[cnt].main_image != ""}-->
<!--{assign var=image_path value="`$smarty.session.arrChkItemDat2[cnt].main_image`"}-->
<!--{else}-->
<!--{assign var=image_path value="`$smarty.const.NO_IMAGE_DIR`"}-->
<!--{/if}-->
<div class="section">
<div class="product_photo"><a href="<!--{$smarty.const.URL_DIR}-->products/detail<!--{$smarty.session.arrChkItemDat2[cnt].product_id}-->.html">
<img src="<!--{$smarty.const.URL_DIR}-->resize_image.php?image=<!--{$smarty.session.arrChkItemDat2[cnt].main_image|sfRmDupSlash}-->&width=80&height=80" alt="<!--{$smarty.session.arrChkItemDat2[cnt].name|escape}-->" />
</a>
</div>
<dl>
<dt class="product_name">
<a href="<!--{$smarty.const.URL_DIR}-->products/detail<!--{$smarty.session.arrChkItemDat2[cnt].product_id}-->.html"><!--{$smarty.session.arrChkItemDat2[cnt].name|escape}--></a></dt>
<!--{assign var=price01 value=`$smarty.session.arrChkItemDat2[cnt].price01_min`}-->
<!--{assign var=price02 value=`$smarty.session.arrChkItemDat2[cnt].price02_min`}-->
<dd class="product_price"><span class="price"><!--{if $price02 == ""}-->
<!--{$price01|sfPreTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}-->
<!--{else}-->
<!--{$price02|sfPreTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}-->
<!--{/if}-->±ß</span><span class="mini">(Àǹþ)</span></dd>
</dl>
</div>
<!-- </div> -->
<!--{/section}-->
</div>
<!--{/if}-->
<!--¢¥¤ª¤¹¤¹¤á¾ðÊ󤳤³¤Þ¤Ç-->
£smarty´Ø¿ô¤ò»È¤¨¤ë¤è¤¦¤Ë¤¹¤ë
¥Õ¥¡¥¤¥ë̾¡§/html/frontparts/bloc/checkItem.php
Êѹ¹ÆâÍÆ¡§
<?php
require_once(CLASS_EX_PATH . "page_extends/frontparts/bloc/LC_Page_FrontParts_Bloc_checkItem_Ex.php");
$objPage = new LC_Page_FrontParts_Bloc_checkItem_Ex();
register_shutdown_function(array($objPage, "destroy"));
$objPage->init();
$objPage->process();
?>
¥Õ¥¡¥¤¥ë̾¡§/data/class_extends/page_extends/frontparts/bloc/LC_Page_FrontParts_Bloc_checkItem_Ex.php
Êѹ¹ÆâÍÆ¡§
<?php
require_once(CLASS_PATH . "pages/frontparts/bloc/LC_Page_FrontParts_Bloc_checkItem.php");
class LC_Page_FrontParts_Bloc_checkItem_Ex extends LC_Page_FrontParts_Bloc_checkItem {
// }}}
// {{{ functions
/**
* Page ¤ò½é´ü²½¤¹¤ë.
*
* @return void
*/
function init() {
parent::init();
}
/**
* Page ¤Î¥×¥í¥»¥¹.
*
* @return void
*/
function process() {
parent::process();
}
/**
* ¥Ç¥¹¥È¥é¥¯¥¿.
*
* @return void
*/
function destroy() {
parent::destroy();
}
}
?>
¥Õ¥¡¥¤¥ë̾¡§/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_checkItem.php
Êѹ¹ÆâÍÆ¡§
<?php
require_once(CLASS_PATH . "pages/frontparts/bloc/LC_Page_FrontParts_Bloc.php");
class LC_Page_FrontParts_Bloc_checkItem extends LC_Page_FrontParts_Bloc {
/**
* Page ¤ò½é´ü²½¤¹¤ë.
*
* @return void
*/
function init() {
parent::init();
$bloc_file = 'checkItem.tpl';
$this->setTplMainpage($bloc_file);
}
/**
* Page ¤Î¥×¥í¥»¥¹.
*
* @return void
*/
function process() {
if (defined("MOBILE_SITE") && MOBILE_SITE) {
$objView = new SC_MobileView();
} else {
$objView = new SC_SiteView();
}
$objSiteInfo = $objView->objSiteInfo;
// ´ðËܾðÊó¤òÅϤ¹
$objSiteInfo = new SC_SiteInfo();
$this->arrInfo = $objSiteInfo->data;
//¤ª¤¹¤¹¤á¾¦ÉÊɽ¼¨
//$this->arrBestProducts = $this->lfGetRanking();
$objView->assignobj($this);
$objView->display($this->tpl_mainpage);
}
/**
* ¥â¥Ð¥¤¥ë¥Ú¡¼¥¸¤ò½é´ü²½¤¹¤ë.
*
* @return void
*/
function mobileInit() {
$this->tpl_mainpage = MOBILE_TEMPLATE_DIR . "frontparts/"
. BLOC_DIR . 'best5.tpl';
}
/**
* Page ¤Î¥×¥í¥»¥¹(¥â¥Ð¥¤¥ë).
*
* @return void
*/
function mobileProcess() {
$this->process();
}
/**
* ¥Ç¥¹¥È¥é¥¯¥¿.
*
* @return void
*/
function destroy() {
parent::destroy();
}
//¤ª¤¹¤¹¤á¾¦Éʸ¡º÷
function lfGetRanking(){
}
}
?>
EC¤ò±¿±Ä¤¹¤ë¾å¤ÇÍÍ¡¹¤Ê¿¦¼ï¤¬¤¢¤ê¡¢¤Þ¤¿¤½¤Î¸¢¸Â¥ì¥Ù¥ë¤âÀÚ¤êʬ¤±¤¿¤¤¤Ç¤¹¤Í¡£
¼ÂºÝ¤Î¤È¤³¤íEC-CUBE¤Ç¤Ï¤½¤Î¸¢¸ÂŪ¤Ê¹Í¤¨¤Ï¤¢¤ë¤â¤Î¤Î¡¢¥ì¥Ù¥ëʬ¤±¤¬¤Ê¤µ¤ì¤Æ¤¤¤Ê¤¤¤Î¤Ç
´Êñ¤Ë¥á¥Ë¥å¡¼¥ì¥Ù¥ë¤ÇÀÚ¤êʬ¤±¤ò¤·¤Þ¤·¤¿¡£

µ.¤Þ¤º´ÉÍý¼Ô¤ì¤Î¥ì¥Ù¥ë¤òºîÀ®¤·¤Þ¤¹¡£

¶.¥Ø¥Ã¥À¡¼¥á¥Ë¥å¡¼¤ÎÀÚ¤êʬ¤±¤ò¹Ô¤¤¤Þ¤¹
/data/Smarty/templates/default/admin/login_frame.tpl
ÊÑ¿ô¡§$smarty.session.authority¤Ë¥ì¥Ù¥ë¤¬³ÊǼ¤µ¤ì¤Æ¤¤¤ë¤Î¤Ç¾ò·ïʬ´ô¤òÄɲ乤ì¤ÐOK
<!--{if $smarty.session.authority == 0}-->
<td><!--{if $tpl_mainno eq "basis"}--><a href="<!--{$smarty.const.URL_DIR}-->admin/basis/index.php"><img src="<!--{$TPL_DIR}-->img/header/basis_on.jpg" width="98" height="32" alt="´ðËܾðÊó´ÉÍý" border="0"></a><!--{else}--><a href="<!--{$smarty.const.URL_DIR}-->admin/basis/index.php" onmouseover="chgImg('<!--{$TPL_DIR}-->img/header/basis_on.jpg','basis');" onmouseout="chgImg('<!--{$TPL_DIR}-->img/header/basis.jpg','basis');"><img src="<!--{$TPL_DIR}-->img/header/basis.jpg" width="98" height="32" alt="´ðËܾðÊó´ÉÍý" border="0" name="basis" id="basis"></a><!--{/if}--></td>
<td><!--{if $tpl_mainno eq "products"}--><a href="<!--{$smarty.const.URL_DIR}-->admin/products/index.php"><img src="<!--{$TPL_DIR}-->img/header/product_on.jpg" width="98" height="32" alt="¾¦ÉÊ´ÉÍý" border="0"></a><!--{else}--><a href="<!--{$smarty.const.URL_DIR}-->admin/products/index.php" onmouseover="chgImg('<!--{$TPL_DIR}-->img/header/product_on.jpg','product');" onmouseout="chgImg('<!--{$TPL_DIR}-->img/header/product.jpg','product');"><img src="<!--{$TPL_DIR}-->img/header/product.jpg" width="98" height="32" alt="¾¦ÉÊ´ÉÍý" border="0" name="product" id="product"></a><!--{/if}--></td>
<td><!--{if $tpl_mainno eq "customer"}--><a href="<!--{$smarty.const.URL_DIR}-->admin/customer/index.php"><img src="<!--{$TPL_DIR}-->img/header/customer_on.jpg" width="98" height="32" alt="¸ÜµÒ´ÉÍý" border="0"></a><!--{else}--><a href="<!--{$smarty.const.URL_DIR}-->admin/customer/index.php" onmouseover="chgImg('<!--{$TPL_DIR}-->img/header/customer_on.jpg','customer');" onmouseout="chgImg('<!--{$TPL_DIR}-->img/header/customer.jpg','customer');"><img src="<!--{$TPL_DIR}-->img/header/customer.jpg" width="98" height="32" alt="¸ÜµÒ´ÉÍý" border="0" name="customer" id="customer"></a><!--{/if}--></td>
<td><!--{if $tpl_mainno eq "order"}--><a href="<!--{$smarty.const.URL_DIR}-->admin/order/index.php"><img src="<!--{$TPL_DIR}-->img/header/order_on.jpg" width="98" height="32" alt="¼õÃí´ÉÍý" border="0"></a><!--{else}--><a href="<!--{$smarty.const.URL_DIR}-->admin/order/index.php" onmouseover="chgImg('<!--{$TPL_DIR}-->img/header/order_on.jpg','order');" onmouseout="chgImg('<!--{$TPL_DIR}-->img/header/order.jpg','order');"><img src="<!--{$TPL_DIR}-->img/header/order.jpg" width="98" height="32" alt="¼õÃí´ÉÍý" border="0" name="order" id="order"></a><!--{/if}--></td>
<td><!--{if $tpl_mainno eq "total"}--><a href="<!--{$smarty.const.URL_DIR}-->admin/total/index.php"><img src="<!--{$TPL_DIR}-->img/header/sales_on.jpg" width="98" height="32" alt="Çä¾å½¸·×" border="0"></a><!--{else}--><a href="<!--{$smarty.const.URL_DIR}-->admin/total/index.php" onmouseover="chgImg('<!--{$TPL_DIR}-->img/header/sales_on.jpg','sales');" onmouseout="chgImg('<!--{$TPL_DIR}-->img/header/sales.jpg','sales');"><img src="<!--{$TPL_DIR}-->img/header/sales.jpg" width="98" height="32" alt="Çä¾å½¸·×" border="0" name="sales" id="sales"></a><!--{/if}--></td>
<td><!--{if $tpl_mainno eq "mail"}--><a href="<!--{$smarty.const.URL_DIR}-->admin/mail/index.php"><img src="<!--{$TPL_DIR}-->img/header/mail_on.jpg" width="97" height="32" alt="¥á¥ë¥Þ¥¬´ÉÍý" border="0"></a><!--{else}--><a href="<!--{$smarty.const.URL_DIR}-->admin/mail/index.php" onmouseover="chgImg('<!--{$TPL_DIR}-->img/header/mail_on.jpg','mail');" onmouseout="chgImg('<!--{$TPL_DIR}-->img/header/mail.jpg','mail');"><img src="<!--{$TPL_DIR}-->img/header/mail.jpg" width="97" height="32" alt="¥á¥ë¥Þ¥¬´ÉÍý" border="0" name="mail" id="mail"></a><!--{/if}--></td>
<td><!--{if $tpl_mainno eq "contents"}--><a href="<!--{$smarty.const.URL_DIR}-->admin/contents/index.php"><img src="<!--{$TPL_DIR}-->img/header/contents_on.jpg" width="97" height="32" alt="¥³¥ó¥Æ¥ó¥Ä´ÉÍý" border="0"></a><!--{else}--><a href="<!--{$smarty.const.URL_DIR}-->admin/contents/index.php" onmouseover="chgImg('<!--{$TPL_DIR}-->img/header/contents_on.jpg','contents');" onmouseout="chgImg('<!--{$TPL_DIR}-->img/header/contents.jpg','contents');"><img src="<!--{$TPL_DIR}-->img/header/contents.jpg" width="97" height="32" alt="¥³¥ó¥Æ¥ó¥Ä´ÉÍý" border="0" name="contents" id="contents"></a><!--{/if}--></td>
<td><!--{if $tpl_mainno eq "design"}--><a href="<!--{$smarty.const.URL_DIR}-->admin/design/index.php"><img src="<!--{$TPL_DIR}-->img/header/design_on.jpg" width="97" height="32" alt="¥Ç¥¶¥¤¥ó´ÉÍý" border="0"></a><!--{else}--><a href="<!--{$smarty.const.URL_DIR}-->admin/design/index.php" onmouseover="chgImg('<!--{$TPL_DIR}-->img/header/design_on.jpg','design');" onmouseout="chgImg('<!--{$TPL_DIR}-->img/header/design.jpg','design');"><img src="<!--{$TPL_DIR}-->img/header/design.jpg" width="97" height="32" alt="¥Ç¥¶¥¤¥ó´ÉÍý" border="0" name="design" id="design"></a><!--{/if}--></td>
<td><!--{if $tpl_mainno eq "system"}--><a href="<!--{$smarty.const.URL_DIR}-->admin/system/index.php"><img src="<!--{$TPL_DIR}-->img/header/system_on.jpg" width="97" height="32" alt="¥·¥¹¥Æ¥àÀßÄê" border="0"></a><!--{else}--><a href="<!--{$smarty.const.URL_DIR}-->admin/system/index.php" onmouseover="chgImg('<!--{$TPL_DIR}-->img/header/system_on.jpg','system');" onmouseout="chgImg('<!--{$TPL_DIR}-->img/header/system.jpg','system');"><img src="<!--{$TPL_DIR}-->img/header/system.jpg" width="97" height="32" alt="¥·¥¹¥Æ¥àÀßÄê" border="0" name="system" id="system"></a><!--{/if}--></td>
<!--{else}-->
<td><!--{if $tpl_mainno eq "order"}--><a href="<!--{$smarty.const.URL_DIR}-->admin/order/index.php"><img src="<!--{$TPL_DIR}-->img/header/order_on.jpg" width="98" height="32" alt="¼õÃí´ÉÍý" border="0"></a><!--{else}--><a href="<!--{$smarty.const.URL_DIR}-->admin/order/index.php" onmouseover="chgImg('<!--{$TPL_DIR}-->img/header/order_on.jpg','order');" onmouseout="chgImg('<!--{$TPL_DIR}-->img/header/order.jpg','order');"><img src="<!--{$TPL_DIR}-->img/header/order.jpg" width="98" height="32" alt="¼õÃí´ÉÍý" border="0" name="order" id="order"></a><!--{/if}--></td>
<!--{/if}-->
±¿ÍѤËÌòΩ¤Á¤½¤¦¤Ê¥¢¥×¥ê¤ò¤â¤¦°ì¤Ä¸«¤Ä¤±¤Þ¤·¤¿¡£
¡ØSEO Ranking¡Ù

°ìÍ÷¤ÇÁ´µÙŪ¤Ê¾õÂÖ¤ò³Îǧ½ÐÍè

¥¡¼¥ï¡¼¥É¤òÁªÂò¤¹¤ë¤È¡¢ÍúÎò¤Î¾õ¶·¤¬¥°¥é¥Õ¤Ç³Îǧ½ÐÍè¤Þ¤¹¡£

¤³¤Î¥¢¥×¥ê¤â¾¯¤·¤Î¶õ¤»þ´Ö¤ò͸ú³èÍѤǤ¤Þ¤¹¡£