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


PHP sbr_meta::getUserReqvs方法代码示例

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


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

示例1: init

 public function init()
 {
     $uid = get_uid(false);
     $reqvs = sbr_meta::getUserReqvs($uid);
     $form_type = @$reqvs['form_type'];
     $rez_type = @$reqvs['rez_type'];
     if ($form_type) {
         $reqvs = $reqvs[$form_type];
         if ($rez_type == sbr::RT_RU) {
             $reqvs_data = array(array('label' => 'ИНН', 'value' => @$reqvs['inn']), array('label' => 'КПП', 'value' => @$reqvs['kpp'], 'padbot' => 10), array('label' => 'Расчетный счет', 'value' => @$reqvs['bank_rs']), array('label' => 'Банк', 'value' => @$reqvs['bank_name']), array('label' => 'Корр.счет', 'value' => @$reqvs['bank_ks']), array('label' => 'БИК банка', 'value' => @$reqvs['bank_bik']), array('label' => 'ИНН банка', 'value' => @$reqvs['bank_inn']));
         } else {
             $reqvs_data = array(array('label' => 'Расчетный счет', 'value' => @$reqvs['bank_rs']), array('label' => 'Банк', 'value' => @$reqvs['bank_name']), array('label' => 'Уполномоченный Банк', 'value' => @$reqvs['bank_rf_name']), array('label' => 'Корр.счет вашего банка в уполномоченном банке', 'value' => @$reqvs['bank_rf_ks']), array('label' => 'БИК уполномоченного банка', 'value' => @$reqvs['bank_rf_bik']), array('label' => 'ИНН уполномоченного банка', 'value' => @$reqvs['bank_rf_inn']));
         }
     } else {
         $this->stopRender();
         return;
     }
     $options = array('popup_title' => 'Формирование счета', 'payments' => array(self::PAYMENT_TYPE_BANK => array('title' => 'Сформировать счет', 'class' => '', 'wait' => 'Идет создание счета')), 'reqvs' => $reqvs_data, 'rt_ru' => $rez_type == sbr::RT_RU);
     require_once 'forms/BillInvoiceForm.php';
     $form = new BillInvoiceForm();
     $this->setContent($form->render());
     /*
     $this->addWaitMessageForAll(
         //только индикатор
     );
     */
     parent::init($options);
 }
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:28,代码来源:quickPaymentPopupBillInvoice.php

示例2: getUserReqvs

 /**
  * Получить реквизиты юзера
  * даже если их нет
  * 
  * @param int $uid
  * @return array
  */
 public function getUserReqvs($uid = null, $rewrite = false)
 {
     if (!$uid) {
         $uid = get_uid(false);
     }
     if (!isset($this->reqs_list[$uid]) || $rewrite) {
         $this->reqs_list[$uid] = sbr_meta::getUserReqvs($uid);
     }
     return $this->reqs_list[$uid];
 }
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:17,代码来源:ReservesHelper.php

示例3: model

 /**
  * Создаем сами себя
  * @return projects_sms
  */
 public static function model($uid)
 {
     $phone = '';
     $reqv = sbr_meta::getUserReqvs($uid);
     if ($reqv) {
         $ureqv = $reqv[$reqv['form_type']];
         $phone = $ureqv['mob_phone'];
     }
     $class = get_called_class();
     return new $class($phone);
 }
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:15,代码来源:projects_sms.php

示例4: checkAllow

 /**
  * Определяет, нужно ли показывать привязку телефона
  * Показываем уведомление только авторизованным фрилансерам, у которых не привязан номер телефона
  * 
  * @return true/false
  */
 public function checkAllow()
 {
     if ($this->_allow === null) {
         $uid = get_uid(false);
         if ($uid && !is_emp()) {
             $reqv = sbr_meta::getUserReqvs($uid);
             if ($reqv['is_activate_mob'] != 't') {
                 $this->_allow = true;
                 return $this->_allow;
             }
         }
         $this->_allow = false;
     }
     return $this->_allow;
 }
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:21,代码来源:user_phone.php

示例5: time

<?php

