Changeset 2128623
- Timestamp:
- 07/25/2019 04:40:58 PM (7 years ago)
- Location:
- database-operations
- Files:
-
- 55 added
- 4 edited
-
tags/2.9.9 (added)
-
tags/2.9.9/LICENSE.txt (added)
-
tags/2.9.9/admin (added)
-
tags/2.9.9/admin/class-database-operations-admin.php (added)
-
tags/2.9.9/admin/css (added)
-
tags/2.9.9/admin/css/colorpicker.css (added)
-
tags/2.9.9/admin/css/database-operations-admin.css (added)
-
tags/2.9.9/admin/css/db_wp_charts.css (added)
-
tags/2.9.9/admin/css/db_wp_charts_settings.css (added)
-
tags/2.9.9/admin/function-database-operations-admin.php (added)
-
tags/2.9.9/admin/index.php (added)
-
tags/2.9.9/admin/js (added)
-
tags/2.9.9/admin/js/Chart.min.js (added)
-
tags/2.9.9/admin/js/colorpicker.js (added)
-
tags/2.9.9/admin/js/database-operations-admin.js (added)
-
tags/2.9.9/admin/js/db_wp_charts.js (added)
-
tags/2.9.9/admin/js/db_wp_charts_admin.js (added)
-
tags/2.9.9/admin/js/db_wp_charts_init.js (added)
-
tags/2.9.9/admin/js/jquery.visible.min.js (added)
-
tags/2.9.9/admin/views (added)
-
tags/2.9.9/admin/views/database-operations-admin-display.php (added)
-
tags/2.9.9/admin/views/database-operations-form-admin-display.php (added)
-
tags/2.9.9/admin/views/database-operations-init-admin-display.php (added)
-
tags/2.9.9/db_op.php (added)
-
tags/2.9.9/includes (added)
-
tags/2.9.9/includes/class-database-operations-activator.php (added)
-
tags/2.9.9/includes/class-database-operations-deactivator.php (added)
-
tags/2.9.9/includes/class-database-operations-i18n.php (added)
-
tags/2.9.9/includes/class-database-operations-loader.php (added)
-
tags/2.9.9/includes/class-database-operations.php (added)
-
tags/2.9.9/includes/index.php (added)
-
tags/2.9.9/index.php (added)
-
tags/2.9.9/languages (added)
-
tags/2.9.9/languages/database_operations.pot (added)
-
tags/2.9.9/public (added)
-
tags/2.9.9/public/class-database-operations-public.php (added)
-
tags/2.9.9/public/css (added)
-
tags/2.9.9/public/css/colorpicker.css (added)
-
tags/2.9.9/public/css/database-operations-admin.css (added)
-
tags/2.9.9/public/css/database-operations-public.css (added)
-
tags/2.9.9/public/css/db_wp_charts.css (added)
-
tags/2.9.9/public/css/db_wp_charts_settings.css (added)
-
tags/2.9.9/public/index.php (added)
-
tags/2.9.9/public/js (added)
-
tags/2.9.9/public/js/Chart.min.js (added)
-
tags/2.9.9/public/js/colorpicker.js (added)
-
tags/2.9.9/public/js/database-operations-admin.js (added)
-
tags/2.9.9/public/js/database-operations-public.js (added)
-
tags/2.9.9/public/js/db_wp_charts.js (added)
-
tags/2.9.9/public/js/db_wp_charts_admin.js (added)
-
tags/2.9.9/public/js/db_wp_charts_init.js (added)
-
tags/2.9.9/public/js/jquery.visible.min.js (added)
-
tags/2.9.9/public/partials (added)
-
tags/2.9.9/public/partials/database-operations-public-display.php (added)
-
tags/2.9.9/readme.txt (added)
-
trunk/admin/class-database-operations-admin.php (modified) (2 diffs)
-
trunk/admin/views/database-operations-form-admin-display.php (modified) (9 diffs)
-
trunk/db_op.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
database-operations/trunk/admin/class-database-operations-admin.php
r2126576 r2128623 167 167 168 168 } else { 169 if($_POST["pwpc_types"] == ""){ 170 $res = '<h4> Select A Chart Type And Legend</h4>'; 171 //return $res; 172 } else { 169 173 $this->performChartQuery($_POST); 170 174 $res='<div id="tesr'.$post_id.'" style="overflow:auto;"></div>'; … … 201 205 </script>'; 202 206 } 207 } 203 208 204 209 $_POST["ct_ms_content"] = $res; 205 210 foreach($_POST as $key => $value) 206 211 { 207 if (0 === strpos($key, "ct_ms_")) {212 //if (0 === strpos($key, "ct_ms_")) { 208 213 update_post_meta( $post_id, $key, $value ); 209 214 210 }215 //} 211 216 } 212 217 -
database-operations/trunk/admin/views/database-operations-form-admin-display.php
r2126576 r2128623 20 20 <th scope="row"><?php _e( 'Select first database table', 'db_op_plugin' ) ?></th> 21 21 <td> 22 <select name="tb1" class="tb1" > 23 <option value="<?php 24 $post_val = get_post_meta(get_the_ID(), 'tb1'); 25 26 foreach($post_val as $k => $v){ 27 28 echo $v; 29 30 } 31 ?>" > <?php 32 $post_val = get_post_meta(get_the_ID(), 'tb1'); 33 34 foreach($post_val as $k => $v){ 35 36 echo $v; 37 38 } 39 40 ?> </option> 22 <select name="tb1" class="tb1" id="tb1"> 23 <option value="" > None </option> 41 24 <?php 42 25 foreach ($db_op_first_tb as $mytable) … … 48 31 } 49 32 ?> 50 <option value="" > None </option> 51 </select> 52 </td> 53 </tr><tr> 54 <th scope="row"><?php _e( 'Select second database table', 'db_op_plugin' ) ?></th> 55 <td> 56 <select name="tb2" class="tb2" > 57 <option value="<?php 58 $post_val = get_post_meta(get_the_ID(), 'tb2'); 33 34 <script type="text/javascript"> 35 document.getElementById('tb1').value = "<?php 36 $post_val = get_post_meta(get_the_ID(), 'tb1'); 59 37 60 38 foreach($post_val as $k => $v){ … … 63 41 64 42 } 65 66 67 ?>" ><?php 68 $post_val = get_post_meta(get_the_ID(), 'tb2'); 69 70 foreach($post_val as $k => $v){ 71 72 echo $v; 73 74 } 75 76 ?></option> 43 44 ?>"; 45 </script> 46 </select> 47 </td> 48 </tr><tr> 49 <th scope="row"><?php _e( 'Select second database table', 'db_op_plugin' ) ?></th> 50 <td> 51 <select name="tb2" class="tb2" id="tb2" > 52 <option value="">None</option> 53 77 54 <?php 78 55 foreach ($db_op_second_tb as $mytable) … … 83 60 } 84 61 ?> 85 <option value="">None</option> 62 <script type="text/javascript"> 63 document.getElementById('tb2').value = "<?php 64 $post_val = get_post_meta(get_the_ID(), 'tb2'); 65 66 foreach($post_val as $k => $v){ 67 68 echo $v; 69 70 } 71 72 ?>"; 73 </script> 86 74 </select> 75 87 76 </td> 88 77 </tr> … … 90 79 <th scope="row"><?php _e( 'Select database query option', 'db_op_plugin' ) ?></th> 91 80 <td> 92 <select name="qryop" class="qryop"><?php 81 <select name="qryop" class="qryop" id="qryop"> 82 <?php 93 83 foreach ($db_op_query_op as $mytable) 94 84 { … … 98 88 } 99 89 ?> 90 <script type="text/javascript"> 91 document.getElementById('qryop').value = "<?php 92 $post_val = get_post_meta(get_the_ID(), 'qryop'); 93 94 foreach($post_val as $k => $v){ 95 96 echo $v; 97 98 } 99 ?>"; 100 </script> 100 101 </select 101 102 </td> … … 111 112 </div> 112 113 <label class="switch"> 113 <input type="checkbox" name="charts"> 114 <input type="checkbox" name="charts" id="charts"> 115 <script type="text/javascript"> 116 document.getElementById('charts').checked = "<?php 117 $post_val = get_post_meta(get_the_ID(), 'charts'); 118 119 foreach($post_val as $k => $v){ 120 121 echo $v; 122 123 } 124 125 ?>"; 126 </script> 114 127 <span class="slider round"></span> Charts 115 128 <br/><br/> <h4>To use this chart, use just one table with two columns representing the vertical and horizontal axis.</h4> … … 125 138 <option value="radarchart"><?php _e( "Radar Chart", PWPC_CHARTS_TEXT_DOMAIN );?></option> 126 139 </select> 140 <script type="text/javascript"> 141 document.getElementById('pwpc_types').value = "<?php 142 $post_val = get_post_meta(get_the_ID(), 'pwpc_types'); 143 144 foreach($post_val as $k => $v){ 145 146 echo $v; 147 148 } 149 150 ?>"; 151 </script> 127 152 </div> 128 153 … … 130 155 <label class="pwpc-form-label" for="pwpc_legend"><h4><?php _e( "Display Legend?", PWPC_CHARTS_TEXT_DOMAIN );?></h4></label> 131 156 <select class="pwpc-form-control" id="pwpc_legend" name="pwpc_legend"> 132 <option value="false"><?php _e( " No", PWPC_CHARTS_TEXT_DOMAIN );?></option>133 <option value="true"><?php _e( " Yes", PWPC_CHARTS_TEXT_DOMAIN );?></option>157 <option value="false"><?php _e( "False", PWPC_CHARTS_TEXT_DOMAIN );?></option> 158 <option value="true"><?php _e( "True", PWPC_CHARTS_TEXT_DOMAIN );?></option> 134 159 </select> 160 <script type="text/javascript"> 161 document.getElementById('pwpc_legend').value = "<?php 162 $post_val = get_post_meta(get_the_ID(), 'pwpc_legend'); 163 164 foreach($post_val as $k => $v){ 165 166 echo $v; 167 168 } 169 ?>"; 170 </script> 135 171 </div> 136 137 <div> <h4>Contact us for other chart types such as pie chart</h4></div>138 <!--<p class="submit">139 <input type="submit" id="db_op_sub" class="button-primary" value="<?php //_e( 'Perform query', 'db_op_plugin' ); ?>" />140 </p>-->141 142 172 </form> 143 173 -
database-operations/trunk/db_op.php
r2126576 r2128623 4 4 Plugin URI: https://antechncom.wordpress.com/ 5 5 Description: This plugin connects Wordpress and the MY_SQL database, thus allowing a user fetch data from the MY_SQL database, a user can display a table or perform a simple 'UNION' on two tables. Copy shortcodes to use on any page. 6 Version: 2.9. 56 Version: 2.9.9 7 7 Author: Antechn 8 8 Author URI: https://antechncom.wordpress.com/about-us/ -
database-operations/trunk/readme.txt
r2126576 r2128623 5 5 Requires at least: 4.6 6 6 Tested up to: 5.2 7 Stable tag: 2.9. 57 Stable tag: 2.9.9 8 8 Requires PHP: 5.2.4 9 9 License: GPLv2 or later … … 91 91 * Multiple Charts Types And Legend 92 92 93 = 2.9.9 = 94 * Persist Input Type Of Form After Submission 93 95 94 96 97
Note: See TracChangeset
for help on using the changeset viewer.