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


PHP Basic::clearsimbol方法代码示例

本文整理汇总了PHP中Basic::clearsimbol方法的典型用法代码示例。如果您正苦于以下问题:PHP Basic::clearsimbol方法的具体用法?PHP Basic::clearsimbol怎么用?PHP Basic::clearsimbol使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Basic的用法示例。


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

示例1: endstep

 function endstep()
 {
     $_GET['currency'] = 2;
     $trans = new Translate();
     $trans->currency();
     $cart = new Cart();
     $cart->refresh_prices_product();
     $order = $_SESSION['conf']['order'];
     $_SESSION['conf']['cart']['uniqueid'] = time();
     $totalvalue = $_SESSION['conf']['cart']['subtotal_noformat'] + $_SESSION['conf']['order']['district_price'];
     Basic::currency($totalvalue);
     Basic::clearsimbol($totalvalue);
     Basic::currency($order['district_price']);
     Basic::clearsimbol($order['district_price']);
     $_SESSION['conf']['cart']['product'][0] = array('name_product' => "envio a {$order['district_name']}", 'quantity' => '1', 'subtotal' => $order['district_price']);
     //     echo  $totalvalue;
     $view = View::factory("extras/pay_paypal")->set("direccion_entrega", $order['address'])->set("distrito_entrega", $order['district_name'])->set("zip_entrega", "")->set("idunico", $_SESSION['conf']['cart']['uniqueid'])->set("valorcarro", "{$totalvalue}")->set("products", $_SESSION['conf']['cart']['product'])->render();
     //     echo Kohana::debug($_SESSION);
     return $view;
 }
开发者ID:brojasmeneses,项目名称:floreriarosabel,代码行数:20,代码来源:Pay_paypal.php

示例2: foreach

        width: 300px;
    }
</style>
<form action='<?php 
echo $url_2checkout;
?>
' method='post' class="2co">
    <input type='hidden' name='sid' value='<?php 
echo $sid_2checkout;
?>
'/>
    <input type='hidden' name='mode' value='2CO'/>
    <?php 
$ct = 0;
foreach ($products as $id => $properties) {
    Basic::clearsimbol($properties['subtotal']);
    ?>
        <input type='hidden' name='li_<?php 
    echo $ct;
    ?>
_type' value='product'/>
        <input type='hidden' name='li_<?php 
    echo $ct;
    ?>
_name' value='<?php 
    echo $properties['name_product'];
    ?>
'/>
        <input type='hidden' name='li_<?php 
    echo $ct;
    ?>
开发者ID:brojasmeneses,项目名称:floreriarosabel,代码行数:31,代码来源:pay_2co2.php

示例3: isset

    if ($payment_type == 'Pay_2co') {
        ?>
            <?php 
        $_SESSION['previous_currency'] = isset($_SESSION['conf']['currency']) ? $_SESSION['conf']['currency'] : 1;
        $_GET['currency'] = 2;
        $trans = new Translate();
        $trans->currency();
        $cart = new Cart();
        $cart->refresh_prices_product();
        $order = $_SESSION['conf']['order'];
        $_SESSION['conf']['cart']['uniqueid'] = time();
        $totalvalue = $_SESSION['conf']['cart']['subtotal_noformat'] + $_SESSION['conf']['order']['district_price'];
        Basic::currency($totalvalue);
        Basic::clearsimbol($totalvalue);
        Basic::currency($order['district_price']);
        Basic::clearsimbol($order['district_price']);
        $_SESSION['conf']['cart']['product'][0] = array('name_product' => "envio a {$order['district_name']}", 'quantity' => '1', 'subtotal' => $order['district_price']);
        echo View::factory('extras/pay_2co2')->set("country", $country)->set("client", $client)->set("products", $_SESSION['conf']['cart']['product'])->set("ship_name", $_SESSION['conf']['order']['fname'] . " " . $_SESSION['conf']['order']['lname'])->set("direccion_entrega", $_SESSION['conf']['order']['single_address'])->set("distrito_entrega", $_SESSION['conf']['order']['district_name'])->set("ship_city", $_SESSION['conf']['order']['city'])->set("ship_state", $_SESSION['conf']['order']['state'])->set("ship_zip", $_SESSION['conf']['order']['postal'])->set("ship_country", $_SESSION['conf']['order']['country'])->set("email", $_SESSION['conf']['order']['client_email'])->set("phone", $_SESSION['conf']['order']['phone'])->render();
        ?>
        <?php 
    } else {
        ?>
            <form method="POST">
                <div class="btn_ingresar" align="right" style="margin-bottom:20px;"><input type="submit"
                                                                                           value="<?php 
        __("Confirmar");
        ?>
"/>
                </div>
            </form>
        <?php 
开发者ID:brojasmeneses,项目名称:floreriarosabel,代码行数:31,代码来源:confirm.php


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