当前位置: 首页>>代码示例>>PHP>>正文


PHP view_avatar函数代码示例

本文整理汇总了PHP中view_avatar函数的典型用法代码示例。如果您正苦于以下问题:PHP view_avatar函数的具体用法?PHP view_avatar怎么用?PHP view_avatar使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了view_avatar函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: setHtml

 public function setHtml()
 {
     global $session;
     $html = array();
     if ($result = $this->getRecords()) {
         foreach ($result as $key => $value) {
             $pfx = $value['from_id'] == $this->_engine->uid ? 't_' : 'f_';
             list($msg_text, $login, $uname, $usurname) = $this->mark(array((string) $value['msg_text'], (string) $value[$pfx . 'login'], (string) $value[$pfx . 'uname'], (string) $value[$pfx . 'usurname']));
             $msg_text = preg_replace('~(https?:/){[^}]+}/~', '$1/', $msg_text);
             $html[$key] = '<table cellpadding="0" cellspacing="0">';
             $html[$key] .= '<tr>';
             $html[$key] .= '<td style="vertical-align: top; padding-right: 8px;">';
             $html[$key] .= '<div class="upic">' . view_avatar($value[$pfx . 'login'], $value[$pfx . 'photo']) . '</div>';
             $html[$key] .= '</td>';
             $html[$key] .= '<td style="vertical-align: top;">';
             $html[$key] .= view_mark_user($value, $pfx);
             $html[$key] .= $session->view_online_status($value[$pfx . 'login']);
             //if ($value[$pfx . 'is_pro'] == 't') $html[$key] .= (is_emp($value[$pfx . 'role']) ? view_pro_emp() : view_pro2($value[$pfx . 'is_pro_test']=='t'));
             $cls = is_emp($value[$pfx . 'role']) ? 'class="empname11"' : 'class="frlname11"';
             $html[$key] .= '&nbsp;<font ' . $cls . '><a href="/users/' . $value[$pfx . 'login'] . '" title="' . $value[$pfx . 'uname'] . ' ' . $value[$pfx . 'usurname'] . '" ' . $cls . ' >' . $uname . ' ' . $usurname . '</a> [<a href="/users/' . $value[$pfx . 'login'] . '/" title="' . $value[$pfx . 'login'] . '" ' . $cls . '>' . $login . '</a>]</font>';
             if ($msg_text != '') {
                 $html[$key] .= '<div style="margin-top: 4px;"><a href="/contacts/?from=' . $value[$pfx . 'login'] . '">' . reformat($msg_text, 80, 0, 1) . '</a></div>';
             }
             $html[$key] .= '</td>';
             $html[$key] .= '</tr>';
             $html[$key] .= '</table>';
         }
     }
     $this->html = $html;
 }
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:30,代码来源:search_element_messages.php

示例2: setHtml

 /**
  */
 public function setHtml()
 {
     global $session;
     $html = array();
     if ($result = $this->getRecords()) {
         foreach ($result as $key => $value) {
             list($text, $login, $uname, $usurname) = $this->mark(array((string) $value['n_text'], (string) $value['login'], (string) $value['uname'], (string) $value['usurname']));
             $html[$key] = '<table cellpadding="0" cellspacing="0" style="width: 100%;">';
             $html[$key] .= '<tr>';
             $html[$key] .= '<td style="vertical-align: top; padding-right: 8px; width: 50px;">';
             $html[$key] .= '<div class="upic">' . view_avatar($value['login'], $value['photosm']) . '</div>';
             $html[$key] .= '</td>';
             $html[$key] .= '<td style="vertical-align: top">';
             $html[$key] .= view_mark_user($value);
             $html[$key] .= $session->view_online_status($value['login']);
             //if ($value['is_pro'] == 't') $html[$key] .= (is_emp($value['role']) ? view_pro_emp() : view_pro2($value['is_pro_test']=='t'));
             $cls = is_emp($value['role']) ? 'class="empname11"' : 'class="frlname11"';
             $html[$key] .= '&nbsp;<font ' . $cls . '><a href="/users/' . $value['login'] . '" title="' . $value['uname'] . " " . $value['usurname'] . '" ' . $cls . ' >' . $uname . " " . $usurname . '</a> [<a href="/users/' . $value['login'] . '/" title="' . $value['login'] . '" ' . $cls . '>' . $login . '</a>]</font>';
             $html[$key] .= '</td>';
             $html[$key] .= '<td style="width: 180px;height: 64px;" class="note_' . (is_emp($value['role']) ? 'emp' : 'frl') . '">';
             $html[$key] .= $text;
             $html[$key] .= '</td>';
             $html[$key] .= '</tr>';
             $html[$key] .= '</table>';
         }
     }
     $this->html = $html;
 }
