Created
September 23, 2015 07:18
-
-
Save lianglee/371c2bfef6d6e3fcfe1d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Open Source Social Network | |
| * | |
| * @package (Informatikon.com).ossn | |
| * @author OSSN Core Team <[email protected]> | |
| * @copyright 2014 iNFORMATIKON TECHNOLOGIES | |
| * @license General Public Licence http://www.opensource-socialnetwork.org/licence | |
| * @link http://www.opensource-socialnetwork.org/licence | |
| */ | |
| $users = new OssnUser; | |
| $pagination = new OssnPagination; | |
| $pagination->setItem($users->getSiteUsers()); | |
| ?> | |
| <div class="row margin-top-10"> | |
| <table class="table ossn-users-list"> | |
| <tbody> | |
| <tr class="table-titles"> | |
| <th><?php echo ossn_print('name'); ?></th> | |
| <th><?php echo ossn_print('username'); ?></th> | |
| <th><?php echo ossn_print('email'); ?></th> | |
| <th><?php echo ossn_print('type'); ?></th> | |
| <th><?php echo ossn_print('lastlogin'); ?></th> | |
| <th><?php echo ossn_print('edit'); ?></th> | |
| <th><?php echo ossn_print('delete'); ?></th> | |
| </tr> | |
| <?php foreach ($pagination->getItem() as $user) { | |
| $user = ossn_user_by_guid($user->guid); | |
| $lastlogin = ''; | |
| if(!empty($user->last_login)){ | |
| $lastlogin = ossn_user_friendly_time($user->last_login); | |
| } | |
| ?> | |
| <tr> | |
| <td> | |
| <div class="left image"><img src="<?php echo $user->iconURL()->smaller; ?>"/></div> | |
| <div class="name"><?php echo strl($user->fullname, 20); ?></div> | |
| </td> | |
| <td><?php echo $user->username; ?></td> | |
| <td><?php echo $user->email; ?></td> | |
| <td><?php echo $user->type; ?></td> | |
| <td><?php echo $lastlogin; ?></td> | |
| <td> | |
| <a href="<?php echo ossn_site_url("administrator/edituser/{$user->username}"); ?>"><?php echo ossn_print('edit'); ?></a> | |
| </td> | |
| <td><a href="<?php echo ossn_site_url("action/admin/delete/user?guid={$user->guid}", true); ?>" class="userdelete"><?php echo ossn_print('delete'); ?></a></td> | |
| </tr> | |
| <?php } ?> | |
| </tbody> | |
| </table> | |
| </div> | |
| <div class="row"> | |
| <?php echo $pagination->pagination(); ?> | |
| </div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment