PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 1.07.11
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v1.07.11
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
formidable / classes / views / xml / import_form.php

import_form.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More 1.07.11, at classes/views/xml/import_form.php

121 lines 6.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <div class="wrap">
2 <div class="frmicon icon32"><br/></div>
3 <h2><?php _e('Import/Export', 'formidable'); ?></h2>
4
5 <?php include(FrmAppHelper::plugin_path() .'/classes/views/shared/errors.php'); ?>
6 <div id="poststuff" class="metabox-holder">
7 <div id="post-body">
8 <div id="post-body-content">
9
10 <div class="postbox ">
11 <h3 class="hndle"><span><?php _e('Import', 'formidable') ?></span></h3>
12 <div class="inside">
13 <p class="howto"><?php echo apply_filters('frm_upload_instructions1', __('Upload your Formidable XML file to import forms into this site. If your imported form key and creation date match a form on your site, that form will be updated.', 'formidable')) ?></p>
14 <br/>
15 <form enctype="multipart/form-data" method="post">
16 <input type="hidden" name="frm_action" value="import_xml" />
17 <?php wp_nonce_field('import-xml-nonce', 'import-xml'); ?>
18 <p><label><?php echo apply_filters('frm_upload_instructions2', __('Choose a Formidable XML file', 'formidable')) ?> (<?php printf(__('Maximum size: %s', 'formidable'), ini_get('upload_max_filesize')) ?>)</label>
19 <input type="file" name="frm_import_file" size="25" />
20 </p>
21
22 <?php do_action('frm_csv_opts', $forms) ?>
23
24 <p class="submit">
25 <input type="submit" value="<?php _e('Upload file and import', 'formidable') ?>" class="button-primary" />
26 </p>
27 </form>
28 </div>
29 </div>
30
31
32 <div class="postbox">
33 <h3 class="hndle"><span><?php _e('Export', 'formidable') ?></span></h3>
34 <div class="inside with_frm_style">
35 <form method="post" action="<?php echo admin_url('admin-ajax.php'); ?>" id="frm_export_xml">
36 <input type="hidden" name="action" value="frm_export_xml" />
37 <?php wp_nonce_field('export-xml-nonce', 'export-xml'); ?>
38
39 <table class="form-table">
40 <?php if (count($export_format) == 1) {
41 reset($export_format); ?>
42 <tr><td colspan="2"><input type="hidden" name="format" value="<?php echo key($export_format) ?>" /></td></tr>
43 <?php } else { ?>
44 <tr class="form-field">
45 <th scope="row"><label for="format"><?php _e('Export Format', 'formidable'); ?></label></th>
46 <td>
47 <select name="format">
48 <?php foreach ( $export_format as $t => $type ){ ?>
49 <option value="<?php echo $t ?>" data-support="<?php echo esc_attr($type['support']) ?>" <?php echo isset($type['count']) ? 'data-count="'. esc_attr($type['count']) .'"' : ''; ?>><?php echo isset($type['name']) ? $type['name'] : $t ?></option>
50 <?php } ?>
51 </select>
52
53 <ul class="frm_hidden csv_opts export-filters">
54 <li>
55 <label for="csv_format"><?php _e('Format', 'formidable') ?>:</label>
56 <span class="frm_help frm_icon_font frm_tooltip_icon" title="<?php _e('If your CSV special characters are not working correctly, try a different formatting option.', 'formidable') ?>"></span>
57 <select name="csv_format">
58 <option value="UTF-8" <?php selected($csv_format, 'UTF-8') ?>>UTF-8</option>
59 <option value="ISO-8859-1" <?php selected($csv_format, 'ISO-8859-1'); ?>>ISO-8859-1</option>
60 <option value="windows-1256" <?php selected($csv_format, 'windows-1256'); ?>>windows-1256</option>
61 <option value="windows-1251" <?php selected($csv_format, 'windows-1251'); ?>>windows-1251</option>
62 <option value="macintosh" <?php selected($csv_format, 'macintosh'); ?>><?php _e('Macintosh', 'formidable') ?></option>
63 </select>
64 </li>
65
66 <li><label for="csv_col_sep"><?php _e('Column separation', 'formidable') ?>:</label>
67 <input name="csv_col_sep" value="," type="text" style="width:45px;" /></li>
68 </ul>
69 </td>
70 </tr>
71 <?php } ?>
72
73 <?php if (count($export_types) == 1) {
74 reset($export_types); ?>
75 <tr><td colspan="2"><input type="hidden" name="type[]" value="<?php echo key($export_types) ?>" /></td></tr>
76 <?php } else { ?>
77 <tr class="form-field">
78 <th scope="row"><label><?php _e('Data to Export', 'formidable'); ?></label></th>
79 <td>
80 <?php _e('Include the following in the export file', 'formidable'); ?>:<br/>
81 <?php foreach ( $export_types as $t => $type ){ ?>
82 <label><input type="checkbox" name="type[]" value="<?php echo $t ?>"/> <?php echo $type ?></label> &nbsp;
83 <?php } ?>
84 </td>
85 </tr>
86 <?php } ?>
87
88 <tr class="form-field">
89 <th scope="row"><label><?php _e('Select Form(s)', 'formidable'); ?></label></th>
90 <td>
91 <select name="frm_export_forms[]" multiple="multiple" class="frm_chzn">
92 <?php foreach($forms as $form){ ?>
93 <option value="<?php echo $form->id ?>"><?php
94 echo ($form->name == '') ? '(no title)' : $form->name;
95 echo ' &mdash; '. $form->form_key;
96 if ( $form->is_template && $form->default_template ) {
97 echo ' '. __('(default template)', 'formidable');
98 } else if ( $form->is_template ) {
99 echo ' '. __('(template)', 'formidable');
100 }
101 ?></option>
102 <?php } ?>
103 </select>
104 <p class="howto"><?php _e('Hold down the CTRL/Command button to select multiple forms', 'formidable'); ?></p>
105 </td>
106 </tr>
107 </table>
108 <p class="submit">
109 <input type="submit" value="<?php _e('Export Selection', 'formidable') ?>" class="button-primary" />
110 </p>
111 </form>
112
113 </div>
114 </div>
115
116
117 </div>
118 </div>
119 </div>
120 </div>
121