• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP uk86_thumb函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中uk86_thumb函数的典型用法代码示例。如果您正苦于以下问题:PHP uk86_thumb函数的具体用法?PHP uk86_thumb怎么用?PHP uk86_thumb使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了uk86_thumb函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: ajax_loadOp

 /**
  * 异步查询购物车
  */
 public function ajax_loadOp()
 {
     $model_cart = Model('cart');
     if ($_SESSION['member_id']) {
         //登录后
         $cart_list = $model_cart->listCart('db', array('buyer_id' => $_SESSION['member_id']));
         $cart_array = array();
         if (!empty($cart_list)) {
             foreach ($cart_list as $k => $cart) {
                 $cart_array['list'][$k]['cart_id'] = $cart['cart_id'];
                 $cart_array['list'][$k]['goods_id'] = $cart['goods_id'];
                 $cart_array['list'][$k]['goods_name'] = $cart['goods_name'];
                 $cart_array['list'][$k]['goods_price'] = $cart['goods_price'];
                 $cart_array['list'][$k]['goods_image'] = uk86_thumb($cart, 60);
                 $cart_array['list'][$k]['goods_num'] = $cart['goods_num'];
                 $cart_array['list'][$k]['goods_url'] = uk86_urlShop('goods', 'index', array('goods_id' => $cart['goods_id']));
             }
         }
     } else {
         //登录前
         $cart_list = $model_cart->listCart('cookie');
         foreach ($cart_list as $key => $cart) {
             /* $value = array();
             			if($cart['goods_id']==null)continue;*/
             $value['cart_id'] = $cart['goods_id'];
             $value['goods_name'] = $cart['goods_name'];
             $value['goods_price'] = $cart['goods_price'];
             $value['goods_num'] = $cart['goods_num'];
             $value['goods_image'] = uk86_thumb($cart, 60);
             $value['goods_url'] = uk86_urlShop('goods', 'index', array('goods_id' => $cart['goods_id']));
             $cart_array['list'][] = $value;
         }
     }
     uk86_setNcCookie('cart_goods_num', $model_cart->cart_goods_num, 2 * 3600);
     $cart_array['cart_all_price'] = uk86_ncPriceFormat($model_cart->cart_all_price);
     $cart_array['cart_goods_num'] = $model_cart->cart_goods_num;
     if ($_GET['type'] == 'html') {
         Tpl::output('cart_list', $cart_array);
         Tpl::showpage('cart_mini', 'null_layout');
     } else {
         $cart_array = strtoupper(CHARSET) == 'GBK' ? Uk86Language::uk86_getUTF8($cart_array) : $cart_array;
         $json_data = json_encode($cart_array);
         if (isset($_GET['callback'])) {
             $json_data = $_GET['callback'] == '?' ? '(' . $json_data . ')' : $_GET['callback'] . "({$json_data});";
         }
         exit($json_data);
     }
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:51,代码来源:cart.php


示例2: uk86_urlShop

    <div class="title">相关商品交易信息</div>
    <div class="item-goods">
        <?php 
if (is_array($output['order']) && !empty($output['order'])) {
    ?>
      <dl>
        <dt>
          <div class="ncm-goods-uk86_thumb-mini"><a target="_blank" href="<?php 
    echo uk86_urlShop('goods', 'index', array('goods_id' => $output['order']['goods_id']));
    ?>
">
            <img src="<?php 
    echo uk86_thumb($output['order'], 60);
    ?>
" onMouseOver="toolTip('<img src=<?php 
    echo uk86_thumb($output['order'], 240);
    ?>
>')" onMouseOut="toolTip()" /></a></div>
        </dt>
        <dd><a target="_blank" href="<?php 
    echo uk86_urlShop('goods', 'index', array('goods_id' => $output['order']['goods_id']));
    ?>
"><?php 
    echo $output['order']['goods_name'];
    ?>
</a>
            <?php 
    echo $lang['currency'];
    echo $output['order']['goods_price'];
    ?>
 * <?php 
开发者ID:wangjiang988,项目名称:ukshop,代码行数:31,代码来源:member_vr_refund_right.php


示例3: foreach

if (is_array($output['goods_list']) && !empty($output['goods_list'])) {
    ?>
        <?php 
    foreach ($output['goods_list'] as $key => $val) {
        ?>
      <dl>
        <dt>
          <div class="ncsc-goods-thumb-mini"><a target="_blank" href="<?php 
        echo uk86_urlShop('goods', 'index', array('goods_id' => $val['goods_id']));
        ?>
">
            <img src="<?php 
        echo uk86_thumb($val, 60);
        ?>
" onMouseOver="toolTip('<img src=<?php 
        echo uk86_thumb($val, 240);
        ?>
>')" onMouseOut="toolTip()" /></a></div>
        </dt>
        <dd><a target="_blank" href="<?php 
        echo uk86_urlShop('goods', 'index', array('goods_id' => $val['goods_id']));
        ?>
"><?php 
        echo $val['goods_name'];
        ?>
</a>
            <?php 
        echo $lang['currency'];
        echo $val['goods_price'];
        ?>
 * <?php 
开发者ID:wangjiang988,项目名称:ukshop,代码行数:31,代码来源:store_refund_right.php


示例4: foreach

      </div>
      <div class="content">
        <div class="nch-sidebar-viewed" id="nchSidebarViewed">
          <ul>
          <?php 
if (!empty($output['viewed_goods'])) {
    ?>
            <?php 
    foreach ($output['viewed_goods'] as $k => $v) {
        ?>
            <li>
              <div class="goods-pic"><a href="<?php 
        echo uk86_urlShop('goods', 'index', array('goods_id' => $v['goods_id']));
        ?>
"><img src="<?php 
        echo uk86_thumb($v, 60);
        ?>
" title="<?php 
        echo $v['goods_name'];
        ?>
" alt="<?php 
        echo $v['goods_name'];
        ?>
" ></a></div>
              <dl>
                <dt><a href="<?php 
        echo uk86_urlShop('goods', 'index', array('goods_id' => $v['goods_id']));
        ?>
"><?php 
        echo $v['goods_name'];
        ?>
开发者ID:wangjiang988,项目名称:ukshop,代码行数:31,代码来源:brand_goods.php


示例5: foreach

            ?>
            <ul nc_type="mycarousel" class="jcarousel-skin-tango">
              <?php 
            foreach ((array) $v['goods'] as $g_k => $g_v) {
                ?>
              <li><div class="goods-pic"><a href="<?php 
                echo $g_v['goodsurl'];
                ?>
" target="_blank" title="<?php 
                echo $g_v['goods_name'];
                ?>
"><img alt="<?php 
                echo $g_v['goods_name'];
                ?>
" src="<?php 
                echo uk86_thumb($g_v, 240);
                ?>
" /></a></div></li>
              <?php 
            }
            ?>
            </ul>
            <?php 
        }
        ?>
          </div>
          <div style="clear: both;"></div>
        </div>
      </li>
      <?php 
    }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:31,代码来源:sns_home.php


示例6: uk86_urlShop

echo $output['store_info']['store_name'];
?>
</a> <span member_id="<?php 
echo $output['store_info']['member_id'];
?>
"></span>
          </th>
        </tr>

        <tr class="shop-list">
          <td class="w10"></td>
          <td class="w60"><a href="<?php 
echo uk86_urlShop('goods', 'index', array('goods_id' => $output['goods_info']['goods_id']));
?>
" target="_blank" class="ncc-goods-uk86_thumb"><img src="<?php 
echo uk86_thumb($output['goods_info'], 60);
?>
" alt="<?php 
echo $output['goods_info']['goods_name'];
?>
" /></a></td>
          <td class="tl"><dl class="ncc-goods-info">
              <dt><a href="<?php 
echo uk86_urlShop('goods', 'index', array('goods_id' => $output['goods_info']['goods_id']));
?>
" target="_blank"><?php 
echo $output['goods_info']['goods_name'];
?>
</a></dt>
                <dd>
                <?php 
开发者ID:wangjiang988,项目名称:ukshop,代码行数:31,代码来源:buy_virtual_step2.php


示例7: foreach

</div>
    <div class="item-goods">
      <?php 
if (is_array($output['order_info']['extend_order_goods']) and !empty($output['order_info']['extend_order_goods'])) {
    foreach ($output['order_info']['extend_order_goods'] as $val) {
        ?>
      <dl>
        <dt>
          <div class="ncm-goods-thumb-mini"><a href="index.php?act=goods&goods_id=<?php 
        echo $val['goods_id'];
        ?>
" target="_blank"><img src="<?php 
        echo uk86_thumb($val, '60');
        ?>
" onMouseOver="toolTip('<img src=<?php 
        echo uk86_thumb($val, '240');
        ?>
>')" onMouseOut="toolTip()"/></a></div>
        </dt>
        <dd><a href="index.php?act=goods&goods_id=<?php 
        echo $val['goods_id'];
        ?>
" target="_blank"><?php 
        echo $val['goods_name'];
        ?>
</a> <span class="rmb-price"><?php 
        echo $val['goods_price'];
        ?>
&nbsp;*&nbsp;<?php 
        echo $val['goods_num'];
        ?>
开发者ID:wangjiang988,项目名称:ukshop,代码行数:31,代码来源:member_order_deliver.detail.php


示例8: tidyThemeGoods

/**
 * tidy theme goods information
 * 
 * @param array $array
 * @param string $key
 * @param int $deep 1 one-dimensional array 2 two dimension array
 * @param string $type
 * @return array
 */
function tidyThemeGoods($array, $key, $deep = 1, $type = 60)
{
    if (is_array($array)) {
        $tmp = array();
        foreach ($array as $v) {
            if ($v['thg_type'] == 0) {
                $v['image'] = uk86_thumb($v, $type);
                $v['thg_url'] = uk86_urlShop('goods', 'index', array('goods_id' => $v['goods_id']));
            } else {
                $v['image'] = $v['goods_image'];
            }
            if ($deep === 1) {
                $tmp[$v[$key]] = $v;
            } elseif ($deep === 2) {
                $tmp[$v[$key]][] = $v;
            }
        }
        return $tmp;
    } else {
        return $array;
    }
}
开发者ID:wangjiang988,项目名称:ukshop,代码行数:31,代码来源:function.php


示例9: getBundlingCacheByGoodsId

 /**
  * 根据商品id查询套餐数据
  * @param unknown $goods_id
  */
 public function getBundlingCacheByGoodsId($goods_id)
 {
     $array = $this->_rGoodsBundlingCache($goods_id);
     if (empty($array)) {
         $bundling_array = array();
         $b_goods_array = array();
         // 根据商品id查询bl_id
         $b_g_list = $this->getBundlingGoodsList(array('goods_id' => $goods_id, 'bl_appoint' => 1), 'bl_id');
         if (!empty($b_g_list)) {
             $b_id_array = array();
             foreach ($b_g_list as $val) {
                 $b_id_array[] = $val['bl_id'];
             }
             // 查询套餐列表
             $bundling_list = $this->getBundlingOpenList(array('bl_id' => array('in', $b_id_array)));
             // 整理
             if (!empty($bundling_list)) {
                 foreach ($bundling_list as $val) {
                     $bundling_array[$val['bl_id']]['id'] = $val['bl_id'];
                     $bundling_array[$val['bl_id']]['name'] = $val['bl_name'];
                     $bundling_array[$val['bl_id']]['cost_price'] = 0;
                     $bundling_array[$val['bl_id']]['price'] = $val['bl_discount_price'];
                     $bundling_array[$val['bl_id']]['freight'] = $val['bl_freight'];
                 }
                 $blid_array = array_keys($bundling_array);
                 $b_goods_list = $this->getBundlingGoodsList(array('bl_id' => array('in', $blid_array)));
                 if (!empty($b_goods_list) && count($b_goods_list) > 1) {
                     $goodsid_array = array();
                     foreach ($b_goods_list as $val) {
                         $goodsid_array[] = $val['goods_id'];
                     }
                     $goods_list = Model('goods')->getGoodsList(array('goods_id' => array('in', $goodsid_array)), 'goods_id,goods_name,goods_price,goods_image');
                     $goods_list = uk86_array_under_reset($goods_list, 'goods_id');
                     foreach ($b_goods_list as $val) {
                         if (isset($goods_list[$val['goods_id']])) {
                             $k = intval($val['goods_id']) == $goods_id ? 0 : $val['goods_id'];
                             // 排序当前商品放到最前面
                             $b_goods_array[$val['bl_id']][$k]['id'] = $val['goods_id'];
                             $b_goods_array[$val['bl_id']][$k]['image'] = uk86_thumb($goods_list[$val['goods_id']], 240);
                             $b_goods_array[$val['bl_id']][$k]['name'] = $goods_list[$val['goods_id']]['goods_name'];
                             $b_goods_array[$val['bl_id']][$k]['shop_price'] = uk86_ncPriceFormat($goods_list[$val['goods_id']]['goods_price']);
                             $b_goods_array[$val['bl_id']][$k]['price'] = uk86_ncPriceFormat($val['bl_goods_price']);
                             $bundling_array[$val['bl_id']]['cost_price'] += $goods_list[$val['goods_id']]['goods_price'];
                         }
                     }
                 }
             }
         }
         $array = array('bundling_array' => serialize($bundling_array), 'b_goods_array' => serialize($b_goods_array));
         $this->_wGoodsBundlingCache($goods_id, $array);
     }
     return $array;
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:57,代码来源:p_bundling.model.php


示例10: _exchange

 /**
  * 兑换码消费
  */
 private function _exchange()
 {
     if (uk86_chksubmit()) {
         if (!preg_match('/^[a-zA-Z0-9]{15,18}$/', $_GET['vr_code'])) {
             return array('error' => '兑换码格式错误,请重新输入');
         }
         $model_vr_order = Model('vr_order');
         $vr_code_info = $model_vr_order->getOrderCodeInfo(array('vr_code' => $_GET['vr_code']));
         if (empty($vr_code_info) || $vr_code_info['store_id'] != $_SESSION['store_id']) {
             return array('error' => '该兑换码不存在');
         }
         if ($vr_code_info['vr_state'] == '1') {
             return array('error' => '该兑换码已被使用');
         }
         if ($vr_code_info['vr_indate'] < TIMESTAMP) {
             return array('error' => '该兑换码已过期,使用截止日期为: ' . date('Y-m-d H:i:s', $vr_code_info['vr_indate']));
         }
         if ($vr_code_info['refund_lock'] > 0) {
             //退款锁定状态:0为正常,1为锁定(待审核),2为同意
             return array('error' => '该兑换码已申请退款,不能使用');
         }
         //更新兑换码状态
         $update = array();
         $update['vr_state'] = 1;
         $update['vr_usetime'] = TIMESTAMP;
         $update = $model_vr_order->editOrderCode($update, array('vr_code' => $_GET['vr_code']));
         //如果全部兑换完成,更新订单状态
         uk86_Logic('vr_order')->changeOrderStateSuccess($vr_code_info['order_id']);
         if ($update) {
             //取得返回信息
             $order_info = $model_vr_order->getOrderInfo(array('order_id' => $vr_code_info['order_id']));
             if ($order_info['use_state'] == '0') {
                 $model_vr_order->editOrder(array('use_state' => 1), array('order_id' => $vr_code_info['order_id']));
             }
             $order_info['img_60'] = uk86_thumb($order_info, 60);
             $order_info['img_240'] = uk86_thumb($order_info, 240);
             $order_info['goods_url'] = uk86_urlShop('goods', 'index', array('goods_id' => $order_info['goods_id']));
             $order_info['order_url'] = uk86_urlShop('store_vr_order', 'show_order', array('order_id' => $order_info['order_id']));
             return array('error' => '', 'data' => $order_info);
         }
     } else {
         self::profile_menu('exchange', 'exchange');
         Tpl::showpage('store_vr_order.exchange');
     }
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:48,代码来源:store_vr_order.php


示例11: foreach

        ?>
</em></a></span> </div>
    </div>
    <?php 
        if (!empty($value['hot_sales_list']) && is_array($value['hot_sales_list'])) {
            ?>
    <div class="microshop-store-info-image">
      <ul>
        <?php 
            $i = 1;
            ?>
        <?php 
            foreach ($value['hot_sales_list'] as $k => $v) {
                ?>
        <li style="background-image: url(<?php 
                echo uk86_thumb($v, 240);
                ?>
)" title="<?php 
                echo $v['goods_name'];
                ?>
"><a href="<?php 
                echo uk86_urlShop('goods', 'index', array('goods_id' => $v['goods_id']));
                ?>
" target="_blank">&nbsp;</a> <em><?php 
                echo $v['goods_store_price'];
                ?>
</em> </li>
        <?php 
                if ($i >= 5) {
                    break;
                }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:31,代码来源:widget_store_list.php


示例12: foreach

</div>
    <div class="item-goods">
      <?php 
if (is_array($output['order_info']['extend_order_goods']) && !empty($output['order_info']['extend_order_goods'])) {
    foreach ($output['order_info']['extend_order_goods'] as $goods) {
        ?>
      <dl>
        <dt>
          <div class="ncsc-goods-thumb-mini"><a target="_blank" href="<?php 
        echo uk86_urlShop('goods', 'index', array('goods_id' => $goods['goods_id']));
        ?>
"><img src="<?php 
        echo uk86_thumb($goods, 60);
        ?>
" onMouseOver="toolTip('<img src=<?php 
        echo uk86_thumb($goods, '240');
        ?>
>')" onMouseOut="toolTip()"/></a></div>
        </dt>
        <dd><a target="_blank" href="<?php 
        echo uk86_urlShop('goods', 'index', array('goods_id' => $goods['goods_id']));
        ?>
"><?php 
        echo $goods['goods_name'];
        ?>
</a><span class="rmb-price"><i class="mr5"><?php 
        echo $goods['goods_price'];
        ?>
</i>&nbsp;*&nbsp;<?php 
        echo $goods['goods_num'];
        ?>
开发者ID:wangjiang988,项目名称:ukshop,代码行数:31,代码来源:store_deliver.detail.php


示例13: foreach

<!--顶部结束-->
<div id="content" class="p_bottom">
  <?php 
if (!empty($output['goods_list']) && is_array($output['goods_list'])) {
    ?>
	<div class="list_main_all">
		<div class="list_main_box">
		  <?php 
    foreach ($output['goods_list'] as $goods_info) {
        ?>
			<a href="index.php?act=wap_goods_info&op=index&goods_id=<?php 
        echo $goods_info['goods_id'];
        ?>
"><ul class="clearfixd">
				<li><img src="<?php 
        echo uk86_thumb($goods_info, 240);
        ?>
"></li>
				<li><h2><?php 
        echo $goods_info['goods_name'];
        ?>
</h2>
					<dl class="clearfixd">
					<dt><label><em>¥</em><?php 
        echo $goods_info['goods_promotion_price'];
        ?>
</label> </dt>  
					<dt><?php 
        if ($goods_info['goods_freight'] == 0) {
            echo '包邮';
        }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:31,代码来源:fcode_goods_list.php


示例14: get_store_goods_info_by_url

 private function get_store_goods_info_by_url($url)
 {
     $array = parse_url($url);
     $goods_id = 0;
     if (isset($array['query'])) {
         // 未开启伪静态
         parse_str($array['query'], $arr);
         $goods_id = $arr['goods_id'];
     } else {
         // 开启伪静态
         $data = explode('/', $array['path']);
         $path = end($data);
         $goods_id = preg_replace('/item-(\\d+)\\.html/i', '$1', $path);
     }
     if (intval($goods_id) > 0) {
         $model = Model('goods');
         $goods_info = $model->getGoodsInfoByID(intval($goods_id));
         if (!empty($goods_info)) {
             $result = array();
             $result['result'] = 'true';
             $result['id'] = intval($goods_id);
             $result['url'] = $url;
             $result['price'] = $goods_info['goods_price'];
             $result['storeid'] = $goods_info['store_id'];
             $result['title'] = $goods_info['goods_name'];
             $result['img'] = $goods_info['goods_image'];
             $result['image'] = uk86_thumb($goods_info, 240);
             $result['type'] = 'store';
             return $result;
         } else {
             return FALSE;
         }
     } else {
         return FALSE;
     }
 }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:36,代码来源:goods_info_by_url.model.php


示例15: uk86_urlShop

</a>
          <?php 
        }
        ?>
          </th>
      </tr>
      <tr>
        <td class="bdl"></td>
        <td class="w70"><div class="ncm-goods-uk86_thumb"><a href="<?php 
        echo uk86_urlShop('goods', 'index', array('goods_id' => $order_info['goods_id']));
        ?>
" target="_blank" onMouseOver="toolTip('<img src=<?php 
        echo uk86_thumb($order_info, 240);
        ?>
>')" onMouseOut="toolTip()"/><img src="<?php 
        echo uk86_thumb($order_info, 60);
        ?>
"/></a></div></td>
        <td class="tl"><dl class="goods-name">
            <dt><a href="<?php 
        echo uk86_urlShop('goods', 'index', array('goods_id' => $order_info['goods_id']));
        ?>
" target="_blank" title="<?php 
        echo $order_info['goods_name'];
        ?>
"><?php 
        echo $order_info['goods_name'];
        ?>
</a></dt>
            <dd>
            <?php 
开发者ID:wangjiang988,项目名称:ukshop,代码行数:31,代码来源:member_vr_order.index.php


示例16: foreach

		</ul>
	</div>
	<div class="spxq_span"><span>全部商品</span></div>
	<div class="spxq_list_all">
		<ul>
			<?php 
    foreach ($output['goods_list'] as $goods_val) {
        ?>
			<a href="<?php 
        echo uk86_urlShop('wap_goods_info', 'index', array('goods_id' => $goods_val['goods_id']));
        ?>
">
			<li>
			  <dl>
			    <dt><img src="<?php 
        echo uk86_thumb($goods_val, 240);
        ?>
"></dt>
			    <dt><span><?php 
        echo $goods_val['goods_name'];
        ?>
 </span></dt>
			    <dt><em>¥<?php 
        echo $goods_val['goods_price'];
        ?>
</em></dt>
			  </dl>
			</li>
			</a>
		  <?php 
    }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:31,代码来源:store_info.php


示例17: getGoodsDetail

 /**
  * 获取单条商品信息
  *
  * @param int $goods_id
  * @return array
  */
 public function getGoodsDetail($goods_id)
 {
     if ($goods_id <= 0) {
         return null;
     }
     $result1 = $this->getGoodsInfoAndPromotionById($goods_id);
     if (empty($result1)) {
         return null;
     }
     $result2 = $this->getGoodeCommonInfoByID($result1['goods_commonid']);
     $goods_info = array_merge($result2, $result1);
     $goods_info['spec_value'] = unserialize($goods_info['spec_value']);
     $goods_info['spec_name'] = unserialize($goods_info['spec_name']);
     $goods_info['goods_spec'] = unserialize($goods_info['goods_spec']);
     $goods_info['goods_attr'] = unserialize($goods_info['goods_attr']);
     // 手机商品描述
     if ($goods_info['mobile_body'] != '') {
         $mobile_body_array = unserialize($goods_info['mobile_body']);
         if (is_array($mobile_body_array)) {
             $mobile_body = '';
             foreach ($mobile_body_array as $val) {
                 switch ($val['type']) {
                     case 'text':
                         $mobile_body .= '<div>' . $val['value'] . '</div>';
                         break;
                     case 'image':
                         $mobile_body .= '<img src="' . $val['value'] . '">';
                         break;
                 }
             }
             $goods_info['mobile_body'] = $mobile_body;
         }
     }
     // 查询所有规格商品
     $spec_array = $this->getGoodsSpecListByCommonId($goods_info['goods_commonid']);
     $spec_list = array();
     // 各规格商品地址,js使用
     $spec_list_mobile = array();
     // 各规格商品地址,js使用
     $spec_image = array();
     // 各规格商品主图,规格颜色图片使用
     foreach ($spec_array as $key => $value) {
         $s_array = unserialize($value['goods_spec']);
         $tmp_array = array();
         if (!empty($s_array) && is_array($s_array)) {
             foreach ($s_array as $k => $v) {
                 $tmp_array[] = $k;
             }
         }
         sort($tmp_array);
         $spec_sign = implode('|', $tmp_array);
         $tpl_spec = array();
         $tpl_spec['sign'] = $spec_sign;
         $tpl_spec['url'] = uk86_urlShop('goods', 'index', array('goods_id' => $value['goods_id']));
         $spec_list[] = $tpl_spec;
         $spec_list_mobile[$spec_sign] = $value['goods_id'];
         $spec_image[$value['color_id']] = uk86_thumb($value, 60);
     }
     $spec_list = json_encode($spec_list);
     // 商品多图
     $image_more = $this->getGoodsImageByKey($goods_info['goods_commonid'] . '|' . $goods_info['color_id']);
     $goods_image = array();
     $goods_image_mobile = array();
     if (!empty($image_more)) {
         foreach ($image_more as $val) {
             $goods_image[] = "{ title : '', levelA : '" . uk86_cthumb($val['goods_image'], 60, $goods_info['store_id']) . "', levelB : '" . uk86_cthumb($val['goods_image'], 360, $goods_info['store_id']) . "', levelC : '" . uk86_cthumb($val['goods_image'], 360, $goods_info['store_id']) . "', levelD : '" . uk86_cthumb($val['goods_image'], 1280, $goods_info['store_id']) . "'}";
             $goods_image_mobile[] = uk86_cthumb($val['goods_image'], 360, $goods_info['store_id']);
         }
     } else {
         $goods_image[] = "{ title : '', levelA : '" . uk86_thumb($goods_info, 60) . "', levelB : '" . uk86_thumb($goods_info, 360) . "', levelC : '" . uk86_thumb($goods_info, 360) . "', levelD : '" . uk86_thumb($goods_info, 1280) . "'}";
         $goods_image_mobile[] = uk86_thumb($goods_info, 360);
     }
     //抢购
     if (!empty($goods_info['groupbuy_info'])) {
         $goods_info['promotion_type'] = 'groupbuy';
         $goods_info['title'] = '抢购';
         $goods_info['groupbuy_start_time'] = $goods_info['groupbuy_info']['start_time'];
         $goods_info['groupbuy_end_time'] = $goods_info['groupbuy_info']['end_time'];
         $goods_info['remark'] = $goods_info['groupbuy_info']['remark'];
         $goods_info['promotion_price'] = $goods_info['groupbuy_info']['groupbuy_price'];
         $goods_info['down_price'] = uk86_ncPriceFormat($goods_info['goods_price'] - $goods_info['groupbuy_info']['groupbuy_price']);
         $goods_info['upper_limit'] = $goods_info['groupbuy_info']['upper_limit'];
         unset($goods_info['groupbuy_info']);
     }
     //限时折扣
     if (!empty($goods_info['xianshi_info'])) {
         $goods_info['promotion_type'] = 'xianshi';
         $goods_info['title'] = $goods_info['xianshi_info']['xianshi_title'];
         $goods_info['remark'] = $goods_info['xianshi_info']['xianshi_title'];
         $goods_info['promotion_price'] = $goods_info['xianshi_info']['xianshi_price'];
         $goods_info['down_price'] = uk86_ncPriceFormat($goods_info['goods_price'] - $goods_info['xianshi_info']['xianshi_price']);
         $goods_info['lower_limit'] = $goods_info['xianshi_info']['lower_limit'];
         $goods_info['explain'] = $goods_info['xianshi_info']['xianshi_explain'];
         unset($goods_info['xianshi_info']);
//.........这里部分代码省略.........
开发者ID:wangjiang988,项目名称:ukshop,代码行数:101,代码来源:goods.model.php


示例18: foreach

    </thead>
    <tbody>
      <?php 
if (!empty($output['favorites_list']) && is_array($output['favorites_list'])) {
    ?>
      <tr>
        <td colspan="2" class="pic-model"><ul>
            <?php 
    foreach ($output['favorites_list'] as $key => $favorites) {
        ?>
            <li class="favorite-pic-list">
              <div class="favorite-goods-uk86_thumb"><a href="index.php?act=goods&goods_id=<?php 
        echo $favorites['goods']['goods_id'];
        ?>
" target="_blank"><img src="<?php 
        echo uk86_thumb($favorites['goods'], 240);
        ?>
" /></a></div>
              <div class="favorite-goods-info">
                <dl>
                  <dt>
                    <input type="checkbox" class="checkitem" value="<?php 
        echo $favorites['goods']['goods_id'];
        ?>
"/>
                    <a href="index.php?act=goods&goods_id=<?php 
        echo $favorites['goods']['goods_id'];
        ?>
" target="_blank"><?php 
        echo $favorites['goods']['goods_name'];
        ?>
开发者ID:wangjiang988,项目名称:ukshop,代码行数:31,代码来源:favorites_goods_picshowlist.php


示例19: defined

<?php

defined('InUk86') or exit('Access Invalid!');
if (!empty($output['goods_list']) && is_array($output['goods_list'])) {
    ?>
<ul class="goods-list" style="width:760px;">
<?php 
    foreach ($output['goods_list'] as $key => $val) {
        ?>
<li><div class="goods-thumb">
    <?php 
        $goods_url = uk86_urlShop('goods', 'index', array('goods_id' => $val['goods_id']));
        ?>
    <?php 
        $goods_image_url = uk86_thumb($val, 240);
        ?>
<img src="<?php 
        echo $goods_image_url;
        ?>
"/></div>
<dl class="goods-info"><dt><a href="<?php 
        echo $goods_url;
        ?>
" target="_blank"><?php 
        echo $val['goods_name'];
        ?>
</a>
</dt><dd>销售价:<?php 
        echo $lang['currency'] . $val['goods_price'];
        ?>
</dl>
开发者ID:wangjiang988,项目名称:ukshop,代码行数:31,代码来源:store_promotion_mansong.goods.php


示例20: uk86_thumb

        ?>
</em></dt><dt><?php 
        if ($fcode_info['free_state'] != 1) {
            ?>
<a href="index.php?act=wap_goods_info&op=index&goods_id=<?php 
            echo $fcode_info['goods']['goods_id'];
            ?>
"><img title="使用" src="<?php 
            echo SHOP_TEMPLATES_URL;
            ?>
/images/wap/order_right.png"></a><?php 
        }
        ?>
</dt></dl></li>
		<li class="code_ul_dt_2"><dl><dt><img src="<?php 
        echo uk86_thumb($fcode_info['goods'], 240);
        ?>
"></dt><dt><span><?php 
        echo $fcode_info['goods']['goods_name'];
        ?>
</span><p>获取方式:<em style="display:inline-block; width:2.5rem;"><?php 
        echo $fcode_info['get_type'];
        ?>
</em><?php 
        if ($fcode_info['free_state'] == 1) {
            ?>
<em class="code_em_name" style="color:#AAA;">已使用</em><?php 
        } else {
            ?>
<em class="code_em_name">未使用</em><?php 
        }
开发者ID:wangjiang988,项目名称:ukshop,代码行数:31,代码来源:member_fcode.php



注:本文中的uk86_thumb函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP uk86_urlAdmin函数代码示例发布时间:2022-05-23
下一篇:
PHP uk86_template函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap