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


PHP ncPriceFormatForList函数代码示例

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


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

示例1: urlShop

                echo urlShop('goods', 'index', array('goods_id' => $v['goods_id']));
                ?>
">
                                          	<img src="<?php 
                echo strpos($v['goods_pic'], 'http') === 0 ? $v['goods_pic'] : UPLOAD_SITE_URL . "/" . $v['goods_pic'];
                ?>
" alt="<?php 
                echo $v['goods_name'];
                ?>
" />
                                          	</a></dd>
                                          <dd class="goods-price"><?php 
                echo $lang['index_index_store_goods_price'] . $lang['nc_colon'];
                ?>
<em><?php 
                echo ncPriceFormatForList($v['goods_price']);
                ?>
</em></dd>
                                        </dl>
                                      </li>
                                    <?php 
            }
            ?>
                                    </ul>
                                  </div>
                          <?php 
        }
        ?>
                  <?php 
    }
    ?>
开发者ID:uwitec,项目名称:xbshop,代码行数:31,代码来源:sale_goods.php

示例2: strpos

                ?>
">
                                          	<img src="<?php 
                echo strpos($v['goods_pic'], 'http') === 0 ? $v['goods_pic'] : UPLOAD_SITE_URL . "/" . $v['goods_pic'];
                ?>
" alt="<?php 
                echo $v['goods_name'];
                ?>
" />
                                          	</a></dd>
                                          <dd class="goods-price"><em><?php 
                echo ncPriceFormatForList($v['goods_price']);
                ?>
</em>
                                            <span class="original"><?php 
                echo ncPriceFormatForList($v['market_price']);
                ?>
</span></dd>
                                        </dl>
                                      </li>
                                    <?php 
            }
            ?>
                                    </ul>
                                  </div>
                          <?php 
        } elseif (!empty($val['pic_list']) && is_array($val['pic_list'])) {
            ?>
                                <div class="tabs-panel middle-banner-style01 fade-img <?php 
            echo $i == 1 ? '' : 'tabs-hide';
            ?>
开发者ID:dotku,项目名称:shopnc_cnnewyork,代码行数:31,代码来源:default.php

示例3: ncPriceFormatForList

    echo $goods_info['image_url_240'];
    ?>
" /></a> </dt>
      <dd class="goods-name"><span><strong><?php 
    echo $goods_info['xianshi_title'];
    ?>
</strong></span> <a target="_blank" href="<?php 
    echo $goods_info['goods_url'];
    ?>
"><?php 
    echo $goods_info['goods_name'];
    ?>
</a></dd>
    </dl>
    <div class="goods-price"><span class="sale">促销价<em><?php 
    echo ncPriceFormatForList($goods_info['xianshi_price']);
    ?>
</em>元</span><span class="depreciate"><i class="icon-long-arrow-down"></i>直降:¥<?php 
    echo $goods_info['down_price'];
    ?>
</span></div>
    <div class="goods-buy"><a href="javascript:void(0);" nctype="add_cart" data-param="{goods_id:<?php 
    echo $goods_info['goods_id'];
    ?>
}" class="btn">立即抢购</a> <span class="raty" data-score="<?php 
    echo $goods_info['evaluation_good_star'];
    ?>
" style="width: 100px;"></span> <span class="mt5"><a href="<?php 
    echo urlShop('show_store', 'index', array('store_id' => $goods_info['store_id']));
    ?>
"><?php 
开发者ID:dotku,项目名称:shopnc_cnnewyork,代码行数:31,代码来源:promotion.item.php

