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


PHP gthumb函数代码示例

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


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

示例1: gthumb

            <td>团购时间:<?php 
        echo @date('Y-m-d', $v['start_time']) . '~' . @date('Y-m-d', $v['end_time']);
        ?>
</td>
            <td><?php 
        echo $v['groupbuy_state_text'];
        ?>
</td>
          </tr>
          <tr nc_type="ginfo" class="hover ginfo" style="display:none;">
            <td colspan="3">
            	<div class="size-106x106 left img"><span class="thumb size-106x106"><i></i><a target="_blank" href="<?php 
        echo SHOP_SITE_URL . "/index.php?act=show_groupbuy&op=groupbuy_detail&group_id=" . $v['groupbuy_id'];
        ?>
"><img src="<?php 
        echo gthumb($v['groupbuy_image'], 'small');
        ?>
" style=" max-width: 106px; max-height: 106px;"/></a></span></div>
            	<div class="left">
                	<h3><?php 
        echo $v['goods_name'];
        ?>
</h3>
                	<div class="close_float">
                		<span class="infoitem left">原价:<em class="red_common"><?php 
        echo $v['goods_price'] . $lang['currency_zh'];
        ?>
</em></span>
                		<span class="infoitem left">折扣:<em class="red_common"><?php 
        echo $v['groupbuy_rebate'];
        ?>
开发者ID:norain2050,项目名称:xingkang,代码行数:31,代码来源:stat.marketing.grouplist.php

示例2: foreach

      <?php 
    foreach ($output['groupbuy_list'] as $groupbuy) {
        ?>
      <li class="<?php 
        echo $output['current'];
        ?>
">
        <div class="ncg-list-content">
        <a title="<?php 
        echo $groupbuy['groupbuy_name'];
        ?>
" href="<?php 
        echo $groupbuy['groupbuy_url'];
        ?>
" class="pic-thumb" target="_blank"><img src="<?php 
        echo gthumb($groupbuy['groupbuy_image'], 'mid');
        ?>
" alt=""></a>
        <h3 class="title"><a title="<?php 
        echo $groupbuy['groupbuy_name'];
        ?>
" href="<?php 
        echo $groupbuy['groupbuy_url'];
        ?>
" target="_blank"><?php 
        echo $groupbuy['groupbuy_name'];
        ?>
</a></h3>
        <?php 
        list($integer_part, $decimal_part) = explode('.', $groupbuy['groupbuy_price']);
        ?>
开发者ID:noikiy,项目名称:haifenbao,代码行数:31,代码来源:groupbuy_list.php

示例3: gthumb

            $hot_groupbuy_count++;
        }
        ?>
 >
            <dt class="name"><a href="<?php 
        echo $hot_groupbuy['groupbuy_url'];
        ?>
" target="_blank"><?php 
        echo $hot_groupbuy['groupbuy_name'];
        ?>
</a></dt>
            <dd class="pic-thumb"><a href="<?php 
        echo $hot_groupbuy['groupbuy_url'];
        ?>
" target="_blank"><img src="<?php 
        echo gthumb($hot_groupbuy['groupbuy_image1'], 'max');
        ?>
"></a></dd>
            <dd class="item"><a href="<?php 
        echo $hot_groupbuy['groupbuy_url'];
        ?>
" target="_blank"><?php 
        echo $lang['to_see'];
        ?>
</a> <span class="price"><?php 
        echo $lang['currency'] . $hot_groupbuy['groupbuy_price'];
        ?>
</span> <span class="buy"><em><?php 
        echo $hot_groupbuy['virtual_quantity'] + $hot_groupbuy['buy_quantity'];
        ?>
</em><?php 
开发者ID:Maplecms,项目名称:shopnc-yhmall,代码行数:31,代码来源:groupbuy_detail.php

