Esempio n. 1
0
function get_group_marketprice($unionid)
{
    $unionid = explode('、', $unionid);
    $total = "";
    foreach ($unionid as $val) {
        $id = $val;
        $total += get_good_yprice($id);
    }
    if (!isset($total)) {
        $price = get_group_price($unionid);
    }
    return $total ? $total : $price;
}
    <div class='col-sm-6 col-xs-12 main'><?php 
        echo $group_data[$col]['STATUS_NAME'];
        ?>
</div>
      <?php 
        if (PRICE_IS_BRUTTO == 'true') {
            $products_price = xtc_round(get_group_price($group_data[$col]['STATUS_ID'], $pInfo->products_id) * ((100 + xtc_get_tax_rate($pInfo->products_tax_class_id)) / 100), PRICE_PRECISION);
        } else {
            $products_price = xtc_round(get_group_price($group_data[$col]['STATUS_ID'], $pInfo->products_id), PRICE_PRECISION);
        }
        ?>
    <div class='col-sm-6 col-xs-12 main'>
      <?php 
        echo xtc_draw_input_field('products_price_' . $group_data[$col]['STATUS_ID'], $products_price);
        if (PRICE_IS_BRUTTO == 'true' && get_group_price($group_data[$col]['STATUS_ID'], $pInfo->products_id) != '0') {
            echo TEXT_NETTO . '<strong>' . $xtPrice->xtcFormat(get_group_price($group_data[$col]['STATUS_ID'], $pInfo->products_id), false) . '</strong>  ';
        }
        if ($_GET['pID'] != '') {
            echo ' ' . TXT_STAFFELPREIS;
            ?>
 <img onMouseOver="javascript:this.style.cursor='pointer';" src="images/arrow_down.gif" height="12" width="12" onclick="javascript:toggleBox('staffel_<?php 
            echo $group_data[$col]['STATUS_ID'];
            ?>
');">
      <?php 
        }
        ?>
      <div id="staffel_<?php 
        echo $group_data[$col]['STATUS_ID'];
        ?>
" class="longDescription"><br />
 <div class="buy_pop_top"><div class="title">此商品已成功放入购物车</div>
 <div class="font">购物车共 <font id="totalnum" class="red"></font> 件宝贝<span>合计 <font class="red" id="fee"></font></span></div>
 <div class="btn_continue">
 <div class="pop_btn_r" ><a onclick="jQuery('#showIncludeCart').hide();return false;" href="javascript:vod(0);">继续购物</a></div>
 <div class="btn_cart"><a href="<?php 
echo U('shopcart/index');
?>
">去购物车结算</a></div>
 </div>
 </div>
</div> 
   <!-- 购物车计算浮动层 over -->
   </div>
<!-- buy-->
<p>
<span>收藏产品:<a href="javascript:vod(0);" onclick="favor();return false;"><img title="收藏按钮" src="/b2c/Public/Home/images/icon_favorite_pro.jpg" ></a>
</span>
&nbsp;&nbsp;&nbsp;&nbsp;<span>&nbsp;&nbsp;&nbsp;分享到:<a title="分享到新浪微博" target="_blank" href="http://service.t.sina.com.cn/share/share.php?title=<?php 
echo $info["title"];
?>
。(来自<?php 
echo C('SITENAME');
?>
)&amp;url=<?php 
echo C('DOMAIN');
echo U('Article/detail?id=' . $info['id']);
?>
&amp;pic=<?php 
echo C('DOMAIN');
echo get_cover($info["cover_id"], 'path');
?>
// W. Kaiser - AJAX
?>

<?php 
for ($col = 0, $n = sizeof($group_data); $col < $n + 1; $col++) {
    if ($group_data[$col]['STATUS_NAME'] != EMPTY_STRING) {
        ?>
          <tr>
            <td style="border-top: 1px solid;" valign="top" class="main"><?php 
        echo $group_data[$col]['STATUS_NAME'];
        ?>
</td>
<?php 
        $products_id = $pInfo->products_id;
        $group_status = $group_data[$col]['STATUS_ID'];
        $group_price0 = get_group_price($group_status, $products_id);
        $group_price = $group_price0;
        if ($is_brutto) {
            $group_price = $group_price * $tax_rate;
        }
        $group_price = olc_round($group_price, PRICE_PRECISION);
        ?>
            <td style="border-top: 1px solid;" class="main">
<?php 
        echo olc_draw_input_field('products_price_' . $group_status, $group_price);
        if ($is_brutto) {
            if ($group_price != '0') {
                echo BLANK . TEXT_NETTO . HTML_B_START . olc_format_price($group_price0, 1, 1) . '</b>  ';
            }
        }
        if ($_GET['pID'] != EMPTY_STRING) {
Esempio n. 5
0
          <tr>
            <td><?php 
        echo $group_data[$col]['STATUS_NAME'];
        ?>
</td>
<?php 
        if (PRICE_IS_BRUTTO == 'true') {
            $products_price = vam_round(get_group_price($group_data[$col]['STATUS_ID'], $pInfo->products_id) * ((100 + vam_get_tax_rate($pInfo->products_tax_class_id)) / 100), PRICE_PRECISION);
        } else {
            $products_price = vam_round(get_group_price($group_data[$col]['STATUS_ID'], $pInfo->products_id), PRICE_PRECISION);
        }
        ?>
            <td><?php 
        echo vam_draw_input_field('products_price_' . $group_data[$col]['STATUS_ID'], $products_price);
        if (PRICE_IS_BRUTTO == 'true' && get_group_price($group_data[$col]['STATUS_ID'], $pInfo->products_id) != '0') {
            echo TEXT_NETTO . '<b>' . $vamPrice->Format(get_group_price($group_data[$col]['STATUS_ID'], $pInfo->products_id), false) . '</b>  ';
        }
        if ($_GET['pID'] != '') {
            echo ' ' . TXT_STAFFELPREIS;
            ?>
 <img onMouseOver="javascript:this.style.cursor='hand';" alt="&darr;" src="images/arrow_down.gif" height="12" width="12" onClick="javascript:toggleBox('staffel_<?php 
            echo $group_data[$col]['STATUS_ID'];
            ?>
');">
<?php 
        }
        if ($_GET['pID'] != '') {
        }
        ?>
<div id="staffel_<?php 
        echo $group_data[$col]['STATUS_ID'];