echo '<strong>{' . htmlspecialchars($key) . '}</strong>'; if ($val && !is_array($val)) { echo ' ' . htmlspecialchars($val); } echo '</li>'; } } else { } ?> </ul> <br/><br/> </td> </tr> </tbody> </table> <?php $fieldset_data = array('heading' => array('type' => 'h2', 'main' => true, 'title' => 'Edit Template'), 'elements_before' => ob_get_clean()); echo module_form::generate_fieldset($fieldset_data); unset($fieldset_data); $form_actions = array('class' => 'action_bar action_bar_center', 'elements' => array(array('type' => 'save_button', 'name' => 'butt_save', 'value' => _l('Save')), array('ignore' => !(module_template::can_i('delete', 'Templates') && (int) $template_id > 0), 'type' => 'delete_button', 'name' => 'butt_del', 'value' => _l('Delete')), array('type' => 'button', 'name' => 'cancel', 'value' => _l('Cancel'), 'class' => 'submit_button', 'onclick' => "window.location.href='" . $module->link('template', array('template_id' => false)) . "';"))); echo module_form::generate_form_actions($form_actions); ?> </form>