summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/show_edit_album_row.inc.php5
-rw-r--r--templates/show_manage_catalogs.inc.php16
-rw-r--r--templates/show_random.inc.php3
-rw-r--r--templates/show_stats.inc.php27
-rw-r--r--templates/show_tagcloud.inc.php7
-rw-r--r--templates/sidebar_home.inc.php11
6 files changed, 66 insertions, 3 deletions
diff --git a/templates/show_edit_album_row.inc.php b/templates/show_edit_album_row.inc.php
index e1a1a694..0bf77a85 100644
--- a/templates/show_edit_album_row.inc.php
+++ b/templates/show_edit_album_row.inc.php
@@ -1,7 +1,7 @@
<?php
/*
- Copyright (c) 2001 - 2007 Ampache.org
+ Copyright (c) Ampache.org
All rights reserved.
This program is free software; you can redistribute it and/or
@@ -40,6 +40,9 @@
<input type="text" name="year" value="<?php echo scrub_out($album->year); ?>" />
</td>
<td>
+ <input type="text" name="disk" value="<?php echo scrub_out($album->disk); ?>" />
+</td>
+<td>
<input type="hidden" name="id" value="<?php echo $album->id; ?>" />
<input type="hidden" name="type" value="album" />
<?php echo Ajax::button('?action=edit_object&id=' . $album->id . '&type=album','download',_('Save Changes'),'save_album_' . $album->id,'edit_album_' . $album->id); ?>
diff --git a/templates/show_manage_catalogs.inc.php b/templates/show_manage_catalogs.inc.php
index 1fcf7194..0b42bd69 100644
--- a/templates/show_manage_catalogs.inc.php
+++ b/templates/show_manage_catalogs.inc.php
@@ -21,6 +21,9 @@
?>
<?php show_box_top(_('Show Catalogs')) ?>
<div id="information_actions">
+<table>
+<tr>
+<td>
<ul>
<li><a href="<?php echo Config::get('web_path'); ?>/admin/catalog.php?action=gather_album_art"><?php echo _('Gather All Art'); ?></a></li>
<li><a href="<?php echo Config::get('web_path'); ?>/admin/catalog.php?action=add_to_all_catalogs"><?php echo _('Add to All'); ?></a> </li>
@@ -29,6 +32,18 @@
<li><a href="<?php echo Config::get('web_path'); ?>/admin/catalog.php?action=full_service"><?php echo _('Update All'); ?></a></li>
<li><a href="<?php echo Config::get('web_path'); ?>/admin/catalog.php?action=clear_stats"><?php echo _('Clear Stats'); ?></a></li>
</ul>
+</td>
+<td>
+ <form method="post" action="<?php echo Config::get('web_path'); ?>/admin/catalog.php?action=update_from">
+ <?php echo _('Add From'); ?> <span class="information">/data/myNewMusic</span><br />
+ <input type="text" name="add_path" value="/" /><br />
+ <?php echo _('Update From'); ?> <span class="information">/data/myUpdatedMusic</span><br />
+ <input type="text" name="update_path" value="/" /><br />
+<input type="submit" value="<?php echo _('Update'); ?>" />
+</form>
+</td>
+</tr>
+</table>
</div>
<?php show_box_bottom(); ?>
<?php
@@ -38,3 +53,4 @@
Browse::save_objects($catalog_ids);
Browse::show_objects($catalog_ids);
?>
+
diff --git a/templates/show_random.inc.php b/templates/show_random.inc.php
index 57f92ed4..72094209 100644
--- a/templates/show_random.inc.php
+++ b/templates/show_random.inc.php
@@ -38,9 +38,8 @@
<option value="-1"><?php echo _('All'); ?></option>
</select>
</td>
- <td rowspan="5" valign="top"><?php echo _('From genre'); ?></td>
+ <td rowspan="5" valign="top"><?php echo _('Tags'); ?></td>
<td rowspan="5">
- <?php show_genre_select('genre[]','','6'); ?>
</td>
</tr>
<tr>
diff --git a/templates/show_stats.inc.php b/templates/show_stats.inc.php
new file mode 100644
index 00000000..f4f6da6f
--- /dev/null
+++ b/templates/show_stats.inc.php
@@ -0,0 +1,27 @@
+<?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.
+
+*/
+?>
+<?php show_box_top(_('Statistics')); ?>
+<?php require_once Config::get('prefix') . '/templates/show_local_catalog_info.inc.php'; ?>
+<?php require_once Config::get('prefix') . '/templates/show_stats_newest.inc.php'; ?>
+
+
+<?php show_box_bottom(); ?>
diff --git a/templates/show_tagcloud.inc.php b/templates/show_tagcloud.inc.php
index bde48898..aee8b960 100644
--- a/templates/show_tagcloud.inc.php
+++ b/templates/show_tagcloud.inc.php
@@ -21,3 +21,10 @@
*/
$web_path = Config::get('web_path');
?>
+<?php foreach ($object_ids as $data) {
+ $tag = new Tag($data['id']);
+ $tag->format();
+?>
+<span class="<?php echo $tag->f_class; ?>"><?php echo $tag->name; ?></span>
+
+<?php } ?>
diff --git a/templates/sidebar_home.inc.php b/templates/sidebar_home.inc.php
index ec37677b..8a23c23c 100644
--- a/templates/sidebar_home.inc.php
+++ b/templates/sidebar_home.inc.php
@@ -68,6 +68,17 @@ $ajax_info = Config::get('ajax_url'); $web_path = Config::get('web_path');
<label id="show_allplLabel" for="showallplCB"><?php echo _('All Playlists'); ?></label><br />
<?php echo Ajax::observe('show_allplCB','click',Ajax::action('?page=browse&action=browse&type=' . Browse::get_type() . '&key=playlist_type&value=1','')); ?>
<?php } // if playlist_type ?>
+ <?php if (in_array('object_type',$allowed_filters)) { ?>
+ <input id="typeSongRadio" type="radio" name="object_type" value="1" />
+ <label id="typeSongLabel" for="typeSongRadio"><?php echo _('Song Title'); ?></label><br />
+ <?php echo Ajax::observe('typeSongRadio','click',Ajax::action('?page=tag&action=browse&type=song','')); ?>
+ <input id="typeAlbumRadio" type="radio" name="object_type" value="1" />
+ <label id="typeAlbumLabel" for="typeAlbumRadio"><?php echo _('Albums'); ?></label><br />
+ <?php echo Ajax::observe('typeAlbumRadio','click',Ajax::action('?page=tag&action=browse&type=album','')); ?>
+ <input id="typeArtistRadio" type="radio" name="object_type" value="1" />
+ <label id="typeArtistLabel" for="typeArtistRadio"><?php echo _('Artist'); ?></label><br />
+ <?php echo Ajax::observe('typeArtistRadio','click',Ajax::action('?page=tag&action=browse&type=artist','')); ?>
+ <?php } ?>
</div>
</li>
<?php } ?>