Вход Регистрация
Файл: templates/modern/controllers/users/profile_edit_sessions.tpl.php
Строк: 27
<?php

    $this
->setPageTitle(LANG_USERS_SESSIONS);

    if(
$this->controller->listIsAllowed()){
        
$this->addBreadcrumb(LANG_USERShref_to('users'));
    }
    
$this->addBreadcrumb($profile['nickname'], href_to_profile($profile));
    
$this->addBreadcrumb(LANG_USERS_EDIT_PROFILEhref_to('users'$profile['id'], 'edit'));
    
$this->addBreadcrumb(LANG_USERS_SESSIONS);

    
$this->renderChild('profile_edit_header', array('profile'=>$profile));
?>
<div class="alert alert-info" role="alert">
    <?php echo LANG_SESSIONS_HINT?>
</div>
<div class="table-responsive-sm">
    <table class="data_list table table-hover">
        <thead>
            <th><?php echo LANG_SESS_TYPE?></th>
            <th><?php echo LANG_SESS_LAST_DATE?></th>
            <th><?php echo LANG_SESS_IP?></th>
            <th class="actions"></th>
        </thead>
        <?php if($sessions){ ?>
            <?php foreach ($sessions as $session) { ?>
                <tr>
                    <td>
                        <?php echo string_lang('LANG_SESS_'.$session['access_type']['type']); ?>
                    </td>
                    <td>
                        <?php echo string_date_age_max($session['date_log'], true); ?>
                    </td>
                    <td>
                        <a rel="noopener noreferrer" target="_blank" href="https://apps.db.ripe.net/search/query.html?searchtext=<?php echo $session['ip']; ?>#resultsAnchor">
                            <?php echo $session['ip']; ?>
                        </a>
                    </td>
                    <td>
                        <a href="<?php echo $this->href_to($id, array('edit''sessions_delete'$session['id'])); ?>"><?php echo LANG_SESS_DROP?></a>
                    </td>
                </tr>
            <?php ?>
        <?php } else { ?>
            <tr>
                <td class="empty" colspan="3">
                    <?php echo LANG_SESS_NOT_FOUND?>
                </td>
            </tr>
        <?php ?>
    </table>
</div>
Онлайн: 0
Реклама