| 1 |
<?php |
| 2 |
require_once( CHART_BUILDER_ADMIN_PATH . "/partials/charts/actions/chart-builder-charts-actions-options.php" ); |
| 3 |
?> |
| 4 |
<div class="wrap"> |
| 5 |
<div class="container-fluid"> |
| 6 |
<form class="ays-charts-form" id="ays-charts-form" method="post"> |
| 7 |
<h1> |
| 8 |
<?php echo esc_attr($heading); ?> |
| 9 |
<input type="submit" name="ays_submit_top" value="<?php echo esc_html(__('Save and close', "chart-builder")) ?>" class="button button-primary ays-button ays-chart-loader-banner" id="ays-button-top-save"> |
| 10 |
<input type="submit" name="ays_apply_top" value="<?php echo esc_html(__('Save', "chart-builder")) ?>" class="button button-secondary ays-button ays-chart-loader-banner" id="ays-button-top-apply"> |
| 11 |
</h1> |
| 12 |
<hr/> |
| 13 |
|
| 14 |
<?php |
| 15 |
for($tab_ind = 1; $tab_ind <= 1; $tab_ind++){ |
| 16 |
require_once( CHART_BUILDER_ADMIN_PATH . "/partials/charts/actions/partials/chart-builder-charts-actions-tab".$tab_ind.".php" ); |
| 17 |
} |
| 18 |
?> |
| 19 |
|
| 20 |
<input type="hidden" name="<?php echo esc_attr($html_name_prefix); ?>date_created" value="<?php echo esc_attr($date_created); ?>"> |
| 21 |
<input type="hidden" name="<?php echo esc_attr($html_name_prefix); ?>date_modified" value="<?php echo esc_attr($date_modified); ?>"> |
| 22 |
<hr/> |
| 23 |
<?php |
| 24 |
wp_nonce_field('chart_builder_action', 'chart_builder_action'); |
| 25 |
|
| 26 |
// $other_attributes = array('id' => 'ays-button-save'); |
| 27 |
// submit_button(__('Save and close', "chart-builder"), 'btn btn-primary ays-button ays-survey-loader-banner', 'ays_submit', false, $other_attributes); |
| 28 |
|
| 29 |
// $other_attributes = array('id' => 'ays-button-save-new'); |
| 30 |
// submit_button(__('Save and new', "chart-builder"), 'primary ays-button ays-survey-loader-banner', 'ays_save_new', false, $other_attributes); |
| 31 |
|
| 32 |
// $other_attributes = array('id' => 'ays-button-apply'); |
| 33 |
// submit_button(__('Save', "chart-builder"), 'btn btn-secondary ays-button ays-survey-loader-banner', 'ays_apply', false, $other_attributes); |
| 34 |
|
| 35 |
?> |
| 36 |
<input type="submit" name="ays_submit" value="<?php echo esc_html(__('Save and close', "chart-builder")) ?>" class="button button-primary ays-button ays-chart-loader-banner" id="ays-button-save"> |
| 37 |
<input type="submit" name="ays_apply" value="<?php echo esc_html(__('Save', "chart-builder")) ?>" class="button button-secondary ays-button ays-chart-loader-banner" id="ays-button-apply"> |
| 38 |
<?php |
| 39 |
if($id === 0 && !isset($_GET['status'])){ |
| 40 |
require_once( CHART_BUILDER_ADMIN_PATH . "/partials/charts/actions/partials/chart-builder-charts-add-new-layer-page.php" ); |
| 41 |
} |
| 42 |
?> |
| 43 |
</form> |
| 44 |
|
| 45 |
<div class="ays-modal" id="ays-chart-db-query-results"> |
| 46 |
<div class="ays-modal-content"> |
| 47 |
<div class="ays-preloader"> |
| 48 |
<img class="loader" src="<?php echo esc_url(CHART_BUILDER_ADMIN_URL); ?>/images/loaders/tail-spin-result.svg" alt="" width="100"> |
| 49 |
</div> |
| 50 |
|
| 51 |
<!-- Modal Header --> |
| 52 |
<div class="ays-modal-header"> |
| 53 |
<span class="ays-close">×</span> |
| 54 |
<h2><?php echo esc_html(__('Database query results', "chart-builder")); ?></h2> |
| 55 |
</div> |
| 56 |
|
| 57 |
<!-- Modal body --> |
| 58 |
<div class="ays-modal-body"> |
| 59 |
<div class="db-wizard-results"></div> |
| 60 |
</div> |
| 61 |
|
| 62 |
<!-- Modal footer --> |
| 63 |
</div> |
| 64 |
</div> |
| 65 |
</div> |
| 66 |
</div> |
| 67 |
|