Files
gallery3/modules/user/views/admin_users.html.php
Andy Staudacher a631fe29f3 i18n refactoring: Rename all _() (reserved by gettext) calls to t().
- And refactor printf to our string interpolation / pluralization syntax
- Also, a slight change to the translations_incomings table, using binary(16) instead of char(32) as message key.
2009-01-08 17:13:06 +00:00

23 lines
892 B
PHP

<?php defined("SYSPATH") or die("No direct script access.") ?>
<div class="gBlock">
<h2><?= t("User Administration") ?></h2>
<div class="gBlockContent">
<p><?= t("These are the users in your system") ?></p>
<ul>
<? foreach ($users as $i => $user): ?>
<li>
<?= $user->name ?>
<?= ($user->last_login == 0) ? "" : "(" . date("M j, Y", $user->last_login) . ")" ?>
<a href="users/edit_form/<?= $user->id ?>" class="gDialogLink"><?= t("edit") ?></a>
<? if (!(user::active()->id == $user->id || user::guest()->id == $user->id)): ?>
<a href="users/delete_form/<?= $user->id ?>" class="gDialogLink">
<?= t("delete") ?></a>
<? endif ?>
</li>
<? endforeach ?>
<li><a href="users/add_form" class="gDialogLink" title="<?= t("Add user") ?>">
<?= t("Add user") ?></a></li>
</ul>
</div>
</div>