| 1 |
<?php |
| 2 |
$example_export_path = SURVEY_MAKER_ADMIN_URL . '/partials/export-import/survey-export-example.json'; |
| 3 |
?> |
| 4 |
<div class="wrap ays_results_table"> |
| 5 |
<div class="container-fluid"> |
| 6 |
<div class="ays-survey-heading-box"> |
| 7 |
<div class="ays-survey-wordpress-user-manual-box"> |
| 8 |
<a href="https://ays-pro.com/wordpress-survey-maker-user-manual" target="_blank" style="text-decoration: none;font-size: 13px;"> |
| 9 |
<i class="ays_fa ays_fa_file_text" ></i> |
| 10 |
<span style="margin-left: 3px;text-decoration: underline;">View Documentation</span> |
| 11 |
</a> |
| 12 |
</div> |
| 13 |
</div> |
| 14 |
<h1 class="wp-heading-inline"> |
| 15 |
<?php |
| 16 |
echo esc_html(__(get_admin_page_title(),"survey-maker")); |
| 17 |
?> |
| 18 |
</h1> |
| 19 |
<?php do_action('ays_survey_sale_banner'); ?> |
| 20 |
|
| 21 |
<div style="display: flex;justify-content: center; align-items: center;"> |
| 22 |
<div class="ays-survey-youtube-placeholder" data-video-id="xLSv8h87fX4"> |
| 23 |
<img src="<?php echo esc_url(SURVEY_MAKER_ADMIN_URL .'/images/youtube/export-import-video-screenshot.webp'); ?>" width="560" height="315"> |
| 24 |
</div> |
| 25 |
</div> |
| 26 |
|
| 27 |
<div class="nav-tab-wrapper"> |
| 28 |
<a href="#tab1" class="nav-tab nav-tab-active"><?php echo esc_html__('Export',"survey-maker"); ?></a> |
| 29 |
<a href="#tab2" class="nav-tab"><?php echo esc_html__('Import',"survey-maker"); ?></a> |
| 30 |
<a href="<?php echo esc_url($example_export_path); ?>" class="export-survey-example" download="survey-export-example.json"><?php echo esc_html__('Download example for import',"survey-maker"); ?></a> |
| 31 |
</div> |
| 32 |
|
| 33 |
<div id="tab1" class="ays-survey-tab-content ays-survey-tab-content-active"> |
| 34 |
<div class="form-group row" style="margin:0px;"> |
| 35 |
<div class="col-sm-12 ays-pro-features-v2-main-box ays-pro-features-v2-main-box-small"> |
| 36 |
<div class="ays-pro-features-v2-small-buttons-box"> |
| 37 |
<div class="ays-pro-features-v2-video-button"></div> |
| 38 |
<a href="https://ays-pro.com/wordpress/survey-maker" target="_blank" class="ays-pro-features-v2-upgrade-button"> |
| 39 |
<div class="ays-pro-features-v2-upgrade-icon" style="background-image: url('<?php echo esc_attr(SURVEY_MAKER_ADMIN_URL); ?>/images/icons/pro-features-icons/Locked_24x24.svg');" data-img-src="<?php echo esc_attr(SURVEY_MAKER_ADMIN_URL); ?>/images/icons/pro-features-icons/Locked_24x24.svg"></div> |
| 40 |
<div class="ays-pro-features-v2-upgrade-text"> |
| 41 |
<?php echo esc_html__("Upgrade" , "survey-maker"); ?> |
| 42 |
</div> |
| 43 |
</a> |
| 44 |
</div> |
| 45 |
<form method="post" id="ays-export-form"> |
| 46 |
<p class="ays-subtitle"><?php echo esc_html__('Export surveys',"survey-maker")?></p> |
| 47 |
<hr/> |
| 48 |
<div class="form-group row"> |
| 49 |
<div class="col-sm-4"> |
| 50 |
<label for="ays_select_surveys"> |
| 51 |
<span><?php echo esc_html__("Select Surveys", "survey-maker"); ?></span> |
| 52 |
<a class="ays_help ays-survey-zindex-for-pro" data-toggle="tooltip" title="<?php echo esc_html__('Specify the surveys which must be exported. If you want to export all surveys just leave blank.',"survey-maker")?>"> |
| 53 |
<i class="ays_fa ays_fa_info_circle"></i> |
| 54 |
</a> |
| 55 |
</label> |
| 56 |
</div> |
| 57 |
<div class="col-sm-8"> |
| 58 |
<select id="ays_select_surveys" multiple> |
| 59 |
<option value=""><?php echo esc_html__( "Survey title", "survey-maker" ); ?></option> |
| 60 |
</select> |
| 61 |
</div> |
| 62 |
</div> |
| 63 |
<hr> |
| 64 |
<div class="form-group row"> |
| 65 |
<div class="col-sm-12"> |
| 66 |
<button type="button" class="button ays_export_surveys" id="export-reports" disabled="disabled" ><?php echo esc_html__( "Export to JSON", "survey-maker" ); ?> |
| 67 |
</button> |
| 68 |
<a download="" id="downloadFile" hidden href=""></a> |
| 69 |
</div> |
| 70 |
</div> |
| 71 |
</form> |
| 72 |
</div> |
| 73 |
</div> |
| 74 |
</div> |
| 75 |
|
| 76 |
<div id="tab2" class="ays-survey-tab-content"> |
| 77 |
<div class="form-group row" style="margin:0px;"> |
| 78 |
<div class="col-sm-12 ays-pro-features-v2-main-box ays-pro-features-v2-main-box-small"> |
| 79 |
<div class="ays-pro-features-v2-small-buttons-box"> |
| 80 |
<div class="ays-pro-features-v2-video-button"></div> |
| 81 |
<a href="https://ays-pro.com/wordpress/survey-maker" target="_blank" class="ays-pro-features-v2-upgrade-button"> |
| 82 |
<div class="ays-pro-features-v2-upgrade-icon" style="background-image: url('<?php echo esc_attr(SURVEY_MAKER_ADMIN_URL); ?>/images/icons/pro-features-icons/Locked_24x24.svg');" data-img-src="<?php echo esc_attr(SURVEY_MAKER_ADMIN_URL); ?>/images/icons/pro-features-icons/Locked_24x24.svg"></div> |
| 83 |
<div class="ays-pro-features-v2-upgrade-text"> |
| 84 |
<?php echo esc_html__("Upgrade" , "survey-maker"); ?> |
| 85 |
</div> |
| 86 |
</a> |
| 87 |
</div> |
| 88 |
<div class="upload-import-file-wrap show-upload-view"> |
| 89 |
<div class="upload-import-file"> |
| 90 |
<p class="install-help"><?php echo esc_html__( "After completing the exporting process, move to the website where you are planning to import those surveys. Click on the Choose file button and pick the JSON file which you exported recently. Click on the Import Now button at the end.", "survey-maker" ); ?></p> |
| 91 |
<form method="post" enctype="multipart/form-data" class="ays-dn"> |
| 92 |
<input type="file" accept=".json" id="import_file"/> |
| 93 |
<label class="screen-reader-text" for="import_file"><?php echo esc_html__( "Import file", "survey-maker" ); ?></label> |
| 94 |
<input type="submit" class="button" value="<?php echo esc_html__( "Import now", "survey-maker" ); ?>" disabled=""> |
| 95 |
</form> |
| 96 |
</div> |
| 97 |
</div> |
| 98 |
</div> |
| 99 |
</div> |
| 100 |
</div> |
| 101 |
</div> |
| 102 |
</div> |
| 103 |
|
| 104 |
|