PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.0.1
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.0.1
4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.10.0 3.10.1 3.10.10 3.10.11 3.10.12 3.10.13 3.10.14 3.10.15 3.10.2 3.10.3 3.10.4 All 148 releases
visualizer / classes / Visualizer / Render / Page / Update.php

Update.php in Visualizer – Tables & Charts Manager with Built-in AI Generator 3.0.1, at classes/Visualizer/Render/Page/Update.php

70 lines 2.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 // +----------------------------------------------------------------------+
4 // | Copyright 2013 Madpixels (email : visualizer@madpixels.net) |
5 // +----------------------------------------------------------------------+
6 // | This program is free software; you can redistribute it and/or modify |
7 // | it under the terms of the GNU General Public License, version 2, as |
8 // | published by the Free Software Foundation. |
9 // | |
10 // | This program is distributed in the hope that it will be useful, |
11 // | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 // | GNU General Public License for more details. |
14 // | |
15 // | You should have received a copy of the GNU General Public License |
16 // | along with this program; if not, write to the Free Software |
17 // | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, |
18 // | MA 02110-1301 USA |
19 // +----------------------------------------------------------------------+
20 // | Author: Eugene Manuilov <eugene@manuilov.org> |
21 // +----------------------------------------------------------------------+
22 /**
23 * Renders data uploading respond.
24 *
25 * @category Visualizer
26 * @package Render
27 * @subpackage Page
28 *
29 * @since 1.0.0
30 */
31 class Visualizer_Render_Page_Update extends Visualizer_Render_Page {
32
33 /**
34 * Renders page template.
35 *
36 * @since 1.0.0
37 *
38 * @access protected
39 */
40 protected function _toHTML() {
41 echo '<!DOCTYPE html>';
42 echo '<html>';
43 echo '<head>';
44 echo '<script type="text/javascript">';
45 echo '(function() {';
46 if ( empty( $this->message ) ) {
47 echo 'var win = window.dialogArguments || opener || parent || top;';
48 echo 'if (win.visualizer) {';
49 echo 'win.visualizer.charts.canvas.series = ', $this->series, ';';
50 echo 'win.visualizer.charts.canvas.data = ', $this->data, ';';
51 echo 'win.visualizer.render();';
52 echo '}';
53
54 // added by Ash/Upwork
55 if ( VISUALIZER_PRO ) {
56 global $Visualizer_Pro;
57 $Visualizer_Pro->_addUpdateHook( $this->series, $this->data );
58 }
59 } else {
60 echo 'alert("', $this->message, '");';
61 }
62 echo '})();';
63 echo '</script>';
64 echo '</head>';
65 echo '<body></body>';
66 echo '</html>';
67 }
68
69 }
70