开发者ID:notUserDeveloper,项目名称:fl-ru-damp,代码行数:30,代码来源:search_element_notes.php

示例3: comments

/**
 * Выводит дерево комментариев. Используется здесь и в xajax/contest.server.php
 * @param  integer   $pid            id проекта
 * @param  string    $name           название проекта
 * @param  array     $comments       массив с деревом комментариев (подробнее в classes/contest.php)
 * @param  boolean   $comm_blocked   автор отключил возможность оставлять комментарии?
 * @param  boolean   $project_end    проект закрыт?
 * @param  integer   $s_level        уровень вложенности комментария
 * @return string                    HTML с кнопками управления
 */
function comments($pid, $name, &$comments, $comm_blocked, $project_end, $s_level = 0)
{
    global $stop_words, $contest, $project, $session;
    static $level = 0;
    $level = ($s_level ? $s_level : $level) + 1;
    $html = '';
    $set_branch_as_read = false;
    for ($i = 0, $c = count($comments); $i < $c; $i++) {
        if (($comments[$i]['is_banned'] || $comments[$i]['usr_banned'] || $comments[$i]['user_blocked'] === 't') && !hasPermissions('projects') && !$contest->is_owner) {
            $msg = $msg2 = 'Ответ от заблокированного пользователя';
        } else {
            if (!trim($comments[$i]['deleted'])) {
                $sMsg = $comments[$i]['moderator_status'] === '0' ? $stop_words->replace($comments[$i]['msg']) : $comments[$i]['msg'];
                $msg = reformat($sMsg, 30, 0, 0, 1);
                $msg2 = reformat($comments[$i]['msg'], 30, 0, 0, 1);
            } else {
                $msg2 = $msg = "Комментарий удален модератором";
                if (hasPermissions("comments")) {
                    $moderator = '';
                    $moderatorData = new users();
                    $moderatorData->GetUserByUID($comments[$i]['deluser_id']);
                    if ($moderatorData->login) {
                        $moderator = ' ' . $moderatorData->login . ' (' . $moderatorData->uname . ' ' . $moderatorData->usurname . ') ';
                    }
                    $msg2 = $msg = $msg . " {$moderator}";
                }
                if ($comments[$i]['deluser_id'] == $comments[$i]['user_id']) {
                    $msg2 = $msg = "Комментарий удален автором";
                } else {
                    if (trim($comments[$i]['deleted_reason']) && (hasPermissions("comments") || $comments[$i]['user_id'] == get_uid(false))) {
                        $msg2 = $msg = $msg . "<div style='color:#ff0000'>Причина: " . $comments[$i]['deleted_reason'] . "</div>";
                    }
                }
            }
        }
        $a_is_banned = ($comments[$i]['is_banned'] || $comments[$i]['usr_banned']) && hasPermissions('projects');
        $html .= "\n\t\t\t<li class='thread' id='thread-{$comments[$i]['id']}'" . ($level >= 9 ? " style='margin-left: 0'" : "") . ">\n\t\t\t\t<a name='c-comment-{$comments[$i]['id']}'></a>\n\t\t\t\t<div class='comment-one" . ($comments[$i]['deleted'] || $comments[$i]['hidden'] ? " comment-deleted" : "") . "' id='comment-{$comments[$i]['id']}'>\n\t\t\t\t\t<div class='contest-ea'>" . view_avatar($comments[$i]['login'], $comments[$i]['photo'], 1) . "</div>\n\t\t\t\t\t<div class='comment-body'>\n\t\t\t\t\t\t<h3 class='username'>" . $session->view_online_status($comments[$i]['login']) . "\n\t\t\t\t\t\t\t<a href='/users/{$comments[$i]['login']}' class='" . (is_emp($comments[$i]['role']) ? 'employer-name' : 'freelancer-name') . "'>{$comments[$i]['uname']} {$comments[$i]['usurname']} [{$comments[$i]['login']}]</a>&nbsp;" . view_mark_user($comments[$i]) . "&nbsp;" . ($comments[$i]['completed_cnt'] > 0 ? '<a href="/promo/bezopasnaya-sdelka/" title="Пользователь работал через Безопасную Сделку" target="_blank"><span class="b-icon b-icon__shield b-icon_top_1"></span></a>' : '') . "\n\t\t\t\t\t\t\t<span>[" . dateFormat('d.m.Y | H:i', $comments[$i]['post_date']) . "]</span>\n\t\t\t\t\t\t\t<span id='comment-modified-{$comments[$i]['id']}'>" . ($comments[$i]['modified'] ? "[изменен " . dateFormat('d.m.Y | H:i', $comments[$i]['modified']) . "]" : '&nbsp;') . "</span>\n\t\t\t\t\t\t\t" . ($a_is_banned ? "<b style=\"color:#ff0000\">Пользователь забанен</b>" : "") . "\n\t\t\t\t\t\t</h3>\n\t\t\t\t\t\t" . ($_SESSION['uid'] && $comments[$i]['is_new'] ? "<p><img src='/images/mark-new.png' width='53' height='12' alt='новое' class='mark-new' /></p>" : "") . "\n\t\t\t\t\t\t<div id='comment-change-{$comments[$i]['id']}'>\n\t\t\t\t\t\t<p id='comment-msg-{$comments[$i]['id']}' " . ($a_is_banned ? "style='color:silver'" : "") . ".>" . $msg . "</p>\n\t\t\t\t\t\t<div id='comment-msg-original-{$comments[$i]['id']}' style='display:none'>" . $msg2 . "</div>\n\t\t\t\t\t\t<script type=\"text/javascript\">\n                        banned.addContext( 'p{$pid}c{$comments[$i]['id']}', 3, '" . HTTP_PREFIX . "{$_SERVER['HTTP_HOST']}" . getFriendlyURL("project", $pid) . "?comm={$comments[$i]['id']}#comment-{$comments[$i]['id']}', \"" . htmlspecialchars($name) . "\" );\n                        </script>\n\t\t\t\t\t\t<ul class='thread-options' id='comment-options-{$comments[$i]['id']}'>\n\t\t\t\t\t\t\t" . comment_options($pid, $comments[$i], $comm_blocked, $project_end, $level, $name) . "\n\t\t\t\t\t\t</ul>\n                        <div id='warnreason-" . $comments[$i]['id'] . "-" . $comments[$i]['user_id'] . "' style='display:none; padding: 0 0 5px 0px;'>&nbsp;</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t" . (empty($comments[$i]['comments']) ? '' : '<ul>' . comments($pid, $name, $comments[$i]['comments'], $comm_blocked, $project_end) . '</ul>') . "\n\t\t\t</li>\n\t\t";
        if ($comments[$i]['is_new']) {
            $set_branch_as_read = true;
        }
    }
    if ($set_branch_as_read) {
        $p = new projects();
        $data = array("id" => $pid, "kind" => 7, "user_id" => $project["user_id"]);
        $p->SetRead($data, get_uid(false), true);
    }
    --$level;
    return $html;
}
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:59,代码来源:contest.php

