summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2009-03-29 19:18:16 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2009-03-29 19:18:16 +0000
commit0b081cf87b0bdc8149515453fe5ca02142551550 (patch)
treebe407191aa36bfe3ff6042f60e5ef11c7ca4e4f8
parentd5bc0afb3b0467f84b3b88155fc492de601bf00c (diff)
downloadampache-0b081cf87b0bdc8149515453fe5ca02142551550.tar.gz
ampache-0b081cf87b0bdc8149515453fe5ca02142551550.tar.bz2
ampache-0b081cf87b0bdc8149515453fe5ca02142551550.zip
slight tweak to what the ip history looks like, made it look more like the other parts of ampache
-rw-r--r--admin/users.php6
-rw-r--r--templates/show_ip_history.inc.php16
2 files changed, 15 insertions, 7 deletions
diff --git a/admin/users.php b/admin/users.php
index 0255df6a..1f487980 100644
--- a/admin/users.php
+++ b/admin/users.php
@@ -169,11 +169,11 @@ switch ($_REQUEST['action']) {
/* get the user and their history */
$working_user = new User($_REQUEST['user_id']);
- if (!isset ($_REQUEST['all'])){
- $history = $working_user->get_ip_history('',1);
+ if (!isset($_REQUEST['all'])){
+ $history = $working_user->get_ip_history(0,1);
}
else {
- $history = $working_user->get_ip_history('','');
+ $history = $working_user->get_ip_history();
}
require Config::get('prefix') . '/templates/show_ip_history.inc.php';
break;
diff --git a/templates/show_ip_history.inc.php b/templates/show_ip_history.inc.php
index 2fe76373..8941c25d 100644
--- a/templates/show_ip_history.inc.php
+++ b/templates/show_ip_history.inc.php
@@ -21,13 +21,21 @@
*/
?>
<?php show_box_top(sprintf(_('%s IP History'), $working_user->fullname)); ?>
-<div>
-<?php if (isset($_REQUEST['all'])){ ?>
- <a class="button" href="<?php echo Config::get('web_path')?>/admin/users.php?action=show_ip_history&user_id=<?php echo $working_user->id?>"><?php echo _('Show Unique'); ?>...</a>
+<div id="information_actions">
+<ul>
+<li>
+<?php if (isset($_REQUEST['all'])){ ?>
+ <a href="<?php echo Config::get('web_path')?>/admin/users.php?action=show_ip_history&user_id=<?php echo $working_user->id?>"><?php echo get_user_icon('disable'); ?></a>
+ <?php echo _('Show Unique'); ?>
<?php }else{ ?>
- <a class="button" href="<?php echo Config::get('web_path')?>/admin/users.php?action=show_ip_history&user_id=<?php echo $working_user->id?>&all"><?php echo _('Show All'); ?>...</a>
+ <a href="<?php echo Config::get('web_path')?>/admin/users.php?action=show_ip_history&user_id=<?php echo $working_user->id?>&all"><?php echo get_user_icon('add'); ?></a>
+ <?php echo _('Show All'); ?>
<?php }?>
+</li>
+</ul>
</div>
+<br />
+<br />
<table class="tabledata" cellpadding="0" cellspacing="0">
<colgroup>
<col id="col_date" />