Вход Регистрация
Файл: base-sys/admin/views/components/user_list.html
Строк: 110
<?php
{script}
    {foreach 
from=$buttons item='btn'}
       {if !empty(
$btn.js)}
           {
$btn.js}
       {/if}
    {/foreach}
{/
script}

{
style}
{
literal}
    .
user_list_thumb {
        
width55px;
        
height45px;
    }
    
    .
user_list_thumb img {
        
width45px;
        
height45px;
    }
    
    
#user-list-form .peep_lbutton {
        
cursor: default;
    }
{/
literal}
{/
style}

{if 
$users}

{if isset(
$search)}
    <
div class="peep_anno peep_std_margin peep_nocontent">{text key="admin+user_search_result" for=$search}</div>
{/if}

<
div class="clearfix peep_smallmargin">
    <
div class="peep_left">{$paging}</div>
    {if 
$total}<div class="peep_right">{text key='admin+found_users' count=$total}</div>{/if}
</
div>

<
form id="user-list-form" method="post" action="{if $action}{$action}{/if}">
<
table class="peep_table_2">
<
tr class="peep_tr_first">
    <
th width="1"></td>
    <
th>{text key='admin+user'}</th>
    <
th>{text key='admin+user_status'}</th>
    <
th>{text key='admin+joined'}</th>
</
tr>
{foreach 
from=$users item='user'}
    {
capture assign='userId'}{$user->id}{/capture}
    {
capture assign='username'}{$userNameList[$userId]}{/capture}
    <
tr class="{cycle values='peep_alt1,peep_alt2'}">
        <
td>{if !in_array($user->id$adminList)}<input type="checkbox" value="{$user->id}name="users[{$user->id}]" />{/if}</td>
        <
td>
            <
div class="clearfix">
                <
div class="peep_left peep_txtleft user_list_thumb">{decorator name='avatar_item' data=$avatars[$userId]}</div>
                <
div class="peep_left peep_txtleft">
                    {
user_link name=$avatars[$userId].title username=$userNameList[$userId]}<br />
                    <
span class="peep_small">
                    {if !empty(
$sexList[$userId])}
                        {
$sexList[$userId]}
                    {/if}
                    {if !empty(
$questionList[$userId].birthdate)}
                        {
age dateTime=$questionList[$userId].birthdate}
                    {/if}
                    {if !empty(
$sexList[$userId]) || !empty($questionList[$userId].birthdate)}<br />{/if}
                    {if !empty(
$questionList[$userId].email)}
                        <
span class="peep_remark">{$questionList[$userId].email}</span>
                    {/if}
                    </
span>
                    {if 
$onlineStatus}
                    <
div class="peep_small">
                        {if (!empty(
$onlineStatus[$userId]) && $onlineStatus[$userId])}
                            <
span class="peep_lbutton peep_green">{text key='base+activity_online'}</span>
                        {elseif 
$user->activityStamp}
                            {
text key='base+activity_stamp'} <span class="peep_remark">{format_date timestamp=$user->activityStamp}</span>
                        {/if}
                    </
div>
                    {/if}
                </
div>
            </
div>
        </
td>
        <
td>
            {if 
$suspendedList[$userId]}<div><span class="peep_lbutton peep_red">{text key='admin+user_status_suspended'}</span></div>{/if}
            {if 
$unverifiedList[$userId]}<div><span class="peep_lbutton">{text key='admin+user_status_unverified'}</span></div>{/if}
            {if 
$unapprovedList[$userId]}<div><span class="peep_lbutton">{text key='admin+user_status_unapproved'}</span></div>{/if}
        </
td>
        <
td class="peep_small">{if $user->joinStamp}{format_date timestamp=$user->joinStamp}{/if}</td>
    </
tr>
{/foreach}
<
tr class="peep_alt1 peep_tr_last">
     <
td><input type="checkbox" id="check-all" /></th>
     <
td colspan="3" class="peep_txtleft">
         {
text key='base+check_all'} | {text key='base+with_selected'}
         
         {foreach 
from=$buttons item='btn'}
            {
decorator name='button_list_item' type='submit' buttonName=$btn.name label=$btn.label id=$btn.id class=$btn.class}
         {/foreach}
     </
td>
</
tr>
</
table>

<
div class="peep_hidden" id="delete-user-confirm">
<
div class="peep_stdmargin peep_center">
    <
div class="peep_stdmargin">
        {
text key="admin+confirm_delete_users"}
    </
div>
    
    {
decorator name="button" type="submit" id="button-confirm-user-delete" class="peep_ic_delete peep_red" langLabel="base+delete_user_delete_button"}
</
div>
</
div>

</
form>

{
$paging}

{else}
    {
block_decorator name='box' addClass='peep_stdmargin clearfix peep_italic peep_center'}
        {
text key='admin+no_users'}
    {/
block_decorator}
{/if}
?>
Онлайн: 1
Реклама