2
/* vim:set tabstop=8 softtabstop=8 shiftwidth=8 noexpandtab: */
2
/* vim:set softtabstop=4 shiftwidth=4 expandtab: */
7
5
* LICENSE: GNU General Public License, version 2 (GPLv2)
8
* Copyright (c) 2001 - 2011 Ampache.org All Rights Reserved
6
* Copyright 2001 - 2013 Ampache.org
10
8
* This program is free software; you can redistribute it and/or
11
9
* modify it under the terms of the GNU General Public License v2
20
18
* along with this program; if not, write to the Free Software
21
19
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24
* @copyright 2001 - 2011 Ampache.org
25
* @license http://opensource.org/licenses/gpl-2.0 GPLv2
26
* @link http://www.ampache.org/
29
23
// Gotta do some math here!
31
25
$rows = floor($total_images/4);
34
<?php show_box_top(T_('Select New Album Art'), 'box box_album_art'); ?>
28
<?php UI::show_box_top(T_('Select New Album Art'), 'box box_album_art'); ?>
35
29
<table class="table-data">
38
32
while ($i <= $rows) {
42
$image_url = Config::get('web_path') . '/image.php?type=session&image_index=' . $key;
43
$dimensions = Core::image_dimensions(Art::get_from_source($_SESSION['form']['images'][$key], 'album'));
44
if (!isset($images[$key])) { echo "<td> </td>\n"; }
36
$image_url = Config::get('web_path') . '/image.php?type=session&image_index=' . $key;
37
$dimensions = Core::image_dimensions(Art::get_from_source($_SESSION['form']['images'][$key], 'album'));
38
if (!isset($images[$key])) { echo "<td> </td>\n"; }
48
<a href="<?php echo $image_url; ?>" target="_blank"><img src="<?php echo $image_url; ?>" alt="<?php echo T_('Album Art'); ?>" border="0" height="175" width="175" /></a>
51
<?php if (is_array($dimensions)) { ?>
52
[<?php echo intval($dimensions['width']); ?>x<?php echo intval($dimensions['height']); ?>]
54
<span class="error"><?php echo T_('Invalid'); ?></span>
56
[<a href="<?php echo Config::get('web_path'); ?>/albums.php?action=select_art&image=<?php echo $key; ?>&album_id=<?php echo intval($_REQUEST['album_id']); ?>"><?php echo T_('Select'); ?></a>]
42
<a href="<?php echo $image_url; ?>" target="_blank"><img src="<?php echo $image_url; ?>" alt="<?php echo T_('Album Art'); ?>" border="0" height="175" width="175" /></a>
45
<?php if (is_array($dimensions)) { ?>
46
[<?php echo intval($dimensions['width']); ?>x<?php echo intval($dimensions['height']); ?>]
48
<span class="error"><?php echo T_('Invalid'); ?></span>
50
[<a href="<?php echo Config::get('web_path'); ?>/albums.php?action=select_art&image=<?php echo $key; ?>&album_id=<?php echo intval($_REQUEST['album_id']); ?>"><?php echo T_('Select'); ?></a>]
63
if($i < $rows) { echo "</tr>\n<tr>"; }
57
if($i < $rows) { echo "</tr>\n<tr>"; }
64
58
else { echo "</tr>"; }
69
<?php show_box_bottom(); ?>
63
<?php UI::show_box_bottom(); ?>