Ejemplo n.º 1
0
        echo '<div class="results">' . ((int) $p['results'] === 1 ? sprintf($LANG['result'], $p['results']) : sprintf($LANG['results'], $p['results']));
        if (!empty($_GET['search'])) {
            echo ' / <a href="?route=users.php&amp;action=sessions">' . $LANG['reset_view'] . '</a>';
        }
        echo '</div>';
        if ($p['results']) {
            echo '<form action="?route=users.php&amp;action=sessions" method="POST">

<ul class="elements-list">

<li class="head"><input type="checkbox" checkall /> ' . $LANG['name'] . '</li>

<div class="bulk_options">
  <button class="btn" name="delete" data-delete-msg="' . $LANG['delete_msg'] . '">' . $LANG['delete_all'] . '</button>
</div>';
            foreach (admin_query::while_usessions(array_merge(array('orderby' => isset($_GET['orderby']) ? urldecode($_GET['orderby']) : 'date desc'), $options)) as $item) {
                echo '<li>
  <input type="checkbox" name="id[' . $item->ID . ']" />

  <div style="display: table;">

  <img src="' . \query\main::user_avatar($item->avatar) . '" alt="" />
  <div class="info-div"><h2>' . htmlspecialchars($item->name) . '
  <span class="fright date">' . date('Y.m.d, ' . (\query\main::get_option('hour_format') == 12 ? 'g:i A' : 'G:i'), strtotime($item->date)) . '</span></h2></div>

  </div>

  <div style="clear:both;"></div>

  <div class="options">
  <a href="?route=users.php&amp;action=edit&amp;id=' . $item->userID . '">' . $LANG['sessions_edit_user'] . '</a>