summaryrefslogtreecommitdiffstats
path: root/templates/show_flagged.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_flagged.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_flagged.inc.php')
-rw-r--r--templates/show_flagged.inc.php51
1 files changed, 51 insertions, 0 deletions
diff --git a/templates/show_flagged.inc.php b/templates/show_flagged.inc.php
new file mode 100644
index 00000000..068f38af
--- /dev/null
+++ b/templates/show_flagged.inc.php
@@ -0,0 +1,51 @@
+<?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');
+
+?>
+<table class="border" cellspacing="0" cellpadding="0">
+<tr class="table-header">
+ <th><?php echo _('Object'); ?></th>
+ <th><?php echo _('Flag'); ?></th>
+ <th><?php echo _('Status'); ?></th>
+ <th><?php echo _('Action'); ?></th>
+</tr>
+<?php foreach ($flagged as $flag_id) { $flag = new Flag($flag_id); ?>
+<tr class="<?php echo flip_class(); ?>">
+ <td><?php $flag->print_name(); ?></td>
+ <td><?php $flag->print_flag(); ?></td>
+ <td><?php $flag->print_status(); ?></td>
+ <td>
+ <?php if ($flag->approved) { ?>
+ <a href="<?php echo $web_path; ?>/admin/flag.php?action=reject_flag&amp;flag_id=<?php echo $flag->id; ?>">
+ <?php echo _('Reject'); ?>
+ </a>
+ <?php } else { ?>
+ <a href="<?php echo $web_path; ?>/admin/flag.php?action=approve_flag&amp;flag_id=<?php echo $flag->id; ?>">
+ <?php echo _('Approve'); ?>
+ </a>
+ <?php } ?>
+ </td>
+</tr>
+<?php } ?>
+</table>