diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-03-24 08:24:29 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-03-24 08:24:29 +0000 |
commit | feffae660e250ba631e74dea0b62088749d10b6b (patch) | |
tree | 4929350f153ec363033c9b216ad86d2fb227e147 /templates | |
parent | 80b0748b4a43087aed6802b6b631f064f975f097 (diff) | |
download | ampache-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')
-rw-r--r-- | templates/show_albums.inc | 16 | ||||
-rw-r--r-- | templates/show_users.inc | 2 |
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']; ?>&keep_view=true&sort_type=album.name&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']; ?>&keep_view=true&sort_type=artist.name&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']; ?>&keep_view=true&sort_type=album.year&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']; ?>&keep_view=true&sort_type=album.name&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']; ?>&keep_view=true&sort_type=artist.name&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']; ?>&keep_view=true&sort_type=album.year&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&user=<?php echo $user->username; ?>"> <?php echo $user->fullname; ?> (<?php echo $user->username; ?>) |