public function init()
 {
     $is_emp = is_emp();
     $form = new ProForm($is_emp);
     $css_class = $is_emp ? 'g-color_64bc39' : 'g-color_ff7f1a';
     $options = array('payments_exclude' => array(self::PAYMENT_TYPE_BANK), 'is_emp' => $is_emp);
     $list = $form->getPayedList();
     if ($list) {
         $clientside_templates = array();
         foreach ($list as $item) {
             $key = "{$this->ID}Type{$item['opcode']}";
             $value = sprintf(self::TXT_DTITLE, proItemToText($item));
             if (isset($item['sale'])) {
                 $value .= sprintf(self::TXT_DTITLE_SUFFIX, $css_class, $item['sale']);
             } else {
                 $value .= ',';
             }
             $clientside_templates[$key] = $value;
         }
         $options['clientside_templates'] = $clientside_templates;
     }
     if ($is_emp) {
         $options['popup_title'] = sprintf(self::TXT_EMP_TITLE, view_pro_emp('b-icon__pro_va_baseline'));
         $options['popup_subtitle'] = self::TXT_EMP_SUBTITLE;
     } else {
         $options['popup_title'] = sprintf(self::TXT_FRL_TITLE, view_pro('b-icon__pro_va_baseline'));
         $options['popup_subtitle'] = self::TXT_FRL_SUBTITLE;
     }
     $this->addWaitMessageForAll();
     $this->setContent($form->render());
     parent::init($options);
     $this->options['payments'][self::PAYMENT_TYPE_PLATIPOTOM]['content_after'] = sprintf($this->options['payments'][self::PAYMENT_TYPE_PLATIPOTOM]['content_after'], 'аккаунт PRO');
 }
