summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorpb1dft <pb1dft@ampache>2007-02-12 21:29:12 +0000
committerpb1dft <pb1dft@ampache>2007-02-12 21:29:12 +0000
commitba2bb3649e64bca07c1b66fd1c9c0f023df07485 (patch)
treebc11b8e7a42cf7c7ff46c887eabfc2b65385da1d /templates
parentc10f41da77a5020fc94e52ad6dde15df652fa4cf (diff)
downloadampache-ba2bb3649e64bca07c1b66fd1c9c0f023df07485.tar.gz
ampache-ba2bb3649e64bca07c1b66fd1c9c0f023df07485.tar.bz2
ampache-ba2bb3649e64bca07c1b66fd1c9c0f023df07485.zip
Added new tool to see inactive users for xx days in Other Tools section
Diffstat (limited to 'templates')
-rw-r--r--templates/show_admin_tools.inc.php1
-rw-r--r--templates/show_users.inc.php26
2 files changed, 27 insertions, 0 deletions
diff --git a/templates/show_admin_tools.inc.php b/templates/show_admin_tools.inc.php
index b68c8631..7dcb2efc 100644
--- a/templates/show_admin_tools.inc.php
+++ b/templates/show_admin_tools.inc.php
@@ -85,6 +85,7 @@ $catalogs = $catalog->get_catalogs();
<a href="<?php echo $web_path; ?>/admin/system.php?action=generate_config"><?php echo _('Generate New Config'); ?></a>
<a href="<?php echo $web_path; ?>/admin/preferences.php?action=show_set_preferences"><?php echo _('Preferences Permissions'); ?></a>
<a href="<?php echo $web_path; ?>/admin/system.php?action=export&amp;export=itunes"><?php echo _('Export To Itunes DB'); ?></a>
+ <a href="<?php echo $web_path; ?>/admin/users.php?action=show_inactive&amp;days=30"><?php echo _('Show Inactive Users'); ?></a>
<!-- <a href="<?php echo $web_path; ?>/admin/system.php?action=check_version"><?php echo _('Check for New Version'); ?></a>-->
</div>
<?php show_box_bottom(); ?>
diff --git a/templates/show_users.inc.php b/templates/show_users.inc.php
index 39bf90f6..9d2e1b1b 100644
--- a/templates/show_users.inc.php
+++ b/templates/show_users.inc.php
@@ -24,8 +24,34 @@ $total_items = $view->total_items;
$admin_menu = "admin/";
show_box_top(_('Manage Users'));
+?>
+<table class="tabledata" cellpadding="0" cellspacing="10" border="0">
+<tr>
+<td>
+<?php
echo get_user_icon('add_user') . '&nbsp;';
echo '<a href="' . $web_path . '/admin/users.php?action=show_add_user">' . _('Add a new user') . '</a>';
+ if (isset ($_REQUEST['action']) || $_REQUEST['action'] == "show_inactive"){
+ ?>
+</td>
+</tr>
+<form name="show_inactive" enctype="multipart/form-data" method="request" action="<?php echo conf('web_path') . "/admin/users.php"; ?>">
+<tr align="center">
+ <td>
+ Inactive users for&nbsp;&nbsp;<input type=text name="days" size="4" value="<?php if (isset ($_REQUEST['days'])){ echo $_REQUEST['days'];}?>" />&nbsp;&nbsp;days
+ </td>
+</tr>
+<tr>
+ <td>
+ <input type="hidden" name="action" value="show_inactive" />
+ <input type="Submit" />
+ </td>
+</tr>
+</form>
+ <?php
+ }?>
+</table>
+<?php
show_box_bottom();
?>
<?php show_box_top(); ?>