?> </td> <td style="width:65px;"><?php echo view_cost2($frl['frl_cost_hour'], '', '', true, $frl['frl_cost_type_hour']); ?> </td> <td class="price_prj" style="width:70px;"><?php if ($prof_type) { echo view_cost2($frl['cost_1000'], '', '', true, $frl['cost_type']); } else { echo view_cost2($frl['cost_from'], 'от', '', true, $frl['cost_type']); } ?> </td> <td style="width:65px;"><?php echo view_cost2($frl['cost_month'], '', '', true, $frl['cost_type_month']); ?> </td> </tr> <tr> <td style="height:10px" colspan="8"></td> </tr> <?php if (isset($frl['preview'])) { ?> <tr class="cf-preview"> <td colspan="8"> <?php echo $frl['preview']->render(); ?> </td>
.</td> <td class="even"> <a href="/users/<?php echo $user->login; ?> /viewproj.php?prjid=<?php echo $prj['id']; ?> " target="_blank" class="blue" title="<?php echo htmlspecialchars($sName); ?> "><?php echo reformat($sName, 30); ?> </a><?php $txt_cost = view_cost2($prj['prj_cost'], '', '', false, $prj['prj_cost_type']); $txt_time = view_time($prj['prj_time_value'], $prj['prj_time_type']); ?> <span class="money" style="padding-left:8px;"><?php echo $txt_cost; ?> </span><?php if ($txt_cost != '' && $txt_time != '') { ?> , <?php } echo $txt_time; ?> <?php /* Убраны комментарии к работам if ($prj['show_comms'] == 't') {?> | <a href="/users/<?=$user->login?>/comments/?tr=<?=$prj['id']?>" style="color: #666666;">Комментарии (<?=zin($prj['comms'])?>)</a><? } */ ?>
<width>113</width> <height>18</height> </image> <managingEditor>info@fl.ru</managingEditor> <webMaster>info@fl.ru</webMaster> <?php if ($prjs) { foreach ($prjs as $ikey => $prj) { /*if ( $prj['moderator_status'] === '0' ) { continue; }*/ $prj['descr'] = str_replace('"', '"', $prj['descr']); $prj['descr'] = xmloutofrangechars($prj['descr']); $prj['name'] = html_entity_decode($prj['name'], ENT_QUOTES, 'cp1251'); $prj['name'] = xmloutofrangechars($prj['name']); $prj_cost = str_replace('€', 'Euro', view_cost2($prj['cost'], '', '', false, $prj['currency'])); $prj_link = HTTP_PREFIX . $_SERVER['HTTP_HOST'] . getFriendlyUrl('project', $prj['id']); ?> <item> <title><![CDATA[<?php echo $prj['name'] . ($prj['cost'] > 0 ? " (Бюджет: {$prj_cost})" : ''); ?> ]]></title> <link><?php echo $prj_link; ?> </link> <?php if ($prj['pro_only'] == 't') { ?> <?/*<description>Описание проекта доступно только для PRO.</description>*/?>
<?php if ($user->cost_hour > 0) { ?> <p><strong>Стоимость часа работы</strong> — <span class="money"><?php echo view_cost2($user->cost_hour, '', '', false, $user->cost_type_hour); ?> </span></p> <?php } //if ?> <?php if ($user->cost_month > 0) { ?> <p><strong>Стоимость месяца работы</strong> — <span class="money"><?php echo view_cost2($user->cost_month, '', '', false, $user->cost_type_month); ?> </span></p> <?php } //if ?> </div> <?php if ($is_owner) { ?> <div class="b-layout__txt"> <a class="b-layout__link" href="/users/<?php echo $user->login; ?> /setup/portfolio/">Настроить портфолио</a>
Предыдущая работа<?php } ?> </td> <td style="text-align:left; padding:10px 10px 10px 20px; background:#fafafa;"> <?php $sName = $proj['name']; ?> <div style="padding-left:30px"> <h1 class="b-layout__txt b-layout__txt_inline b-layout__txt_bold b-layout__txt_fontsize_11"><?php echo $sName; ?> </h1> <?php $txt_cost = view_cost2($proj['cost'], '', '', '', $proj['cost_type']); $txt_time = view_time($proj['time_value'], $proj['time_type']); ?> <span class="money"><?php echo $txt_cost; ?> </span> <?php if ($txt_cost != '' && $txt_time != '') { ?> , <?php } echo $txt_time; ?> </div>
<div class="b-layout__txt b-layout__txt_padtop_10"> <a class="b-layout__link b-layout__link_fontsize_11 b-layout__link_bold" href="/users/<?php echo $prf['login']; ?> /"><?php echo $prf['uname']; ?> <?php echo $prf['usurname']; ?> [<?php echo $prf['login']; ?> ]</a><br /> <?php $txt_cost = view_cost2($prf['cost'], '', '', true, $prf['cost_type']); $txt_time = view_time($prf['time_value'], $prf['time_type']); ?> <strong class="b-layout__txt b-layout__txt_bold"><?php echo $txt_cost; ?> </strong><?php if ($txt_cost != '' && $txt_time != '') { ?> , <?php } echo $txt_time; ?> </div> </td> <?php
public function prepareCostText($prof, $stop_words = null) { if ($stop_words == null) { $stop_words = new stop_words(hasPermissions('users')); } $prof['portf_text'] = trim($prof['on_moder'] && $user->is_pro != 't' ? $stop_words->replace($prof['portf_text']) : $prof['portf_text']); if ($prof['proftext'] == 't') { $prof['cost_text'] = view_cost2($prof['cost_1000'], '', '', false, $prof['cost_type']); $prof['cost_hour_text'] = view_cost2($prof['cost_hour'], '', '', false, $prof['cost_type_hour']); } else { $prof['time_text'] = view_range_time($prof['time_from'], $prof['time_to'], $prof['time_type']); $prof['cost_from_text'] = view_cost2($prof['cost_from'], '', '', false, $prof['cost_type']); $prof['cost_to_text'] = view_cost2($prof['cost_to'], '', '', false, $prof['cost_type']); $prof['cost_hour_text'] = view_cost2($prof['cost_hour'], '', '', false, $prof['cost_type_hour']); $prof['from_text'] = $prof['cost_from_text'] != '' ? "от " . $prof['cost_from_text'] : ""; $prof['to_text'] = $prof['cost_to_text'] != '' ? "до " . $prof['cost_to_text'] : ""; } $prof['is_pro_profession'] = $prof['prof_id'] == professions::BEST_PROF_ID || $prof['prof_id'] == professions::CLIENTS_PROF_ID; return $prof; }
<width>113</width> <height>18</height> </image> <managingEditor>info@fl.ru</managingEditor> <webMaster>info@fl.ru</webMaster> <?php if ($prjs) { foreach ($prjs as $ikey => $prj) { /*if ( $prj['moderator_status'] === '0' ) { continue; }*/ $prj['descr'] = str_replace(""", '"', $prj['descr']); $prj['descr'] = xmloutofrangechars($prj['descr']); $prj['name'] = html_entity_decode($prj['name'], ENT_QUOTES, 'cp1251'); $prj['name'] = xmloutofrangechars($prj['name']); $prj_cost = str_replace("€", "Euro", view_cost2($prj['cost'], '', '', false, $prj['currency'])); $prj_link = HTTP_PREFIX . $_SERVER["HTTP_HOST"] . getFriendlyUrl('project', $prj['id']); ?> <item> <title><![CDATA[<?php echo $prj['name'] . ($prj['cost'] > 0 ? " (Бюджет: {$prj_cost})" : ''); ?> ]]></title> <link><?php echo $prj_link; ?> </link> <?php if ($prj['pro_only'] == "t") { ?> <?php
/** * Парсит HTML одной работы в портфолио * * @param array $aOne массив с данными комментария * @param int $status статус: 0 - не проверенно, 1 - утверждено, 2 - удалено * @param string $sKind опционально. тип записи * @param array $aStream данные о потоке * @param int $nCnt количество записей в потоке * @param int $nContentId идентификатор сущности из admin_contents (фактический из потоков, то есть со сборными) * @return string HTML */ function _parsePortfolioOne($aOne = array(), $status = 0, $sKind = '0', $aStream = array(), $nCnt = 0, $nContentId = 0) { global $stop_words, $user_content, $sTeam; $sReturn = ''; $sAttach = ''; if ($aOne['is_video'] == 't') { // работа есть видео if ($aOne['prev_pict']) { // есть отдельно загруженное превью $sInner = '<img src="' . WDCPREFIX . '/users/' . $aOne['login'] . '/upload/' . $aOne['prev_pict'] . '" alt="' . $aOne['prev_pict'] . '" title="' . $aOne['prev_pict'] . '" />'; } else { // нет отдельно загруженного превью $sInner = $aOne['video_link']; } $sAttach = '<div class="b-post__txt b-post__txt_padbot_15 b-post__txt_fontsize_15"><strong>Ссылка на YouTube/RuTube/Vimeo видео:</strong> <br/><a href="http://' . $aOne['video_link'] . '" target="_blank">' . $sInner . '</a></div>'; } elseif ($aOne['pict']) { // работа есть файл $ext = CFile::getext($aOne['pict']); $preview = $aOne['prev_pict']; $sPreview = ''; if (in_array($ext, $GLOBALS['graf_array']) && $ext != 'swf') { // работа есть картинка if ($aOne['pict'] != substr($preview, 3, strlen($preview))) { // превью сделано не на основе оригинальной картинки либо вообще отсутствует $sInner = '<img src="' . WDCPREFIX . '/users/' . $aOne['login'] . '/upload/tn_' . $aOne['pict'] . '" alt="' . $aOne['pict'] . '" title="' . $aOne['pict'] . '" />'; if ($preview) { // превью загружено отдельно $sPreview = 'Превью: <br/><img src="' . WDCPREFIX . '/users/' . $aOne['login'] . '/upload/' . $preview . '" alt="' . $preview . '" title="' . $preview . '" />'; } } else { // превью сделано на основе оригинальной картинки $sInner = '<img src="' . WDCPREFIX . '/users/' . $aOne['login'] . '/upload/' . $preview . '" alt="' . $preview . '" title="' . $preview . '" />'; } } else { //работа не есть картинка if ($preview) { // есть отдельно загруженное превью $sInner = '<img src="' . WDCPREFIX . '/users/' . $aOne['login'] . '/upload/' . $preview . '" alt="' . $preview . '" title="' . $preview . '" />'; } else { // нет отдельно загруженного превью $sInner = 'Работа'; } } $sAttach = '<div class="b-post__txt b-post__txt_padbot_15 b-post__txt_fontsize_15"> <a href="' . WDCPREFIX . '/users/' . $aOne['login'] . '/upload/' . $aOne['pict'] . '" target="_blank">' . $sInner . '</a><br/> ' . $sPreview . ' </div>'; } $txt_cost = view_cost2($aOne['cost'], '', '', false, $aOne['cost_type']); $txt_time = view_time($aOne['time_value'], $aOne['time_type']); $is_txt_time = $txt_cost != '' && $txt_time != ''; $sLink = $GLOBALS['host'] . '/users/' . $aOne['login']; $sLink2 = $aOne['link'] ? '<div class="b-post__txt b-post__txt_padbot_15 b-post__txt_fontsize_15"><strong>Ссылка:</strong> <br/><a href="' . $aOne['link'] . '" target="_blank">' . $aOne['link'] . '</a></div>' : ''; $sTitle = $status != 1 ? $stop_words->replace(xmloutofrangechars($aOne['name'])) : xmloutofrangechars($aOne['name']); $sTitle = reformat($sTitle, 52, 0, 1); $aOne['descr'] = nl2br($aOne['descr']); // грязный хак так как close_tags стала съедать переносы строк $sMessage = close_tags($aOne['descr'], 'b,i,p,ul,li'); $sMessage = $status != 1 ? $stop_words->replace(xmloutofrangechars($aOne['descr'])) : xmloutofrangechars($aOne['descr']); $sMessage = reformat($sMessage, 60, 0, 0, 1); $aOne['is_sent'] = '0'; $aOne['context_code'] = '1'; $aOne['context_link'] = $sLink; $aOne['context_title'] = $aOne['uname'] . ' ' . $aOne['usurname'] . ' [' . $aOne['login'] . ']'; $sJSParams = "{'content_id': {$nContentId}, 'stream_id': '{$aStream['stream_id']}', 'content_cnt': {$nCnt}, 'status': {$status}, 'is_sent': '{$aOne['is_sent']}'}"; $sEditIcon = _parseEditIcon('admEditPortfolio', $aOne['id'], $status, $sKind, $sJSParams); $bIsModer = $user_content->hasContentPermissions($nContentId, permissions::getUserPermissions($aOne['user_id'])); $sModified = $aOne['moduser_id'] && ($aOne['moduser_id'] != $aOne['user_id'] || $bIsModer) ? '<div class="b-post__txt b-post__txt_padbot_15"><span style="color:red;">Работа была отредактирована. ' . ($aOne['modified_reason'] ? 'Причина: ' . $aOne['modified_reason'] : 'Без причины') . '</span></div>' : ''; $sPRO = $aOne['moderator_status'] == -1 ? '<div class="b-post__txt b-post__txt_fontsize_11"><span style="color: #cc4642;">У пользователя был аккаунт PRO</span></div>' : ''; $sPro = $aOne['is_pro'] == 't' ? view_pro2($aOne['is_pro_test'] == 't' ? true : false) . ' ' : ''; $sReturn .= ' <div class="b-post b-post_bordtop_dfe3e4 b-post_padtop_15 b-post_marg_20_10" id="my_div_content_' . $aOne['content_id'] . '_' . $aOne['id'] . '_' . $sKind . '"> ' . _parseHidden($aOne, $sKind) . ' ' . _parseOkIcon($status, $aOne['content_id'], $aOne['id'], $sKind, $aOne['user_id']) . ' ' . _parsePostTime($status, $aOne['post_time']) . ' <div class="b-username b-username_padbot_5">' . ($aOne['is_team'] == 't' ? $sTeam : $sPro) . '<a class="b-username__link b-username__link_color_fd6c30 b-username__link_fontsize_11 b-username__link_bold" href="/users/' . $aOne['login'] . '" target="_blank">' . $aOne['uname'] . ' ' . $aOne['usurname'] . ' [' . $aOne['login'] . ']</a></div> ' . ($aOne['warn'] ? '<div class="b-username_padbot_5"><a onclick="parent.user_content.getUserWarns(' . $aOne['user_id'] . ');" href="javascript:void(0);" class="notice">Предупреждения: <span id="warn_' . $aOne['user_id'] . '_' . $aOne['content_id'] . '_' . $aOne['id'] . '">' . intval($aOne['warn']) . '</span></a></div>' : '<div class="b-username_padbot_5 user-notice">Предупреждений нет</div>') . ' ' . $sPRO . ' ' . _parseMass($aOne, $status, $sKind) . ' <div class="b-post__txt b-post__txt_padbot_10 b-post__txt_fontsize_15"><span class="b-post__bold">Новая работа:</span> <a class="b-post__link b-post__link_fontsize_15" href="/users/' . $aOne['login'] . '/viewproj.php?prjid=' . $aOne['id'] . '" target="_blank">' . $sTitle . '</a></div> <div class="b-post__txt b-post__txt_fontsize_15">' . $sMessage . '</div> <div class="b-post__txt b-post__txt_fontsize_15">' . $txt_cost . ($is_txt_time ? ', ' : '') . ($txt_time != '' ? $txt_time : '') . '</div> ' . $sAttach . ' ' . $sLink2 . ' ' . $sModified . ' ' . _parseDelIcons($aOne, 'user_id', $status, $sKind, $sJSParams, $sEditIcon) . ' </div>'; return $sReturn; }
?> </b></td> </tr> <?php } //if ?> <?php if ((int) $result['cost_month'] > 0) { ?> <tr> <td class="prstvk"></td> </tr> <tr> <td>За месяц: <span class="b-page__iphone"><br></span><b><?php echo view_cost2($result['cost_month'], '', '', false, $result['cost_type_month']); ?> </b></td> </tr> <?php } //if ?> </table> </td> </tr> <tr class="search-cls"> <td colspan="5"></td> </tr> <?php if (!is_emp($result['role'])) {
<table class="search-work"> <tr> <?php foreach ($result as $key => $value) { $txt_cost = view_cost2($value['cost'], '', '', false, $value['cost_type']); $txt_time = view_time($value['time_value'], $value['time_type']); $is_txt_time = $txt_cost != '' && $txt_time != ''; ?> <?php if ($value) { $cls = "frlname11"; $value['role'] = '000000'; ?> <td class="cell-work-item"> <?php echo view_avatar($value['login'], $value['photo'], 1, 0, "b-pic b-pic_fl"); ?> <div style="margin-left:60px;"> <span class="search-work-user"> <?php echo $session->view_online_status($value['login']); ?> <a href="/users/<?php echo $value['login']; ?> /?f=<?php echo stat_collector::REFID_SEARCH; ?> &stamp=<?php echo $_SESSION['stamp']; ?>