PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 2.05.09
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v2.05.09
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 2.05.09, at classes/views/xml/import_form.php

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