示例4: AddUser

function AddUser($login)
{
    $objResponse = new xajaxResponse();
    require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/freelancer.php";
    $user = new users();
    $user->GetUser($login);
    if ($user->login && !is_emp($user->role) && !$user->is_banned && $user->active == 't') {
        $inner = "<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n<tr>\n\t<td width=\"60\">" . view_avatar($user->login, $user->photo) . "</td>\n\t<td valign=\"top\"><a href=\"/users/" . $user->login . "\" class=\"frlname11\" title=\"" . $user->uname . " " . $user->usurname . "\">" . $user->uname . " " . $user->usurname . " [" . $user->login . "]" . "</a> \n\t<a href=\"javascript:reload_form();\" class=\"blue\">изменить</a></td>\n</tr>\n</table>";
        $objResponse->assign("usersel", "innerHTML", $inner);
        $objResponse->script("document.getElementById('next').disabled = false;document.getElementById('login').value = '" . $login . "';");
    } else {
        $objResponse->script("reload_form();\n\t\t document.getElementById('usersel').innerHTML = document.getElementById('usersel').innerHTML + '" . ref_scr(view_error("Такого фрилансера не существует")) . "';\n\t\t document.getElementById('elogin').value = '" . $login . "';");
    }
    return $objResponse;
}
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:15,代码来源:adduser.server.php

示例5: AddUser

