<figcaption class="b-layout__txt b-layout__txt_padtop_10 b-layout_overflow_hidden"> <a class="b-layout__link b-layout__link_no-decorat b-layout__link_color_000 b-layout__link_inline-block" href="<?php echo $tservice_url; ?> "><?php echo LenghtFormatEx(reformat($tservice['title'], 20, 0, 1), 80); ?> </a> </figcaption> <div class="b-user b-user_padtop_10"> <a class="b-user__link b-user__link_color_ec6706" href="<?php echo $user_url; ?> /tu/" title="<?php echo $user['uname'] . ' ' . $user['usurname']; ?> "> <img width="15" height="15" alt="" src="<?php echo $avatar_url; ?> " class="b-user__pic b-user__pic_15"> <?php echo view_fullname($user); ?> </a> </div> </figure> <?php } ?> </div>
<td class="b-layout__td b-layout__td_padbot_20"> <div class="b-layout__txt b-layout__txt_fontsize_15"> Исполнитель </div> </td> <td class="b-layout__td b-layout__td_padbot_20"> <?php echo $session->view_online_status($freelancer->login); ?> <a class="b-layout__link b-layout__link_fontsize_13 b-layout__link_no-decorat b-layout__link_color_000 b-layout__link_bold" href="/users/<?php echo $freelancer->login; ?> /"> <?php echo view_fullname($freelancer); ?> </a> <?php echo view_mark_user(array("login" => $freelancer->login, "is_pro" => $freelancer->is_pro, "is_profi" => $freelancer->is_profi, "is_pro_test" => $freelancer->is_pro_test, "is_team" => $freelancer->is_team, "role" => $freelancer->role), '', true, " "); ?> </td> <td class="b-layout__td b-layout__td_width_70 b-layout__td_padbot_20"></td> </tr> <tr class="b-layout__tr"> <?php echo $form->getElement('title')->render(); ?> <td class="b-layout__td b-layout__td_width_70 b-layout__td_padbot_20"></td> </tr> <tr class="b-layout__tr">
} ?> </a> </div> <figcaption class="b-layout__txt b-layout__txt_padtop_10 b-layout_overflow_hidden"> <a class="b-layout__link b-layout__link_no-decorat b-layout__link_color_000 b-layout__link_inline-block" href="<?php echo $tservice_url; ?> "><?php echo LenghtFormatEx(reformat($tservice['title'], 20, 0, 1), 80); ?> </a> </figcaption> <div class="b-user b-user_padtop_10"> <?php $fullname = view_fullname($user, true); ?> <a class="b-user__link b-user__link_color_ec6706" title="<?php echo $fullname; ?> " href="<?php echo $user_url; ?> "> <img width="15" height="15" class="b-user__pic b-user__pic_15" src="<?php echo $avatar_url; ?> " alt="<?php echo $fullname; ?> ">
} else { ?> <li class="b-user-menu-clause b-user-menu-pro-clause b-user-menu-completed-pro-clause"> <a href="/payed-emp/" class="b-user-menu-clause-link" title="Купить аккаунт ПРО">PRO</a> </li> <?php } ?> <li class="b-user-menu-clause b-user-menu-additional-clause"> <div class="b-dropdown b-user-menu-dropdown" data-dropdown="true" data-dropdown-descriptor="user-menu"> <a href="<?php echo $user_link; ?> " class="b-dropdown-opener" data-dropdown-opener="true" title="<?php echo view_fullname(); ?> "> <span class="b-dropdown-opener-picture"> <?php echo view_avatar($_SESSION['login'], $_SESSION['photo'], 0, 1, 'b-dropdown-opener-picture-entity'); ?> </span> </a> <div class="b-dropdown-concealment g-hidden" data-dropdown-concealment="true"> <ul class="b-dropdown-concealment-options"> <li class="b-dropdown-concealment-options-clause b-dropdown-concealment-options-profile-clause"> <a title="Профиль" class="b-dropdown-concealment-options-clause-link" href="<?php echo $user_link; ?> ">Профиль</a>
$data['location'] = 'г. ' . $city->getCityName($data['city']); } //------------------------------------------------------------------------------ //Виджет попап окошка при заказе услуги //непоказываем фрилансерам $tserviceOrderPopup = NULL; $is_frl = !is_emp() && get_uid(false); if (!$is_frl) { require_once $_SERVER['DOCUMENT_ROOT'] . '/tu/widgets/TServiceOrderPopup.php'; $tserviceOrderPopup = new TServiceOrderPopup(); $tserviceOrderPopup->init(array('title' => $data['title'], 'frl_fullname' => "{$user_obj->uname} {$user_obj->usurname} [{$user_obj->login}]", 'price' => $data['price'], 'days' => $data['days'], 'category_id' => $data['category_id'])); } //------------------------------------------------------------------------------ if (!$is_owner) { //Популярные услуги из этой же категории или пользователя если данная услуга закреплена require_once $_SERVER['DOCUMENT_ROOT'] . '/tu/widgets/TServicesPopular.php'; require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/tservices/tservices_binds.php'; $tservicesPopular = new TServicesPopular(); $tservicesPopularOptions = array('title_css' => 'b-layout__title_padtop_40', 'item_css' => 'i-pic_port_col4_desktop'); $isBinded = tservices_binds::isBinded($data['id']); if ($isBinded) { $tservicesPopularOptions['user_id'] = $uid; $tservicesPopularOptions['limit'] = 100; $tservicesPopularOptions['fullname'] = view_fullname($user_obj); } $tservicesPopular->setOptions($tservicesPopularOptions); $tservicesPopular->init($data['category_id'], $data['id']); } //------------------------------------------------------------------------------ $inner = 'tpl.card.php'; include '../template3.php';
/** * Парсит порцию HTML содержимого для изменений в реквизитах финансов * * @param int $last_id возвращает последний Id проектов * @param array $content массив данных из базы * @param int $status статус: 0 - не проверенно, 1 - утверждено, 2 - удалено * @param array $aStream данные о потоке * @return string HTML */ function _parseSbrReqv(&$last_id, $content = array(), $status = 0, $aStream = array()) { $sReturn = ''; $nCnt = count($content); foreach ($content as $aOne) { $link = sprintf('%s/users/%s/setup/finance/', $GLOBALS['host'], $aOne['login']); $content = Template::render(ABS_PATH . '/templates/user_content/sbr_reqv/content.tpl.php', array('sTitle' => $link, 'sLink' => $link)); $sJSParams = "{'content_id': {$aOne['content_id']}, 'stream_id': '{$aStream['stream_id']}', 'content_cnt': {$nCnt}, 'status': {$status}, 'is_sent': '{$aOne['is_sent']}'}"; $sEditIcon = ''; //_parseEditIcon( 'admEditTServices', $aOne['id'], $status, '0', $sJSParams ); $sReturn .= Template::render(ABS_PATH . '/templates/user_content/layout.tpl.php', array('content_id' => $aOne['content_id'], 'id' => $aOne['id'], '_parseHidden' => _parseHidden($aOne), '_parseOkIcon' => _parseOkIcon($status, $aOne['content_id'], $aOne['id'], '0', $aOne['user_id']), '_parsePostTime' => _parsePostTime($status, $aOne['last']), 'login' => $aOne['login'], 'user_fullname' => view_fullname($aOne), 'user_status' => view_mark_user($aOne), '_parseDelIcons' => _parseDelIcons($aOne, 'user_id', $status, '0', $sJSParams, $sEditIcon), 'warn_class' => !$aOne['warn'] ? 'user-notice' : '', 'warn' => $aOne['warn'] ? '<a onclick="parent.user_content.getUserWarns(' . $aOne['user_id'] . ');" href="javascript:void(0);" class="notice">Предупреждения: <span id="warn_' . $aOne['user_id'] . '_' . user_content::MODER_SBR_REQV . '_' . $aOne['id'] . '">' . intval($aOne['warn']) . '</span></a>' : 'Предупреждений нет', '_parseMass' => _parseMass($aOne, $status, '0'), 'content' => $content)); } return $sReturn; }
</div> <figcaption class="b-layout__txt b-layout__txt_padtop_10 b-layout_overflow_hidden"> <a class="b-layout__link b-layout__link_no-decorat b-layout__link_color_000 b-layout__link_inline-block" href="<?php echo $tservice_url; ?> "> <?php echo $tservice_title; ?> </a> </figcaption> <div class="b-user b-user_padtop_10"> <?php $fullname = view_fullname($tservice, true); ?> <a class="b-user__link b-user__link_color_ec6706" title="<?php echo $fullname; ?> " href="<?php echo $user_url; ?> "> <img width="15" height="15" class="b-user__pic b-user__pic_15" src="<?php echo $avatar_url; ?> " alt="<?php echo $fullname; ?> ">