summaryrefslogtreecommitdiffstats
path: root/templates/show_preference_box.inc.php
diff options
context:
space:
mode:
authorxgizzmo <xgizzmo@ampache>2006-01-11 02:59:17 +0000
committerxgizzmo <xgizzmo@ampache>2006-01-11 02:59:17 +0000
commit603f145952f39164b961ac94a46b8a459e7adac0 (patch)
tree90fb10a0f1a1ea8396af8a41e629b1e63bac30d2 /templates/show_preference_box.inc.php
parent67d76f09c28d0c6abae6d966f4cc00a5428bdc74 (diff)
downloadampache-603f145952f39164b961ac94a46b8a459e7adac0.tar.gz
ampache-603f145952f39164b961ac94a46b8a459e7adac0.tar.bz2
ampache-603f145952f39164b961ac94a46b8a459e7adac0.zip
More code clean up this should about cover /templates
Diffstat (limited to 'templates/show_preference_box.inc.php')
-rw-r--r--templates/show_preference_box.inc.php51
1 files changed, 25 insertions, 26 deletions
diff --git a/templates/show_preference_box.inc.php b/templates/show_preference_box.inc.php
index 3435f2ac..45e86d6c 100644
--- a/templates/show_preference_box.inc.php
+++ b/templates/show_preference_box.inc.php
@@ -48,31 +48,30 @@ if ($GLOBALS['user']->has_access(100) AND conf('use_auth')) {
<?php } ?>
</tr>
<?php
- foreach ($preferences['prefs'] as $pref) {
-?>
-<tr class="<?php echo flip_class(); ?>">
- <td><?php echo _($pref['description']); ?></td>
- <td><table>
- <tr>
- <td><?php create_preference_input($pref['name'],$pref['value']); ?></td>
- <?php if(preg_match('/Color/',$pref['description'])) { ?>
- <td>
- <table width="40" border="3" style="border-collapse: collapse;" bgcolor="<?php echo $pref['value'];?>">
- <tr style="height:20px;">
+foreach ($preferences['prefs'] as $pref) { ?>
+ <tr class="<?php echo flip_class(); ?>">
+ <td><?php echo _($pref['description']); ?></td>
+ <td>
+ <table>
+ <tr>
+ <td><?php create_preference_input($pref['name'], $pref['value']); ?></td>
+ <?php if (preg_match('/Color/', $pref['description'])) { ?>
+ <td>
+ <table width="40" border="3" style="border-collapse: collapse;" bgcolor="<?php echo $pref['value'];?>">
+ <tr style="height:20px;">
+ <td></td>
+ </tr>
+ </table>
+ </td>
+ <?php } else { ?>
<td></td>
- </tr>
- </table>
- </td>
- <?php } else { ?>
- <td></td>
- <?php } ?>
- </tr>
- </table>
- </td>
-
- <?php if ($show_apply_to_all) { ?>
- <td align="center"><input type="checkbox" name="check_<?php echo $pref['name']; ?>" value="1" /></td>
- <?php } ?>
-</tr>
-<?php } ?>
+ <?php } ?>
+ </tr>
+ </table>
+ </td>
+ <?php if ($show_apply_to_all) { ?>
+ <td align="center"><input type="checkbox" name="check_<?php echo $pref['name']; ?>" value="1" /></td>
+ <?php } ?>
+ </tr>
+<?php } // End foreach ($preferences['prefs'] as $pref) ?>
</table>