本文整理汇总了PHP中sbr_meta::view_cost方法的典型用法代码示例。如果您正苦于以下问题:PHP sbr_meta::view_cost方法的具体用法?PHP sbr_meta::view_cost怎么用?PHP sbr_meta::view_cost使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类sbr_meta
的用法示例。
在下文中一共展示了sbr_meta::view_cost方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
echo $tax['percent'];
?>
</td>
<td class="last"><?php
echo $tax['cost'];
?>
</td>
</tr>
<?php
}
?>
</tbody>
<tfoot>
<tr>
<th><strong><?php
echo $curr_sbr->isFrl() ? 'К перечислению Фрилансеру' : 'Итого исполнитель получит';
?>
</strong></th>
<td>—</td>
<td class="last"><strong><?php
echo sbr_meta::view_cost($total_sum, $curr_sbr->cost_sys, false);
?>
</strong></td>
</tr>
</tfoot>
</table>
</div>
<b class="b2"></b>
<b class="b1"></b>
</div>
示例2: is_emp
">#<?php
echo sbr_stages::getOuterNum($sp['sbr_id'], $sp['stage_num']);
?>
</a></td>
<td><a href="/users/<?php
echo $sp['login'];
?>
/" class="nr-a-lnk-<?php
echo is_emp($sp['role']) ? 'emp' : 'frl';
?>
"><?php
echo $sp['uname'] . ' ' . $sp['usurname'] . ' [' . $sp['login'] . ']';
?>
</a></td>
<td class="nr-a-td-sum"><?php
echo sbr_meta::view_cost($sp['credit_sum'], NULL, false);
?>
</td>
<td class="nr-a-td-val">
<?php
echo $EXRATE_CODES[$sp['credit_sys']][2];
?>
</td>
<td><a href="/users/<?php
echo $sp['login'];
?>
/setup/finance/?sid=<?php
echo $sp['stage_id'];
?>
"><?php
echo $sp['account_num'] ? $sp['account_num'] : 'Не задан';
示例3: foreach
<span class="b-master__shadow b-master__shadow_left" id="shadow-left" style="display:none"></span>
<span class="b-master__shadow b-master__shadow_right"></span>
</div>
<?php
foreach ($sbr->stages as $i => $curr_stage) {
?>
<span style="<?php
echo $active_stage->id == $curr_stage->id && !$all_agree ? "" : "display:none;";
?>
" id="master-stage-<?php
echo $curr_stage->id;
?>
" class="master-stage">
<div class="b-layout__txt b-layout__txt_padbot_30 b-layout__txt_bold">Бюджет этапа <?php
echo sbr_meta::view_cost($curr_stage->data['cost'], $sbr->cost_sys);
?>
         Время на этап <?php
echo $curr_stage->data['work_days'];
?>
<?php
echo ending(abs($curr_stage->data['work_days']), 'день', 'дня', 'дней');
?>
</div>
<table class="b-layout__table b-layout__table_width_full" cellpadding="0" cellspacing="0" border="0">
<tr class="b-layout__tr">
<td class="b-layout__left b-layout__left_width_72ps">
<h2 class="b-layout__title">Техническое задание</h2>
<div class="b-layout__txt b-layout__txt_padbot_10 b-layout__txt_fontsize_15">
<?php
echo reformat($curr_stage->data['descr'], 70, 0, 0, 1);
示例4: num2strEx
/**
* Форматирует число в цену в рублях и копейках.
*
* @param float $L число
*
* @return string
*/
function num2strEx($L)
{
include_once dirname(__FILE__) . '/sbr.php';
global $_1_2, $_1_19, $des, $hang, $namerub, $nametho, $namemil, $namemrd, $kopeek;
$L = round($L, 2);
$source = $L;
$kop = 100 * (string) round($L - (int) $L, 2);
$L = intval($L);
$s = ' ';
$s1 = ' ';
$s2 = ' ';
if ($L == 0) {
$s .= 'ноль рублей Российской Федерации ';
}
if ($L >= 1000000000) {
$many = 0;
semantic(intval($L / 1000000000), $s1, $many, 3);
$s .= $s1 . $namemrd[$many];
$L %= 1000000000;
}
if ($L >= 1000000) {
$many = 0;
semantic(intval($L / 1000000), $s1, $many, 2);
$s .= $s1 . $namemil[$many];
$L %= 1000000;
if ($L == 0) {
$s = rtrim($s) . ' рублей Российской Федерации ';
}
}
if ($L >= 1000) {
$many = 0;
semantic(intval($L / 1000), $s1, $many, 1);
$s .= $s1 . $nametho[$many];
$L %= 1000;
if ($L == 0) {
$s = rtrim($s) . ' рублей Российской Федерации ';
}
}
if ($L != 0) {
$many = 0;
semantic($L, $s1, $many, 0);
$s .= rtrim($s1) . ' ' . trim($namerub[$many]) . ' ';
}
if ($kop > 0) {
$s .= str_pad($kop, 2, '0', STR_PAD_LEFT) . ending($kop, ' копейка', ' копейки', ' копеек');
} else {
$s .= '00 копеек';
}
setlocale(LC_ALL, 'ru_RU.CP1251');
$s = ucfirst(trim($s));
setlocale(LC_ALL, 'en_US.UTF-8');
return trim(sbr_meta::view_cost((double) $source, null, false, ',', ' ') . ' (' . trim($s) . ')');
}
示例5: array
<?php
}
?>
<?php
if ($need_payouts) {
?>
<?php
if ($norez_block) {
?>
<div class="form-block<?php
echo $fbc++ ? '' : ' first';
?>
">
<div class="form-el">
<p><strong>Нерезиденты Российской Федерации имеют лишь один способ получения денежных средств:</strong><br />безналичный расчет <span class="dred">с ограничением суммы в <?php
echo sbr_meta::view_cost($sbr->maxNorezCost(), exrates::BANK);
?>
</span> (эквивалента <?php
echo sbr::MAX_COST_USD;
?>
долларов США).</p>
<?php
if ($sbr->user_reqvs['rezdoc_status'] != sbr::RS_ACCEPTED) {
?>
<p>Во избежание дополнительного налога (налога на прибыль), вам необходимо выслать справку в бумажном виде вместе с Актом, что вы являетсь резидентом своей страны.<br /><a href="/docs/dokumenty_na_rezidentstvo.docx" target="_blank">Документ о Резиденстве</a></p>
<?php
}
?>
<div><label><input type="checkbox" name="notnp" value="1" class="i-chk" onclick="SBR.setNoNP(this)"<?php
echo $notnp || !$action && in_array($sbr->user_reqvs['rezdoc_status'], array(sbr::RS_ACCEPTED, sbr::RS_WAITING)) ? ' checked="checked"' : '';
?>
示例6: getSuccessInfo
/**
* Информация о успешно прошедшей операции
*
* @param array $data - Информация об операции
* @return array информация
*/
function getSuccessInfo($data)
{
if ($data['op_code'] == 12) {
list($sys, $cur) = self::getPaymentSysName($data['payment_sys']);
$suc = array("date" => $data['op_date'], "name" => "Пополнение счета ({$sys})", "descr" => '', "sum" => $data['trs_sum'] . " {$cur}");
return $suc;
}
if ($data['op_code'] == 77) {
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/sbr.php';
$suc = array("date" => $data['op_date'], "name" => "Резервирование денег («Безопасная Сделка»)", "descr" => '', "sum" => sbr_meta::view_cost($data['trs_sum'], $data['payment_sys'] + 1));
return $suc;
}
$sum = abs($data['ammount']);
return array("date" => $data['op_date'], "name" => $data['op_name'], "descr" => $data['comments'], "sum" => $sum . " руб.");
}
示例7:
echo ' disabled="disabled"';
$dsbl[$ex_code] = 1;
} ?>
<?= (!$dsbl[$ex_code] && ($sbr->cost_sys == $ex_code || $stage->request['credit_sys'] == $ex_code) ? ' checked="checked"' : '') ?> />
<label class="b-radio__label b-radio__label_fontsize_13" for="ex_<?= $ex_code ?>"><?= $ex_name[0] ?></label>
</div>
<? } //foreach?>
</div>*/
?>
<?php
echo $taxes;
?>
<div class="b-layout__txt b-layout__txt_color_a0763b b-layout__txt_padleft_20">
<span class="b-icon b-icon_top_2 b-icon_margleft_-20 b-icon_sbr_oattent"></span>
После получения нами подписанного вами акта в 2-х экземплярах и технического задания вы получите гонорар <?php
echo sbr_meta::view_cost($stage->type_payment != exrates::FM ? $stage->total_sum_stage : $stage->total_sum_stagefm, $stage->type_payment);
?>
на <?php
echo sbr_meta::view_type_payment($type_payment, 'свой ');
?>
,
<?php
if ($stage->type_payment != exrates::FM) {
?>
указанный на странице «<a class="b-layout__link b-layout__link_bordbot_dot_0f71c8" href="/users/<?php
echo $sbr->data[($sbr->isFrl() ? 'frl_' : 'emp_') . 'login'];
?>
/setup/finance/">Финансы</a>».
<?php
} else {
echo ".";
示例8: foreach
<?php
}
//if
?>
<?php
foreach ($taxes as $k => $tax) {
?>
<div class="b-tax__level b-tax__level_padbot_10 b-tax__level_margbot_10 b-tax__level_padtop_15 b-tax__level_bordbot_cfd0c5">
<div class="b-tax__txt b-tax__txt_lineheight_16 b-tax__txt_width_340 b-tax__txt_inline-block">
<?php
echo $tax['name'];
?>
</div>
<div class="b-tax__txt b-tax__txt_bold b-tax__txt_width_120 b-tax__txt_inline-block">− <?php
echo sbr_meta::view_cost($tax['tax_cost'], exrates::BANK, false);
?>
</div>
<div class="b-tax__txt b-tax__txt_width_130 b-tax__txt_inline-block b-tax__txt_fontsize_11">
<?php
if ($tax['tax_code'] == 'TAX_FL') {
?>
<img class="b-tax__pic b-tax__pic_float_right b-tax__pic_margtop_-12" src="/images/f.png" alt="" />
<?php
}
//if
?>
<?php
echo $tax['percent'];
?>
</div>
示例9: view_scheme_info
/**
* Печатает информацию по схеме текущей сделки.
* @param float $curr_cost подменить $this->cost (бюджет) этим значением.
*/
function view_scheme_info($curr_cost = NULL)
{
if (!$curr_cost) {
$curr_cost = $this->cost;
}
$curr_sbr = $this;
$sh_info = array();
$tmp_ts = $total_sum = $curr_sbr->getTotalCost();
if ($curr_sbr->scheme['taxes'][sbr::FRL]) {
foreach ($curr_sbr->scheme['taxes'][sbr::FRL] as $tid => $tax) {
$tax_sum = $curr_sbr->getTotalTax($tax);
if (!$tax_sum) {
continue;
}
$total_sum -= $tax_sum;
$tmp = array();
$tmp['name'] = $tax['name'];
$tmp['percent'] = $tax['percent'] * 100 . '%';
$tmp['cost'] = sbr_meta::view_cost($tax_sum, $curr_sbr->cost_sys, false);
if (in_array($tax['id'], $curr_sbr->getTaxByCode(array('TAX_NDFL', 'TAX_NDFL_NR', 'TAX_FRL_NDS')))) {
$tmp2 = array();
$tmp2['name'] = 'Вознаграждение Фрилансеру';
$tmp2['percent'] = '—';
$tmp2['cost'] = sbr_meta::view_cost($tax_sum + $total_sum, $curr_sbr->cost_sys, false);
$hndl =& $tmp2;
$sh_info[] = $tmp2;
}
$sh_info[] = $tmp;
}
}
ob_start();
include $_SERVER['DOCUMENT_ROOT'] . '/norisk2/tpl.scheme_info.php';
$this->view_sign_alert();
return ob_get_clean();
}
示例10: ending
</div>
<?php
// схемы
?>
<?php
}
?>
<?php
// итого
?>
<div class="b-tax__level b-tax__level_padtop_15" id="bank_payment_sum">
<div class="b-tax__txt b-tax__txt_bold b-tax__txt_width_220 b-tax__txt_inline-block">Вы получите</div>
<div class="b-tax__txt b-tax__txt_inline-block"><span class="b-tax__txt b-tax__txt_bold b-tax__txt_fontsize_15" id="cost_total"><?php
echo sbr_meta::view_cost($sbr->cost - $totalSum, $sbr->cost_sys);
?>
</span> и <span id="rating_total">0</span> <?php
echo ending($RT, 'балл', 'балла', 'баллов');
?>
рейтинга</div>
</div>
<?php
// итого
?>
</div>
</div>
</div>
</div>
</div>
</div>
示例11:
.</span>
<div class="form-el">
<table>
<col width="175" />
<col width="145" />
<col />
<col />
<tr>
<th>Бюджет</th>
<td class="date-old"><?php
echo sbr_meta::view_cost($stage->v_data['cost'], $sbr->v_data['cost_sys']);
?>
</td>
<td><span class="rarr"> → </span></td>
<td><span class="date-new"><?php
echo sbr_meta::view_cost($stage->cost, $sbr->cost_sys);
?>
</span></td>
</tr>
</table>
<?php
echo $sbr->view_scheme_info($stage->cost);
?>
</div>
</div>
<?php
}
?>
<?php
if ($new_descr_ex = $stage->data['descr'] != $stage->v_data['descr'] || $stage->data['attach_diff'] != $stage->v_data['attach_diff'] || $stage->data['attach_diff'] && $stage->v_data['attach_diff'] && (array_diff_assoc($stage->v_data['attach_diff'], $stage->data['attach_diff']) || array_diff_assoc($stage->data['attach_diff'], $stage->v_data['attach_diff']))) {
// !!!
示例12: reformat
</td>
<td><strong>#<?php
echo sbr_stages::getOuterNum($sbr_data['sbr_id'], $sbr_data['num']);
?>
</strong> <a href="<?php
echo $mode == 'all' ? '/sbr/' : '';
?>
?access=A&site=Stage&id=<?php
echo $sbr_data['id'];
?>
"><?php
echo reformat($sbr_data['name'], 30, 0, 1);
?>
</a></td>
<td class="nr-a-td-sum"><?php
echo sbr_meta::view_cost($sbr_data['cost'], null, false);
?>
</td>
<td class="nr-a-td-val"><?php
echo $sbr_data['reserved_id'] || $sbr_data['scheme_type'] != sbr::SCHEME_LC ? $EXRATE_CODES[$sbr_data['cost_sys']][2] : ' — ';
?>
</td>
<td><?php
echo $sbr_data['dead_time'] ? date('d.m.Y H:i', strtotime($sbr_data['dead_time'])) : $sbr_data['work_days'] . ' ' . ending(abs($sbr_data['work_days']), 'день', 'дня', 'дней');
?>
</td>
<td<?php
echo $sbr_data['status'] == sbr_stages::STATUS_INARBITRAGE ? ' class="stat-imp"' : '';
?>
><?php
echo sbr_stages::$ss_classes[$sbr_data['status']][1];
示例13: echo
<td><?php
echo (double) $stg['act_lintr'] ? sbr_meta::view_cost($stg['act_lintr'], $stg['act_sys']) : '-';
?>
</td>
<td><?php
echo (double) $stg['act_sum'] ? sbr_meta::view_cost($stg['act_sum'], $stg['act_sys']) : '-';
?>
</td>
<td class="last"><a href="/users/<?php
echo $stg['login'];
?>
/setup/finance/?sid=<?php
echo $stg['id'];
?>
" class="inherit"><?php
echo (double) $stg['credit_sum'] ? sbr_meta::view_cost($stg['credit_sum'], $stg['credit_sys']) : '-';
?>
</a></td>
</tr>
</tbody>
</table>
<table class="nr-stat-docs" style="width:750px" cellspacing="10" >
<col style="width:240px" />
<col style="width:240px" />
<col style="width:240px" />
<?php
$nCol = 0;
?>
<tr style="height:35px">
<?php
示例14: reserve
/**
* Устанавливает сделку в состояние зарезервированной после успешной операции резервирования на счете.
* Добавляет к операции подробный комментарий.
*
* @see account::deposit().
*
* @param int $reserved_id ид. операции резервирования (account_operations.id).
*
* @return bool успешно?
*/
public function reserve($reserved_id)
{
if (!$this->_openXact(true)) {
return false;
}
$tax_emp = 0;
$pskb = new pskb($this);
$lc = $pskb->getLC();
$dvals = array('P' => pskb::$exrates_map[$lc['ps_emp']]);
foreach ($this->scheme['taxes'][sbr::EMP] as $tax) {
$tax_emp += sbr_meta::calcAnyTax($tax['tax_id'], $tax['scheme_id'], $this->cost, $dvals);
}
$comments = sbr_meta::view_cost($this->getReserveSum(), $this->cost_sys) . ', ' . $this->getContractNum() . ', ' . round($tax_emp / $this->cost * 100) . '% за услугу сервиса СБР и Банка - ' . sbr_meta::view_cost($tax_emp, $this->cost_sys);
$sql = "\n UPDATE sbr SET reserved_id = ?i WHERE id = ?i;\n UPDATE account_operations SET comments = '{$comments}' WHERE id = ?i;\n ";
$sql = $this->db()->parse($sql, $reserved_id, $this->id, $reserved_id);
if (!pg_query(self::connect(false), $sql)) {
$this->_abortXact();
return false;
}
if ($this->scheme_type == sbr::SCHEME_AGNT) {
if ($doc_file = $this->generateAgreement($err)) {
$doc = array('file_id' => $doc_file->id, 'status' => sbr::DOCS_STATUS_SIGN, 'access_role' => sbr::DOCS_ACCESS_ALL, 'owner_role' => 0, 'type' => sbr::DOCS_TYPE_OFFER, 'subtype' => 2);
$this->addDocR($doc);
}
if (!$err) {
if ($doc_file = $this->generateContract($err)) {
$doc = array('file_id' => $doc_file->id, 'status' => sbr::DOCS_STATUS_SIGN, 'access_role' => sbr::DOCS_ACCESS_ALL, 'owner_role' => 0, 'type' => sbr::DOCS_TYPE_OFFER, 'subtype' => 1);
$this->addDocR($doc);
}
}
} elseif ($this->scheme_type == sbr::SCHEME_PDRD || $this->scheme_type == sbr::SCHEME_PDRD2) {
if ($doc_file = $this->genereteBailmentEmp($err)) {
$doc = array('file_id' => $doc_file->id, 'status' => sbr::DOCS_STATUS_SIGN, 'access_role' => sbr::DOCS_ACCESS_EMP, 'owner_role' => 0, 'type' => sbr::DOCS_TYPE_OFFER);
$this->addDocR($doc);
}
if (!$err) {
if ($doc_file = $this->genereteBailmentFrl($err)) {
$doc = array('file_id' => $doc_file->id, 'status' => sbr::DOCS_STATUS_SIGN, 'access_role' => sbr::DOCS_ACCESS_FRL, 'owner_role' => 0, 'type' => sbr::DOCS_TYPE_OFFER);
$this->addDocR($doc);
}
}
}
if ($err) {
$this->error['fatal'] = $err;
}
if ($this->error) {
$this->_abortXact();
return false;
}
$this->_commitXact();
if ($this->scheme_type == sbr::SCHEME_LC) {
if ($XACT_ID = $this->_openXact(true)) {
$result = sbr_notification::sbr_add_event($XACT_ID, $this->id, $this->stages[0]->id, 'sbr_stages.STARTED_WORK', $this->version, null, null);
if (!$result) {
$this->_abortXact();
}
$this->_commitXact();
}
}
return true;
}
示例15: foreach
</tr>
<?php
foreach ($taxes as $k => $tax) {
?>
<tr>
<td class="first"><?php
echo $tax['name'];
?>
</td>
<td></td>
<td><?php
echo $tax['percent'];
?>
%</td>
<td class="last"><?php
echo sbr_meta::view_cost($tax['tax_cost'], $cost_sys, false);
?>
</td>
</tr>
<?php
}
?>
<tr class="last">
<td class="first"><strong>Итого вы получите</strong></td>
<td></td>
<td>—</td>
<td class="last"><strong><?php
echo sbr_meta::view_cost($total_sum, $cost_sys);
?>
</strong></td>
</tr>