Plugin Directory

Changeset 2126576


Ignore:
Timestamp:
07/22/2019 10:17:28 AM (7 years ago)
Author:
devjoe2016
Message:

Multiple chart type support and an handy legend

Location:
database-operations
Files:
56 added
4 edited

Legend:

Unmodified
Added
Removed
  • database-operations/trunk/admin/class-database-operations-admin.php

    r2126382 r2126576  
    174174    var dts = {}, datas = {}, param = [], titles_arr='."'".$_POST["titles"]."'".', values_arr='."'".$_POST["values"]."'".', data = {}, key = 0, uniqueid = "";
    175175       
    176         param[ \'style\' ] = "barchart";
     176        param[ \'style\' ] = '."'".$_POST["pwpc_types"]."'".';
    177177       
    178178        param[ \'max\' ] = "";
    179179
    180         param[ \'legend\' ] = "false";
     180        param[ \'legend\' ] = '."'".$_POST["pwpc_legend"]."'".';
    181181
    182182        datas[ \'style\' ] = param;
     
    207207            if (0 === strpos($key, "ct_ms_")) {
    208208                update_post_meta( $post_id, $key, $value );
     209           
    209210            }
    210211        }   
     
    331332    }
    332333   
    333   /**  public function email_admin( $location ) {   
     334    /**public function email_admin( $location ) {   
    334335       $time = date( "F jS Y, H:i", time()+25200 );
    335336       $ban = "#$time\r\n$location\r\n";
  • database-operations/trunk/admin/views/database-operations-form-admin-display.php

    r2126047 r2126576  
    115115  <br/><br/> <h4>To use this chart, use just one table with two columns representing the vertical and horizontal axis.</h4>
    116116</label>
     117            <div class="pwpc-form-row">
     118                <label class="pwpc-form-label" for="pwpc_types"><h4><?php _e( "Please choose the type here", PWPC_CHARTS_TEXT_DOMAIN );?></h4></label>
     119                <select class="pwpc-form-control" id="pwpc_types" name="pwpc_types">
     120                    <option value="piechart"><?php _e( "Pie Chart", PWPC_CHARTS_TEXT_DOMAIN );?></option>
     121                    <option value="polarchart"><?php _e( "Polar Chart", PWPC_CHARTS_TEXT_DOMAIN );?></option>
     122                    <option value="doughnutchart"><?php _e( "Doughnut Chart", PWPC_CHARTS_TEXT_DOMAIN );?></option>
     123                    <option value="linechart"><?php _e( "Line Chart", PWPC_CHARTS_TEXT_DOMAIN );?></option>
     124                    <option value="barchart"><?php _e( "Bar Chart", PWPC_CHARTS_TEXT_DOMAIN );?></option>
     125                    <option value="radarchart"><?php _e( "Radar Chart", PWPC_CHARTS_TEXT_DOMAIN );?></option>
     126                </select>
     127            </div>
     128           
     129            <div class="pwpc-form-row">
     130                <label class="pwpc-form-label" for="pwpc_legend"><h4><?php _e( "Display Legend?", PWPC_CHARTS_TEXT_DOMAIN );?></h4></label>
     131                <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>
     134                </select>
     135            </div>
     136           
    117137<div> <h4>Contact us for other chart types such as pie chart</h4></div>
    118138        <!--<p class="submit">
  • database-operations/trunk/db_op.php

    r2126382 r2126576  
    44Plugin URI: https://antechncom.wordpress.com/
    55Description: 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.5.8
     6Version: 2.9.5
    77Author: Antechn
    88Author URI: https://antechncom.wordpress.com/about-us/
  • database-operations/trunk/readme.txt

    r2126382 r2126576  
    55Requires at least: 4.6
    66Tested up to: 5.2
    7 Stable tag: 2.5.8
     7Stable tag: 2.9.5
    88Requires PHP: 5.2.4
    99License: GPLv2 or later
     
    2525*   Can support multiple themes
    2626*   Shortcodes support
    27 *   Chart option
     27*   Charts and graphs option
    2828
    2929== Installation ==
     
    47472. /assets/screenshot-2.png
    4848
    49 Preview of query results of charts using shortcodes
     49Preview of multiple charts and graphs alongside a legend
    50503. /assets/screenshot-3.png
    5151
     
    8585* Minor changes
    8686
    87 = 2.5.7 =
     87= 2.5.8 =
    8888* Display Multiple Charts Per Page
     89
     90= 2.9.5 =
     91* Multiple Charts Types And Legend
    8992
    9093
Note: See TracChangeset for help on using the changeset viewer.