示例4: _image_upload

 private function _image_upload($file)
 {
     $data = array();
     $data['result'] = true;
     if (!empty($_FILES[$file]['name'])) {
         $upload = new UploadFile();
         $uploaddir = ATTACH_PATH . DS . 'groupbuy' . DS . $_SESSION['store_id'] . DS;
         $upload->set('default_dir', $uploaddir);
         $upload->set('thumb_width', '480,296,168');
         $upload->set('thumb_height', '480,296,168');
         $upload->set('thumb_ext', '_max,_mid,_small');
         $upload->set('fprefix', $_SESSION['store_id']);
         $result = $upload->upfile($file);
         if ($result) {
             $data['file_name'] = $upload->file_name;
             $data['origin_file_name'] = $_FILES[$file]['name'];
             $data['file_url'] = gthumb($upload->file_name, 'mid');
         } else {
             $data['result'] = false;
             $data['message'] = $upload->error;
         }
     } else {
         $data['result'] = false;
     }
     echo json_encode($data);
     die;
 }
开发者ID:noikiy,项目名称:shopnc-minion,代码行数:27,代码来源:store_groupbuy.php

示例5: ncUrl

            <hr/></th>
          <th class="w120"><?php 
echo $lang['cart_index_sum'] . '(' . $lang['currency_zh'] . ')';
?>

            <hr/></th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td class="w70"><div class="cart-goods-pic"><a href="<?php 
echo ncUrl(array('act' => 'show_groupbuy', 'op' => 'groupbuy_detail', 'group_id' => $output['groupbuy_info']['group_id'], 'id' => $output['groupbuy_info']['store_id']), 'groupbuy');
?>
" target="_blank"><span class="thumb size60"><i></i><img src="<?php 
echo gthumb($output['groupbuy_info']['group_pic'], 'small');
?>
" alt="<?php 
echo $output['groupbuy_info']['goods_name'];
?>
" onload="javascript:DrawImage(this,60,60);"/></span></a></div></td>
          <td class="tl vt"><dl class="cart-goods-info">
              <dt class="cart-goods-info-name"><a target="_blank" href="<?php 
echo ncUrl(array('act' => 'show_groupbuy', 'op' => 'groupbuy_detail', 'group_id' => $output['groupbuy_info']['group_id'], 'id' => $output['groupbuy_info']['store_id']), 'groupbuy');
?>
"><?php 
echo $output['groupbuy_info']['goods_name'];
?>
</a>
              <dt>
                <?php 
开发者ID:noikiy,项目名称:ecmall,代码行数:30,代码来源:groupbuy_buy.php