$pdrd_disabled = $sbr->scheme_type != sbr::SCHEME_PDRD && time() < strtotime('2011-01-01');
$categories = professions::GetAllGroupsLite(true, true);
$sub_categories = professions::GetProfList();
$frl_ftype = sbr::FT_PHYS;
if ($sbr->frl_id) {
    $frl = new freelancer();
    $frl->GetUserByUID($sbr->frl_id);
    if (!$sbr->frl_login) {
        $sbr->data['frl_login'] = $frl->login;
    }
    if ($frl_reqvs = sbr_meta::getUserReqvs($frl->uid)) {
        $frl_ftype = (int) $frl_reqvs['form_type'];
        $frl_rtype = $frl_reqvs['rez_type'];
    }
}
?>
<script type="text/javascript">
Sbr.prototype.DEBUG=0;
var SBR = new Sbr('createFrm');
window.addEvent('domready', function() { SBR = new Sbr('createFrm'); } );
Sbr.prototype.CATEGORIES={<?php 
// категории/подкатегории: {ид_кат:{имя_кат:{ид_подкат:имя_подкат,ид_подкат:...}},ид_кат:...}
foreach ($sub_categories as $sc) {
    $cc = $sc['prof_group'];
    $ccname = str_replace("'", "\\'", $categories[$cc]['name']);
    $scname = str_replace("'", "\\'", $sc['name']);
    if ($lcc != $cc) {
        echo ($lcc ? '}},' : '') . "{$cc}:{'{$ccname}':{";
        $lcc = $cc;
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:31,代码来源:create.php

示例6: elseif

     } elseif ($o_only_phone == 't' && $o_only_phone != $only_phone || $reqv['is_safety_mob'] == 't' && $reqv['is_safety_mob'] != $finance_safety_phone) {
         $error_phone['code'] = true;
     }
     // Включение, без проверки СМС
     if ($o_only_phone == 'f' && $only_phone == 't' && !$safety_complete) {
         $o_only_phone = 't';
         $user->updateSafetyPhone($uid, true);
     }
     if ($reqv['is_safety_mob'] == 'f' && $finance_safety_phone == 't' && !$safety_complete) {
         $reqv['is_safety_mob'] = 't';
         sbr_meta::safetyMobPhone($uid, true);
     }
     break;
 case "safety_update":
     require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/sbr_meta.php';
     $reqv = sbr_meta::getUserReqvs(get_uid(false));
     $ureqv = $reqv[$reqv['form_type']];
     $ip_addresses = change_q(trim(stripslashes($_POST['ip_addresses'])), true);
     $bind_ip = $_POST['bind_ip'];
     if ($bind_ip != 't') {
         $bind_ip = 'f';
     }
     $password = trim(stripslashes($_POST['password']));
     $error_flag = 0;
     $frl = new users();
     // Проверям IP
     $c_ip = $frl->CheckSafetyIP($ip_addresses);
     $ip_addresses = $c_ip['ip_addresses'];
     $alert[1] = $c_ip['alert'][1];
     $error_flag = $c_ip['error_flag'];
     // Проверям правильность пароля
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:index.php

示例7: while

$o_only_phone = $u->GetField($uid, $ee, 'safety_only_phone');
$bind_ip_current = $bind_ip;
if ($_POST['action'] != 'safety_update') {
    $phone = $u->GetField($uid, $ee, 'safety_phone');
    $only_phone = $u->GetField($uid, $ee, 'safety_only_phone');
    $bind_ip_current = $bind_ip = $u->GetField($uid, $ee, 'safety_bind_ip');
    $array_ip_addresses = $u->GetSafetyIP($uid);
    while (list($k, $v) = each($array_ip_addresses)) {
        $ip_addresses .= $v . "\r\n";
    }
} else {
    if ($error_flag) {
        $bind_ip_current = $u->GetField($uid, $ee, 'safety_bind_ip');
    }
}
$reqv = sbr_meta::getUserReqvs($uid);
$ureqv = $reqv[$reqv['form_type']];
if ($_SESSION['alert']) {
    $alert = $_SESSION['alert'];
    unset($_SESSION['alert']);
}
if ($_SESSION['info_msg']) {
    $info_msg = $_SESSION['info_msg'];
    unset($_SESSION['info_msg']);
}
?>

<div class="b-layout b-layout_padtop_20">
	<h2 class="b-layout__title b-layout__title_padbot_30">Безопасность аккаунта</h2>
	<?php 
if ($info_msg) {
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:safety_inner.php

示例8: cardAction

 /**
  * Вывод страницы для оплаты пластиковыми картами.
  */
 public function cardAction()
 {
     front::og('tpl')->page = 'index';
     require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/users.php';
     require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/city.php';
     require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/card_account.php';
     require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/sbr.php';
     require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/sbr_meta.php';
     require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/settings.php';
     $user = new users();
     $user->GetUser($_SESSION['login']);
     $city = $user->city ? city::GetCityName($user->city) : '';
     $reqv = sbr_meta::getUserReqvs($user->uid);
     $card_account = new card_account();
     $card_account->account_id = $this->account->id;
     $order_id = $card_account->Add();
     $sum = round(trim($_REQUEST['sum']), 4);
     $merchant = settings::GetVariable('billing', 'card_merchant');
     front::og('tpl')->sum = $sum;
     front::og('tpl')->card_account = $card_account;
     front::og('tpl')->order_id = $order_id;
     front::og('tpl')->city = $city;
     front::og('tpl')->user = $user;
     front::og('tpl')->reqv = $reqv[sbr::FT_PHYS];
     front::og('tpl')->script = '/scripts/bill2.js';
     if ($order_id > 0) {
         $tpl_file = '';
         if ($merchant) {
             $tpl_file = '_dol';
         }
         front::og('tpl')->display("bill/bill_card_step2{$tpl_file}.tpl");
     }
 }
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:36,代码来源:page_bill.class.php

示例9: RemindByEmail

function RemindByEmail($email, $rnd, $captchanum, $role)
{
    global $DB;
    session_start();
    $objResponse = new xajaxResponse();
    $captcha = new captcha($captchanum);
    $error_type = '';
    $show_role = false;
    if (!$captcha->checkNumber(trim($rnd))) {
        $error = 'Вы ввели неверную комбинацию символов. Попробуйте еще раз';
        $error_type = 'captcha';
    } else {
        require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/sbr_meta.php';
        require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/sms_gate_a1.php';
        $email = trim(stripslashes($email));
        if (preg_match("/^[-^!#\$%&'*+\\/=?`{|}~.\\w]+@[-a-zA-Z0-9]+(\\.[-a-zA-Z0-9]+)+\$/", $email)) {
            $error_type = 'email';
            $ok_type = 'email';
            // email
            require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/users.php';
            $u = new users();
            $u->GetUser($email, true, $email);
            if (!$u->uid) {
                $error = 'E-mail не зарегистрирован. Укажите корректный логин/телефон/e-mail.';
            } else {
                if ($u->is_banned) {
                    $error = 'Аккаунт с этим адресом заблокирован. К сожалению, вы не можете восстановить к нему доступ.';
                } else {
                    if ($u->isRemindByPhoneOnly($u->login)) {
                        $ok_type = 'phone';
                        $reqv = sbr_meta::getUserReqvs($u->uid);
                        $ureqv = $reqv[$reqv['form_type']];
                        $phone = $ureqv['mob_phone'];
                        $passwd = users::ResetPasswordSMS($u->uid, $phone);
                        $sms_gate = new sms_gate_a1($phone);
                        $sms_gate->sendSMS(preg_replace('/-LOGIN-/', $u->login, $sms_gate->getTextMessage(sms_gate::TYPE_PASS, $passwd)));
                        if ($sms_gate->getHTTPCode() == 200) {
                            // OK ТЕЛЕФОН
                        } else {
                            $error = 'Ошибка отправки СМС на указанный номер';
                        }
                    } else {
                        $sm = new smail();
                        $sm->remind($u->email);
                    }
                }
            }
        } elseif (preg_match("/^\\+\\d{1,}\$/", $email) || preg_match("/^\\d{1,}\$/", $email)) {
            $error_type = 'email';
            $ok_type = 'phone';
            // телефон
            if (!preg_match("/^\\+\\d{1,}\$/", $email)) {
                $email = '+' . $email;
            }
            $phone = $email;
            $safety_frl = (int) $role !== 2 ? sbr_meta::findSafetyPhone($phone, 'frl') : array();
            $safety_emp = (int) $role !== 1 ? sbr_meta::findSafetyPhone($phone, 'emp') : array();
            $safety = null;
            if (!empty($safety_emp) && !empty($safety_frl)) {
                $error = 'Номер телефона привязан к двум аккаунтам. Пожалуйста, укажите, к какому аккаунту вы хотите восстановить доступ.';
                $show_role = true;
            } elseif (empty($safety_emp) && empty($safety_frl)) {
                $error = 'Номер не связан ни с одним аккаунтом. Укажите корректный логин/телефон/e-mail.';
            } else {
                $safety = !empty($safety_frl) ? $safety_frl : $safety_emp;
                $u = new users();
                $u->GetUserByUID($safety['uid']);
                if ($u->is_banned) {
                    $error = 'Аккаунт с этим номером заблокирован. К сожалению, вы не можете восстановить к нему доступ.';
                } else {
                    $passwd = users::ResetPasswordSMS($safety['uid'], $phone);
                    $sms_gate = new sms_gate_a1($phone);
                    $sms_gate->sendSMS(preg_replace('/-LOGIN-/', $u->login, $sms_gate->getTextMessage(sms_gate::TYPE_PASS, $passwd)));
                    if ($sms_gate->getHTTPCode() == 200) {
                        // OK ТЕЛЕФОН
                    } else {
                        $error = 'Ошибка отправки СМС на указанный номер';
                    }
                }
            }
        } else {
            $error_type = 'email';
            $ok_type = 'email';
            // логин
            require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/users.php';
            $login = $email;
            $u = new users();
            $u->GetUser($login);
            if (!$u->uid) {
                $error = 'Логин не зарегистрирован. Укажите корректный логин/телефон/e-mail.';
            } else {
                if ($u->is_banned) {
                    $error = 'Аккаунт с этим логином заблокирован. К сожалению, вы не можете восстановить к нему доступ.';
                } else {
                    if ($u->isRemindByPhoneOnly($u->login)) {
                        $ok_type = 'phone';
                        $error_type = 'email';
                        $reqv = sbr_meta::getUserReqvs($u->uid);
                        $ureqv = $reqv[$reqv['form_type']];
                        $phone = $ureqv['mob_phone'];
//.........这里部分代码省略.........
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:101,代码来源:remind.server.php

示例10: generateBankInvoice

 public function generateBankInvoice($uid, $login, $sum)
 {
     global $DB;
     require_once ABS_PATH . '/classes/sbr.php';
     require_once ABS_PATH . '/classes/sbr_meta.php';
     $reqvs = sbr_meta::getUserReqvs($uid);
     $form_type = @$reqvs['form_type'];
     if (!$form_type) {
         throw new DocGenBillException(DocGenBillException::BANK_INVOICE_ERROR_MSG);
     }
     $reqv = $reqvs[$form_type];
     $num_id = $DB->insert(self::BANK_INVOICE_TABLE, array('user_id' => $uid, 'price' => $sum, 'form_type' => $form_type, 'rez_type' => $reqvs['rez_type'], 'fields' => serialize($reqv)), 'id');
     if (!$num_id) {
         throw new DocGenBillException(DocGenBillException::BANK_INVOICE_ERROR_MSG);
     }
     $this->setFilePath($login);
     $this->setFileSrcId($uid);
     $this->setField('id', $num_id);
     $this->setField('login', $login);
     $this->setField('num_id', $num_id);
     $this->setField('datetext_1', date('Y-m-d H:i:s'));
     $this->setField('fio_emp', $reqvs);
     $phone = empty($reqv['phone']) ? $reqv['phone'] : $reqv['mob_phone'];
     $this->setField('phone', $phone);
     $this->setField('nonds_sum', $sum);
     $this->setField('nds_sum', $sum);
     $this->setField('price_sum', $sum);
     $this->setField('pricelong_sum', $sum);
     $original_name = $this->docs[self::BANK_INVOICE_TYPE]['name'];
     $this->docs[self::BANK_INVOICE_TYPE]['name'] = sprintf($original_name, $this->data['$num_id']);
     $file = $this->generate(self::BANK_INVOICE_TYPE);
     if (!$file) {
         throw new DocGenBillException(DocGenBillException::BANK_INVOICE_ERROR_MSG);
     }
     $is_done = $DB->update(self::BANK_INVOICE_TABLE, array('file_id' => $file->id), 'id = ?i', $num_id);
     if (!$is_done) {
         throw new DocGenBillException(DocGenBillException::BANK_INVOICE_ERROR_MSG);
     }
     return $file;
 }
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:40,代码来源:DocGenBill.php

示例11: checkCode

function checkCode($phone, $code, $type = "bind")
{
    $objResponse = new xajaxResponse();
    $success = 0;
    $reqv = sbr_meta::getUserReqvs(get_uid(false));
    $ureqv = $reqv[$reqv['form_type']];
    $uid = get_uid(false);
    if ($type == 'unbind') {
        $phone = $ureqv['mob_phone'];
    }
    $error = false;
    if ($code == $_SESSION['send_sms_code'] && $phone == $_SESSION['send_sms_phone']) {
        unset($_SESSION['send_sms_code'], $_SESSION['send_sms_phone']);
        $user = new users();
        $ureqv['mob_phone'] = $phone;
        $save_reqv['mob_phone'] = $phone;
        if ($type == 'bind') {
            if (!($text_error = sbr_meta::setUserReqv($uid, $reqv['rez_type'], $reqv['form_type'], $save_reqv))) {
                sbr_meta::authMobPhone($uid, true);
                $reqv['is_activate_mob'] = 't';
                unset($_SESSION["unbind_phone_action"]);
                unset($_SESSION['send_sms_time']);
                $success = 2;
            } else {
                $error = current($text_error);
                // Телефон забит
            }
        } else {
            if ($type == 'unbind') {
                // Сбрасываем все
                $phone = '';
                $save_reqv['mob_phone'] = '';
                $ureqv['mob_phone'] = '';
                sbr_meta::setUserReqv($uid, $reqv['rez_type'], $reqv['form_type'], $save_reqv);
                // Удаляем телефон
                sbr_meta::authMobPhone($uid, false);
                sbr_meta::safetyMobPhone($uid, false);
                $user->updateSafetyPhone($uid, false);
                $reqv['is_activate_mob'] = 'f';
                $_SESSION["unbind_phone_action"] = true;
                $success = 3;
            }
        }
    } else {
        $error = 'Неправильный код';
    }
    switch ($success) {
        case 2:
            //Прицепили телефон
            $objResponse->script("\$('safety_status')" . ".set('text', 'включена')" . ".removeClass('b-layout__txt_color_c10600')" . ".addClass('b-layout__txt_color_6db335');");
            $objResponse->script("\$('mob_phone_text').set('html', " . "'<a href=\"javascript:void(0)\" onclick=\"User_Phone.unbindStart();\" " . "class=\"b-layout__link b-layout__link_fontsize_11 b-layout__link_bordbot_dot_0f71c8\">Отвязать</a>')");
            $objResponse->script("\$('mob_phone_text').removeClass('b-layout__txt_hide')");
            $objResponse->script("\$('mob_code_block').addClass('b-layout__txt_hide');");
            $objResponse->script("\$('buttons_step1').addClass('b-layout__txt_hide');");
            $objResponse->script("\$('buttons_step2').removeClass('b-layout__txt_hide');");
            break;
        case 3:
            //Отцепили телефон
            $objResponse->script("\$('safety_status')" . ".set('text', 'выключена')" . ".removeClass('b-layout__txt_color_6db335')" . ".addClass('b-layout__txt_color_c10600');");
            $objResponse->script("\$('mob_phone_text').set('text', 'без пробелов и дефиса')");
            $objResponse->script("\$('sms_sent_ok').addClass('b-layout__txt_hide');");
            $objResponse->script("\$('smscode').set('value', '');");
            $objResponse->script("\$('buttons_step1').removeClass('b-layout__txt_hide');");
            $objResponse->script("\$('buttons_step3').addClass('b-layout__txt_hide');");
            break;
        case 0:
        default:
            $objResponse->script("\$('smscode').getParent().addClass('b-combo__input_error');");
    }
    if ($error) {
        $objResponse->script("\$('sms_error').set('html', '{$error}').removeClass('b-layout__txt_hide');");
    } else {
        $objResponse->script("\$('sms_error').addClass('b-layout__txt_hide');");
    }
    $objResponse->script("shadow_center();");
    return $objResponse;
}
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:77,代码来源:users.server.php

示例12: sendCode

function sendCode()
{
    $objResponse = new xajaxResponse();
    require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/sms_gate_a1.php';
    $uid = get_uid(false);
    if (!$uid) {
        return $objResponse;
    }
    $reqv = sbr_meta::getUserReqvs($uid);
    $ureqv = $reqv[$reqv['form_type']];
    $sms_gate = new sms_gate_a1($ureqv['mob_phone']);
    $info = $sms_gate->getInfoSend();
    if (!$sms_gate->isNextSend()) {
        $sms_gate->sendAuthCellCode();
        $_SESSION['sms_auth_code_now'] = $sms_gate->getAuthCode();
        if (SMS_GATE_DEBUG) {
            $code_debug = $sms_gate->getAuthCode();
        }
    } else {
        $timer = $sms_gate->next_time_send - time();
        if ($timer > 0) {
            $objResponse->alert("Следующее сообщение можно будет послать через {$timer} " . ending($timer, 'секунду', 'секунды', 'секунд'));
        }
    }
    if (SMS_GATE_DEBUG && !$code_debug) {
        $code_debug = $info['data'];
    }
    $callback_js = 'a_sms_disabled_safety';
    $callback_resend = 'sendCode';
    $sms_title = 'Подтверждение действий';
    $sms_btn = 'Отправить';
    ob_start();
    include $_SERVER['DOCUMENT_ROOT'] . '/sbr/tpl.auth_sms_popup.php';
    $out = ob_get_clean();
    $objResponse->assign('auth_popup', 'innerHTML', $out);
    $objResponse->script("\$('auth_popup').show(); \$('auth_popup').removeClass('b-shadow_hide'); shadow_popup();");
    return $objResponse;
}
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:38,代码来源:sbr.server.php

示例13: foreach

 foreach ($sbr->stages as $i => $curr_stage) {
     if ($curr_stage->data['frl_agree'] == 'f') {
         $all_agree = false;
         $active_stage = $curr_stage;
         $position = $i + 1;
         break;
     }
 }
 if ($all_agree) {
     $active_stage = false;
     $position = count($sbr->stages);
 }
 $is_filled = explode(',', preg_replace('/[}{]/', '', $sbr->user_reqvs['is_filled']));
 $isReqvsFilled[sbr::FT_PHYS] = $is_filled[sbr::FT_PHYS - 1] == 't';
 $isReqvsFilled[sbr::FT_JURI] = $is_filled[sbr::FT_JURI - 1] == 't';
 $frl_reqvs = sbr_meta::getUserReqvs(get_uid(false));
 $sbr_schemes = $sbr->getSchemes();
 $frl_reqvs['form_type'] = sbr::FT_PHYS;
 $sbr_schemes_phys = sbr_meta::jsSchemeTaxes($sbr_schemes, $frl_reqvs, $sbr->getUserReqvs(), sbr::FRL);
 $frl_reqvs['form_type'] = sbr::FT_JURI;
 $sbr_schemes_jury = sbr_meta::jsSchemeTaxes($sbr_schemes, $frl_reqvs, $sbr->getUserReqvs(), sbr::FRL);
 $sbr_schemes = $sbr->getSchemes();
 //        $frl_reqvs = $sbr->getFrlReqvs();
 if ($sbr->scheme_type == sbr::SCHEME_LC) {
     $sbr->checkEnableMethodPayments();
     $pskb_frl = new pskb_user($sbr->getFrlReqvs(), 0, $sbr->getTotalCost());
     $pskb_frl->setOnlyWW($sbr->is_only_ww);
     $paysystems = $pskb_frl->getPsystems();
 } else {
     $totalSum = 0;
     foreach ($sbr->stages as $stg) {
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:index.php

示例14: setPaymentMethod


//.........这里部分代码省略.........
         case 'alphabank':
             $this->payment_template = 'bank/tpl.alphabank.php';
             $this->type_menu_block = 'bank';
             $this->payment_type = exrates::BANK;
             if (isset($_POST['action']) && $_POST['action'] == 'reserve') {
                 header('Location: /bill/');
                 exit;
             }
             break;
         case 'card':
             require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/settings.php';
             require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/card_account.php';
             require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/cardpay.php';
             require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/city.php';
             require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/sbr_meta.php';
             require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/onlinedengi_cards.php';
             $this->payment_template = 'card/tpl.card.php';
             $this->type_menu_block = 'card';
             $this->payment_type = exrates::CARD;
             $this->card_merchant = settings::GetVariable('billing', 'card_merchant');
             if ($this->card_merchant) {
                 $card_account = new card_account();
                 $card_account->account_id = $this->acc['id'];
                 $this->pm = new onlinedengi_cards();
                 if (!$this->not_init_pm) {
                     $this->pm->order_id = $card_account->Add();
                 }
             } else {
                 $this->pm = new card_account();
                 $this->pm->account_id = $this->acc['id'];
                 if (!$this->not_init_pm) {
                     $this->pm->order_id = $this->pm->Add();
                 }
                 $this->pm->reqv = sbr_meta::getUserReqvs($this->user['uid']);
             }
             break;
         case 'qiwi':
             $this->payment_template = 'terminal/tpl.qiwi.php';
         case 'svyasnoy':
             $this->payment_template = $this->payment_template ? $this->payment_template : 'terminal/tpl.svyasnoy.php';
         case 'euroset':
             $this->payment_template = $this->payment_template ? $this->payment_template : 'terminal/tpl.euroset.php';
             $this->type_menu_block = 'terminal';
             $this->payment_type = exrates::OSMP;
             if ($_POST['action'] == 'osmp') {
                 $prepare = $this->preparePayments($this->getTotalAmmountOrders());
                 if (!$this->test && $prepare !== false) {
                     header('Location: /bill/');
                     exit;
                 }
             } else {
                 $this->error = 'Ошибка создания списка оплаты';
             }
             break;
         case 'megafon_mobile':
             $this->payment_template = 'mobile/tpl.m_megafon.php';
         case 'beeline_mobile':
             $this->payment_template = $this->payment_template ? $this->payment_template : 'mobile/tpl.m_beeline.php';
         case 'mts_mobile':
             $this->payment_template = $this->payment_template ? $this->payment_template : 'mobile/tpl.m_mts.php';
         case 'matrix_mobile':
             $this->payment_template = $this->payment_template ? $this->payment_template : 'mobile/tpl.m_matrix.php';
             $this->type_menu_block = 'mobilesys';
             $this->payment_type = exrates::MOBILE;
             require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/qiwipay.php';
             $this->pm = new qiwipay($this->user['uid']);
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:67,代码来源:billing.php

示例15: getEmpReqvs

 /**
  * Взять СБР-реквизиты работодателя (со страницы информации, вкладка "Финансы")
  * 
  * @return array массив с реквизитами, индексированный: [1] -- реквизиты физ. лица, [2] -- реквизиты юр. лица, [any] -- др. поля, флаги.
  */
 function getEmpReqvs($force = false)
 {
     if ($this->emp_reqvs === false && $this->emp_id || $force === true) {
         $this->emp_reqvs = parent::getUserReqvs($this->emp_id);
     }
     return $this->emp_reqvs;
 }
开发者ID:amage,项目名称:fl-ru-damp,代码行数:12,代码来源:sbr.php


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