$info_sty = " style='{$info_sty}'"; } elseif ($info_is_emp) { $info_sty = " style='color:green'"; } if (!$info_cls) { $info_cls = $info_is_emp ? 'b-username__login_color_6db335' : 'b-username__login_color_fd6c30'; } if ($info_hyp) { $info_uname = hyphen_words($comm['dsp_uname'] ? $comm['dsp_uname'] : $info_uname); $info_usurname = hyphen_words($comm['dsp_usurname'] ? $comm['dsp_usurname'] : $info_usurname); } /*!!!is_team!!!*/ if (@$comm[$info_pfx . 'is_profi'] == 't') { $info_pro = view_profi(); } else { $info_pro = $comm[$info_pfx . 'is_pro'] == 't' ? $info_is_emp ? view_pro_emp() : view_pro2($comm[$info_pfx . 'is_pro_test'] == 't' ? true : false) : ""; } $is_team = view_team_fl(); if ($comm[$info_pfx . 'is_verify'] == 't') { $info_pro .= view_verify(); $is_team .= view_verify(); } $seo_text = "<a class=\"b-username__link\"{$info_sty} href=\"/users/{$info_login}\" title=\"{$info_login}\">[" . ($comm['dsp_login'] ? $comm['dsp_login'] : $info_login) . "]</a>"; ?> <a class='b-username__link' href='/users/<?php echo $info_login; ?> '><?php echo $info_uname; ?> <?php
//if ?> <?php echo ago_project_created(strtotime($row['post_date'])); ?> <?php } //else ?> <?php if ($row['t_pro_only'] == 't') { ?> <span class="b-post__only">Только для <?php echo view_pro2(false, false, false, 'пользователей с платным аккаунтом'); ?> </span><?php } ?> <?php if ($row['t_verify_only'] == 't') { ?> <span class="b-post__only">Только для <?php echo view_verify('верифицированных пользователей'); ?> </span><?php } ?> <?php if ($row['hide'] == 't') {
<h1>Услуги</h1> <?php if ($profs) { ?> <table width="100%" border="0" cellspacing="0" cellpadding="19"> <tr valign="top"> <td height="400" valign="top" bgcolor="#FFFFFF" class="box2" style="color: #333333;"> <div style="color: #000000; font-size: 35px; margin-bottom: 25px;">Предоставленные услуги</div> <table width="290" border="0" cellspacing="0" cellpadding="0" style="background-image: url(/images/bg_pro.gif); background-repeat: no-repeat;"> <tr valign="top"> <td width="50" rowspan="2" style="height: 112; padding-top:35px; padding-left:8px;padding-right:3px;"><?php echo view_avatar($user->login, $user->photo); ?> </td> <td class="frlname" style="height: 112; padding-top:35px;"><?php echo view_pro2($is_pro_test); ?> <?php echo $user->uname; ?> <?php echo $user->usurname; ?> [<?php echo $user->login; ?> ]</td> </tr> </table><br><br> Аккаунт «PRO»<br> Срок действия – <?php
<table cellpadding="0" cellspacing="0" border="0" class="u-box"> <tr> <td class="u-avatar"><?php echo view_avatar($user['login'], $user['photo'], 1); ?> </td> <td class="u-l-info"> <div class="u-<?php echo is_emp($user['role']) ? 'emp' : 'frl'; ?> -login"> <?php echo $user['is_pro'] == 't' ? view_pro2($user['is_pro_test'] == 't') : ''; ?> <?php echo $session->view_online_status($user['login']); ?> <a href="/users/<?php echo $user['login']; ?> /"><?php echo YellowLine($user['uname']); ?> <?php echo YellowLine($user['usurname']); ?> </a> [<a href="/users/<?php echo $user['login'];
/** * Информация пользователя * * @param array $user Данные пользователя * @param string $pfx Префикс данных * @param string $cls Класс отображения ссылки на пользователя (для работодателя либо для фрилансера) * @param string $sty Дополнительный стиль отображения(если необходим) * @return string */ function __prntUsrInfo($user, $pfx = '', $cls = '', $sty = '', $hyp = false) { $user = (array) $user; global $session; $is_emp = is_emp($user[$pfx . 'role']); $login = $user[$pfx . 'login']; $uname = $user[$pfx . 'uname']; $usurname = $user[$pfx . 'usurname']; if ($sty) { $sty = " style='{$sty}'"; } else { if ($is_emp) { $sty = " style='color:green'"; } } if (!$cls) { $cls = ($is_emp ? 'employer' : 'freelancer') . '-name'; } //require_once($_SERVER['DOCUMENT_ROOT'] . "/classes/payed.php"); //return ( (payed::CheckPro($login) ? ($is_emp ? view_pro_emp() : view_pro()).' ' : ''). if ($hyp) { $uname = hyphen_words($user['dsp_uname'] ? $user['dsp_uname'] : $uname); $usurname = hyphen_words($user['dsp_usurname'] ? $user['dsp_usurname'] : $usurname); } $pro = $user[$pfx . 'is_pro'] == 't' ? ($is_emp ? view_pro_emp() : view_pro2($user[$pfx . 'is_pro_test'] == 't')) . ' ' : ''; $is_team = view_team_fl() . " "; return "<span class='{$cls}'{$sty}>" . ($user['is_admin'] == 't' ? '<span class="cau-admin">Admin</span> ' : '') . "<a class='{$cls}'{$sty} href='/users/{$login}' title='{$uname} {$usurname}'>" . $uname . " " . $usurname . "\n" . " [" . ($user['dsp_login'] ? $user['dsp_login'] : $login) . "]</a>" . "</span> " . ($user[$pfx . 'is_team'] == 't' ? $is_team : $pro) . $session->view_online_status($login); }
/** * Вывод позиции платного объявления * @param array массив с данными объявления * @return string HTML */ function __fpPrntPosition($value) { global $session; $ufp_mod = (int) ($_SESSION['uid'] == $value['user_id']) | 2 * hasPermissions('users'); if (strlen($value['uname']) > 10) { $uname = hyphen_words($value['uname']); $t = explode("", $uname); for ($i = 0; $i < count($t); $i++) { if (strlen($t[$i]) > 10) { $uname = LenghtFormatEx($value['uname'], 10); break; } } } else { $uname = $value['uname']; } if (strlen($value['usurname']) > 10) { $usurname = hyphen_words($value['usurname']); $t = explode("", $usurname); for ($i = 0; $i < count($t); $i++) { if (strlen($t[$i]) > 10) { $usurname = LenghtFormatEx($value['usurname'], 10); break; } } } else { $usurname = $value['usurname']; } ob_start(); ?> <div id="mgCapsule<?php echo $value['id']; ?> "> <div id="mgContent<?php echo $value['id']; ?> "> <table border="0" cellpadding="0" cellspacing="0" width="100%" style="margin-bottom:10px"> <col style="width:10px" /> <col /> <tr valign="top"> <td> <a href="/users/<?php echo $value['login']; ?> /?f=<?php echo stat_collector::REFID_PAIDSEATINGS; ?> &stamp=<?php echo $_SESSION['stamp']; ?> " title="<?php echo $value['uname']; ?> <?php echo $value['usurname']; ?> " <?php /* if ($ufp_mod | (!$_SESSION['uid'] || is_emp())) { ?> onmouseover="mg_onOver(<?=$value['id']?>, <?=$ufp_mod?>);" onmouseout="mg_onLeave()"<? } */ ?> class="img50x50"> <?php echo view_avatar($value['login'], $value['photo'], 1, 0); ?> </a> </td> <td style="padding-left:10px"> <?php if ($value['payed'] == 't') { print view_pro2($value['payed_test'] == 't' ? true : false) . ' '; } print $session->view_online_status($value['login']); ?> <a <?php /* if ($ufp_mod | (!$_SESSION['uid'] || is_emp())) { ?> onmouseover="mg_onOver(<?=$value['id']?>, <?=$ufp_mod?>);" onmouseout="mg_onLeave()"<? } */ ?> class="freelancer-name" href="/users/<?php echo $value['login']; ?> /?f=<?php echo stat_collector::REFID_PAIDSEATINGS; ?> &stamp=<?php echo $_SESSION['stamp']; ?> " title="<?php echo $value['uname']; ?> <?php echo $value['usurname']; ?> "> <?php echo $uname . " " . $usurname . " [" . $value['login'] . "]"; ?> </a><?php echo $value['boss_rate'] == 1 ? view_vip() : ''; ?> <?php if ($ufp_mod) { ?> <div id="fptext<?php echo $value['id']; ?> " style="overflow:hidden;"><?php } $fd = $value; $fd['ufp_id'] = $value['id']; print __fpPrntTitleDescr($fd, $ufp_mod); if ($ufp_mod) { ?> </div> <a style="display:block; padding-top:10px; width:120px;" id="chtextB<?php echo $value['id']; ?> " href="javascript:void(0);" onclick="mg_onChangeClick(<?php echo $value['id']; ?> , <?php echo $ufp_mod; ?> );" class="blue">Изменить объявление</a> <?php } if ($ufp_mod & 1) { ?> <a style="display:block; width:117px;" href="/firstpage/position.php" class="blue">Изменить положение</a><?php } ?> </td> </tr> </table> </div> </div> <?php $str = ob_get_contents(); ob_end_clean(); return $str; }
<?php if (is_emp()) { $pro_ico = view_pro_emp(); } else { if (strtotime($_SESSION['pro_last']) > time() && $_SESSION['pro_test'] == "t") { $is_pro_test = true; } else { $is_pro_test = false; } $pro_ico = view_pro2($is_pro_test); } $login_val = $_SESSION['anti_uid'] ? $_SESSION['anti_login'] : '******'; ?> <script type="text/javascript"> function change_au() { qu = $("asw_form").toQueryString(); _action = 'switch'; _redirect = $('redirect_au').get('value'); $('asw_form').getElements('input').setProperty("disabled", true); login = $('asw_form').getElement('input[name=a_login]').value; if(login != '<?php echo $login_val; ?> ') { _action = 'change_au'; } new Request.JSON({ url: "<?php echo $host;
/** * Парсит 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 _parseSdelauOne($aOne = array(), $status = 0, $sKind = '0', $aStream = array(), $nCnt = 0, $nContentId = 0) { global $stop_words, $sTeam; $sReturn = ''; $sTitle = $status != 1 ? $stop_words->replace(htmlspecialchars(xmloutofrangechars($aOne['title']))) : htmlspecialchars(xmloutofrangechars($aOne['title'])); $sTitle = reformat($sTitle, 35, 0, 1); $sMessage = $status != 1 ? $stop_words->replace(htmlspecialchars(xmloutofrangechars($aOne['post_text']))) : htmlspecialchars(xmloutofrangechars($aOne['post_text'])); $sMessage = reformat($sMessage, 50); $sProf = xmloutofrangechars($aOne['src_name']) . ($aOne['profname'] != 'Нет специализации' ? ' → <a class="b-freelancer__link" href="/freelancers/' . $aOne['link'] . '/" target="_blank">' . $aOne['profname'] . '</a>' : ''); $aOne['is_sent'] = '0'; $aOne['context_code'] = '8'; $aOne['context_link'] = '/sdelau/#offer' . $aOne['id']; $aOne['context_title'] = xmloutofrangechars(htmlspecialchars($aOne['title'])) . ' ' . $aOne['usurname'] . ' [' . $aOne['login'] . ']'; $sPro = $aOne['is_pro'] == 't' ? preg_replace('#<a[^>]+>(.+)</a>#', '$1', view_pro2($aOne['is_pro_test'] == 't' ? true : false)) . ' ' : ''; $sJSParams = "{'content_id': " . $nContentId . ", 'stream_id': '{$aStream['stream_id']}', 'content_cnt': {$nCnt}, 'status': {$status}, 'is_sent': '{$aOne['is_sent']}'}"; $sEditIcon = _parseEditIcon('admEditSdelau', $aOne['id'], $status, $sKind, $sJSParams); $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>') . ' ' . _parseMass($aOne, $status, $sKind) . ' <div class="b-post__txt b-post__txt_padbot_5 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'] . '" target="_blank">' . $sTitle . '</a></div> <div class="b-post__txt b-post__txt_padbot_5 b-post__txt_fontsize_15">' . $sMessage . '</div> <div class="b-post__txt b-post__txt_padtop_10 b-post__txt_fontsize_11"><span class="b-post__bold">Специализация:</span> ' . $sProf . '</div> ' . _parseDelIcons($aOne, 'user_id', $status, $sKind, $sJSParams, $sEditIcon) . ' </div>'; return $sReturn; }
?> login b-layout__txt b-layout__txt_fontsize_11"> <?php if ($theme['title'] !== '' && !strcmp($theme['login'], "Anonymous")) { preg_match("/^([^(@@@:)]*)@@@: ([^\\s]*)/", $theme['title'], $matches); $theme['uname'] = $matches[1]; $theme['msgtext'] = "<a class='mailto-login' href=\"mailto:" . $matches[2] . "\">" . $matches[2] . "</a><br />" . $theme['msgtext']; $theme['title'] = ""; } ?> <?php seo_start(); ?> <?php /*!!!is_team!!!*/ $pro = $theme['payed'] == 't' ? is_emp($theme['role']) ? view_pro_emp() : view_pro2($theme['payed_test'] == 't' ? true : false) : ""; $is_team = view_team_fl(); ?> <?php /*if ($theme['payed'] == 't') { ?><?=(is_emp($theme['role'])?view_pro_emp():view_pro2(($theme['payed_test'] == 't')?true:false))?><? } */ ?> <span class="b-layout__txt b-layout__txt_fontsize_11 b-layout__txt_bold <?php echo $cnt_role; ?> login"> <a id="user_<?php echo $theme['id']; ?> _1" href="/users/<?php echo $theme['login']; ?>
/** * Шаблон блока фрилансера, находящегося на странице создания/редактирования СБР. * @param object $frl информация о фрилансере. * * @return string html-блок. */ static function view_frl($frl) { global $session; if (!$frl->uid) { return ''; } require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/opinions.php'; $frl_link = "/users/{$frl->login}"; $frl_name = $frl->uname . ' ' . $frl->usurname . ' [' . $frl->login . ']'; $sbr_info = self::getUserInfo($frl->uid); $ocnt = opinions::GetCounts($frl->uid, array('norisk', 'emp', 'all')); ob_start(); ?> <a href="<?php echo $frl_link; ?> " target="_blank"><?php echo view_avatar($frl->login, $frl->photo); ?> </a> <div class="user-info"> <div class="user-stat"><?php echo $frl->is_pro == 't' ? view_pro2($frl->is_pro_test == 't') : ''; ?> <?php echo $session->view_online_status($frl->login); ?> <a href="<?php echo $frl_link; ?> " class="freelancer-name" target="_blank"><?php echo $frl_name; ?> </a></div> «Безопасных Сделок»: <?php echo (int) $sbr_info['success_cnt']; ?> <br /> <a href="/users/<?php echo $frl->login; ?> /opinions/?from=norisk#op_head" class="lnk-nr-reviews" target="_blank">Рекомендации работодателей</a>: <a href="<?php echo $frl_link; ?> /opinions/?from=norisk&sort=1#op_head" class="ops-plus" target="_blank">+<?php echo (int) $ocnt['norisk']['p']; ?> </a> / <a href="<?php echo $frl_link; ?> /opinions/?from=norisk&sort=2#op_head" class="ops-neitral" target="_blank"><?php echo (int) $ocnt['norisk']['n']; ?> </a> / <a href="<?php echo $frl_link; ?> /opinions/?from=norisk&sort=3#op_head" class="ops-minus" target="_blank">-<?php echo (int) $ocnt['norisk']['m']; ?> </a> <br/> <a href="<?php echo $frl_link; ?> /opinions/?from=users#op_head" class="lnk-nr-reviews" target="_blank">Мнения пользователей</a>: <a href="<?php echo $frl_link; ?> /opinions/?from=users&sort=1#op_head" class="ops-plus" target="_blank">+<?php echo (int) $ocnt['all']['p']; ?> </a> / <a href="<?php echo $frl_link; ?> /opinions/?from=users&sort=2#op_head" class="ops-neitral" target="_blank"><?php echo (int) $ocnt['all']['n']; ?> </a> / <a href="<?php echo $frl_link; ?> /opinions/?from=users&sort=3#op_head" class="ops-minus" target="_blank">-<?php echo (int) $ocnt['all']['m']; ?> </a> <input type="hidden" name="frl_login_added" value="<?php echo $frl->login; ?> "/> </div> <?php return ob_get_clean(); }
/** * Один коммент * * @param array $data Массив данных для коммента * @param integer $uid ид пользователя * @param boolean $first TRUE- комментарий является первым в ветке. */ function commentHTML($data, $uid, $attaches, $lvt, $wordlength = 45, $has_child = false, $is_hidden = false) { global $session; ob_start(); $is_author = $data['from_id'] == $uid; $first = $data['parent_id'] === NULL; $parent_id = $data['parent_id']; $is_new = $lvt !== NULL && $lvt < $data['created_time']; ?> <?php if ($is_new) { ?> <a name="unread"></a> <?php } ?> <div class="cl-li-in cl-li<?php echo $first ? '-first' : ''; ?> <?php echo $is_new ? 'cl-li-new' : ''; ?> "> <a name="c_<?php echo $data['id']; ?> "></a> <ul class="cl-i"> <li><a href="#c_<?php echo $data['id']; ?> " class="cl-anchor">#</a></li> <li class="cl-time"><?php echo date('d.m.Y H:i', strtotime($data['created_time'])); ?> </li> <li class="p-edited"> <?php if ($data['modified_id'] && $data['modified_id'] == $data['from_id']) { ?> <img src="/images/ico-e-u.png" alt="Отредактировано пользователем" title="Внесены изменения <?php echo date('d.m.Y в H:i', strtotime($data['modified_time'])); ?> " /> <?php } ?> <?php if ($data['modified_id'] && $data['modified_id'] != $data['from_id']) { $moduser = hasPermissions('articles') ? " ({$data['mod_login']} : {$data['mod_uname']} {$data['mod_usurname']})" : ""; ?> <img src="/images/ico-e-a.png" alt="Отредактировано модератором" title="Отредактировано модератором<?php echo $moduser; ?> : <?php echo date('d.m.Y в H:i', strtotime($data['modified_time'])); ?> " /> <?php } ?> </li> </ul> <div class="cl-arr"> <?php if (!$first) { ?> <a href="#c_<?php echo $parent_id; ?> " class="u-anchor">↓</a> <?php } ?> <a href="#c_3" class="d-anchor">↓</a> </div> <a href="/users/<?php echo $data['login']; ?> " class="freelancer-name"><?php echo view_avatar_info($data['login'], $data['photo'], 1); ?> </a> <div class="user-info"> <div class="username"> <?php $stat = ''; if ($data['is_pro'] == 't') { $stat .= (is_emp($data['role']) ? view_pro_emp() : view_pro2($data['is_pro_test'] == "t")) . " "; } ?> <?php echo $stat; ?> <a href="/users/<?php echo $data['login']; ?> " class="<?php echo is_emp($data['role']) ? 'employer' : 'freelancer'; ?> -name"><?php echo $data['uname'] . ' ' . $data['usurname'] . ' [' . $data['login'] . ']'; ?> </a> </div> <div class="comment-body utxt"> <?php if ($data['deleted_id'] === NULL) { ?> <p> <?php echo reformat($data['msgtext'], $wordlength, 0, 0, 1); ?> </p> <?php if ($data['youtube_link'] !== NULL) { ?> <div class="added-video"> <?php echo show_video($data['id'], $data['youtube_link']); ?> </div> <?php } ?> <?php if ($attaches) { ?> <?php echo viewattachListNew($attaches, 'upload'); ?> <?php } ?> <?php } else { ?> Комментарий удален <?php echo $data['deleted_id'] == $data['from_id'] ? 'автором' : 'модератором'; ?> <?php } ?> </div> <ul class="cl-o"> <?php if ($uid && $data['deleted_id'] === NULL) { ?> <li class="cl-com first"><a href="javascript:void(0)" onclick="commentAdd(this)">Комментировать</a></li> <?php if ($uid == $data['from_id'] || hasPermissions('articles')) { ?> <li class="cl-edit"><a href="javascript:void(0)" onclick="commentEdit(this)">Редактировать</a></li> <li class="cl-del"><a href="./?task=del-comment&id=<?php echo $data['id']; ?> " onclick="return (confirm('Вы уверены?'));">Удалить</a></li> <?php } ?> <?php } elseif (hasPermissions('articles')) { ?> <li class="cl-del"><a href="./?task=restore-comment&id=<?php echo $data['id']; ?> " onclick="return (confirm('Вы уверены?'));">Восстановить</a></li> <?php } ?> <?php if ($has_child) { ?> <li class="last"><a href="" class="cl-thread-toggle"><?php echo $is_hidden ? 'Развернуть ' : 'Свернуть '; ?> ветвь</a></li> <?php } ?> </ul> </div> </div> <?php $out = ob_get_contents(); ob_clean(); return $out; }
function view_mark_user2($value) { $mark = ''; if (@$value['is_profi'] == 't') { $mark .= ' ' . view_profi(); } else { $is_pro = ' ' . view_pro2($value['is_pro_test'] == 't'); $mark .= $value['is_pro'] == 't' ? is_emp($value['role']) ? ' ' . view_pro_emp() : $is_pro : ''; } $is_team = ' ' . view_team_fl(); $mark .= $value['is_team'] == 't' ? $is_team : ''; if (is_string($value['is_verify'])) { $isVerify = $value['is_verify'] === 't'; } elseif (is_bool($value['is_verify'])) { $isVerify = $value['is_verify']; } $mark .= $isVerify ? view_verify() : ''; require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/sbr.php"; $is_sbr = sbr_meta::hasReserves((int) $value['uid']); if ($is_sbr) { $mark .= ' ' . view_reserve_shield(); } return $mark; }
?> "><?php echo $blog->login; ?> </a>]<?php echo seo_end(); ?> </span> <?php if ($winner == $blog->id) { ?> <a name="winner" id="winner"></a><?php } ?> <?php /*!!!is_team!!!*/ $pro = $blog->payed == 't' ? $blog->role == 'emp' ? view_pro_emp() : view_pro2($blog->payed_test == "t" ? true : false) : ""; $is_team = view_team_fl(); ?> <?php echo $blog->is_team == 't' ? $is_team : $pro; echo is_verify($blog->login) ? view_verify() : ''; ?> <?php echo $blog->completed_cnt > 0 ? view_sbr_shield() : ''; ?>   <span class="b-layout__txt b-layout__txt_fontsize_11 b-layout__txt_color_71"><?php echo date("[d.m.Y | H:i]", strtotimeEx($blog->post_time)); ?> </span>
/** * Информация пользователя для главной страницы сообществ * * @param array $user Данные пользователя * @param string $pfx Префикс данных * @param string $cls Класс отображения ссылки на пользователя (для работодателя либо для фрилансера) * @param string $sty Дополнительный стиль отображения(если необходим) * @return string */ function __commPrntUsrInfoMain($user, $pfx = '', $cls = '', $sty = '', $hyp = false, $admin = false, $view_admin = false) { global $session; $is_emp = is_emp($user[$pfx . 'role']); $login = $user[$pfx . 'login']; $uname = $user[$pfx . 'uname']; $usurname = $user[$pfx . 'usurname']; if ($sty) { $sty = " style='{$sty}'"; } else { if ($is_emp) { $sty = " style='color:green'"; } } if (!$cls) { $cls = ($is_emp == 1 ? 'employer' : 'freelancer') . '-name'; } $mcls = ($is_emp == 1 ? 'emp' : 'frl') . '-name'; //require_once($_SERVER['DOCUMENT_ROOT'] . "/classes/payed.php"); //return ( (payed::CheckPro($login) ? ($is_emp ? view_pro_emp() : view_pro()).' ' : ''). if ($hyp) { $uname = hyphen_words($user['dsp_uname'] ? $user['dsp_uname'] : $uname); $usurname = hyphen_words($user['dsp_usurname'] ? $user['dsp_usurname'] : $usurname); } /*!!!is_team!!!*/ if (@$user[$pfx . 'is_profi'] == 't') { $pro = view_profi(); } else { $pro = $user[$pfx . 'is_pro'] == 't' ? $is_emp ? view_pro_emp() : view_pro2($user[$pfx . 'is_pro_test'] == 't' ? true : false) : ""; } $is_team = view_team_fl(); $seo_text = "<span class=\"{$mcls}\">[</span><a class=\"{$cls}\" href=\"/users/{$login}\" title=\"{$login}\">{$login}</a><span class=\"{$mcls}\">]</span>"; $html = ($user[$pfx . 'is_team'] == 't' ? $is_team : $pro) . "\n <span class='{$cls}'> " . $session->view_online_status($login) . " \n <a class='{$cls}' href='/users/{$login}' title='{$uname} {$usurname}'>{$uname} {$usurname}</a> " . seo_end($seo_text) . "\n </span>\n <div class='commun-info'>\n " . (empty($user['author_id']) ? "" : "<span class='commun-creator'>Создатель сообщества</span>") . "\n " . ($view_admin ? "<div id='ne1{$user['note_user_id']}'><p>" . reformat(stripslashes($user['note_txt']), 20, 0, 0, 1, 15) . "</p></div>" : "") . "\n <div id='ne2{$user['note_user_id']}' style='display:none'>\n <textarea name='' cols='30' rows='5' class='tawl' rel='" . commune::MEMBER_NOTE_MAX_LENGTH . "'>{$user['note_txt']}</textarea>\n <input type='button' value='Сохранить' onclick='\$(\"ne2{$user['note_user_id']}\").getElement(\"textarea\").disabled=true; xajax_UpdateNoteMP(" . intval($user['note_user_id']) . ", " . intval($user['note_commune_id']) . ", \$(\"ne2{$user['note_user_id']}\").getElement(\"textarea\").value)' />\n <span class='commun-info-edit'><a href='javascript:void(0)' onclick='memberNoteForm({$user['note_user_id']})'>Отменить</a></span>\n </div>\n " . ($admin ? "<p class='commun-info-edit' id='ne3{$user['note_user_id']}'><a href='javascript:void(0)' onclick='memberNoteForm({$user['note_user_id']})'>Редактировать информацию</a></p>" : "") . "\n </div> \n "; return $html; return ($user[$pfx . 'is_team'] == 't' ? $is_team : $pro) . "<span class='{$cls}'{$sty}>" . $session->view_online_status($login) . " " . '<span class="cau-admin" id="cau_admin' . $user['id'] . '">' . ($user['is_admin'] == 't' ? 'Admin ' : '') . '</span>' . "<a class='{$cls}'{$sty} href='/users/{$login}' title='{$uname} {$usurname}'>" . $uname . " " . $usurname . "</a>\n" . " [<a class='{$cls}'{$sty} href='/users/{$login}' title='{$login}'>" . ($user['dsp_login'] ? $user['dsp_login'] : $login) . "</a>]" . "</span>"; }
$user = new employer(); $user->GetUser($login); ?> <div class="acc-h c"> <a href="/users/<?php echo $user->login; ?> /setup/foto/"> <?php echo view_avatar($user->login, $user->photo, 0, 'acc-userpic'); ?> </a> <div class="acc-h-i"> <div> <?php echo $user->is_pro == 't' ? is_emp($user->role) ? view_pro_emp() : view_pro2($user->is_pro_test == 't') : ''; ?> <?php echo $session->view_online_status($user->login); ?> <a href="/users/<?php echo $user->login; ?> /" class="<?php echo is_emp($user->role) ? 'employer' : 'freelancer'; ?> -name"><?php echo $user->uname; ?> <?php echo $user->usurname;
<a href="/users/<?php echo $data['author_login']; ?> " class="<?php echo is_emp($data['author_role']) ? 'employer' : 'freelancer'; ?> -name"><?php echo $data['author_uname'] . ' ' . $data['author_usurname'] . ' [' . $data['author_login'] . ']'; ?> </a> <?php echo $stat; ?> <?php $stat = ''; /*!!!is_team!!!*/ $pro = $data['author_is_pro'] == 't' ? is_emp($data['author_role']) ? view_pro_emp() : view_pro2($user[$pfx . 'is_pro_test'] == 't') : ""; $is_team = view_team_fl(); //if ($data['author_is_pro'] == 't') $stat .= $data['author_is_team'] == 't' ? $is_team : $pro; $stat .= " "; ?> <?php if ($show_banned_text) { ?> <p style="text-align: left; padding-top: 10px"><strong style="background: #F2A5A5; paddong: 4px">Пользователь забанен.</strong></p> <?php } ?> </div> </div>