summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorpb1dft <pb1dft@ampache>2006-11-25 22:58:24 +0000
committerpb1dft <pb1dft@ampache>2006-11-25 22:58:24 +0000
commit0635397ab2bd5afc6789cef56b9a9d87bd52bcfd (patch)
tree931bc00aac44b959f5ed3d6efc0a673335357dea /templates
parent9d17e8cc950234277f156b91447696a2d40a0c21 (diff)
downloadampache-0635397ab2bd5afc6789cef56b9a9d87bd52bcfd.tar.gz
ampache-0635397ab2bd5afc6789cef56b9a9d87bd52bcfd.tar.bz2
ampache-0635397ab2bd5afc6789cef56b9a9d87bd52bcfd.zip
Fixed some stuff on album art added ability to sort albums on name/year in artist.php
Diffstat (limited to 'templates')
-rw-r--r--templates/show_album.inc2
-rw-r--r--templates/show_albums.inc2
-rw-r--r--templates/show_artist.inc4
-rw-r--r--templates/show_get_albumart.inc.php2
-rw-r--r--templates/show_songs.inc12
5 files changed, 11 insertions, 11 deletions
diff --git a/templates/show_album.inc b/templates/show_album.inc
index 69814d02..2768cc3b 100644
--- a/templates/show_album.inc
+++ b/templates/show_album.inc
@@ -63,7 +63,7 @@ $title = scrub_out($album->name) . ' -- ' . $album->f_artist;
&nbsp;&nbsp;<a href="<?php echo $web_path; ?>/albums.php?action=update_from_tags&amp;album_id=<?php echo $album->id; ; ?>"><?php echo _("Update from tags"); ?></a><br />
<?php } ?>
<?php if (batch_ok()) { ?>
- &nbsp;&nbsp;<a href="<?php echo $web_path; ?>/batch.php?action=alb&amp;id=<?php echo $album->id; ; ?>"><?php echo _('Download'); ?></a><br />
+ &nbsp;&nbsp;<a href="<?php echo $web_path; ?>/batch.php?action=alb&amp;id=<?php echo $album->id; ; ?>"><img src="<?php echo $web_path; ?>/images/icon_download.gif" border="0" />&nbsp;<?php echo _('Download'); ?></a><br />
<?php } ?>
</div>
<?php require (conf('prefix') . '/templates/show_box_bottom.inc.php'); ?>
diff --git a/templates/show_albums.inc b/templates/show_albums.inc
index 4fdfc2d2..e9fb597d 100644
--- a/templates/show_albums.inc
+++ b/templates/show_albums.inc
@@ -61,7 +61,7 @@ foreach ($albums as $album) {
<a href="<?php echo $web_path; ?>/song.php?action=album&amp;album_id=<?php echo $album->id; ?>"><?php echo _("All"); ?></a> |
<a href="<?php echo $web_path; ?>/song.php?action=album_random&amp;album_id=<?php echo $album->id; ?>"><?php echo _("Random"); ?></a>
<?php if (batch_ok()) { ?>
- | <a href="<?php echo $web_path; ?>/batch.php?action=alb&amp;id=<?php echo $album->id; ?>"><?php echo _("Download"); ?></a>
+ | <a href="<?php echo $web_path; ?>/batch.php?action=alb&amp;id=<?php echo $album->id; ?>"><img src="<?php echo $web_path; ?>/images/icon_download.gif" border="0" alt="<?php echo _('Download'); ?>" /></a>
<?php } ?>
</td>
</tr>
diff --git a/templates/show_artist.inc b/templates/show_artist.inc
index 748f5b75..1521f728 100644
--- a/templates/show_artist.inc
+++ b/templates/show_artist.inc
@@ -34,8 +34,8 @@ $web_path = conf('web_path');
&nbsp;&nbsp;<a href="#" onclick="check_songs(); return false;"><?php echo _('Select'); ?></a>
</th>
<th><?php echo _('Cover'); ?></th>
- <th><?php echo _('Album Name'); ?></th>
- <th><?php echo _('Album Year'); ?></th>
+ <th><a href="<?php echo $web_path; ?>/<?php echo $_SESSION['view_script']; ?>?action=<?php echo $_REQUEST['action']; ?>&amp;artist=<?php echo $artist->id ?>&amp;keep_view=true&amp;sort_type=album.name&amp;sort_order=0"><?php echo _('Album Name'); ?></th>
+ <th><a href="<?php echo $web_path; ?>/<?php echo $_SESSION['view_script']; ?>?action=<?php echo $_REQUEST['action']; ?>&amp;artist=<?php echo $artist->id ?>&amp;keep_view=true&amp;sort_type=album.year&amp;sort_order=0"><?php echo _('Album Year'); ?></th>
<th><?php echo _('Total Tracks'); ?></th>
<th><?php echo _('Action'); ?></th>
</tr>
diff --git a/templates/show_get_albumart.inc.php b/templates/show_get_albumart.inc.php
index 246e2254..3375ae18 100644
--- a/templates/show_get_albumart.inc.php
+++ b/templates/show_get_albumart.inc.php
@@ -21,7 +21,7 @@
*/
?>
<?php show_box_top(_('Customize Search')); ?>
-<form enctype="multipart/form-data" name="coverart" method="post" action="<?php echo conf('web_path'); ?>/albums.php?action=find_art&album_id=<?php echo $album->id; ?>&artist_name=<?php echo $_POST['artist_name'];?>&album_name=<?php echo $_POST['album_name']; ?>&cover=<?php echo scrub_out($_POST['cover']); ?>" style="Display:inline;">
+<form enctype="multipart/form-data" name="coverart" method="post" action="<?php echo conf('web_path'); ?>/albums.php?action=find_art&album_id=<?php echo $album->id; ?>&artist_name=<?php echo $_REQUEST['artist_name'];?>&album_name=<?php echo $_REQUEST['album_name']; ?>&cover=<?php echo scrub_out($_REQUEST['cover']); ?>" style="Display:inline;">
<table>
<tr>
</tr>
diff --git a/templates/show_songs.inc b/templates/show_songs.inc
index 396f9848..300749ef 100644
--- a/templates/show_songs.inc
+++ b/templates/show_songs.inc
@@ -130,20 +130,20 @@ foreach ($song_ids as $song_id) {
</a>
</td>
<td>
- <a href="<?php echo $web_path; ?>/flag.php?action=show_flag&amp;type=song&amp;id=<?php echo $song->id; ?>"><?php echo _('Flag'); ?></a>
+ <a href="<?php echo $web_path; ?>/flag.php?action=show_flag&amp;type=song&amp;id=<?php echo $song->id; ?>"><img src="<?php echo $web_path; ?>/images/icon_flag.gif" "border="0" alt="<?php echo _('Flag'); ?>" title="<?php echo _('Flag'); ?>"/></a>
<?php if ($GLOBALS['user']->has_access('100')) { ?>
- | <a href="<?php echo $web_path; ?>/admin/flag.php?action=show_edit_song&amp;song=<?php echo $song->id; ?>"><?php echo _('Edit'); ?></a> |
+ | <a href="<?php echo $web_path; ?>/admin/flag.php?action=show_edit_song&amp;song=<?php echo $song->id; ?>"><img src="<?php echo $web_path; ?>/images/icon_edit.gif" "border="0" alt="<?php echo _('Edit'); ?>" title="<?php echo _('Edit'); ?> "/></a> |
<?php if ($song->enabled) { ?>
- <a href="<?php echo $web_path; ?>/admin/flag.php?action=disable&amp;song_ids=<?php echo $song->id; ?>"><?php echo _('Disable'); ?></a>
+ <a href="<?php echo $web_path; ?>/admin/flag.php?action=disable&amp;song_ids=<?php echo $song->id; ?>"><img src="<?php echo $web_path; ?>/images/icon_disable.gif" "border="0" alt="<?php echo _('Disable'); ?>" title="<?php echo _('Disable'); ?>" /></a>
<?php } else { ?>
- <a href="<?php echo $web_path; ?>/admin/flag.php?action=enabled&amp;song_ids=<?php echo $song->id; ?>"><?php echo _('Enable'); ?></a>
+ <a href="<?php echo $web_path; ?>/admin/flag.php?action=enabled&amp;song_ids=<?php echo $song->id; ?>"><img src="<?php echo $web_path; ?>/images/icon_enable.gif" "border="0" alt="<?php echo _('Enable'); ?>" title="<?php echo _('Enable'); ?>" /></a>
<?php } //status ?>
<?php } //access ?>
<?php if ($GLOBALS['user']->prefs['download']) { ?>
- | <a href="<?php echo $web_path; ?>/download/index.php?action=download&amp;song_id=<?php echo $song->id; ?>&amp;sid=<?php echo scrub_out(session_id()); ?>&amp;fn=<?php echo rawurlencode($song->f_artist_full . " - " . $song->title . "." . $song->type); ?>"><?php echo _('Download'); ?></a>
+ | <a href="<?php echo $web_path; ?>/download/index.php?action=download&amp;song_id=<?php echo $song->id; ?>&amp;sid=<?php echo scrub_out(session_id()); ?>&amp;fn=<?php echo rawurlencode($song->f_artist_full . " - " . $song->title . "." . $song->type); ?>"><img src="<?php echo $web_path; ?>/images/icon_download.gif" "border="0" alt="<?php echo _('Download'); ?>" title="<?php echo _('Download'); ?>" /></a>
<?php } ?>
<?php if ($GLOBALS['user']->prefs['direct_link']) { ?>
- | <a href="<?php echo scrub_out($song->get_url()); ?>"><?php echo _('Direct Link'); ?></a>
+ | <a href="<?php echo scrub_out($song->get_url()); ?>"><img src="<?php echo $web_path; ?>/images/icon_link.gif" "border="0" alt="<?php echo _('Direct Link'); ?>" title="<?php echo _('Direct Link'); ?>" /></a>
<?php } ?>
</td>
<?php if(conf('ratings')) { ?>