summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/show_add_access.inc2
-rw-r--r--templates/show_add_playlist.inc.php2
-rw-r--r--templates/show_artist.inc3
-rw-r--r--templates/show_ip_history.inc.php44
-rw-r--r--templates/show_users.inc29
5 files changed, 52 insertions, 28 deletions
diff --git a/templates/show_add_access.inc b/templates/show_add_access.inc
index 3b92c65b..668cf7ab 100644
--- a/templates/show_add_access.inc
+++ b/templates/show_add_access.inc
@@ -85,7 +85,7 @@
<td colspan="2">
<br />
<input type="hidden" name="action" value="add_host" />
- <input type="submit" value="<?php echo _('Create ACL'); ?>" />
+ <input class="button" type="submit" value="<?php echo _('Create ACL'); ?>" />
</td>
</tr>
</table>
diff --git a/templates/show_add_playlist.inc.php b/templates/show_add_playlist.inc.php
index f356d6f7..1dae3679 100644
--- a/templates/show_add_playlist.inc.php
+++ b/templates/show_add_playlist.inc.php
@@ -39,7 +39,7 @@
</tr>
<tr>
<td colspan="2">
- <input type="submit" value="<?php echo _('Create'); ?>" />
+ <input class="button" type="submit" value="<?php echo _('Create'); ?>" />
<input type="hidden" name="action" value="Create" />
</td>
</tr>
diff --git a/templates/show_artist.inc b/templates/show_artist.inc
index d6d4f17f..748f5b75 100644
--- a/templates/show_artist.inc
+++ b/templates/show_artist.inc
@@ -24,9 +24,6 @@
$artist_id = $artist->id;
$web_path = conf('web_path');
?>
-<?php show_alphabet_form('',_('Artists'),'artists.php?action=match'); ?>
-<?php show_alphabet_form('',_('Albums'),'albums.php?aciont=mathc'); ?>
-<br />
<?php require (conf('prefix') . '/templates/show_artist_box.inc.php'); ?>
<!-- *** Multi-Album Art Display Thx MrBlahh Updated by clader *** -->
<?php show_box_top(); ?>
diff --git a/templates/show_ip_history.inc.php b/templates/show_ip_history.inc.php
new file mode 100644
index 00000000..dd251a3f
--- /dev/null
+++ b/templates/show_ip_history.inc.php
@@ -0,0 +1,44 @@
+<?php
+/*
+
+ Copyright (c) 2001 - 2006 Ampache.org
+ All rights reserved.
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License
+ as published by the Free Software Foundation; either version 2
+ of the License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+*/
+?>
+<?php show_box_top($temp_user->fullname . ' ' . _('IP History')); ?>
+<table border="0">
+<tr class="table-header">
+ <td align="center">
+ <?php echo _('Date'); ?>
+ </td>
+ <td align=\"center\">
+ <?php echo _('IP Address'); ?>
+ </td>
+</tr>
+<?php foreach ($history as $data) { ?>
+<tr class="<?php echo flip_class(); ?>">
+ <td>
+ <?php echo date("d/m/Y H\hi",$data['date']); ?>
+ </td>
+ <td>
+ <?php echo int2ip($data['ip']); ?>
+ </td>
+</tr>
+<?php } ?>
+</table>
+<?php show_box_bottom(); ?>
diff --git a/templates/show_users.inc b/templates/show_users.inc
index 10ed8a55..10ff4a18 100644
--- a/templates/show_users.inc
+++ b/templates/show_users.inc
@@ -46,41 +46,24 @@ $admin_menu = "admin/";
</td>
<td align="center">
<a href="<?php echo $web_path; ?>/<?php echo $_SESSION['view_script']; ?>?action=<?php echo $_REQUEST['action']; ?>&amp;keep_view=true&amp;sort_type=last_seen&amp;sort_order=0">
- <b><?php echo _("Last Seen"); ?></b>
+ <b><?php echo _('Last Seen'); ?></b>
</a>
</td>
<td align="center">
<a href="<?php echo $web_path; ?>/<?php echo $_SESSION['view_script']; ?>?action=<?php echo $_REQUEST['action']; ?>&amp;keep_view=true&amp;sort_type=create_date&amp;sort_order=0">
- <b><?php echo _("Registration Date"); ?></b>
+ <b><?php echo _('Registration Date'); ?></b>
</a>
</td>
<td align="center">
- <b><?php echo _("Activity"); ?></b>
+ <b><?php echo _('Activity'); ?></b>
</td>
<td align="center">
- <b><?php echo _("Last Ip"); ?></b>
+ <b><?php echo _('Last Ip'); ?></b>
</td>
<td colspan="5">&nbsp;</td>
- <!--
<td align="center">
- <b><?php echo _("Edit"); ?></b>
- </td>
- <td align="center">
- <b><?php echo _("Prefs"); ?></b>
- </td>
- <td align="center">
- <b><?php echo _("Stats"); ?></b>
- </td>
- <td align="center">
- <b><?php echo _("Access"); ?></b>
- </td>
- <td align="center">
- <b><?php echo _("Delete"); ?></b>
- </td>
- -->
- <td align="center">
- <b><?php echo _("On-line"); ?></b>
+ <b><?php echo _('On-line'); ?></b>
</td>
</tr>
<?php
@@ -110,7 +93,7 @@ while ($results = mysql_fetch_object($db_result)) {
<?php echo $user->f_useage; ?>
</td>
<td>
- <a href="<?php echo $web_path; ?>/admin/users.php?action=show_ip_history&amp;user=<?php echo $user->username; ?>">
+ <a href="<?php echo $web_path; ?>/admin/users.php?action=show_ip_history&amp;user_id=<?php echo $user->id; ?>">
<?php echo $user->ip_history; ?>
</a>
</td>