示例4: if

		<?php if (!empty($output['code_recommend_list']['code_info']) && is_array($output['code_recommend_list']['code_info'])) { $i = 0; ?>
		<?php foreach ($output['code_recommend_list']['code_info'] as $key => $val) { $i++; ?>
		<?php if(!empty($val['goods_list']) && is_array($val['goods_list'])) { ?>
		<div class="tabs-panel middle-goods-list <?php echo $i==1 ? '':'tabs-hide';?>">
			<ul>
			<?php foreach($val['goods_list'] as $k => $v){ ?>
				<li>
					<dl>
						<dt class="goods-name"><a target="_blank" href="<?php echo urlShop('goods','index',array('goods_id'=> $v['goods_id'])); ?>" title="<?php echo $v['goods_name']; ?>">
							<?php echo $v['goods_name']; ?></a></dt>
						<dd class="goods-thumb">
							<a target="_blank" href="<?php echo urlShop('goods','index',array('goods_id'=> $v['goods_id'])); ?>">
							<img src="<?php echo strpos($v['goods_pic'],'http')===0 ? $v['goods_pic']:UPLOAD_SITE_URL."/".$v['goods_pic'];?>" alt="<?php echo $v['goods_name']; ?>" />
							</a></dd>
						<dd class="goods-price"><em><?php echo ncPriceFormatForList($v['goods_price']); ?></em>
							<span class="original"><?php echo ncPriceFormatForList($v['market_price']); ?></span></dd>
					</dl>
				</li>
			<?php } ?>
			</ul>
		</div>
		<?php } elseif (!empty($val['pic_list']) && is_array($val['pic_list'])) { ?>
		<div class="tabs-panel middle-goods-list <?php echo $i==1 ? '':'tabs-hide';?>">
			<!-- S 新展示方式 -->
			<div class="conDivImg01" style="display: block;">
				<a href="<?php echo $val['pic_list']['11']['pic_url'];?>">
					<img src="<?php echo UPLOAD_SITE_URL.'/'.$val['pic_list']['11']['pic_img'];?>" style="height:254px;"><span><?php echo $val['pic_list']['11']['pic_name'];?></span>
				</a>
				<a href="<?php echo $val['pic_list']['12']['pic_url'];?>">
					<img src="<?php echo UPLOAD_SITE_URL.'/'.$val['pic_list']['12']['pic_img'];?>" style="height:254px;"><span><?php echo $val['pic_list']['12']['pic_name'];?></span>
				</a>
开发者ID:noikiy,项目名称:ejia,代码行数:31,代码来源:default_1.php

示例5: ncPriceFormatForList

        ?>
</em></a></div>

          <div class="goods-price">
          <em class="sale-price" title="<?php 
        echo $lang['goods_class_index_store_goods_price'] . $lang['nc_colon'] . $lang['currency'] . $value['goods_price'];
        ?>
"><?php 
        echo ncPriceFormatForList($value['goods_price']);
        ?>
</em>
          <em class="market-price" title="市场价:<?php 
        echo $lang['currency'] . $value['goods_marketprice'];
        ?>
"><?php 
        echo ncPriceFormatForList($value['goods_marketprice']);
        ?>
</em>
          <span class="raty" data-score="<?php 
        echo $value['evaluation_good_star'];
        ?>
"></span>
      </div>
          <div class="sell-stat">
            <ul>
              <li><a href="<?php 
        echo urlShop('goods', 'index', array('goods_id' => $value['goods_id']));
        ?>
#ncGoodsRate" target="_blank" class="status"><?php 
        echo $value['goods_salenum'];
        ?>
开发者ID:noikiy,项目名称:nc-1,代码行数:31,代码来源:goods.squares.php

示例6: if

<?php } ?>
</ul>
<?php if (!empty($output['code_sale_list']['code_info']) && is_array($output['code_sale_list']['code_info'])) { 
$i = 0;
?>
<?php foreach ($output['code_sale_list']['code_info'] as $key => $val) { 
$i++;
?>
	  <?php if(!empty($val['goods_list']) && is_array($val['goods_list'])) { ?>
			  <div class="tabs-panel sale-goods-list <?php echo $i==1 ? '':'tabs-hide';?>">
				<ul>
				<?php foreach($val['goods_list'] as $k => $v){ ?>
				  <li>
					<dl>
					  <dt class="goods-name"><a target="_blank" href="<?php echo urlShop('goods','index',array('goods_id'=>$v['goods_id'])); ?>" title="<?php echo $v['goods_name']; ?>">
						<?php echo $v['goods_name']; ?></a></dt>
					  <dd class="goods-thumb">
						<a target="_blank" href="<?php echo urlShop('goods','index',array('goods_id'=>$v['goods_id'])); ?>">
						<img src="<?php echo strpos($v['goods_pic'],'http')===0 ? $v['goods_pic']:UPLOAD_SITE_URL."/".$v['goods_pic'];?>" alt="<?php echo $v['goods_name']; ?>" />
						</a></dd>
					  <dd class="goods-price"><?php echo $lang['index_index_store_goods_price'].$lang['nc_colon'];?><em><?php echo ncPriceFormatForList($v['goods_price']); ?></em></dd>
					</dl>
				  </li>
				<?php } ?>
				</ul>
			  </div>
	  <?php } ?>
<?php } ?>
<?php } ?>

-->
开发者ID:noikiy,项目名称:ejia,代码行数:31,代码来源:sale_goods.php

示例7: if

<div class="home-sale-layout wrapper">
  <div class="left-layout"> <?php echo $output['web_html']['index_sale'];?> </div>
  <?php if(!empty($output['xianshi_item']) && is_array($output['xianshi_item'])) { ?>
  <div class="right-sidebar">
    <div class="title">
      <h3><?php echo $lang['nc_xianshi'];?></h3>
    </div>
    <div id="saleDiscount" class="sale-discount">
      <ul>
        <?php foreach($output['xianshi_item'] as $val) { ?>
        <li>
          <dl>
            <dt class="goods-name"><?php echo $val['goods_name']; ?></dt>
            <dd class="goods-thumb"><a href="<?php echo urlShop('goods','index',array('goods_id'=> $val['goods_id']));?>"> <img src="<?php echo thumb($val, 240);?>"></a></dd>
            <dd class="goods-price"><?php echo ncPriceFormatForList($val['xianshi_price']); ?> <span class="original"><?php echo ncPriceFormatForList($val['goods_price']);?></span></dd>
            <dd class="goods-price-discount"><em><?php echo $val['xianshi_discount']; ?></em></dd>
            <dd class="time-remain" count_down="<?php echo $val['end_time']-TIMESTAMP;?>"><i></i><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'];?> </dd>
            <dd class="goods-buy-btn"></dd>
          </dl>
        </li>
        <?php } ?>
      </ul>
    </div>
  </div>
  <?php } ?>
</div>

<!--StandardLayout Begin--> 
<?php echo $output['web_html']['index'];?> 
<!--StandardLayout End-->
开发者ID:noikiy,项目名称:ejia,代码行数:30,代码来源:index111.php

示例8: foreach

      <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 
开发者ID:growun,项目名称:growun,代码行数:31,代码来源:index.php

示例9: ncPriceFormatForList

        ?>
" target="_blank" title="<?php 
        echo $value['goods_name'];
        ?>
"><?php 
        echo $value['goods_name_highlight'];
        ?>
<h3 class="media-heading"><?php 
        echo $value['goods_name'];
        ?>
</h3></a></div>
          <div class="goods-price"> <em class="sale-price" title="<?php 
        echo $lang['goods_class_index_store_goods_price'] . $lang['nc_colon'] . $lang['currency'] . $value['goods_promotion_price'];
        ?>
"><?php 
        echo ncPriceFormatForList($value['goods_promotion_price']);
        ?>
</em>  </div>
          <div class="add-cart">
            <?php 
        if ($value['goods_storage'] == 0) {
            ?>
            <?php 
            if ($value['is_appoint'] == 1) {
                ?>
            <a href="javascript:void(0);" onclick="<?php 
                if ($_SESSION['is_login'] !== '1') {
                    ?>
login_dialog();<?php 
                } else {
                    ?>
开发者ID:noikiy,项目名称:cunkou,代码行数:31,代码来源:index.php


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