本文整理汇总了PHP中brandImage函数的典型用法代码示例。如果您正苦于以下问题:PHP brandImage函数的具体用法?PHP brandImage怎么用?PHP brandImage使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了brandImage函数的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: recommend_listOp
public function recommend_listOp()
{
$brand_list = Model('brand')->getBrandPassedList(array('brand_recommend' => '1'), 'brand_id,brand_name,brand_pic');
if (!empty($brand_list)) {
foreach ($brand_list as $key => $val) {
$brand_list[$key]['brand_pic'] = brandImage($val['brand_pic']);
}
}
output_data(array('brand_list' => $brand_list));
}
示例2: foreach
if ($i != 1) {
echo 'tabs-hide';
}
?>
">
<ul>
<?php
foreach ($brand_c as $key => $brand) {
?>
<li>
<dl>
<dt><a href="<?php
echo urlShop('brand', 'list', array('brand' => $brand['brand_id']));
?>
"><img src="<?php
echo brandImage($brand['brand_pic']);
?>
" alt="<?php
echo $brand['brand_name'];
?>
"/></a></dt>
<dd><a href="<?php
echo urlShop('brand', 'list', array('brand' => $brand['brand_id']));
?>
"><?php
echo $brand['brand_name'];
?>
</a></dd>
</dl>
</li>
<?php
示例3: brandImage
<td class="name"><span class=" editable" nc_type="inline_edit" fieldname="brand_name" ajax_branch='brand_name' fieldid="<?php
echo $v['brand_id'];
?>
" required="1" title="<?php
echo $lang['nc_editable'];
?>
"><?php
echo $v['brand_name'];
?>
</span></td>
<td class="class"><?php
echo $v['brand_class'];
?>
</td>
<td class="picture"><div class="brand-picture"><img src="<?php
echo brandImage($v['brand_pic']);
?>
"/></div></td>
<td class="align-center yes-onoff"><?php
if ($v['brand_recommend'] == '0') {
?>
<a href="JavaScript:void(0);" class=" disabled" ajax_branch='brand_recommend' nc_type="inline_edit" fieldname="brand_recommend" fieldid="<?php
echo $v['brand_id'];
?>
" fieldvalue="0" title="<?php
echo $lang['nc_editable'];
?>
"><img src="<?php
echo ADMIN_TEMPLATES_URL;
?>
/images/transparent.gif"></a>
示例4: brandImage
?>
<li>
<div class="cms-thumb"><a nctype="brand_item" href="<?php
echo SHOP_SITE_URL;
?>
/index.php?act=brand&op=list&brand=<?php
echo $value['brand_id'];
?>
" data-brand-id="<?php
echo $value['brand_id'];
?>
" title="<?php
echo $value['brand_name'];
?>
" target="_blank"><img src="<?php
echo brandImage($value['brand_pic']);
?>
" alt="<?php
echo $value['brand_name'];
?>
" class="t-img" /></a></div>
<div class="brand-name"><a href="<?php
echo SHOP_SITE_URL;
?>
/index.php?act=brand&op=list&brand=<?php
echo $value['brand_id'];
?>
" title="<?php
echo $value['brand_name'];
?>
" target="_blank"><?php
示例5: brandImage
}
?>
<?php
}
?>
</select>
</dd>
</dl>
<dl>
<dt><i class="required">*</i><?php
echo $lang['store_goods_brand_icon'] . $lang['nc_colon'];
?>
</dt>
<dd>
<div class=""><span class="sign"><img src="<?php
echo brandImage($output['brand_array']['brand_pic']);
?>
" onload="javascript:DrawImage(this,150,50)" nc_type="logo1"/></span></div>
<div class="ncsc-upload-btn"> <a href="javascript:void(0);"><span>
<input type="file" hidefocus="true" size="1" class="input-file" name="brand_pic" id="brand_pic" nc_type="logo"/>
</span>
<p><i class="icon-upload-alt"></i>图片上传</p>
</a> </div>
<p class="hint"><?php
echo $lang['store_goods_brand_upload_tip'];
?>
</p>
</dd>
</dl>
<div class="bottom">
<label class="submit-border"><input type="submit" class="submit" value="<?php
示例6: foreach
">价格</a>
</div>
</div>
</div>
</div>
<div class="brand-logo inner1024 clearfix">
<div class="bd">
<ul class="brandlist">
<?php
foreach ($output['brand'] as $key => $brand_r) {
?>
<li><a href="<?php
echo urlShop('brand', 'list', array('brand' => $brand_r['brand_id']));
?>
" target="_blank"><img src="<?php
echo brandImage($brand_r['brand_pic_sm']);
?>
" alt=""></a></li>
<?php
}
?>
</ul>
<div class="pageBtn">
<span class="prev"></span>
<span class="next"></span>
<!-- <ul class="list"><li>0</li><li>1</li><li>2</li></ul>-->
</div>
</div>
</div>
<div class="inner clearfix">
示例7: get_oversea_brandOp
/**
* 获取海外购指定分类下品牌
*/
public function get_oversea_brandOp()
{
$condition = array();
$condition['is_open'] = 1;
$condition['is_oversea'] = 1;
$condition['gc_id'] = intval($_GET['gc_id']);
$condition['start_time'] = array('lt', TIMESTAMP);
$condition['end_time'] = array('gt', TIMESTAMP);
$brand_list = Model('brandsale')->field('rec_id,brand_name,brand_pic')->where($condition)->order('sort desc')->limit(8)->select();
if ($brand_list) {
foreach ($brand_list as $k => $v) {
$brand_list[$k]['brand_pic'] = brandImage($v['brand_pic']);
}
}
output_data(array('brand_list' => $brand_list));
}
示例8: goods_detailOp
/**
* 商品详细页
*/
public function goods_detailOp()
{
$goods_id = intval($_GET['goods_id']);
// 商品详细信息
$model_goods = Model('goods');
$goods_detail = $model_goods->getGoodsDetail($goods_id);
if (empty($goods_detail)) {
output_error('商品不存在');
}
// 默认预订商品不支持手机端显示
if ($goods_detail['is_book']) {
output_error('预订商品不支持手机端显示');
}
//特卖
$goods_detail['brandsale'] = Model('brandsale')->field('rec_id, brand_name, start_time, end_time, brand_pic, info, is_oversea')->where(array('is_open' => 1, 'brand_id' => $goods_detail['goods_info']['brand_id'], 'gc_id' => $goods_detail['goods_info']['gc_id_1']))->find();
if ($goods_detail['brandsale']['start_time'] <= TIMESTAMP && $goods_detail['brandsale']['end_time'] > TIMESTAMP) {
$goods_detail['goods_info']['remaining_time'] = $goods_detail['brandsale']['end_time'] - TIMESTAMP;
}
if ($goods_detail['brandsale']) {
$goods_detail['brandsale']['brand_pic_url'] = brandImage($goods_detail['brandsale']['brand_pic']);
$info = unserialize($goods_detail['brandsale']['info']);
$goods_detail['brandsale']['special_content'] = '上新' . $info['data_cate'][0]['num'] . '款';
}
//国家
$country_list = rkcache('country');
$goods_detail['country'] = $country_list[$goods_detail['goods_info']['country_id']];
//发货地区
if ($goods_detail['goods_info']['country_id'] > 0 && $goods_detail['goods_info']['areaid_2']) {
$area = Model('area')->field('area_name')->where(array('area_id' => $goods_detail['goods_info']['areaid_2']))->find();
$goods_detail['goods_info']['send_area_name'] = $area['area_name'];
}
//折扣
$goods_detail['goods_info']['discount'] = sprintf('%0.1f', $goods_detail['goods_info']['goods_promotion_price'] / $goods_detail['goods_info']['goods_marketprice'] * 10);
//口碑
$goods_detail['goodsevallist'] = Model('evaluate_goods')->field('geval_frommembername,geval_scores,geval_content')->where(array('geval_goodsid' => $goods_id))->order('geval_scores desc, geval_id desc')->limit(2)->select();
//店铺
$model_store = Model('store');
$store_info = $model_store->getStoreInfoByID($goods_detail['goods_info']['store_id']);
$goods_detail['store_info']['store_id'] = $store_info['store_id'];
$goods_detail['store_info']['store_name'] = $store_info['store_name'];
$goods_detail['store_info']['member_id'] = $store_info['member_id'];
$goods_detail['store_info']['member_name'] = $store_info['member_name'];
$goods_detail['store_info']['avatar'] = getMemberAvatarForID($store_info['member_id']);
$goods_detail['store_info']['goods_count'] = $store_info['goods_count'];
if ($store_info['is_own_shop']) {
$goods_detail['store_info']['store_credit'] = array('store_desccredit' => array('text' => '描述', 'credit' => 5, 'percent' => '----', 'percent_class' => 'equal', 'percent_text' => '平'), 'store_servicecredit' => array('text' => '服务', 'credit' => 5, 'percent' => '----', 'percent_class' => 'equal', 'percent_text' => '平'), 'store_deliverycredit' => array('text' => '物流', 'credit' => 5, 'percent' => '----', 'percent_class' => 'equal', 'percent_text' => '平'));
} else {
$storeCredit = array();
$percentClassTextMap = array('equal' => '平', 'high' => '高', 'low' => '低');
foreach ((array) $store_info['store_credit'] as $k => $v) {
$v['percent_text'] = $percentClassTextMap[$v['percent_class']];
$storeCredit[$k] = $v;
}
$goods_detail['store_info']['store_credit'] = $storeCredit;
}
//商品详细信息处理
$goods_detail = $this->_goods_detail_extend($goods_detail);
// 如果已登录 判断该商品是否已被收藏
if ($memberId = $this->getMemberIdIfExists()) {
$c = (int) Model('favorites')->getGoodsFavoritesCountByGoodsId($goods_id, $memberId);
$goods_detail['is_favorate'] = $c > 0;
$cart_goods = Model('cart')->listCart('db', array('buyer_id' => $memberId));
$cart_count = 0;
if (!empty($cart_goods) && is_array($cart_goods)) {
foreach ($cart_goods as $val) {
$cart_count += $val['goods_num'];
}
}
$goods_detail['cart_count'] = $cart_count;
}
//print_r($goods_detail);
output_data($goods_detail);
}
示例9: if
var PURL = [<?php echo $output['purl'];?>];
</script>
<link href="<?php echo SHOP_TEMPLATES_URL;?>/css/layout.css" rel="stylesheet" type="text/css">
<script src="<?php echo SHOP_RESOURCE_SITE_URL.'/js/search_goods.js';?>"></script>
<div class="nch-container wrapper">
<div class="left">
<div class="nch-module nch-module-style01">
<div class="title">
<h3><?php echo $lang['brand_index_recommend_brand'];?></h3>
</div>
<div class="content">
<?php if(!empty($output['brand_r'])){?>
<ul class="nch-sidebar-brand">
<?php foreach($output['brand_r'] as $key=>$brand_r){?>
<li class="picture"> <a href="<?php echo urlShop('brand', 'list',array('brand'=>$brand_r['brand_id']));?>" target="_blank"> <span class="brand-logo"><img src="<?php echo brandImage($brand_r['brand_pic']);?>" alt="<?php echo $brand_r['brand_name'];?>" /></span> <span class="brand-name"><?php echo $brand_r['brand_name'];?></span></a> </li>
<?php }?>
</ul>
<?php }?>
</div>
</div>
<div class="nch-module nch-module-style03"><?php echo loadadv(37,'html');?> </div>
<!-- 浏览历史 -->
<div class="nch-module nch-module-style03">
<div class="title">
<h3><?php echo $lang['brand_index_viewed_goods']; ?></h3>
</div>
<div class="content">
<div class="nch-sidebar-viewed" id="nchSidebarViewed">
<ul>
<?php if(!empty($output['viewed_goods'])){ ?>