function AddUser($login)
{
    $objResponse = new xajaxResponse();
    require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/freelancer.php';
    $user = new users();
    $user->GetUser($login);
    if ($user->login && !is_emp($user->role) && !$user->is_banned && $user->active == 't') {
        $inner = '<table cellspacing="0" cellpadding="0" border="0">
<tr>
	<td width="60">' . view_avatar($user->login, $user->photo) . '</td>
	<td valign="top"><a href="/users/' . $user->login . '" class="frlname11" title="' . $user->uname . ' ' . $user->usurname . '">' . $user->uname . ' ' . $user->usurname . ' [' . $user->login . ']' . '</a> 
	<a href="javascript:reload_form();" class="blue">изменить</a></td>
</tr>
</table>';
        $objResponse->assign('usersel', 'innerHTML', $inner);
        $objResponse->script("document.getElementById('next').disabled = false;document.getElementById('login').value = '" . $login . "';");
    } else {
        $objResponse->script("reload_form();\n\t\t document.getElementById('usersel').innerHTML = document.getElementById('usersel').innerHTML + '" . ref_scr(view_error('Такого фрилансера не существует')) . "';\n\t\t document.getElementById('elogin').value = '" . $login . "';");
    }
    return $objResponse;
}
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:21,代码来源:adduser.server.php

示例6: view_avatar

">
              <div id="td_user_<?php 
    echo $rec['uid'];
    ?>
" class="izbr-item">
                <a href="/users/<?php 
    echo $rec['login'];
    ?>
" title="<?php 
    echo $rec['uname'];
    ?>
 <?php 
    echo $rec['usurname'];
    ?>
"><?php 
    echo view_avatar($rec['login'], $rec['photo'], 1, 1, 'b-pic b-pic_fl');
    ?>
</a>
                <div class="izbr-text">
                  <span id="elm-offset-<?php 
    echo $rec['uid'] . "-" . $type;
    ?>
"></span> 
                  <span class="user-inf">
                    <span class="<?php 
    echo $cls;
    ?>
name11"><a href="/users/<?php 
    echo $rec['login'];
    ?>
/" class="<?php 
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:all_inner.php

示例7: view_fullname

                        <?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>
                                        </li>                                       
                                        <li class="b-dropdown-concealment-options-clause b-dropdown-concealment-options-messages-clause">
                                            <a href="/contacts/" class="b-dropdown-concealment-options-clause-link" title="<?php 
echo $tip_msg['tip'];
?>
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:personal_emp.php

示例8: __fpPrntPosition

