summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/show_albums.inc16
-rw-r--r--templates/show_users.inc2
2 files changed, 11 insertions, 7 deletions
diff --git a/templates/show_albums.inc b/templates/show_albums.inc
index da6a505c..e23f88e8 100644
--- a/templates/show_albums.inc
+++ b/templates/show_albums.inc
@@ -1,7 +1,7 @@
<?php
/*
- Copyright (c) 2001 - 2005 Ampache.org
+ Copyright (c) 2001 - 2006 Ampache.org
All rights reserved.
This program is free software; you can redistribute it and/or
@@ -37,8 +37,10 @@ $total_items = $view->total_items;
<td>
<a href="<?php echo $web_path; ?>/<?php echo $_SESSION['view_script']; ?>?action=<?php echo $_REQUEST['action']; ?>&amp;keep_view=true&amp;sort_type=album.name&amp;sort_order=0"><?php echo _("Album"); ?></a>
</td>
- <td> <?php echo _("Artist"); ?> </td>
- <td> <?php echo _("Songs"); ?> </td>
+ <td>
+ <a href="<?php echo $web_path; ?>/<?php echo $_SESSION['view_script']; ?>?action=<?php echo $_REQUEST['action']; ?>&amp;keep_view=true&amp;sort_type=artist.name&amp;type=album_sort"><?php echo _('Artist'); ?></a>
+ </td>
+ <td> <?php echo _('Songs'); ?> </td>
<td>
<a href="<?php echo $web_path; ?>/<?php echo $_SESSION['view_script']; ?>?action=<?php echo $_REQUEST['action']; ?>&amp;keep_view=true&amp;sort_type=album.year&amp;sort_order=0"><?php echo _("Year"); ?></a>
</td>
@@ -67,12 +69,14 @@ foreach ($albums as $album) {
<td>
<a href="<?php echo $web_path; ?>/<?php echo $_SESSION['view_script']; ?>?action=<?php echo $_REQUEST['action']; ?>&amp;keep_view=true&amp;sort_type=album.name&amp;sort_order=0"><?php echo _("Album"); ?></a>
</td>
- <td> <?php echo _("Artist"); ?> </td>
- <td> <?php echo _("Songs"); ?> </td>
+ <td>
+ <a href="<?php echo $web_path; ?>/<?php echo $_SESSION['view_script']; ?>?action=<?php echo $_REQUEST['action']; ?>&amp;keep_view=true&amp;sort_type=artist.name&amp;type=album_sort"><?php echo _('Artist'); ?></a>
+ </td>
+ <td><?php echo _('Songs'); ?></td>
<td>
<a href="<?php echo $web_path; ?>/<?php echo $_SESSION['view_script']; ?>?action=<?php echo $_REQUEST['action']; ?>&amp;keep_view=true&amp;sort_type=album.year&amp;sort_order=0"><?php echo _("Year"); ?></a>
</td>
- <td> <?php echo _("Action"); ?> </td>
+ <td><?php echo _('Action'); ?></td>
</tr>
<tr class="even" align="center">
<td colspan="5">
diff --git a/templates/show_users.inc b/templates/show_users.inc
index 143c87bb..2ca1c53f 100644
--- a/templates/show_users.inc
+++ b/templates/show_users.inc
@@ -83,7 +83,7 @@ while ($results = mysql_fetch_object($db_result)) {
if (!$user->create_date) { $create_date = "Unknown"; }
?>
-<tr class="even">
+<tr class="<?php echo flip_class(); ?>">
<td>
<a href="<?php echo $web_path; ?>/admin/users.php?action=edit&amp;user=<?php echo $user->username; ?>">
<?php echo $user->fullname; ?> (<?php echo $user->username; ?>)