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


PHP sbr_meta::jsSchemeTaxes方法代码示例

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


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

示例1: checkFrlRezType

function checkFrlRezType($frl_id, $emp_rez_type)
{
    $frl_id = intval($frl_id);
    $objResponse = new xajaxResponse();
    $objResponse->script("\$('taxes_alert').hide();");
    $objResponse->script("\$('unknown_frl_rez').addClass('b-fon_hide');");
    $objResponse->script("if(!\$('nerez_frl_rez').hasClass('b-fon_nohide')) \$('nerez_frl_rez').addClass('b-fon_hide');");
    $objResponse->script("\$('frl_ban').addClass('b-fon_hide');");
    $objResponse->script("\$('frl').getParent().removeClass('b-combo__input_error');");
    if (!$frl_id) {
        return $objResponse;
    }
    $frl = new freelancer();
    $frl->GetUserByUID($frl_id);
    if (!$frl->uid) {
        return $objResponse;
    } else {
        if ($frl->is_banned == 1) {
            $objResponse->script("\$('frl_ban').removeClass('b-fon_hide');");
            $objResponse->script("\$('frl').getParent().addClass('b-combo__input_error');");
        }
        if ($frl_reqvs = sbr_meta::getUserReqvs($frl->uid)) {
            if ((int) $frl_reqvs['rez_type'] <= 0) {
                $objResponse->script("\$('unknown_frl_rez').removeClass('b-fon_hide');");
                $objResponse->script("if(\$('scheme_type" . sbr::SCHEME_PDRD2 . "').checked) \$('taxes_alert').show();");
            }
            if ((int) $frl_reqvs['rez_type'] == sbr::RT_UABYKZ) {
                $objResponse->script("\$('nerez_frl_rez').removeClass('b-fon_hide');");
            }
            if ($frl_reqvs['rez_type'] == sbr::RT_UABYKZ) {
                if ($frl_reqvs['form_type'] == sbr::FT_PHYS) {
                    $objResponse->script("\$('alert_frl_is_fiz').removeClass('b-layout__txt_hide');");
                    $objResponse->script("\$('alert_frl_is_jur').addClass('b-layout__txt_hide');");
                    $objResponse->script("sbr.options.reztype = 'UABYKZ_FIZ';");
                } else {
                    $objResponse->script("\$('alert_frl_is_jur').removeClass('b-layout__txt_hide');");
                    $objResponse->script("\$('alert_frl_is_fiz').addClass('b-layout__txt_hide');");
                    $objResponse->script("sbr.options.reztype = 'UABYKZ';");
                }
            } elseif ($emp_rez_type == 0) {
                $objResponse->script("\$('alert_frl_is_fiz').addClass('b-layout__txt_hide');");
                $objResponse->script("\$('alert_frl_is_jur').addClass('b-layout__txt_hide');");
                $objResponse->script("sbr.options.reztype = 'RU'; ");
            }
            $objResponse->script("\$\$('input[tmpname=\"cost\"]')[0].fireEvent('change')");
            $sbr = sbr_meta::getInstance();
            $sbr->frl_id = $frl->uid;
            $sbr_schemes = $sbr->getSchemes();
            $taxes = sbr_meta::jsSchemeTaxes($sbr_schemes, $frl_reqvs, $sbr->getUserReqvs(), sbr::EMP, exrates::BANK);
            $objResponse->script("sbr.options.schemes = {$taxes};");
            $objResponse->script('sbr.form.recalcTotal()');
        } else {
            $objResponse->script("\$('unknown_frl_rez').removeClass('b-fon_hide');");
            $objResponse->script("if(\$('scheme_type" . sbr::SCHEME_PDRD2 . "').checked) \$('taxes_alert').show();");
        }
    }
    return $objResponse;
}
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:58,代码来源:sbr.server.php

示例2: count

         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) {
         $totalSum += $stg->calcAllTax(sbr::FRL);
     }
 }
 $RT = $sbr->getRatingSum($sbr->cost, sbr_meta::FRL_PERCENT_TAX);
 $stages_ids = array_map(create_function('$a', 'return $a->data["id"];'), $sbr->stages);
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:index.php

示例3: isset

        $cst -= $s->cost;
    }
}
echo $cst;
?>
;
Sbr.prototype.RUR_SYS=<?php 
echo exrates::BANK;
?>
;
Sbr.prototype.SCHEME_TYPE=<?php 
echo isset($sbr->data['scheme_type']) ? $sbr->data['scheme_type'] : 'null';
?>
;
Sbr.prototype.SCHEMES=<?php 
echo sbr_meta::jsSchemeTaxes($sbr_schemes, $frl_reqvs, $sbr->getUserReqvs());
?>
;
Sbr.prototype.STAGES_COSTS=[<?php 
$i = 0;
foreach ($sbr->stages as $s) {
    echo ($i++ ? ',' : '') . $s->cost;
}
?>
];
SbrStage.prototype.HTML_FILE_ITEM=function(){return '<li><input name="stages['+this.num+'][attach][]" type="file" size="23" class="i-file" /></li>'};
SbrStage.prototype.MAX_WORK_TIME=<?php 
echo sbr_stages::MAX_WORK_TIME;
?>
;
Sbr.prototype.FT_FRL=<?php 
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:31,代码来源:create.php

示例4: array

    </div>
</div>
<?php 
echo attachedfiles::getFormTemplate('attachedfiles1', 'sbr', array('maxsize' => sbr::MAX_FILE_SIZE, 'maxfiles' => sbr::MAX_FILES, 'graph_hint' => false));
?>
<script>
    var stageNum = 0;
    Norisk.attaches = [];
    var sbr = new Norisk({
        'id':              'norisk-form',
        'scheme_id':       '<?php 
echo $sbr->scheme['id'];
?>
',
        'schemes' :        <?php 
echo sbr_meta::jsSchemeTaxes($sbr_schemes, $frl_reqvs, $sbr->getUserReqvs(), sbr::EMP, exrates::BANK);
?>
,
        'attaches':        <?php 
echo json_encode($stages_files);
?>
,
        'attach_sessions': <?php 
echo json_encode($attachedfiles->session);
?>
,
        'mincost':         <?php 
echo sbr_stages::MIN_COST_RUR;
?>
,
        'reztype':         '',
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:tpl.create.php


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