/**
 * Вывод позиции платного объявления
 * @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) . '&nbsp;';
    }
    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 
//.........这里部分代码省略.........
开发者ID:amage,项目名称:fl-ru-damp,代码行数:101,代码来源:firstpage.php

示例9: employer

$user = new employer();
$user->GetUser($login);
?>
<table class="b-layout__table b-layout__table_width_full">
   <tr class="b-layout__tr">
      <td class="b-layout__td b-layout__td_width_60 b-layout__td_padtop_4 b-layout__td_ipad b-layout__td_width_null_ipad b-layout__td_pad_null_ipad b-layout__td_padright_10">
          <a class="b-layout__link" href="/users/<?php 
echo $user->login;
if (!hasPermissions('users')) {
    ?>
/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) : '';
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:info.php

示例10: foreach

        <?php 
    foreach ($users_team as $i => $uteam) {
        ?>
        <tr class='<?php 
        echo $i % 2 != 0 ? "odd" : "env";
        ?>
'>
            <td align="center" style="text-align:center"><?php 
        echo $i + 1;
        ?>
</td>
            <td>
                <table> 
                    <tr> 
                        <td><?php 
        echo view_avatar($uteam['login'], $uteam['photo']);
        ?>
<td/>
                        <td><?php 
        echo view_user($uteam);
        ?>
</td>
                    </tr>
                </table>
            </td>
            <td align="center" style="text-align:center">[<a href="javascript:void(0)" onclick="if(confirm('Удалить пользователя из команды?')) {$('login_team').set('value', '<?php 
        echo $uteam['login'];
        ?>
'); $('delform').submit(); } else { return false; }" class="public_red">удалить</a>]</td>
        </tr>
        <?php 
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:inner_index.php

示例11: strtr

}
?>
            <li class="ops-time"><?php 
echo $posted;
?>
</li>
            <li><a onclick="hlAnchor('s',<?php 
echo $theme['id'];
?>
)" href="#s_<?php 
echo $theme['id'];
?>
" class="ops-anchor">#</a></li>
        </ul>
        <?php 
echo strtr(view_avatar($theme['login'], $theme['photo']), array('<img' => '<img style="user-avatar"'));
?>
        <div class="user-info">
            <div class="username" style="font-size: 12px"><?php 
echo __prntUsrInfo($user);
?>
                <?php 
if (hasPermissions('users')) {
    ?>
                <i>На сайте <?php 
    echo ElapsedMnths(strtotime($user->reg_date));
    ?>
</i>
                <?php 
}
?>
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:31,代码来源:norisk_op.php

示例12: view_avatar

        ?>
        <div class="b-post" id="opinion_<?php 
        echo $opinion['id'];
        ?>
">
            <a name="o_<?php 
        echo $opinion['id'];
        ?>
"></a>
            <div class="b-post__body b-post__body_pad_10_15_20" >
                <div class="b-post__avatar"> 
                    <a class="b-post__link" href="/users/<?php 
        echo $opinion['login'];
        ?>
/"><?php 
        echo view_avatar($opinion['login'], $opinion['photo'], 1, 1, 'b-post__userpic');
        ?>
</a>
                </div>
                <div class="b-post__content b-post__content_margleft_60">
                    <div class="b-post__time b-post__time_float_right"> 
                        <a class="b-post__anchor b-post__anchor_margright_10" onclick="hlAnchor('o',<?php 
        echo $opinion['id'];
        ?>
);" href="#o_<?php 
        echo $opinion['id'];
        ?>
" title="Ссылка на это мнение"></a> <?php 
        echo date('d.m.Y в H:i', strtotime($opinion['post_time']));
        ?>
 
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:30,代码来源:tpl.total_opinions.php

示例13: view_avatar

<div class="search-lenta-item c">
    <span class="number-item"><?php 
echo $i;
?>
.</span>
    <span class="search-pic"><a href="/users/<?php 
echo $result[$pfx . 'login'];
?>
/?f=<?php 
echo stat_collector::REFID_SEARCH;
?>
&stamp=<?php 
echo $_SESSION['stamp'];
?>
"><?php 
echo view_avatar($result[$pfx . 'login'], $result[$pfx . 'photo']);
?>
</a></span>
    <div class="search-item-body">
        <h4><?php 
$cls = is_emp($result[$pfx . 'role']) ? 'empname11' : 'frlname11';
?>
            
            <?php 
echo $session->view_online_status($result[$pfx . 'login']);
?>
<span style="line-height:1; font-size:11px; vertical-align:top;"><span class="<?php 
echo $cls;
?>
"><a href="/users/<?php 
echo $result[$pfx . 'login'];
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:tpl.search-messages.php

示例14: view_avatar

    };
}
</script>

<div class="page-title">Услуги</div>
<div class="payed-outer">
    <div class="payed-h">
        <h1 class="b-page__title">Профессиональный аккаунт</h1>
        <p>Контакты фрилансеров с <span class="b-icon b-icon__pro b-icon__pro_f " title="платным аккаунтом" alt="платным аккаунтом"></span> аккаунтом видны всем пользователям сайта.</p>

        <div class="payed-h-user">
            <?php 
if ($uid) {
    ?>
                <strong>Привет, <?php 
    echo view_avatar($user->login, $user->photo, 1, 1, "");
    ?>
 <?php 
    echo $user->uname;
    ?>
<!--<span class="bgrd"></span>--></strong>
                Мы сберегли этот <span class="b-icon b-icon__pro b-icon__pro_f " title="платный аккаунт" alt="платный аккаунт"></span> специально для тебя :)
            <?php 
}
?>
        </div>
    </div>
    <div class="payed-cnt c">
        <?php 
if ($uid) {
    ?>
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:content.php

示例15: date

	
    <div class="b-post b-post_pad_10_15_15" id="new_advice_<?php 
echo $advice['id'];
?>
">
    	<div class="b-post__body b-post__body_bordbot_solid_f0  b-post__body_padbot_20">
    		<div class="b-post__time b-post__time_float_right"><a class="b-post__anchor b-post__anchor_margright_10" href="#"></a><?php 
echo date('d.m.Y в H:i', strtotime($advice['create_date']));
?>
</div>
    		<div class="b-post__avatar b-post__avatar_margright_10">
    			<a class="b-post__link" href="/users/<?php 
echo $advice['login'];
?>
/"><?php 
echo view_avatar($advice['login'], $advice['photo'], 1, 1, 'b-post__userpic');
?>
</a>
    		</div>
    		<div class="b-post__content b-post__content_margleft_60">
    			<div class="b-username b-username_bold b-username_padbot_10">
    			    <?php 
echo view_user3($advice);
?>
    		    </div>			
    			<div class="b-post__voice b-post__voice_positive"></div>
    			<div class="b-post__txt b-post__txt_inline-block b-post__txt_valign_top"><?php 
echo reformat($advice['msgtext'], 40);
?>
</div>
    		</div>
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:30,代码来源:tpl.advice-edit.php


注:本文中的view_avatar函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。