当前位置: 首页>>代码示例>>PHP>>正文


PHP uk86_thumb函数代码示例

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


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


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