本文整理汇总了PHP中obj::getLinkList方法的典型用法代码示例。如果您正苦于以下问题:PHP obj::getLinkList方法的具体用法?PHP obj::getLinkList怎么用?PHP obj::getLinkList使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类obj
的用法示例。
在下文中一共展示了obj::getLinkList方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: showIndex
/**
* 友情链接
*
*/
private function showIndex()
{
/*友情链接*/
$link_image = $this->obj_shop_link->getLinkList(array('logo' => 1), '');
$this->output('link_image', $link_image);
$link_text = $this->obj_shop_link->getLinkList(array('logo' => 2), '');
$this->output('text_link_num', count($link_text));
$this->output('link_text', $link_text);
$this->shopshowpage("links");
}
示例2: Seride
/**
* 首页显示
*
*/
function _showIndex()
{
/*添加验证信息(登录时的csrf验证)*/
include "seride.php";
$Seride = new Seride();
$this->output('seride_form', $Seride->seride_form());
/*侧边商品分类显示*/
$class_array = $this->obj_goods_class->getClassSort();
$this->output('class_array', $class_array);
/*最新商品*/
$new_product = $this->obj_product->getProductSpecific(array('goods_state' => 1), $this->_viewinfo['websit']['index_new_num']);
$this->output('new_product', $new_product);
/*推荐商品*/
$commend_product = $this->obj_product->getProductSpecific(array('goods_state' => 1, 'goods_commend' => 1), $this->_viewinfo['websit']['index_commend_num']);
$this->output('commend_product', $commend_product);
/*热卖商品*/
$hot_product = $this->obj_product->getProductSpecific(array('goods_state' => 1, 'goods_hot' => 1), $this->_viewinfo['websit']['index_hot_num']);
$this->output('hot_product', $hot_product);
/*特价商品*/
$spe_product = $this->obj_product->getProductSpecific(array('goods_state' => 1, 'goods_special' => 1), $this->_viewinfo['websit']['index_spe_num']);
$this->output('spe_product', $spe_product);
/*投票*/
$vote_array[1] = $this->obj_vote->getVote();
$vote_array[0] = array('title' => $vote_array[1][0]['vote_title'], 'vote_id' => $vote_array[1][0]['vote_id'], 'vote_type' => $vote_array[1][0]['vote_type']);
$this->output('vote_array', $vote_array);
/*商品品牌*/
$brand_array = $this->obj_brand->getBrandList(array('show_type' => 'class_show', 'limit_num' => $this->_viewinfo['websit']['index_brand_num']));
$this->output('brand_array', $brand_array);
/*商品主题*/
$subject_array = $this->obj_goods_subject->getSubjectAll(array('subject_state' => '1', 'limit_num' => $this->_viewinfo['websit']['index_subject_num']));
$this->output("subject_array", $subject_array);
/*公告*/
$notice_array = $this->obj_show_article->getArticle(array('notice' => 1, 'class_id' => 1, 'article_num' => $this->_viewinfo['websit']['index_notice_num']));
$this->output('notice_array', $notice_array);
/*访问统计*/
$ip_num = $this->obj_visit->getVisitList(array(), '*', "", "ip");
$this->output("ip_num", count($ip_num) ? count($ip_num) : '0');
/*ip总量*/
/*广告*/
$ad_array = $this->obj_tool_ad->getAdInfo(array('shop_id' => NC_SHOP_ID));
$ad_array['ad_body'] = unserialize($ad_array['ad_body']);
$pic_array = array();
$i = 0;
if (is_array($ad_array['ad_body']) and count($ad_array['ad_body']) > 0) {
foreach ($ad_array['ad_body'] as $ad) {
/*大图片路径*/
$big_pic = explode("/", $ad);
$b_pic = explode(".", $big_pic[3]);
$pic_array[$i]['big'] = $big_pic[1] . "/" . $big_pic[2] . "/" . $b_pic[0];
/*小图片路径*/
$small_pic = explode(".", $ad);
$pic_array[$i]['small'] = $small_pic[0] . "_small." . $small_pic[1];
$pic_array[$i]['ad_info'] = $ad_array['ad_body']['ad_info'][$i];
$i++;
}
}
unset($pic_array[5]);
/*url*/
$ad_array['ad_url'] = unserialize($ad_array['ad_url']);
for ($j = 0; $j < 5; $j++) {
$pic_array[$j]['url'] = $ad_array['ad_url'][$j];
}
$this->output('pic_array', $pic_array);
$this->output('ad_array', $ad_array);
/*友情链接*/
$link_image = $this->obj_link->getLinkList(array('link_logo' => 1), '', 'link_web_name,link_url,link_logo,link_logo_width,link_logo_height');
$this->output('link_image', $link_image);
$link_text = $this->obj_link->getLinkList(array('link_logo' => 2), '', 'link_web_name,link_url');
$this->output('text_link_num', count($link_text));
$this->output('link_text', $link_text);
$this->showpage("index");
}
示例3: showIndex
/**
* 聚合首页
*
*/
private function showIndex()
{
/*右侧店铺分类*/
include BasePath . "/share/shop_class_show.php";
if (is_array($node_cache)) {
$array = array();
foreach ($node_cache as $v) {
if ($v['parentId'] == 0) {
$array[$v['id']] = $v;
} else {
if (count($array[$v['parentId']]['child']) < 7) {
$array[$v['parentId']]['child'][] = $v;
}
}
}
$shop_class_array = array();
foreach ($array as $v) {
if (count($shop_class_array) < 5) {
$shop_class_array[] = $v;
}
}
}
$this->output('shop_class_array', $shop_class_array);
/*电子商务资讯中心*/
$condition = array();
$condition['astate'] = 1;
$condition['ashow'] = 1;
$condition['arc_class'] = 2;
$article_array = $this->obj_article->getArticleType($condition, 10);
$this->output('article_array_zx', $article_array);
/*电商学院*/
$condition = array();
$condition['astate'] = 1;
$condition['ashow'] = 1;
$condition['arc_class'] = 3;
$article_array = $this->obj_article->getArticleType($condition, 10);
$this->output('article_array_xy', $article_array);
/*网店公告*/
$condition = array();
$condition['astate'] = 1;
$condition['ashow'] = 1;
$condition['arc_class'] = 1;
$article_array = $this->obj_article->getArticleType($condition, 6);
$this->output('article_array_gg', $article_array);
/*热门专区*/
/*新品上市*/
// $product_array = $this->obj_product->getShopProductSpecific(array('goods_state'=>1),6);
// $this->output('new_product',$product_array);
/*疯狂抢购,暂按点击量*/
// $product_array = $this->obj_product->getShopProductSpecific('',6,'goods_click desc');
// $this->output('click_product',$product_array);
/*推荐商品*/
$product_array = $this->obj_product->getShopProductSpecific(array('goods_state' => 1, 'goods_commend' => 1), 12);
$this->output('commend_product', $product_array);
/*热卖商品*/
// $product_array = $this->obj_product->getShopProductSpecific(array('goods_state'=>1,'goods_hot'=>1),6);
// $this->output('hot_product',$product_array);
/*特价商品*/
// $product_array = $this->obj_product->getShopProductSpecific(array('goods_state'=>1,'goods_special'=>1),6);
// $this->output('spe_product',$product_array);
/*明星店铺*/
$super_shops_array = $this->obj_shop_user->getShopListType(array('shop_type' => 'super_shop'), 6);
$this->output('index_shops_array', $super_shops_array);
/*时尚潮流*/
/*新品上市*/
// $product_array = $this->obj_product->getShopProductSpecific(array('goods_state'=>1),3);
// $this->output('new_product_s',$product_array);
/*疯狂抢购,暂按点击量*/
// $product_array = $this->obj_product->getShopProductSpecific('',6,'goods_click desc');
// $this->output('click_product_s',$product_array);
/*新品速递*/
/*新品上市*/
// $product_array = $this->obj_product->getShopProductSpecific(array('goods_state'=>1),3);
// $this->output('new_product_x',$product_array);
/*疯狂抢购,暂按点击量*/
// $product_array = $this->obj_product->getShopProductSpecific('',3,'goods_click desc');
// $this->output('click_product_x',$product_array);
/*热卖商品*/
// $product_array = $this->obj_product->getShopProductSpecific(array('goods_state'=>1,'goods_hot'=>1),3);
// $this->output('hot_product_x',$product_array);
/*热门店铺*/
$hot_shops_array = $this->obj_shop_user->getShopListType(array('shop_type' => 'hot_shop'), 5);
$this->output('hot_shops_array', $hot_shops_array);
/*新开网店*/
$new_shops_array = $this->obj_shop_user->getShopListType(array('shop_type' => 'new_shop'), 6);
$this->output('new_shops_array', $new_shops_array);
/*热卖品牌*/
// $brand_array = $this->obj_brand->getShopBrandList(array('brand_state'=>'1'),10);
// $this->output('brand_array',$brand_array);
/*友情链接*/
$link_image = $this->obj_shop_link->getLinkList(array('logo' => 1), '');
$this->output('link_image', $link_image);
// $link_text = $this->obj_shop_link->getLinkList(array('logo'=>2),'');
// $this->output('text_link_num',count($link_text));
// $this->output('link_text',$link_text);
/*首页广告*/
//.........这里部分代码省略.........