$show_template_form = true; if (isset($_POST['done'])) { $update_header = update_setting('owned_template_header', $_POST['header']); $update_template = update_setting('owned_template', $_POST['template']); $update_footer = update_setting('owned_template_footer', $_POST['footer']); $show_default = true; $show_template_form = false; echo '<p class="success">Templates successfully updated.</p>'; } if ($show_template_form) { $header = get_setting('owned_template_header'); $template = get_setting('owned_template'); $footer = get_setting('owned_template_footer'); $header_help = get_setting_desc('owned_template_header'); $template_help = get_setting_desc('owned_template'); $footer_help = get_setting_desc('owned_template_footer'); ?> <p>You can edit the way your owned fanlistings will be shown via the templates below. If you need help, click on the 'help' button.</p> <form action="owned.php" method="post"> <input type="hidden" name="action" value="template" /> <input type="hidden" name="done" value="yes" /> <table> <tr><td> Header<br /> <a href="#" onclick="alert( '<?php echo addslashes($header_help); ?>
$show_template_form = true; if (isset($_POST['done'])) { $update_header = update_setting('affiliates_template_header', $_POST['header']); $update_template = update_setting('affiliates_template', $_POST['template']); $update_footer = update_setting('affiliates_template_footer', $_POST['footer']); $show_default = true; $show_template_form = false; echo '<p class="success">Templates successfully updated.</p>'; } if ($show_template_form) { $header = get_setting('affiliates_template_header'); $template = get_setting('affiliates_template'); $footer = get_setting('affiliates_template_footer'); $header_help = get_setting_desc('affiliates_template_header'); $template_help = get_setting_desc('affiliates_template'); $footer_help = get_setting_desc('affiliates_template_footer'); ?> <p>You can edit the way your collective affiliates will be shown via the templates below. If you need help, click on the 'help' button.</p> <form action="affiliates.php" method="post"> <input type="hidden" name="action" value="template" /> <input type="hidden" name="done" value="yes" /> <table> <tr><td> Header<br /> <a href="#" onclick="alert( '<?php echo addslashes($header_help); ?>