1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
<?php
/*
Copyright (c) Ampache.org
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 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
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
$rowparity = flip_class();
$icon = $song->enabled ? 'disable' : 'enable';
$button_flip_state_id = 'button_flip_state_' . $song->id;
?>
<?php show_box_top($song->title . ' ' . _('Details')); ?>
<dl class="song_details">
<dt class="<?php echo $rowparity; ?>"><?php echo _('Action'); ?></dt>
<dd class"<?php echo $rowparity; ?>">
<?php echo Ajax::button('?action=basket&type=song&id=' . $song->id,'add',_('Add'),'add_song_' . $song->id); ?>
<?php if (Access::check_function('download')) { ?>
<a href="<?php echo Song::play_url($song->id); ?>"><?php echo get_user_icon('link',_('Link')); ?></a>
<a href="<?php echo Config::get('web_path'); ?>/stream.php?action=download&song_id=<?php echo $song->id; ?>"><?php echo get_user_icon('download',_('Download')); ?></a>
<?php } ?>
<?php if (Access::check('interface','75')) { ?>
<span id="<?php echo($button_flip_state_id); ?>">
<?php echo Ajax::button('?page=song&action=flip_state&song_id=' . $song->id,$icon,_(ucfirst($icon)),'flip_song_' . $song->id); ?>
</span>
<?php } ?>
</dd>
<?php
$songprops[gettext_noop('Title')] = scrub_out($song->title);
$songprops[gettext_noop('Artist')] = $song->f_artist_link;
$songprops[gettext_noop('Album')] = $song->f_album_link . " (" . scrub_out($song->year). ")";
$songprops[gettext_noop('Genre')] = $song->f_genre_link;
$songprops[gettext_noop('Length')] = scrub_out($song->f_time);
$songprops[gettext_noop('Comment')] = scrub_out($song->comment);
$songprops[gettext_noop('Label')] = scrub_out($song->label);
$songprops[gettext_noop('Song Language')]= scrub_out($song->language);
$songprops[gettext_noop('Catalog Number')] = scrub_out($song->catalog_number);
$songprops[gettext_noop('Bitrate')] = scrub_out($song->f_bitrate);
if (Access::check('interface','75')) {
$songprops[gettext_noop('Filename')] = scrub_out($song->file) . " " . $song->f_size . "MB";
}
if ($song->update_time) {
$songprops[gettext_noop('Last Updated')] = date("d/m/Y H:i",$song->update_time);
}
$songprops[gettext_noop('Added')] = date("d/m/Y H:i",$song->addition_time);
foreach ($songprops as $key => $value)
{
if(trim($value))
{
$rowparity = flip_class();
echo "<dt class=\"".$rowparity."\">" . _($key) . "</dt><dd class=\"".$rowparity."\">" . $value . "</dd>";
}
}
?>
<?php show_box_bottom(); ?>
|