summaryrefslogtreecommitdiffstats
path: root/templates/show_preference_box.inc.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-06-11 05:16:20 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-06-11 05:16:20 +0000
commit689517e332c874ac09bb41398602622a1fc36af8 (patch)
treec97a077bd164e594211ed213405eb0cfbbf77b1c /templates/show_preference_box.inc.php
parent7327a025db941554501bbbe79c057fa308fb205c (diff)
downloadampache-689517e332c874ac09bb41398602622a1fc36af8.tar.gz
ampache-689517e332c874ac09bb41398602622a1fc36af8.tar.bz2
ampache-689517e332c874ac09bb41398602622a1fc36af8.zip
fixed preferences mostly, also fixed some genre issues and other stuff I am forgetting now
Diffstat (limited to 'templates/show_preference_box.inc.php')
-rw-r--r--templates/show_preference_box.inc.php21
1 files changed, 11 insertions, 10 deletions
diff --git a/templates/show_preference_box.inc.php b/templates/show_preference_box.inc.php
index eedaa2b7..7fa4ae72 100644
--- a/templates/show_preference_box.inc.php
+++ b/templates/show_preference_box.inc.php
@@ -22,32 +22,33 @@
/* I'm cheating a little here, check to see if we want to show the
* Apply to All button on this page
*/
-if ($GLOBALS['user']->has_access(100) AND Config::get('use_auth')) {
- $show_apply_to_all = true;
+if (($GLOBALS['user']->has_access(100) OR !Config::get('use_auth')) AND $_REQUEST['action'] == 'admin') {
+ $is_admin = true;
}
?>
-
-
<table class="tabledata" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr class="odd">
- <th colspan="3" class="header2" align="left"><?php echo $preferences['title']; ?></th>
+ <th colspan="5" class="header2" align="left"><?php echo $preferences['title']; ?></th>
</tr>
<tr class="table-header">
<th><?php echo _('Preference'); ?></th>
<th><?php echo _('Value'); ?></th>
- <?php if ($show_apply_to_all) { ?>
- <th><?php echo _('Apply to All'); ?></th>
+ <?php if ($is_admin) { ?>
+ <th><?php echo _('Apply to All'); ?></th>
+ <th><?php echo _('Access Level'); ?></th>
<?php } ?>
</tr>
-<?php
-foreach ($preferences['prefs'] as $pref) { ?>
+<?php foreach ($preferences['prefs'] as $pref) { ?>
<tr class="<?php echo flip_class(); ?>">
<td><?php echo _($pref['description']); ?></td>
<td>
<?php create_preference_input($pref['name'], $pref['value']); ?>
</td>
- <?php if ($show_apply_to_all) { ?>
+ <?php if ($is_admin) { ?>
<td align="center"><input type="checkbox" name="check_<?php echo $pref['name']; ?>" value="1" /></td>
+ <td align="center">
+
+ </td>
<?php } ?>
</tr>
<?php } // End foreach ($preferences['prefs'] as $pref) ?>