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


PHP payed::getPayedPROList方法代码示例

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


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

示例1: to_money

    </div>
    <h1 class="b-page__title">Оплата заказа на сумму <span class="b-layout__txt b-layout__txt_color_fd6c30 b-layout__txt_fontsize_34"><?php 
echo to_money($payed_sum > 10 ? $payed_sum : 10, 2);
?>
 руб.</span></h1>
    <div class="b-layout__one b-layout__one_width_25ps b-layout__one_padbot_30 b-layout__right_float_right b-layout__one_width_full_ipad b-layout_padbot_10_ipad">
       <?php 
include $_SERVER['DOCUMENT_ROOT'] . '/bill/widget/tpl.score.php';
?>
    </div>


    
    <div class="b-layout__one b-layout__one_float_left b-layout__one_width_72ps b-layout__one_width_full_ipad">
        <?php 
$pro_payed = payed::getPayedPROList(is_emp($bill->user['role']) ? 'emp' : 'frl');
foreach ($pro_payed as $p) {
    $pro_type[$p['opcode']] = $p;
}
foreach ($bill->list_service as $service) {
    include $_SERVER['DOCUMENT_ROOT'] . '/bill/payment/services/' . billing::getTemplateByService($service['service']);
}
$payment_sum = $bill->payed_sum['pay'];
//@todo везде поменять надо будет
?>

        <h2 class="b-layout__title b-layout__title_padtop_30">Способ платежа</h2>
        <div class="b-layout__txt b-layout__txt_fontsize_15 b-layout__txt_bold b-layout__txt_padbot_20">
            <?php 
if ($bill->type_menu_block == 'psys') {
    ?>
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:31,代码来源:content.php

示例2: foreach

    ?>
</span>
        <?php 
}
//if
?>
    </h3>
    <div class="b-layout__txt b-layout__txt_fontsize_11 b-layout__txt_padbot_20 b-layout__txt_padleft_70 b-layout__txt_padleft_null_iphone">Аккаунт PRO предоставляет своим обладателям бонусы на сайте: скидки на все платные услуги, бесплатную публикацию вакансий, возможность просматривать контакты всех пользователей и многое другое.</div>


    <div class="b-buttons b-buttons_padleft_70 b-buttons_padbot_10 b-layout__txt_padleft_null_iphone">
        <a href="javascript:void(0)" class="b-button b-button_flat b-button_flat_green btn-pay"><?php 
echo billing::$btn_name_for_type[$service['type']];
?>
</a>
    </div>
    <?php 
if (!empty($service['last_operation']['op_code'])) {
    $popup_mini_data = payed::getPayedPROList('emp');
    foreach ($popup_mini_data as $data) {
        if ($service['last_operation']['op_code'] == $data['opcode']) {
            $last_operation = array('month' => $data['month'], 'op_code' => $data['opcode'], 'sum' => $data['cost']);
            break;
        }
    }
    $popup_content = $_SERVER['DOCUMENT_ROOT'] . '/bill/widget/popups/popup.emp_pro.php';
    include $_SERVER['DOCUMENT_ROOT'] . '/bill/widget/tpl.popup.php';
}
?>
    <span class="b-layout__txt b-layout__txt_padtop_10 b-layout__txt_fontsize_11 b-page__iphone"><a href="/payed-emp/" class="b-layout__link promo-link">Подробнее об услуге</a></span>
</div>
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:31,代码来源:tpl.emp_pro.php

示例3: __construct

 public function __construct($is_emp = false, $options = null)
 {
     $this->is_emp = $is_emp;
     $this->list = payed::getPayedPROList($this->is_emp ? 'emp' : 'frl');
     parent::__construct($options);
 }
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:6,代码来源:ProForm.php

示例4: foreach

            </div>
        <?php 
}
?>
    </h1>

    <?php 
include_once "tpl.setting.pro.php";
?>

    <table class="b-layout__table b-layout__table_center b-layout__table_margbot_60">
        <tr class="b-layout__tr">
            <td class="b-layout__td">
                <table class="b-layout__table b-layout__table_width_full">
                        <?php 