示例6: spellingStyle

 /**
  * 拼写个类型样式
  * @param string $type 动态类型
  * @param array  $data 相关数据
  */
 public function spellingStyle($type, $data)
 {
     //1'relay',2'normal',3'new',4'coupon',5'xianshi',6'mansong',7'bundling',8'groupbuy',9'recommend',10'hotsell'
     $rs = '';
     switch ($type) {
         case '2':
             break;
         case '3':
             $rs = "<div class=\"fd-media\">\n\t\t\t\t\t<div class=\"goodsimg\"><a target=\"_blank\" href=\"" . urlShop('goods', 'index', array('goods_id' => $data['goods_id'])) . "\"><img src=\"" . cthumb($data['goods_image'], 240, $data['store_id']) . "\" onload=\"javascript:DrawImage(this,120,120);\" alt=\"" . $data['goods_name'] . "\"></a></div>\n    \t\t\t\t\t<div class=\"goodsinfo\">\n    \t\t\t\t\t<dl>\n    \t\t\t\t\t   <dt><i class=\"desc-type desc-type-new\">" . L('store_sns_new_selease') . "</i><a target=\"_blank\" href=\"" . urlShop('goods', 'index', array('goods_id' => $data['goods_id'])) . "\">" . $data['goods_name'] . "</a></dt>\n\t\t\t\t\t\t\t<dd>" . L('sns_sharegoods_price') . L('nc_colon') . L('currency') . ncPriceFormat($data['goods_price']) . "</dd>\n\t\t\t\t\t\t\t<dd>" . ($data['goods_transfee_charge'] == '1' ? L('store_sns_free_shipping') : L('sns_sharegoods_freight') . L('nc_colon') . L('currency') . ncPriceFormat($data['goods_freight'])) . "</dd>\n\t                  \t\t<dd nctype=\"collectbtn_" . $data['goods_id'] . "\"><a href=\"javascript:void(0);\" onclick=\"javascript:collect_goods('" . $data['goods_id'] . "','succ','collectbtn_" . $data['goods_id'] . "');\">" . L('sns_sharegoods_collect') . "</a></dd>\n\t                  \t</dl>\n\t                  </div>\n\t             </div>";
             break;
         case '4':
             $rs = "<div class=\"fd-media\">\n\t\t\t\t\t<div class=\"goodsimg\"><a target=\"_blank\" href=\"" . urlShop('coupon_store', 'detail', array('coupon_id' => $data['coupon_id'], 'id' => $data['store_id'])) . "\"><img src=\"" . $data['coupon_pic'] . "\" onerror=\"this.src='" . SHOP_TEMPLATES_URL . "/images/default_coupon_image.png'\" onload=\"javascript:DrawImage(this,120,120);\" alt=\"" . $data['coupon_title'] . "\"></a></div>\n    \t\t\t\t\t<div class=\"goodsinfo\">\n    \t\t\t\t\t<dl>\n        \t\t\t\t\t<dt><i class=\"desc-type desc-type-coupon\">" . L('store_sns_coupon') . "</i><a target=\"_blank\" href=\"" . urlShop('coupon_store', 'detail', array('coupon_id' => $data['coupon_id'], 'id' => $data['store_id'])) . "\">" . $data['coupon_title'] . "</a></dt>\n        \t\t\t\t\t<dd>" . L('store_sns_coupon_price') . L('nc_colon') . L('currency') . ncPriceFormat($data['coupon_price']) . "</dd>\n        \t\t\t\t\t<dd>" . L('store_sns_start-stop_time') . L('nc_colon') . date('Y-m-d H:i', $data['coupon_start_date']) . "~" . date('Y-m-d H:i', $data['coupon_end_date']) . "</dd>\n\t                  \t</dl>\n\t                  </div>\n\t\t\t        </div>";
             break;
         case '5':
             $rs = "<div class=\"fd-media\">\n\t\t\t\t\t<div class=\"goodsimg\"><a target=\"_blank\" href=\"" . urlShop('goods', 'index', array('goods_id' => $data['goods_id'])) . "\"><img src=\"" . cthumb($data['goods_image'], 240, $data['store_id']) . "\" onload=\"javascript:DrawImage(this,120,120);\" alt=\"" . $data['goods_name'] . "\"></a></div>\n    \t\t\t\t\t<div class=\"goodsinfo\">\n    \t\t\t\t\t<dl>\n        \t\t\t\t\t<dt><i class=\"desc-type desc-type-xianshi\">" . L('store_sns_xianshi') . "</i><a target=\"_blank\" href=\"" . urlShop('goods', 'index', array('goods_id' => $data['goods_id'])) . "\">" . $data['goods_name'] . "</a></dt>\n    \t\t\t\t\t\t<dd>" . L('sns_sharegoods_price') . L('nc_colon') . L('currency') . ncPriceFormat($data['goods_price']) . "</dd>\n    \t\t\t\t\t\t<dd>" . L('store_sns_formerprice') . L('nc_colon') . L('currency') . ncPriceFormat($data['xianshi_price']) . "</dd>\n    \t\t\t\t        <dd nctype=\"collectbtn_" . $data['goods_id'] . "\"><a href=\"javascript:void(0);\" onclick=\"javascript:collect_goods('" . $data['goods_id'] . "','succ','collectbtn_" . $data['goods_id'] . "');\">" . L('sns_sharegoods_collect') . "</a></dd>\n\t                  \t</dl>\n\t                  </div>\n    \t             </div>";
             break;
         case '6':
             $rs = "<div class=\"fd-media\">\n\t\t\t\t\t<div class=\"goodsimg\"><a target=\"_blank\" href=\"" . urlShop('show_store', 'index', array('store_id' => $data['store_id'])) . "\"><img src=\"" . SHOP_TEMPLATES_URL . "/images/mjs-pic.gif\" onload=\"javascript:DrawImage(this,120,120);\" alt=\"" . $data['ansong_name'] . "\"></a></div>\n    \t\t\t\t\t<div class=\"goodsinfo\">\n    \t\t\t\t\t<dl>\n        \t\t\t\t\t<dt><i class=\"desc-type desc-type-mansong\">" . L('store_sns_mansong') . "</i><a target=\"_blank\" href=\"" . urlShop('show_store', 'index', array('store_id' => $data['store_id'])) . "\">" . $data['mansong_name'] . "</a></dt>\n    \t\t\t\t\t\t<dd>" . L('store_sns_start-stop_time') . L('nc_colon') . date('Y-m-d H:i', $data['start_time']) . "~" . date('Y-m-d H:i', $data['end_time']) . "</dd>\n\t                  \t</dl>\n\t\t\t\t        </div>\n    \t             </div>";
             break;
         case '7':
             $rs = "<div class=\"fd-media\">\n\t\t\t\t\t<div class=\"goodsimg\"><a target=\"_blank\" href=\"" . urlShop('goods', 'index', array('goods_id' => $data['goods_id'])) . "\"><img src=\"" . cthumb($data['bl_img'], 240, $data['store_id']) . "\" onload=\"javascript:DrawImage(this,120,120);\" alt=\"" . $data['bl_name'] . "\"></a></div>\n    \t\t\t\t\t<div class=\"goodsinfo\">\n    \t\t\t\t\t<dl>\n        \t\t\t\t\t<dt><i class=\"desc-type desc-type-bundling\">" . L('store_sns_bundling') . "</i><a target=\"_blank\" href=\"" . urlShop('goods', 'index', array('goods_id' => $data['goods_id'])) . "\">" . $data['bl_name'] . "</a></dt>\n    \t\t\t\t\t\t<dd>" . L('store_sns_bundling_price') . L('nc_colon') . L('currency') . ncPriceFormat($data['bl_discount_price']) . "</dd>\n    \t\t\t            <dd>" . ($data['bl_freight_choose'] == 1 ? L('store_sns_free_shipping') : L('sns_sharegoods_freight') . L('nc_colon') . L('currency') . ncPriceFormat($data['bl_freight'])) . "</dd>\n\t\t\t\t\t\t</dl>\n                    </div>\n                    </div>";
             break;
         case '8':
             $rs = "<div class=\"fd-media\">\n\t\t\t\t\t<div class=\"goodsimg\"><a target=\"_blank\" href=\"" . urlShop('goods', 'index', array('goods_id' => $data['goods_id'])) . "\"><img src=\"" . gthumb($data['group_pic'], 'small', $data['store_id']) . "\" onload=\"javascript:DrawImage(this,120,120);\" alt=\"" . $data['group_name'] . "\"></a></div>\n    \t\t\t\t\t<div class=\"goodsinfo\">\n    \t\t\t\t\t<dl>\n        \t\t\t\t\t<dt><i class=\"desc-type desc-type-groupbuy\">" . L('store_sns_gronpbuy') . "</i><a target=\"_blank\" href=\"" . urlShop('goods', 'index', array('goods_id' => $data['goods_id'])) . "\">" . $data['group_name'] . "</a></dt>\n        \t\t\t\t\t<dd>" . L('store_sns_goodsprice') . L('nc_colon') . L('currency') . ncPriceFormat($data['goods_price']) . "</dd>\n    \t\t\t\t        <dd>" . L('store_sns_groupprice') . L('nc_colon') . L('currency') . ncPriceFormat($data['groupbuy_price']) . "</dd>\n    \t\t                <dd>" . L('store_sns_start-stop_time') . L('nc_colon') . date('Y-m-d H:i', $data['start_time']) . "~" . date('Y-m-d H:i', $data['end_time']) . "</dd>\n\t\t                </dl>\n\t\t\t\t\t</div>\n\t\t\t\t</div>";
             break;
         case '9':
             $rs = "<div class=\"fd-media\">\n    \t\t\t\t<div class=\"goodsimg\"><a target=\"_blank\" href=\"" . urlShop('goods', 'index', array('goods_id' => $data['goods_id'])) . "\"><img src=\"" . thumb($data, 240) . "\" onload=\"javascript:DrawImage(this,120,120);\" alt=\"" . $data['goods_name'] . "\"></a></div>\n    \t\t\t\t<div class=\"goodsinfo\">\n    \t\t\t\t<dl>\n    \t\t\t\t\t<dt><i class=\"desc-type desc-type-recommend\">" . L('store_sns_store_recommend') . "</i><a target=\"_blank\" href=\"" . urlShop('goods', 'index', array('goods_id' => $data['goods_id'])) . "\">" . $data['goods_name'] . "</a></dt>\n\t\t\t\t        <dd>" . L('sns_sharegoods_price') . L('nc_colon') . L('currency') . ncPriceFormat($data['goods_price']) . "</dd>\n\t\t                <dd>" . L('sns_sharegoods_freight') . L('nc_colon') . L('currency') . ncPriceFormat($data['goods_freight']) . "</dd>\n\t\t                <dd nctype=\"collectbtn_" . $data['goods_id'] . "\"><a href=\"javascript:void(0);\" onclick=\"javascript:collect_goods('" . $data['goods_id'] . "','succ','collectbtn_" . $data['goods_id'] . "');\">" . L('sns_sharegoods_collect') . "</a></dd>\n    \t\t\t\t</dl>\n                    </div>\n\t             </div>";
             break;
         case '10':
             $rs = "<div class=\"fd-media\">\n                    <div class=\"goodsimg\"><a target=\"_blank\" href=\"" . urlShop('goods', 'index', array('goods_id' => $data['goods_id'])) . "\"><img src=\"" . thumb($data, 240) . "\" onload=\"javascript:DrawImage(this,120,120);\" alt=\"" . $data['goods_name'] . "\"></a></div>\n\t\t\t\t\t<div class=\"goodsinfo\">\n\t\t\t\t\t\t<dl>\n\t\t\t\t\t\t\t<dt><i class=\"desc-type desc-type-hotsell\">" . L('store_sns_hotsell') . "</i><a target=\"_blank\" href=\"" . urlShop('goods', 'index', array('goods_id' => $data['goods_id'])) . "\">" . $data['goods_name'] . "</a></dt>\n\t\t\t\t\t        <dd>" . L('sns_sharegoods_price') . L('nc_colon') . L('currency') . ncPriceFormat($data['goods_price']) . "</dd>\n\t\t\t\t\t\t\t<dd>" . L('sns_sharegoods_freight') . L('nc_colon') . L('currency') . ncPriceFormat($data['goods_freight']) . "</dd>\n\t                  \t\t<dd nctype=\"collectbtn_" . $data['goods_id'] . "\"><a href=\"javascript:void(0);\" onclick=\"javascript:collect_goods('" . $data['goods_id'] . "','succ','collectbtn_" . $data['goods_id'] . "');\">" . L('sns_sharegoods_collect') . "</a></dd>\n\t                  \t</dl>\n\t                  </div>\n    \t             </div>";
             break;
     }
     return $rs;
 }
