summaryrefslogtreecommitdiffstats
path: root/templates/show_admin_tools.inc.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-03-21 08:33:33 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-03-21 08:33:33 +0000
commitabcb173edc821f5d652e388bdeb303e8c6c8edf7 (patch)
tree2422545a6b8fc15d5f30f08be12dfc2e6ac423c6 /templates/show_admin_tools.inc.php
parent82e94fd071b42211c4d8a31ca080afbfa9669217 (diff)
downloadampache-abcb173edc821f5d652e388bdeb303e8c6c8edf7.tar.gz
ampache-abcb173edc821f5d652e388bdeb303e8c6c8edf7.tar.bz2
ampache-abcb173edc821f5d652e388bdeb303e8c6c8edf7.zip
I am not happy with it.. but its progress and I need sleep
Diffstat (limited to 'templates/show_admin_tools.inc.php')
-rw-r--r--templates/show_admin_tools.inc.php93
1 files changed, 93 insertions, 0 deletions
diff --git a/templates/show_admin_tools.inc.php b/templates/show_admin_tools.inc.php
new file mode 100644
index 00000000..ee0e274f
--- /dev/null
+++ b/templates/show_admin_tools.inc.php
@@ -0,0 +1,93 @@
+<?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();
+
+?>
+<span class="header1"><?php echo _('Catalogs'); ?></span>
+<div class="text-box">
+<!-- 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>
+</tr>
+<?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 _('Verify'); ?></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>&nbsp;|&nbsp;
+ <a href="<?php echo $web_path; ?>/admin/catalog.php?action=show_delete_catalog&amp;catalog_id=<?php echo $catalog->id; ?>">
+ <?php echo _('Delete'); ?></a>
+ </td>
+</tr>
+<?php } // end foreach ?>
+<?php if (!count($catalogs)) { ?>
+<tr>
+ <td colspan="2">
+ <?php echo _('No Catalogs Found'); ?>
+ </td>
+</tr>
+<?php } // end if no catalogs ?>
+</table>
+<form id="catalog_tools" method="post" enctype="multipart/form-data" style="Display:inline;">
+<input class="button" type="button" value="<?php echo _('Clean All'); ?>" onclick="return SubmitToPage('catalog_tools','<?php echo $web_path; ?>/admin/catalog.php?action=clean_all_catalogs');" />
+<input class="button" type="button" value="<?php echo _('Verify All'); ?>" onclick="return SubmitToPage('catalog_tools','<?php echo $web_path; ?>/admin/catalog.php?action=update_all_catalogs');" />
+<input class="button" type="button" value="<?php echo _('Add to All'); ?>" onclick="return SubmitToPage('catalog_tools',<?php echo $web_path; ?>/admin/catalog.php?action=add_to_all_catalogs');" />
+<input class="button" type="button" value="<?php echo _('Update All'); ?>" onclick="return SubmitToPage('catalog_tools',<?php echo $web_path; ?>/admin/catalog.php?action=full_service');" />
+</div><br />
+<span class="header1"><?php echo _('Other Tools'); ?></span><br />
+<div class="text-box">
+<li class="text-action">
+ <a href="<?php echo $web_path; ?>/admin/catalog.php?action=show_add_catalog"><?php echo _('Add a Catalog'); ?></a>
+</li>
+<li class="text-action">
+ <a href="<?php echo $web_path; ?>/admin/duplicates.php"><?php echo _('Show Duplicate Songs'); ?></a><br />
+</li>
+<li class="text-action">
+ <a href="<?php echo $web_path; ?>/admin/catalog.php?action=show_disabled"><?php echo _('Show Disabled Songs'); ?></a>
+</li>
+<li class="text-action">
+ <a href="<?php echo $web_path; ?>/admin/catalog.php?action=show_clear_stats"><?php echo _('Clear Catalog Stats'); ?></a>
+</li>
+<li class="text-action">
+ <a href="<?php echo $web_path; ?>/admin/catalog.php?action=clear_now_playing"><?php echo _('Clear Now Playing'); ?></a>
+</li>
+<li class="text-action">
+ <a href="<?php echo $web_path; ?>/admin/catalog.php?action=gather_album_art"><?php echo _('Gather Album Art'); ?></a>
+</li>
+</div><br />
+<span class="header1"><?php echo _('Manage Users'); ?></span>
+<div class="text-box">
+&nbsp;
+</div>