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


PHP secure::get_creditcard方法代码示例

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


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

示例1: SUM

$tmp1 = $this->db->fetch_assoc($this->db->query("SELECT grant_total FROM erp_order WHERE order_id = {$module_id}"));
$full_amount = $tmp1["grant_total"];
$bill_amount = $full_amount / 2;
$total_arr = $this->db->fetch_assoc($this->db->query("SELECT SUM( amount ) total FROM `payments` WHERE for_module_name = 'order' AND for_module_id = '{$module_id}' AND refund='no'"));
$already_payed = $total_arr["total"];
// $return["javascript"] = "alert('ba: $bill_amount|ap: $already_payed');";
//$return["javascript"] = "alert('" . $this->db->num_rows($result) . "| $already_payed | $bill_amount" . "');";
if ($this->db->num_rows($result) == 0 && $already_payed < $bill_amount) {
    $return["stop"] = "YES";
    $bill = $bill_amount - $already_payed;
    $contacts = $this->get_contact_by_module($module_id, $module_name);
    $credit_cards = $secure->get_creditcards("contacts", $contacts[0]);
    $tmp1 = $this->db->fetch_assoc($this->db->query("SELECT ccid FROM erp_order WHERE order_id = {$module_id}"));
    $ccid = $tmp1["ccid"];
    if (array_key_exists($ccid, $credit_cards) == false && $ccid != '0') {
        $cc2 = $secure->get_creditcard($ccid);
        $credit_cards[$ccid] = $cc2[$ccid];
    }
    $ccoptions = '<option value="">--SELECT ONE--</option>';
    foreach ($credit_cards as $num => $card) {
        if ($num = $ccid) {
            $select = " SELECTED ";
        } else {
            $select = '';
        }
        $ccoptions .= "<option {$select} value='" . $card["ccid"] . "' >" . $card["name"] . " - " . $card["type"] . " " . $card["expiration"] . "</option>";
    }
    ob_start();
    ?>
<div id='payment_parrent_div' style='position: fixed;right: 0px;bottom:0px; width: 50%;height: 50%;' >
<div style='z-index: 21;position: relative;left: -200px;top: -150px;width: 400px; height: 300px;background: white;border-top-left-radius: 20px;border-top-right-radius: 20px;' >
开发者ID:name256,项目名称:crm42,代码行数:31,代码来源:systemtask.down_payment.php


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