开发者ID:xuxuecheng,项目名称:shopnc,代码行数:39,代码来源:store_sns_tracelog.model.php

示例7: ncUrl

        ?>
</a></div>
                    <div class="box">
                        <div class="price"><span class="l"><?php 
        echo $lang['currency'] . $hot_groupbuy['groupbuy_price'];
        ?>
</span><span class="r"><?php 
        echo $lang['currency'] . $hot_groupbuy['goods_price'];
        ?>
</span></div>
                        <div class="mask"></div>
                        <div class="pic"><span class="thumb size168x123"><i></i><a href="<?php 
        echo ncUrl(array('act' => 'show_groupbuy', 'op' => 'groupbuy_detail', 'group_id' => $hot_groupbuy['group_id'], 'id' => $hot_groupbuy['store_id']), 'groupbuy');
        ?>
" target="_blank"><img src="<?php 
        echo gthumb($hot_groupbuy['group_pic'], 'small');
        ?>
" alt="" onload="javascript:DrawImage(this,168,123);"></a></span></div>
                    </div>
                    <div class="info"><span><?php 
        echo $lang['text_buy'];
        ?>
<em>
                            <?php 
        if (!empty($output['groupbuy_message']['hide_virtual_quantity'])) {
            echo $hot_groupbuy['def_quantity'];
        } else {
            echo $hot_groupbuy['virtual_quantity'] + $hot_groupbuy['def_quantity'];
        }
        ?>
