</h3> <table class="form-table"> <?php helper_checkbox_field('publish_post', __("Publish submissions as posts", 'wordpress-form-manager'), $form['publish_post'] == 1); ?> <tr><th scope="row"><label><?php _e("Post category", 'wordpress-form-manager'); ?> </label></th><td><?php wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'publish_post_category', 'hierarchical' => true, 'selected' => $form['publish_post_category'])); ?> </td></tr> <?php helper_text_field('publish_post_title', __("Post title", 'wordpress-form-manager'), htmlspecialchars($form['publish_post_title'])); helper_option_field('publish_post_status', __("Publish status", 'wordpress-form-manager'), array('publish' => 'Publish', 'draft' => 'Draft'), $form['publish_post_status']); ?> </table> <h3><?php _e("Submission Data", 'wordpress-form-manager'); ?> </h3> <table class="form-table"> <?php foreach ($allFormItems as $item) { if ($fmdb->isDataCol($item['unique_name'])) { $dbType = $fmdb->getDataType($item['unique_name']); helper_text_field($item['unique_name'] . "-dbtype", $item['nickname'] != "" ? $item['nickname'] : $item['label'], $dbType); if (isset($itemTypeErr[$item['unique_name']]) && $itemTypeErr['unique_name'] !== false) { ?>
$fileMethods = array('auto' => __('auto', 'wordpress-form-manager'), 'direct' => __('direct', 'wordpress-form-manager'), 'ssh' => __('ssh', 'wordpress-form-manager'), 'ftpext' => __('ftpext', 'wordpress-form-manager'), 'ftpsockets' => __('ftpsockets', 'wordpress-form-manager')); helper_option_field('file_method', __("Write method", 'wordpress-form-manager'), $fileMethods, get_option('fm-file-method')); helper_text_field('file_name_format', __("Default file naming format", 'wordpress-form-manager'), get_option('fm-file-name-format')); ?> </table> <h3><?php _e("E-Mail", 'wordpress-form-manager'); ?> </h3> <?php $emailMethods = array('wp_mail' => __('WordPress (wp_mail)', 'wordpress-form-manager'), 'mail' => __('PHP (mail)', 'wordpress-form-manager'), 'off' => __('None', 'wordpress-form-manager')); ?> <table class="form-table"> <?php helper_option_field('email_send_method', __("Send method", 'wordpress-form-manager'), $emailMethods, get_option('fm-email-send-method')); ?> </table> <h3><?php _e("Content Filtering", 'wordpress-form-manager'); ?> </h3> <table class="form-table"> <?php helper_checkbox_field('fm-strip-tags', __("Strip HTML Tags", 'wordpress-form-manager'), get_option('fm-strip-tags') == "YES", __("If not enabled, all HTML will be displayed as its literal text.", 'wordpress-form-manager')); helper_text_field('fm-allowed-tags', __("Allowed HTML Tags", 'wordpress-form-manager'), get_option('fm-allowed-tags'), htmlspecialchars(__("Enter tags including '<' and '>', e.g., \"<a><em><strong><br><hr>\" etc.", 'wordpress-form-manager'))); ?> </table> <h3><?php