summaryrefslogtreecommitdiffstats
path: root/templates/show_preferences.inc
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_preferences.inc
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_preferences.inc')
-rw-r--r--templates/show_preferences.inc80
1 files changed, 37 insertions, 43 deletions
diff --git a/templates/show_preferences.inc b/templates/show_preferences.inc
index d3277db2..9cbf9a15 100644
--- a/templates/show_preferences.inc
+++ b/templates/show_preferences.inc
@@ -29,53 +29,47 @@
/* 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 $user_id == '-1' AND conf('use_auth')) {
+if (($GLOBALS['user']->has_access(100)) AND ($user_id == '-1' AND conf('use_auth'))) {
$show_apply_to_all = true;
}
-
?>
-
-
<table class="text-box">
-<tr><td>
-<span class="header1">
- <?php echo _("Editing"); ?> <?php echo $fullname; ?> <?php echo _("preferences"); ?>
- <?php if ($GLOBALS['user']->has_access(100)) { ?>
- [<a href="<?php echo conf('web_path'); ?>/admin/preferences.php?action=fix_preferences&amp;user_id=<?php echo $user_id; ?>"><?php echo _("Rebuild Preferences"); ?></a>]
- <?php } ?>
-</span>
-
-
-<form method="post" name="preferences" action="<?php echo conf('web_path'); ?><?php echo $target; ?>" enctype="multipart/form-data">
-<table cellspacing="10">
-<tr>
- <td valign="top"><?php show_preference_box($preferences['theme']); ?></td>
- <?php if (isset($preferences['system'])) { ?>
- <td valign="top"><?php show_preference_box($preferences['system']); ?></td>
- <?php } else { ?>
- <td valign="top">&nbsp;</td>
- <?php } ?>
-</tr>
<tr>
- <td valign="top"><?php show_preference_box($preferences['streaming']); ?></td>
- <td>&nbsp;</td>
+ <td>
+ <span class="header1">
+ <?php echo _("Editing"); ?> <?php echo $fullname; ?> <?php echo _("preferences"); ?>
+ <?php if ($GLOBALS['user']->has_access(100)) { ?>
+ [<a href="<?php echo conf('web_path'); ?>/admin/preferences.php?action=fix_preferences&amp;user_id=<?php echo $user_id; ?>"><?php echo _("Rebuild Preferences"); ?></a>]
+ <?php } ?>
+ </span>
+ <form method="post" name="preferences" action="<?php echo conf('web_path'); ?><?php echo $target; ?>" enctype="multipart/form-data">
+ <table cellspacing="10">
+ <tr>
+ <td valign="top"><?php show_preference_box($preferences['theme']); ?></td>
+ <?php if (isset($preferences['system'])) { ?>
+ <td valign="top"><?php show_preference_box($preferences['system']); ?></td>
+ <?php } else { ?>
+ <td valign="top">&nbsp;</td>
+ <?php } ?>
+ </tr>
+ <tr>
+ <td valign="top"><?php show_preference_box($preferences['streaming']); ?></td>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <td valign="top"><?php show_preference_box($preferences['interface']); ?></td>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <td valign="top"><?php show_preference_box($preferences['options']); ?></td>
+ <td>&nbsp;</td>
+ </tr>
+ </table>
+ <input class="button" type="submit" value="<?php echo _("Update Preferences"); ?>" />
+ <input type="hidden" name="action" value="update_preferences" />
+ <input type="hidden" name="user_id" value="<?php echo $user_id; ?>" />&nbsp;&nbsp;
+ <input class="button" type="submit" name="action" value="<?php echo _("Cancel"); ?>" />
+ </form>
+ </td>
</tr>
-<tr>
- <td valign="top"><?php show_preference_box($preferences['interface']); ?></td>
- <td>&nbsp;</td>
-</tr>
-<tr>
- <td valign="top"><?php show_preference_box($preferences['options']); ?></td>
- <td>&nbsp;</td>
-</tr>
-</table>
-
- <input class="button" type="submit" value="<?php echo _("Update Preferences"); ?>" />
- <input type="hidden" name="action" value="update_preferences" />
- <input type="hidden" name="user_id" value="<?php echo $user_id; ?>" />
- &nbsp;&nbsp;
- <input class="button" type="submit" name="action" value="<?php echo _("Cancel"); ?>" />
-
- </form>
-</td></tr>
</table>