开发者ID:noikiy,项目名称:ecmall,代码行数:30,代码来源:groupbuy_detail.php

示例8: foreach

        ?>
				<?php 
        foreach ($output['group_list'] as $val) {
            ?>
					<img class="imzhiyou" src="<?php 
            echo SHOP_TEMPLATES_URL;
            ?>
/images/zhiyou.png" alt="Sale">
					<a href="<?php 
            echo urlShop('show_groupbuy', 'groupbuy_detail', array('group_id' => $val['groupbuy_id']));
            ?>
" class="qg_good" title="<?php 
            echo $val['goods_name'];
            ?>
" target="_blank"><img src="<?php 
            echo gthumb($val['groupbuy_image1'], 'small');
            ?>
"></a>
					<div class="qg_intro">
						<h3 class="qg_title">
							<a href="<?php 
            echo urlShop('show_groupbuy', 'groupbuy_detail', array('group_id' => $val['groupbuy_id']));
            ?>
" target="_blank">
								<span class="title"><?php 
            echo mb_substr($val['goods_name'], 0, 16, 'UTF-8');
            ?>
</span>
								<span class="desc"><?php 
            echo mb_substr($val['groupbuy_intro'], 0, 16, 'UTF-8');
            ?>
开发者ID:noikiy,项目名称:shopnc-minion,代码行数:31,代码来源:index.au.php

示例9: urlShop

          <div class="goto"> <a href="<?php echo urlShop('show_store', 'index', array('store_id' => $output['groupbuy_info']['store_id']));?>" >进入商家店铺</a></div>
        </div>
      </div>
    </div>
<?php } ?>

    <div class="ncg-module-sidebar">
      <div class="title"><?php echo $lang['current_hot'];?></div>
      <div class="content">
        <div class="ncg-group-command">
          <?php $hot_groupbuy_count = 1;?>
          <?php if(is_array($output['commended_groupbuy_list'])) { ?>
          <?php foreach($output['commended_groupbuy_list'] as $hot_groupbuy) { ?>
          <dl <?php if($hot_groupbuy_count === 1) { echo "style=' border:none'";$hot_groupbuy_count++; }?> >
            <dt class="name"><a href="<?php echo $hot_groupbuy['groupbuy_url'];?>" target="_blank"><?php echo $hot_groupbuy['groupbuy_name'];?></a></dt>
            <dd class="pic-thumb"><a href="<?php echo $hot_groupbuy['groupbuy_url'];?>" target="_blank"><img src="<?php echo gthumb($hot_groupbuy['groupbuy_image1'],'max');?>"></a></dd>
            <dd class="item"><a href="<?php echo $hot_groupbuy['groupbuy_url'];?>" target="_blank"><?php echo $lang['to_see'];?></a> <span class="price"><?php echo $lang['currency'].$hot_groupbuy['groupbuy_price'];?></span> <span class="buy"><em><?php echo $hot_groupbuy['virtual_quantity']+$hot_groupbuy['buy_quantity'];?></em><?php echo $lang['text_piece'].$lang['text_buy'];?></span> </dd>
          </dl>
          <?php } ?>
          <?php } ?>
        </div>
      </div>
    </div>
  </div>
  <div class="clear"></div>
