summaryrefslogtreecommitdiffstats
path: root/templates/show_admin_catalog.inc.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-03-20 01:55:03 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-03-20 01:55:03 +0000
commiteda7fd335cc4bea64a637c5d3bcdd1d1f3fd0d94 (patch)
treee18c1c233bf14c2a9c57640c4e694d9365f84473 /templates/show_admin_catalog.inc.php
parentb99e8307ac784e046d21d346c845f896a5b4317d (diff)
downloadampache-eda7fd335cc4bea64a637c5d3bcdd1d1f3fd0d94.tar.gz
ampache-eda7fd335cc4bea64a637c5d3bcdd1d1f3fd0d94.tar.bz2
ampache-eda7fd335cc4bea64a637c5d3bcdd1d1f3fd0d94.zip
catalog clean up and admin index changes
Diffstat (limited to 'templates/show_admin_catalog.inc.php')
-rw-r--r--templates/show_admin_catalog.inc.php54
1 files changed, 54 insertions, 0 deletions
diff --git a/templates/show_admin_catalog.inc.php b/templates/show_admin_catalog.inc.php
new file mode 100644
index 00000000..43c11c56
--- /dev/null
+++ b/templates/show_admin_catalog.inc.php
@@ -0,0 +1,54 @@
+<?php
+/*
+
+ Copyright (c) 2001 - 2006 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
+ as published by the Free Software Foundation; either version 2
+ of the License, or (at your option) any later version.
+
+ 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.
+
+*/
+$web_path = conf('web_path');
+$catalogs = Catalog::get_catalogs();
+
+?>
+<div class="text-box">
+<span class="header2"><?php echo _('Catalogs'); ?></span>
+<!-- Current Catalogs -->
+<table border="0" cellpadding="0" cellspacing="0">
+<tr class="table-header">
+ <td><?php echo _('Name'); ?></td>
+ <td align="center"><?php echo _('Action'); ?></td>
+<?php foreach ($catalogs as $catalog) { ?>
+<tr class="<?php echo flip_class(); ?>">
+ <td>
+ <a href="<?php echo $web_path; ?>/admin/catalog.php?action=show_customize_catalog&amp;catalog_id=<?php echo $catalog->id; ?>">
+ <?php echo $catalog->name; ?></a>
+ &nbsp;&nbsp;(<?php echo $catalog->path; ?>)
+ </td>
+ <td>
+ <a href="<?php echo $web_path; ?>/admin/catalog.php?action=add_to_catalog&amp;catalogs[]=<?php echo $catalog->id; ?>">
+ <?php echo _('Add'); ?></a>&nbsp;|&nbsp;
+ <a href="<?php echo $web_path; ?>/admin/catalog.php?action=update_catalog&amp;catalogs[]=<?php echo $catalog->id; ?>">
+ <?php echo _('Update'); ?></a>&nbsp;|&nbsp;
+ <a href="<?php echo $web_path; ?>/admin/catalog.php?action=clean_catalog&amp;catalogs[]=<?php echo $catalog->id; ?>">
+ <?php echo _('Clean'); ?></a>&nbsp;|&nbsp;
+ <a href="<?php echo $web_path; ?>/admin/catalog.php?action=full_service&amp;catalogs[]=<?php echo $catalog->id; ?>">
+ <?php echo _('All'); ?></a>
+ </td>
+</tr>
+<?php } // end foreach ?>
+</table>
+<span class="header2"><?php echo _('Other Tools'); ?></span><br />
+</div>