summaryrefslogtreecommitdiffstats
path: root/templates/show_albums.inc
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-03-24 08:24:29 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-03-24 08:24:29 +0000
commitfeffae660e250ba631e74dea0b62088749d10b6b (patch)
tree4929350f153ec363033c9b216ad86d2fb227e147 /templates/show_albums.inc
parent80b0748b4a43087aed6802b6b631f064f975f097 (diff)
downloadampache-feffae660e250ba631e74dea0b62088749d10b6b.tar.gz
ampache-feffae660e250ba631e74dea0b62088749d10b6b.tar.bz2
ampache-feffae660e250ba631e74dea0b62088749d10b6b.zip
added a hack for some additional sorting and fixed it so that the user table has alternating colors
Diffstat (limited to 'templates/show_albums.inc')
-rw-r--r--templates/show_albums.inc16
1 files changed, 10 insertions, 6 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">