</div>
<script src="<?php echo RESOURCE_SITE_URL;?>/js/jquery.ajaxContent.pack.js" type="text/javascript"></script>
<script src="<?php echo RESOURCE_SITE_URL;?>/js/waypoints.js"></script>
<script type="text/javascript" src="<?php echo RESOURCE_SITE_URL;?>/js/jquery.raty/jquery.raty.min.js"></script>
<script type="text/javascript" src="<?php echo RESOURCE_SITE_URL;?>/js/jquery.nyroModal/custom.min.js" charset="utf-8"></script>
<link href="<?php echo RESOURCE_SITE_URL;?>/js/jquery.nyroModal/styles/nyroModal.css" rel="stylesheet" type="text/css" id="cssfile2" />
开发者ID:noikiy,项目名称:ejia,代码行数:31,代码来源:groupbuy_detail.php

示例10: if

<div class="home-focus-layout"> <?php echo $output['web_html']['index_pic'];?>
  <div class="right-sidebar">
    <div class="policy">
      <ul>
        <li class="b1">七天包退</li>
        <li class="b2">正品保障</li>
        <li class="b3">闪电发货</li>
      </ul>
    </div>
    <?php if(!empty($output['group_list']) && is_array($output['group_list'])) { ?>
    <div class="groupbuy">
      <div class="title"><i>抢</i>近期抢购</div>
      <ul>
        <?php foreach($output['group_list'] as $val) { ?>
        <li>
          <dl style=" background-image:url(<?php echo gthumb($val['groupbuy_image1'], 'small');?>)">
            <dt><?php echo $val['groupbuy_name']; ?></dt>
            <dd class="price"><span class="groupbuy-price"><?php echo ncPriceFormatForList($val['groupbuy_price']); ?></span><span class="buy-button"><a href="<?php echo urlShop('show_groupbuy','groupbuy_detail',array('group_id'=> $val['groupbuy_id']));?>">立即抢</a></span></dd>
            <dd class="time"><span class="sell">已售<em><?php echo $val['buy_quantity'];?></em></span> <span class="time-remain" count_down="<?php echo $val['end_time']-TIMESTAMP; ?>"> <em time_id="d">0</em><?php echo $lang['text_tian'];?><em time_id="h">0</em><?php echo $lang['text_hour'];?> <em time_id="m">0</em><?php echo $lang['text_minute'];?><em time_id="s">0</em><?php echo $lang['text_second'];?> </span></dd>
          </dl>
        </li>
        <?php } ?>
      </ul>
    </div>
    <?php } ?>
    <div class="proclamation">
      <ul class="tabs-nav">
        <li class="tabs-selected">
          <h3>招商入驻</h3>
        </li>
        <li>
