本文整理汇总了PHP中sbr_meta类的典型用法代码示例。如果您正苦于以下问题:PHP sbr_meta类的具体用法?PHP sbr_meta怎么用?PHP sbr_meta使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了sbr_meta类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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: 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
示例3: getPromoStats
/**
* возвращает статистику в промоблок Безопасной Сделки.
*/
function getPromoStats()
{
$objResponse = new xajaxResponse();
$promoStats = sbr_meta::getpromoStats();
$roleStr = is_emp() || !get_uid() ? 'emp' : 'frl';
ob_start();
include $_SERVER['DOCUMENT_ROOT'] . '/promo/sbr/new/tpl.stats.php';
$html = ob_get_clean();
$objResponse->assign('promo-stats', 'innerHTML', $html);
return $objResponse;
}
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:14,代码来源:promo.server.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: quickPaymentAccountYandexKassa
/**
* Пополнение счета через яндекс кассу.
*
* @param type $type - тип оплаты
* @param type $data - данные по параметрам покупаемой услуги
*
* @return \xajaxResponse
*/
function quickPaymentAccountYandexKassa($type, $data)
{
$is_error = true;
$uid = get_uid(false);
$objResponse =& new xajaxResponse();
$price = (int) @$data['price'];
$pay_methods = array(quickPaymentPopup::PAYMENT_TYPE_CARD => yandex_kassa::PAYMENT_AC, quickPaymentPopup::PAYMENT_TYPE_YA => yandex_kassa::PAYMENT_YD, quickPaymentPopup::PAYMENT_TYPE_WM => yandex_kassa::PAYMENT_WM, quickPaymentPopup::PAYMENT_TYPE_ALFACLICK => yandex_kassa::PAYMENT_AB, quickPaymentPopup::PAYMENT_TYPE_SBERBANK => yandex_kassa::PAYMENT_SB);
if (!isset($pay_methods[$type])) {
return $objResponse;
}
$allow = !sbr_meta::isFtJuri($uid);
if ($allow) {
$is_error = false;
$billReserveId = null;
$bill = new billing($uid);
$minPrice = quickPaymentPopupAccount::PRICE_MIN;
if ($bill->getAccSum() < 0) {
$debt = abs($bill->getAccSum());
$minPrice = $debt > $minPrice ? $debt : $minPrice;
if ($price >= $minPrice) {
$option = array('acc_sum' => $minPrice);
//Автоматическая покупка услуги погашения задолженности
$billReserveId = $bill->addServiceAndCheckout(135, $option);
}
}
$payment = $pay_methods[$type];
if ($price < $minPrice || $price > quickPaymentPopupAccount::PRICE_MAX || $payment == yandex_kassa::PAYMENT_WM && $price > quickPaymentPopupAccount::PRICE_MAX_WM) {
$is_error = true;
}
if (!$is_error) {
$yandex_kassa = new yandex_kassa();
$html_form = $yandex_kassa->render($price, $bill->account->id, $payment, $billReserveId);
$objResponse->script("\n var qp_form_wrapper = \$\$('#quick_payment_account .__quick_payment_form');\n if(qp_form_wrapper){ \n qp_form_wrapper.set('html','{$html_form}');\n qp_form_wrapper.getElement('form')[0].submit();\n }\n ");
$link = '/bill/history/?period=3';
//сохраняем в сессию куда перейти при успешной покупке
$_SESSION[quickPaymentPopup::QPP_REDIRECT] = $link;
}
}
// Показываем предупреждение в случае ошибки
if ($is_error) {
$objResponse->script("\n var qp = window.quick_payment_factory.getQuickPayment('account');\n if(qp) qp.show_error('Возникла ошибка при пополнении счета!');\n ");
}
return $objResponse;
}
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:52,代码来源:quick_payment_account.server.php
示例6: GetMoreSBR
function GetMoreSBR($uid, $i)
{
session_start();
$objResponse = new xajaxResponse();
$html = '';
$user = new users();
$user->GetUserByUID($uid);
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/sbr.php';
$MONTHA = $GLOBALS['MONTHA'];
if ($i > 5 || $i <= 0) {
$i = 5;
}
$sbr_ratings = sbr_meta::getUserRatings($user->uid, is_emp($user->role), 'ALL', 5);
ob_start();
include $_SERVER['DOCUMENT_ROOT'] . '/user/tpl.rating-sbr.php';
$html = ob_get_contents();
ob_end_clean();
$objResponse->assign('more_sbr_content', 'innerHTML', $html);
return $objResponse;
}
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:20,代码来源:rating.server.php
示例7: updateSafetyPhone
/**
* Изменить данные привязки аккаунта к телефону.
*
* @param int $sUid UID пользователя
* @param string $sPhone телефон
* @param string $sPhoneOnly отправлять восстановление пароля только на телефон - 't' или 'f'
* @param string $sSafetyMob Входить в финансы только по СМС - 't' или 'f'
*
* @return object xajaxResponse
*/
function updateSafetyPhone($sUid = 0, $sPhone = '', $sPhoneOnly = 'f', $sSafetyMob = 'f')
{
session_start();
$objResponse = new xajaxResponse();
if (hasPermissions('users')) {
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/users.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/sbr.php';
$sPhone = '+' . str_replace('+', '', $sPhone);
$reqv = sbr_meta::getUserReqvs($sUid);
if ($reqv[$reqv['form_type']]['mob_phone'] != $sPhone) {
$nreqv['mob_phone'] = $sPhone;
$cnt = 0;
$filter = array('search_phone_exact' => true, 'search_phone' => $nreqv['mob_phone']);
sbr_meta::searchUsersPhone($cnt, $filter);
if ($cnt > 0) {
$res = "Телефон {$sPhone} уже зарегистрирован в системе.";
$objResponse->assign("safety_phone{$sUid}", 'value', $reqv[$reqv['form_type']]['mob_phone']);
} else {
sbr_meta::$reqv_fields[$reqv['form_type']]['mob_phone']['maxlength'] = 15;
$error = sbr_meta::setUserReqv($sUid, $reqv['rez_type'], $reqv['form_type'], $nreqv);
}
}
$res = users::ChangeSafetyPhone($sUid, $sPhone, $sPhoneOnly);
$error = sbr_meta::safetyMobPhone($sUid, $sSafetyMob);
if ($res) {
$objResponse->alert($res);
$objResponse->script("\$('safety_phone_show{$sUid}').setStyle('display', '');");
} else {
$sChecked = $sPhoneOnly == 't' ? 'true' : 'false';
$sDisplay = $sPhoneOnly == 't' ? '' : 'none';
$sSafetyMobDisplay = $sSafetyMob == 't' ? '' : 'none';
$objResponse->assign("safety_phone_value{$sUid}", 'innerHTML', $sPhone);
$objResponse->assign("safety_phone_hidden{$sUid}", 'value', $sPhone);
$objResponse->script("\$('safety_only_phone_show{$sUid}').setStyle('display', '{$sDisplay}');");
$objResponse->script("\$('is_safety_mob_show{$sUid}').setStyle('display', '{$sSafetyMobDisplay}');");
$sDisplay = trim($sPhone) ? '' : 'none';
$objResponse->script("\$('safety_phone_show{$sUid}').setStyle('display', '{$sDisplay}');");
}
$objResponse->script("\$('safety_phone_edit{$sUid}').setStyle('display', 'none');");
}
return $objResponse;
}
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:52,代码来源:admin_log.server.php
示例8: fillU
/**
* Инициализирует все данные в сессии.
*
* @param users $user инициализирванный объект users.
*/
public function fillU($user)
{
if (!$user->uid) {
$this->error(EXTERNAL_ERR_USER_NOTFOUND);
}
if ($user->is_banned) {
$this->error(EXTERNAL_ERR_USER_BANNED);
}
if ($user->active != 't') {
$this->error(EXTERNAL_ERR_USER_NOTACTIVE);
}
$data = get_object_vars($user);
unset($user);
require_once ABS_PATH . '/classes/sbr.php';
require_once ABS_PATH . '/classes/sbr_meta.php';
require_once ABS_PATH . '/classes/messages.php';
require_once ABS_PATH . '/classes/account.php';
$is_emp = is_emp($data['role']);
$data['id'] = md5(self::MEM_GROUP . uniqid($data['uid']));
$data['new_msgs'] = messages::GetNewMsgCount($data['uid']);
$data['role'] = (int) $is_emp;
$data['is_pro'] = $this->pg2ex($data['is_pro'], EXTERNAL_DT_BOOL);
$sbr_cls = $is_emp ? 'sbr_emp' : 'sbr_frl';
$sbr = new $sbr_cls($data['uid'], $data['login']);
$data['sbr_count'] = $sbr->getActivesCount();
$data['new_sbr_events'] = sbr_meta::getNewEventCount($data['uid']);
$account = new account();
$account->GetInfo($data['uid']);
$data['sum'] = $account->sum;
foreach ($this->public as $f => $v) {
$this->{$f} = $data[$f];
}
$this->_uid = $data['uid'];
$this->_last_updated = time();
}
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:40,代码来源:session.php
示例9: json_encode
echo json_encode($sbr_taxes);
?>
;
// alert(taxesMap['263']);
var exrates_changes = function(exrate) {
var exrates_name = 'банковский счет';
switch(exrate) {
<?php
foreach (pskb::$exrates_map as $k => $v) {
?>
case '<?php
echo $k;
?>
':
exrates_name = '<?php
echo sbr_meta::view_type_payment($v);
?>
';
break;
<?php
}
//foreach
?>
}
if(exrate == '<?php
echo pskb::WW;
?>
' && $('method_any_text')) {
$('method_any_text').hide();
//$('method_ww_text').show();
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:tpl.pskb-psys.php
示例10: 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 . " руб.");
}
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:21,代码来源:account.php
示例11: USD
?>
)"/>
Я подтверждаю, что являюсь резидентом любого другого государства, кроме Российской Федерации
</label>
<div class="form fs-o form-resident-inf"<?php
echo $rt_checked && $rez_type == sbr::RT_UABYKZ ? '' : ' style="display:none"';
?>
id="norez_info">
<b class="b1"></b>
<b class="b2"></b>
<div class="form-in">
Максимальная сумма сделки составляет <?php
echo sbr::MAX_COST_USD;
?>
USD (<?php
echo sbr_meta::view_cost($sbr->maxNorezCost(), exrates::BANK);
?>
)<br />
</div>
<b class="b2"></b>
<b class="b1"></b>
</div>
</li>
</ul>
</div>
</div>
<div class="form-block last">
<div class="form-el c">
<ul class="form-nr-scheme-ul">
<?php
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:31,代码来源:create.php
示例12:
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>
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:30,代码来源:tpl.scheme_info.php
示例13: 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) . ')');
}
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:60,代码来源:num_to_word.php
示例14: reformat
if ($theme['is_payed'] == 1) {
?>
подтвержденная рекомендация по итогам сотрудничества
<?php
} else {
?>
по итогам сделки <span class="b-icon b-icon_top_3 b-icon_sbr_shield"></span>
<?php
if ($uid == $theme['frl_id'] || $uid == $theme['emp_id']) {
// отзывы смотрит участнк сделк
?>
«<a id='sbr_name_<?php
echo $theme['id'];
?>
' class="b-layout__link" href="<?php
echo sbr_meta::isNewVersionSbr($theme['scheme_type']) ? "/" . sbr::NEW_TEMPLATE_SBR . "/?id={$theme['sbr_id']}" : "/norisk2/?id={$theme['sbr_id']}";
?>
"><?php
echo reformat($theme['sbr_name'], 40, 0, 1);
?>
</a>»
<?php
} elseif ($theme['project_id']) {
?>
«<a id='sbr_name_<?php
echo $theme['id'];
?>
' class="b-post__link" href="/projects/<?php
echo $theme['project_id'];
?>
"><?php
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:tpl.total_opinions.php
示例15:
<input type="hidden" name="id" value="<?php
echo $stage->id;
?>
" />
<input type="hidden" name="action" value="complete" />
</div>
</form>
</div>
<b class="b2"></b>
<b class="b1"></b>
</div>
<?php
echo $sbr->view_sign_alert();
?>
<?php
if ($stage->request['credit_sys'] == exrates::WMR && sbr_meta::checkWMDoc($sbr->user_reqvs)) {
?>
<div class="nr-block-imp" id="wmdoc_alert">
<b class="b1"></b>
<b class="b2"></b>
<div class="form-in">
Для выбора Webmoney в качестве валюты выбора требуется заполнить поля "<a href="/users/<?php
echo $sbr->login;
?>
/setup/finance/#WMDOC">Паспортные данные</a>" в блоке "Электронные кошельки" на странице "<a href="/users/<?php
echo $sbr->login;
?>
/setup/finance/">Финансы</a>"
</div>
<b class="b2"></b>
<b class="b1"></b>
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:31,代码来源:stage-completed.php
示例16: array
$filter['to'] = array('day' => date('d', $arch_time), 'month' => date('n', $arch_time), 'year' => date('Y', $arch_time));
}
$docs = $sbr->getDocsFlow($scheme, $filter, $page, $dir, $dir_col, $page_count);
if ($docs) {
foreach ($docs as $i => $_doc) {
$_doc['act_sys'] = !is_emp($_doc['role']) && $_doc['act_sys'] == 1 ? 5 : $_doc['act_sys'];
$docs[$i] = $_doc;
/* @mark_0013241 */
$docs[$i]['reqv_history'] = sbr_meta::getUserReqvHistory($docs[$i]['stage_id'], $docs[$i]['user_id']);
$form_type_e = $docs[$i]['reqv_history']['e']['form_type'];
$form_type_b = $docs[$i]['reqv_history']['b']['form_type'];
$form_type[$i] = $form_type_e ? $form_type_e : ($form_type_b ? $docs[$i]['reqv_history']['b']['form_type'] : $docs[$i]['form_type']);
}
}
$sbr->getExrates();
sbr_meta::getReqvFields();
break;
case '1c':
if ($action == 'export') {
$date_s = __paramInit('string', 'date_s');
$date_e = __paramInit('string', 'date_e');
$file_data_csv = sbr_adm_finance::exportSBRDataToCSV($date_s, $date_e);
$fname = 'sbr_export_1c';
if ($date_s || $date_e) {
if ($date_s) {
$fname .= "-{$date_s}";
}
if ($date_e && $date_s != $date_e) {
$fname .= "-{$date_e}";
}
}
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:31,代码来源:index.php
示例17:
<?php
if ($sbr->isEmpReservedMoney() && !$sbr->isEmp()) {
?>
<a class="b-layout__link b-layout__link_bold b-layout__link_bordbot_dot_000 open-tax" onclick="$(this).getParent('td').getElement('.b-tax').toggleClass('b-tax_hide')" href="javascript:void(0)"><?php
echo sbr_meta::view_cost($stage->data['cost'], exrates::BANK);
?>
</a>
<?php
} else {
//if
// выводить сумму в FM или рублях
$cost = $creditSysFM ? $stage->data['cost'] * $sbr->exrates[$sbr->cost_sys . 1] : $stage->data['cost'];
$costSys = $creditSysFM ? 1 : exrates::BANK;
?>
<span class="b-layout__bold"><?php
echo sbr_meta::view_cost($cost, $costSys);
?>
</span>
<?php
}
//else
?>
<?php
}
//if
?>
</div>
<?php
if ($sbr->isEmpReservedMoney() && !$sbr->isEmp()) {
print $stage->_new_getTaxInfo();
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:tpl.stage-header-info.php
示例18: users
if ($email) {
$user = new users();
$user = $user->getUserBySocialEmail($email);
if (empty($user['login'])) {
$action = '';
} else {
$login = $user['login'];
}
}
if ($login) {
$user = new users();
if ($action == 'info') {
$user->GetUserByLoginPasswd($login, $user->hashPasswd($pass));
} else {
$user->GetUser($login);
}
if (empty($user->login)) {
$action = '';
}
}
switch ($action) {
case 'role':
$result = array('result' => 'ok', 'role' => is_emp($user->role) ? 1 : 2);
break;
case 'info':
$sbr = sbr_meta::getUserReqvs($user->uid);
$result = array('result' => 'ok', 'user' => array('login' => $user->login, 'email' => $user->email, 'phone' => $sbr[$sbr['form_type']]['mob_phone'] != '' ? $sbr[$sbr['form_type']]['mob_phone'] : '', 'firstname' => $user->uname ? iconv('CP1251', 'UTF-8', $user->uname) : '', 'lastname' => $user->usurname ? iconv('CP1251', 'UTF-8', $user->usurname) : '', 'role' => is_emp($user->role) ? 1 : 2, 'avatar' => $user->photo != '' ? WDCPREFIX . '/users/' . $user->login . '/foto/' . $user->photo : ''));
break;
}
$mem->set($key, $result, 600);
echo json_encode($result);
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:31,代码来源:dizkon.php
示例19: array
$_SESSION['admin_log_user'] = $_SERVER['REQUEST_URI'];
$menu_item = 4;
$rpath = '../../';
$css_file = array('moderation.css', 'new-admin.css', 'nav.css');
$js_file = array('zeroclipboard/ZeroClipboard.js', 'user_search.js', 'admin_log.js', 'banned.js');
$header = $rpath . 'header.php';
$inner_page = "index_inner.php";
$content = '../content22.php';
$footer = $rpath . 'footer.html';
$template = 'template2.php';
$filter = array();
$cmd = __paramInit('string', 'cmd', 'cmd', '');
$page = __paramInit('int', 'page', 'page', 1);
$search_phone = __paramInit('string', 'search_phone', 'search_phone', '');
$search_phone = clearInputText($search_phone);
$sbr_meta = new sbr_meta();
if (!$page) {
$page = 1;
} elseif ($page < 0) {
header_location_exit('/404.php');
exit;
}
$search_phone_exact = __paramInit('string', 'search_phone_exact', null, '');
if ($cmd == 'filter') {
$filter['search_phone'] = $search_phone;
$filter['search_phone_exact'] = $search_phone_exact;
$users = $sbr_meta->searchUsersPhone($count, $filter, $page);
$pages = ceil($count / 50);
if (!$users && $page > 1) {
$sHref = e_url('page', null);
header('Location: ' . $sHref);
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:index.php
示例20: 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);
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:tpl.stage-master.php
注:本文中的sbr_meta类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论