foreach (payed::getPayedPROList() as $pay) {
    if ($pay['is_test'] && $is_user_was_pro) {
        continue;
    }
    if (get_uid(false)) {
        $dcost = $pay['cost'] - round($account->sum, 2);
    }
    ?>
                        <td class="b-layout__td b-layout__td_width_200 b-layout__td_padright_70" id="pro_payed_<?php 
    echo $pay['opcode'];
    ?>
">
                            <form action="/payed/buy.php" method="post" id="post">
                            <input type="hidden" name="mnth" value="1" />
                            <?php 
    /* <input type="hidden" name="transaction_id" value="<?= get_uid(false) ? $account->start_transaction($uid, $tr_id) : 0;?>" /> */
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:content.test.php

示例5: PromoCodes

<?php

require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/payed.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/platipotom.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/PromoCodes.php";
if (isset($quickPRO_type) && $quickPRO_type == 'profi') {
    $quickPRO_proList = payed::getPayedPROFIList();
} else {
    $quickPRO_proList = payed::getPayedPROList(is_emp() ? 'emp' : 'frl');
}
$promoCodes = new PromoCodes();
$quickPRO_redirect = '';
$quickpro_ok_default = 'quickpro_ok';
switch ($quickPRO_type) {
    case 'profi':
        $quickPRO_title = 'Покупка аккаунта PROFI';
        $quickPRO_ok_close_btn = 'Закрыть';
        $quickpro_ok_default = 'quickprofi_ok';
        $quickpro_ok_title = 'Вы успешно купили аккаунт PROFI';
        $quickpro_ok_subtitle = '';
        break;
    case 'project':
        $quickPRO_title = 'Покупка аккаунта Pro для ответа на проект';
        $quickPRO_ok_close_btn = 'Закрыть и ответить на проект';
        $quickPRO_redirect = getFriendlyUrl('project', $project['id']);
        break;
    case 'promotion':
        $quickPRO_redirect = '/promotion/';
    default:
        $quickPRO_title = 'Покупка аккаунта Pro';
        $quickPRO_ok_close_btn = 'Закрыть';
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:quick_buy_pro.php

示例6: isset

<?php

/**
 * Вывод списка тарифов ПРО.
 */
?>
<link href='https://fonts.googleapis.com/css?family=Open+Sans:300,400&subset=cyrillic,latin' rel='stylesheet' type='text/css'>
<div class="b-layout g-txt_center">
<?php 
$is_emp = isset($is_emp) && $is_emp == true;
$list = payed::getPayedPROList($is_emp ? 'emp' : 'frl');
//$cnt = count($list);
//$last_key = key(end($list));
foreach ($list as $key => $pay) {
    if ($pay['day']) {
        $txt_time = ending($pay['day'], 'день', 'дня', 'дня');
        $days = $pay['day'];
        $title = "{$pay['day']} {$txt_time}";
        $value = $pay['day'];
    } elseif ($pay['week']) {
        $txt_time = ending($pay['week'], 'неделя', 'недели', 'недель');
        $days = $pay['week'] * 7;
        $title = "{$pay['week']} {$txt_time}";
        $value = $pay['week'];
    } else {
        if ($pay['month'] == 12) {
            $txt_time = 'год';
            $title = "1 {$txt_time}";
            $value = 1;
        } else {
            $txt_time = ending($pay['month'], 'месяц', 'месяца', 'месяцев');
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:31,代码来源:plans.php

示例7: users

$_SESSION['pro_last'] = payed::ProLast($_SESSION['login']);
if ($_SESSION['pro_last']['is_freezed']) {
    $is_freezed = true;
    $_SESSION['payed_to'] = $_SESSION['pro_last']['cnt'];
}
$_SESSION['pro_last'] = $_SESSION['pro_last']['is_freezed'] ? false : $_SESSION['pro_last']['cnt'];
$userdata = new users();
$_SESSION['pro_test'] = $userdata->GetField($user_id, $error2, 'is_pro_test', false);
// цены на PRO
$prices = $prof->GetProPrice(true);
// текущая сумма оплаты
$cost = $prices[$oppro] * $mnth;
if ($ok) {
    $account = new account();
    $account->GetInfo($uid, true);
    $payed_list = payed::getPayedPROList(is_emp() ? 'emp' : 'frl');
    $is_not_enough = array('' => 'default');
    foreach ($payed_list as $value) {
        if ($value['is_test'] && payed::IsUserWasPro($uid)) {
            continue;
        }
        $dcost = $value['cost'] - $account->sum;
        if ($dcost <= 0) {
            continue;
        }
        $is_not_enough[$value['opcode']] = $dcost;
    }
    payed::UpdateProUsers();
    $result['success'] = true;
    $result['opcode'] = $oppro;
    $result['transaction'] = $account->start_transaction($uid, $tr_id);
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:ajax_buy.php


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