开发者ID:noikiy,项目名称:ejia,代码行数:31,代码来源:index111.php

示例11: urlShop

        </li>
        <?php } ?>
      </ul>
      <?php } else { ?>
      <div class="norecommend">暂无线上抢购推荐</div>
      <?php } ?>
    </div>
    <div class="group-list mt30">
      <div class="ncg-recommend-title">
        <h3>虚拟抢购推荐</h3>
        <a href="<?php echo urlShop('show_groupbuy', 'vr_groupbuy_list'); ?>" class="more">查看更多</a></div>
      <?php if (!empty($output['vr_groupbuy'])) { ?>
      <ul>
        <?php foreach($output['vr_groupbuy'] as $groupbuy) { ?>
        <li class="<?php echo $output['current'];?>">
          <div class="ncg-list-content"> <a title="<?php echo $groupbuy['groupbuy_name'];?>" href="<?php echo $groupbuy['groupbuy_url'];?>" class="pic-thumb" target="_blank"><img src="<?php echo gthumb($groupbuy['groupbuy_image'],'mid');?>" alt=""></a>
            <h3 class="title"><a title="<?php echo $groupbuy['groupbuy_name'];?>" href="<?php echo $groupbuy['groupbuy_url'];?>" target="_blank"><?php echo $groupbuy['groupbuy_name'];?></a></h3>
            <?php list($integer_part, $decimal_part) = explode('.', $groupbuy['groupbuy_price']);?>
            <div class="item-prices"> <span class="price"><i><?php echo $lang['currency'];?></i><?php echo $integer_part;?><em>.<?php echo $decimal_part;?></em></span>
              <div class="dock"><span class="limit-num"><?php echo $groupbuy['groupbuy_rebate'];?>&nbsp;<?php echo $lang['text_zhe'];?></span> <del class="orig-price"><?php echo $lang['currency'].$groupbuy['goods_price'];?></del></div>
              <span class="sold-num"><em><?php echo $groupbuy['buy_quantity']+$groupbuy['virtual_quantity'];?></em><?php echo $lang['text_piece'];?><?php echo $lang['text_buy'];?></span><a href="<?php echo $groupbuy['groupbuy_url'];?>" target="_blank" class="buy-button">我要抢</a></div>
          </div>
        </li>
        <?php } ?>
      </ul>
      <?php } else{ ?>
      <div class="norecommend">暂无虚拟抢购推荐</div>
      <?php } ?>
    </div>
  </div>
