diff options
author | pb1dft <pb1dft@ampache> | 2007-02-12 21:29:12 +0000 |
---|---|---|
committer | pb1dft <pb1dft@ampache> | 2007-02-12 21:29:12 +0000 |
commit | ba2bb3649e64bca07c1b66fd1c9c0f023df07485 (patch) | |
tree | bc11b8e7a42cf7c7ff46c887eabfc2b65385da1d /templates | |
parent | c10f41da77a5020fc94e52ad6dde15df652fa4cf (diff) | |
download | ampache-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.php | 1 | ||||
-rw-r--r-- | templates/show_users.inc.php | 26 |
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&export=itunes"><?php echo _('Export To Itunes DB'); ?></a> + <a href="<?php echo $web_path; ?>/admin/users.php?action=show_inactive&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') . ' '; 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 <input type=text name="days" size="4" value="<?php if (isset ($_REQUEST['days'])){ echo $_REQUEST['days'];}?>" /> 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(); ?> |