Beispiel #2
0
    ?>
                                    <th class="cf-sortable cf-rc">Цена <br />в месяц</th>
                                </tr>
                            </thead>
                            <tbody>    
                                <?php 
} else {
    ?>
                                <tr>
                                    <th class="cf-getpro">
                                        <?php 
    if ($_SESSION['login'] && !is_pro()) {
        ?>
                                        <a href="/payed/">Получить аккаунт</a> 
                                        <a href="/payed/"><?php 
        echo is_emp() ? view_pro_emp() : view_pro(false, false, false);
        ?>
</a>
                                        <?php 
    }
    ?>
                                    </th>
                                </tr> 
                            </thead>
                            <tbody>  
                                <tr>
                                    <td><?php 
    echo $filter_apply ? "Попробуйте изменить критерии поиска" : "Фрилансеров не найдено";
    ?>
 </td>
                                </tr>  
<div class="b-layout__right b-layout__right_width_72ps b-layout__right_float_right  b-layout__right_padbot_20">
    <div class="b-layout__txt b-layout__txt_padbot_10 b-layout__txt_padbot_40">Перед вами подробное описание проекта. Изучите все, что хочет заказчик, и сделайте свое предложение, чтобы заинтересовать его.</div>
    <div class="b-layout__txt b-layout__txt_padbot_10"><a href="/wizard/registration/" class="b-layout__link">Вернуться к списку проектов</a></div>
    <div class="b-post b-post_margleft_-60">
        <div class="b-post__body">
            <div class="b-post__avatar b-post__avatar_margright_10">
                <a class="b-post__link" href="javascript:void(0)"><img width="50" height="50" src="/images/no_foto.gif" alt="" class="b-post__userpic"></a>
            </div>
            <div class="b-post__content b-post__content_margleft_60">
                <div class="b-username b-username_padbot_40">
                    <div class="b-username__txt b-username__txt_padbot_15">
                        <span class="b-username__login b-username__login_bold b-username__login_color_6db335">Работодатель&nbsp;&nbsp;</span>
                        <?php 
if ($project['is_pro'] == 't') {
    echo is_emp($project['role']) ? view_pro_emp() : view_pro();
}
?>
                        <span class="b-username__txt b-username__txt_fontsize_11"><?php 
echo $user->getOnlineStatus4Profile();
?>
</span>
                    </div>
                    <div class="b-username__txt b-username__txt_padbot_5 b-username__txt_fontsize_11">
                        Зарегистрирован<?php 
echo $user->sex == 'f' ? 'а' : '';
?>
 на сайте <?php 
echo $registered;
?>
                    </div>
                    <div class="b-username__txt b-username__txt_fontsize_11">
Beispiel #4
0
<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_pro_emp();
    ?>
 <?php 
    echo $user->uname;
    ?>
 <?php 
    echo $user->usurname;
    ?>
 [<?php 
    echo $user->login;
    ?>
]</td>
			</tr>
		</table><br><br>
		Аккаунт &laquo;PRO&raquo;<br>
		Срок действия &ndash; <?php 
Beispiel #5
0
"><?php 
    echo YellowLine($prj['name']);
    ?>
</a></h4> 
									<div class="project-preview-desc"> 
                                        <?php 
    echo reformat($prj['descr'], 60);
    ?>
									</div> 
									<ul class="project-info"> 
										<li><?php 
    echo ago_pub_x(strtotimeEx($prj['post_date']));
    ?>
</li> 
										<li>Автор: <?php 
    echo $prj['is_pro'] == 't' ? ' ' . view_pro_emp(false, 8) : '';
    ?>
 <a href="/users/<?php 
    echo $prj['login'];
    ?>
/"><?php 
    echo YellowLine($prj['uname']);
    ?>
 <?php 
    echo YellowLine($prj['usurname']);
    ?>
</a> [<a href="/users/<?php 
    echo $prj['login'];
    ?>
/"><?php 
    echo YellowLine($prj['login']);
Beispiel #6
0
/**
 * Информация пользователя
 *
 * @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()).'&nbsp;' : '').
    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')) . '&nbsp;' : '';
    $is_team = view_team_fl() . "&nbsp;";
    return "<span class='{$cls}'{$sty}>" . ($user['is_admin'] == 't' ? '<span class="cau-admin">Admin</span>&nbsp;' : '') . "<a class='{$cls}'{$sty} href='/users/{$login}' title='{$uname} {$usurname}'>" . $uname . " " . $usurname . "\n" . " [" . ($user['dsp_login'] ? $user['dsp_login'] : $login) . "]</a>" . "</span>&nbsp;" . ($user[$pfx . 'is_team'] == 't' ? $is_team : $pro) . $session->view_online_status($login);
}
Beispiel #7
0
<?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;
Beispiel #8
0
$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;
/**
 * Парсит 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 _parseContestCommentsOne($aOne = array(), $status = 0, $sKind = '0', $aStream = array(), $nCnt = 0, $nContentId = 0)
{
    global $stop_words, $sTeam;
    $sReturn = '';
    $sLink = $GLOBALS['host'] . getFriendlyURL('project', $aOne['src_id']) . '?comm=' . $aOne['id'] . '#comment-' . $aOne['id'];
    $sDescr = $status != 1 ? $stop_words->replace(xmloutofrangechars(xmloutofrangechars($aOne['post_text'])), 'html', true, 'suspect') : xmloutofrangechars(xmloutofrangechars($aOne['post_text']));
    $aOne['context_code'] = '3';
    $aOne['context_link'] = $sLink;
    $aOne['context_title'] = xmloutofrangechars($aOne['src_name']);
    $sUserClass = is_emp($aOne['role']) ? '6db335' : 'fd6c30';
    $sJSParams = "{'content_id': {$nContentId}, 'stream_id': '{$aStream['stream_id']}', 'content_cnt': {$nCnt}, 'status': {$status}, 'is_sent': '{$aOne['is_sent']}'}";
    $sEditIcon = _parseEditIcon('admEditContestCom', $aOne['id'], $status, $sKind, $sJSParams);
    $sPro = $aOne['is_pro'] == 't' ? preg_replace('#<a[^>]+>(.+)</a>#', '$1', is_emp($aOne['role']) ? view_pro_emp() : view_pro2($aOne['is_pro_test'] == 't' ? true : false)) . '&nbsp;' : '';
    $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_' . $sUserClass . ' 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">Предупреждения:&nbsp;<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">' . reformat($sDescr, 30, 0, 0, 1) . '</div>
    <div class="b-post__txt b-post__txt_fontsize_11"><img class="b-post__pic b-post__pic_valign_mid" src="/images/frame-kont.png" alt="" /> <a class="b-post__link b-post__link_fontsize_11" href="' . $sLink . '" target="_blank">' . reformat(xmloutofrangechars($aOne['src_name']), 30, 0, 1) . '</a></div>
    ' . _parseDelIcons($aOne, 'user_id', $status, $sKind, $sJSParams, $sEditIcon) . '
</div>';
    return $sReturn;
}
Beispiel #10
0
/**
 * Один коммент
 * 
 * @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">&darr;</a>
            <?php 
    }
    ?>
            <a href="#c_3" class="d-anchor">&darr;</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")) . "&nbsp;&nbsp;";
    }
    ?>
                <?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;
}
Beispiel #11
0
function view_mark_user2($value)
{
    $mark = '';
    if (@$value['is_profi'] == 't') {
        $mark .= '&#160;' . view_profi();
    } else {
        $is_pro = '&#160;' . view_pro2($value['is_pro_test'] == 't');
        $mark .= $value['is_pro'] == 't' ? is_emp($value['role']) ? '&#160;' . view_pro_emp() : $is_pro : '';
    }
    $is_team = '&#160;' . 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 .= '&#160;' . view_reserve_shield();
    }
    return $mark;
}
Beispiel #12
0
            ?>
"><?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() : '';
            ?>
 &#160;
<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>
Beispiel #13
0
/**
 * Информация пользователя для главной страницы сообществ
 *
 * @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()).'&nbsp;' : '').
    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}'>&nbsp;" . $session->view_online_status($login) . "&nbsp;\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) . "&nbsp;" . '<span class="cau-admin" id="cau_admin' . $user['id'] . '">' . ($user['is_admin'] == 't' ? 'Admin&nbsp;' : '') . '</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>";
}
            $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 
Beispiel #15
0
                    ?>
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'];
                    ?>
Beispiel #16
0
/setup/foto/<?php 
}
?>
">
              <?php 
echo view_avatar($user->login, $user->photo, 0);
?>
          </a>
      </td>
      <td class="b-layout__td b-layout__td_ipad b-layout__td_pad_null_ipad">
	        <div class="b-layout__txt b-layout__txt_fontsize_11 b-layout__txt_padbot_5 b-layout__txt_bold b-layout__txt_color_6db335"><?php 
echo $user->uname;
?>
 <?php 
echo $user->usurname;
?>
 [<?php 
echo $user->login;
?>
] <?php 
echo $user->is_pro == 't' ? view_pro_emp(1) : '';
?>
</div>
      </td>
      <td class="b-layout__td b-layout__td_right b-layout__td_width_100 b-layout__td_width_null_ipad b-layout__td_pad_null_ipad">
      </td>
   </tr>
</table>
 
 
Beispiel #17
0
<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 .= "&nbsp;";
?>
                <?php 
if ($show_banned_text) {
    ?>
                    <p style="text-align: left; padding-top: 10px"><strong style="background: #F2A5A5; paddong: 4px">Пользователь забанен.</strong></p>
                <?php 
}
?>
            </div>
        </div>