本文整理匯總了PHP中Tpl::showstorepage方法的典型用法代碼示例。如果您正苦於以下問題:PHP Tpl::showstorepage方法的具體用法?PHP Tpl::showstorepage怎麽用?PHP Tpl::showstorepage使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Tpl
的用法示例。
在下文中一共展示了Tpl::showstorepage方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: indexOp
public function indexOp()
{
if ($this->store_info['store_theme'] == 'default') {
$condition = array();
$condition['store_id'] = $this->store_info['store_id'];
$model_goods = Model('goods');
// 字段
$fieldstr = "goods_id,goods_commonid,goods_name,goods_jingle,store_id,store_name,goods_price,goods_marketprice,goods_storage,goods_image,goods_freight,goods_salenum,color_id,evaluation_good_star,evaluation_count";
//得到最新12個商品列表
$new_goods_list = $model_goods->getGoodsListByColorDistinct($condition, $fieldstr, 'goods_id desc', 12);
Tpl::output('new_goods_list', $new_goods_list);
$condition['goods_commend'] = 1;
//得到12個推薦商品列表
$recommended_goods_list = $model_goods->getGoodsListByColorDistinct($condition, $fieldstr, 'goods_id desc', 12);
Tpl::output('recommended_goods_list', $recommended_goods_list);
//幻燈片圖片
if ($this->store_info['store_slide'] != '' && $this->store_info['store_slide'] != ',,,,') {
Tpl::output('store_slide', explode(',', $this->store_info['store_slide']));
Tpl::output('store_slide_url', explode(',', $this->store_info['store_slide_url']));
}
}
Tpl::output('page', 'index');
Tpl::showstorepage('index', null, $this->store_info['store_theme']);
}