summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/show_albums.inc2
-rw-r--r--templates/show_disabled_songs.inc47
-rw-r--r--templates/show_user.inc.php2
3 files changed, 20 insertions, 31 deletions
diff --git a/templates/show_albums.inc b/templates/show_albums.inc
index c768def5..4fdfc2d2 100644
--- a/templates/show_albums.inc
+++ b/templates/show_albums.inc
@@ -39,7 +39,7 @@ $total_items = $view->total_items;
<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>
- <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>
+ <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&amp;sort_order=0"><?php echo _('Artist'); ?></a>
</td>
<td> <?php echo _('Songs'); ?> </td>
<td>
diff --git a/templates/show_disabled_songs.inc b/templates/show_disabled_songs.inc
index 20d36dbe..61a47b3d 100644
--- a/templates/show_disabled_songs.inc
+++ b/templates/show_disabled_songs.inc
@@ -5,9 +5,8 @@
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.
+ modify it under the terms of the GNU General Public License v2
+ as published by the Free Software Foundation
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -21,20 +20,17 @@
?>
<br />
<form name="songs" method="post" action="<?php echo conf('web_path'); ?>/admin/catalog.php" enctype="multipart/form-data" style="Display:inline">
-<table class="tabledata" cellspacing="0" cellpadding="3" border="0" width="100%">
+<table class="tabledata" cellspacing="0">
<tr class="table-header">
- <td class="table-header"><a href="#" onclick="check_songs(); return false;">Select</a></td>
- <td>Title</td>
- <td>Album</td>
- <td>Artist</td>
- <td>Filename</td>
- <td>Addition Time</td>
+ <td><a href="#" onclick="check_songs(); return false;"><?php echo _('Select'); ?></a></td>
+ <td><?php echo _('Title'); ?></td>
+ <td><?php echo _('Album'); ?></td>
+ <td><?php echo _('Artist'); ?></td>
+ <td><?php echo _('Filename'); ?></td>
+ <td><?php echo _('Addition Time'); ?></td>
</tr>
-<?php
-foreach ($songs as $song) {
- $class = (++$i%2)?'odd':'even';
-?>
- <tr class="<?php echo $class; ?>">
+<?php foreach ($songs as $song) { ?>
+ <tr class="<?php echo flip_class(); ?>">
<td><input type="checkbox" name="song[]" value="<?php echo $song->id; ?>" /></td>
<td><?php echo $song->title; ?></td>
<td><?php echo $song->get_album_name($song->album); ?></td>
@@ -43,20 +39,13 @@ foreach ($songs as $song) {
<td><?php echo date("h:i:s, m/d/y",$song->addition_time); ?></td>
</tr>
-<?php } // end foreach ($songs as $song)
-$class = (++$i%2)?'odd':'even';
-?>
-<tr class="<?php echo $class; ?>">
- <td>&nbsp;</td>
- <td colspan="10">
- <input type="submit" value="Remove" />&nbsp;&nbsp;
- <input type="reset" value="Reset Form" />
- <input type="hidden" name="action" value="remove_disabled" />
- </td>
-</tr>
-<tr>
- <td colspan="10" class="table-header">&nbsp;</td>
-</tr>
+<?php } if (!count($songs)) { ?>
+ <tr class="<?php echo flip_class(); ?>">
+ <td colspan="7"><span class="error"><?php echo _('No Records Found'); ?></span></td>
+ </tr>
+<?php } ?>
</table>
+ <input class="button" type="submit" value="<?php echo _('Remove'); ?>" />&nbsp;&nbsp;
+ <input type="hidden" name="action" value="remove_disabled" />
</form>
diff --git a/templates/show_user.inc.php b/templates/show_user.inc.php
index eeb32f9b..1c934493 100644
--- a/templates/show_user.inc.php
+++ b/templates/show_user.inc.php
@@ -63,7 +63,7 @@
<input type="hidden" name="user_id" value="<?php echo scrub_out($this_user->id); ?>" />
<input type="hidden" name="action" value="update_user" />
<input type="hidden" name="tab" value="<?php echo scrub_out($current_tab); ?>" />
- <input type="submit" value="<?php echo _('Update Account'); ?>" />
+ <input class="button" type="submit" value="<?php echo _('Update Account'); ?>" />
</td>
</tr>
</table>