</div>
开发者ID:noikiy,项目名称:ejia,代码行数:31,代码来源:groupbuy.index.php

示例12: ncUrl

          <dt class="name"><a href="<?php 
        echo ncUrl(array('act' => 'show_groupbuy', 'op' => 'groupbuy_detail', 'group_id' => $output['group_list']['group_id'], 'id' => $output['group_list']['store_id']), 'groupbuy');
        ?>
" title="<?php 
        echo $output['group_list']['group_name'];
        ?>
" target="_blank"><?php 
        echo $output['group_list']['group_name'];
        ?>
</a></dt>
          <dd class="fixed">
            <div class="picture"><a href="<?php 
        echo ncUrl(array('act' => 'show_groupbuy', 'op' => 'groupbuy_detail', 'group_id' => $output['group_list']['group_id'], 'id' => $output['group_list']['store_id']), 'groupbuy');
        ?>
" target="_blank"><img src="<?php 
        echo gthumb($output['group_list']['group_pic'], 'small');
        ?>
" onload="javascript:DrawImage(this,160,160);" alt="<?php 
        echo $output['group_list']['group_name'];
        ?>
"></a></div>
          </dd>
          <dd class="priceLabel"><?php 
        echo $lang['currency'];
        echo $output['group_list']['groupbuy_price'];
        ?>
</dd>
          <dd class="discount">
            <p><?php 
        echo $lang['index_index_groupdiscount'];
        ?>
开发者ID:dw250100785,项目名称:shopnc,代码行数:31,代码来源:index.php

示例13: ncUrl

" href="<?php 
            echo ncUrl(array('act' => 'show_groupbuy', 'op' => 'groupbuy_detail', 'group_id' => $groupbuy['group_id'], 'id' => $groupbuy['store_id']), 'groupbuy');
            ?>
" target="_blank"><?php 
            echo $groupbuy['group_name'];
            ?>
</a></h2>
        <div class="box">
          <div class="pic size296x216"><span class="thumb size296x216"><i></i><a title="<?php 
            echo $groupbuy['group_name'];
            ?>
" href="<?php 
            echo ncUrl(array('act' => 'show_groupbuy', 'op' => 'groupbuy_detail', 'group_id' => $groupbuy['group_id'], 'id' => $groupbuy['store_id']), 'groupbuy');
            ?>
" target="_blank"><img src="<?php 
            echo gthumb($groupbuy['group_pic'], 'mid');
            ?>
" alt="" onload="javascript:DrawImage(this,296,216);"></a></span></div>
          <div class="intro"><span class="l"><?php 
            echo $lang['text_goods_price'];
            ?>
:&nbsp;<?php 
            echo $lang['currency'] . $groupbuy['goods_price'];
            ?>
</span><span class="r"><?php 
            echo $lang['text_discount'];
            ?>
:&nbsp;<?php 
            echo $groupbuy['rebate'];
            ?>
&nbsp;<?php 
开发者ID:dw250100785,项目名称:shopnc,代码行数:31,代码来源:groupbuy_list.php


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