本文整理汇总了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']);
}