PluginProbe
School Management System – WPSchoolPress / 2.2.38
School Management System – WPSchoolPress v2.2.38
2.2.48 2.2.47 2.2.46 2.2.45 2.2.44 2.2.43 2.2.42 2.2.41 2.2.40 2.2.39 2.2.38 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 1.1.9 2.0.0 2.0.1 2.0.10 2.0.11 2.0.12 2.0.13 All 103 releases
wpschoolpress / lib / wpsp-admin-options.php

wpsp-admin-options.php in School Management System – WPSchoolPress 2.2.38, at lib/wpsp-admin-options.php

52 lines 3.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) exit;
3 if( isset( $_POST['saveoptions'] ) && sanitize_text_field($_POST['saveoptions'])=='Save' ) {
4 $remove_data = isset( $_POST['remove_data'] ) && sanitize_text_field($_POST['remove_data'])== 1 ? 1 : 0;
5 update_option( 'wpsp_remove_data', $remove_data );
6 }
7 $remove_data_status = get_option( 'wpsp_remove_data');
8 ?>
9 <div id="wpbody">
10 <div aria-label="Main content" tabindex="0">
11 <div class="wrap">
12 <h1><?php echo esc_html("WPSchoolpress", "wpschoolpress");?></h1>
13 <div id="dashboard-widgets-wrap">
14 <div id="dashboard-widgets" class="metabox-holder columns-2">
15 <div id="postbox-container-1" class="postbox-container">
16 <div id="normal-sortables" class="meta-box-sortables">
17 <div class="postbox ">
18 <h2 class="hndle"><span><?php esc_html_e( 'Settings', 'wpschoolpress'); ?> </span></h2>
19 <div class="inside">
20 <form name="post" action="" method="post">
21 <table class="plg-form-table">
22 <tr class="spaceUnder">
23 <td class="plg-option"><label for="lcode"><strong><?php echo esc_html("Delete Data", "wpschoolpress");?></strong></label></td>
24 <td class="plg-value"><input type="checkbox" name="remove_data" id="lcode" value="1" <?php checked( $remove_data_status, 1, true ); ?>>
25 <i><?php echo esc_html("If you don't want to use the WPSChoolPress Plugin on your site anymore, you can check the delete data box.This makes sure, that all the pages and tables are being deleted from the database when you delete the plugin.", "wpschoolpress");?></i>
26 <p class="submit" style="margin: 5px 0 15px;">
27 <input type="submit" name="saveoptions" class="button button-primary" value="Save">
28 <br class="clear">
29 </p></td>
30 </tr>
31 <tr>
32 <td class="plg-option"><label for="lcode"><strong><?php echo esc_html("Import", "wpschoolpress");?> </strong></label></td>
33 <td class="plg-value">
34 <button name="wpsp-import-data" id="wpsp-import-data" class="button button-primary"><?php echo esc_html("Import Demo Data", "wpschoolpress");?></button>
35 <span class="spinner"></span>
36 <br />
37 <i style="padding-top: 5px; display: block; font-weight: 500;"><?php echo esc_html("If you want to import demo data, click on Import Demo Data button", "wpschoolpress");?></i>
38 </td>
39 </tr>
40 </table>
41 <p class="response" style="margin: 0;"></p>
42 </form>
43 </div>
44 </div>
45 </div>
46 </div>
47 </div>
48 </div>
49 </div>
50 </div>
51 </div>
52