step1.inc.php
3.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?php defined('ABSPATH') or die('Access denied.'); ?>
<div class="row">
<!-- .col-sm-4 -->
<div class="col-sm-6 col-md-6 chart-name">
<h4 class="c-black m-b-20">
<?php _e('Chart name', 'wpdatatables'); ?>
<i class="zmdi zmdi-help-outline" data-toggle="tooltip" data-placement="right"
title="<?php _e('Please define the title of the chart that you will use to identify it', 'wpdatatables'); ?>"></i>
</h4>
<div class="form-group">
<div class="fg-line">
<div class="row">
<div class="col-sm-12">
<input type="text" name="chart-name" id="chart-name" class="form-control input-sm"
value="<?php echo empty($chartId) ? __('New wpDataTable Chart', 'wpdatatables') : $chartObj->getTitle(); ?>"/>
</div>
</div>
</div>
</div>
</div>
<!-- /.col-sm-4 -->
<!-- .col-sm-4 -->
<div class="col-sm-6 col-md-6 render-engine">
<h4 class="c-black m-b-20">
<?php _e('Chart render engine', 'wpdatatables'); ?>
<i class="zmdi zmdi-help-outline" data-toggle="tooltip" data-placement="right"
title="<?php _e('Please choose the render engine.', 'wpdatatables'); ?> <?php _e('Please note that HighCharts license is NOT included with wpDataTables and you must purchase the license separately on', 'wpdatatables'); ?> http://highcharts.com"></i>
</h4>
<div class="form-group">
<div class="fg-line">
<div class="select">
<select class="selectpicker" name="chart-render-engine" id="chart-render-engine">
<option value="" <?php echo empty($chartId) ? 'selected="selected"' : ''; ?> ><?php _e('Pick the render engine', 'wpdatatables'); ?></option>
<option value="google"
<?php if (!empty($chartId) && ($chartObj->getEngine() == 'google')){ ?>selected="selected"<?php } ?> >
Google Charts
</option>
<option value="highcharts"
<?php if (!empty($chartId) && ($chartObj->getEngine() == 'highcharts')){ ?>selected="selected"<?php } ?> >
HighCharts
</option>
<option value="chartjs"
<?php if (!empty($chartId) && ($chartObj->getEngine() == 'chartjs')){ ?>selected="selected"<?php } ?> >
Chart.js
</option>
</select>
</div>
</div>
</div>
</div>
<!-- /.col-sm-4 -->
</div>
<!--/.row -->
<!-- .row -->
<div class="row">
<!-- div.google-charts-type -->
<div class="charts-type google-charts-type col-sm-12">
<?php include WDT_TEMPLATE_PATH . 'admin/chart_wizard/steps/charts_pick/google_charts.inc.php'; ?>
</div>
<!-- /div.google-charts-type -->
<!-- div.highcharts-charts-type -->
<div class="charts-type highcharts-charts-type col-sm-12 col-md-12">
<?php include WDT_TEMPLATE_PATH . 'admin/chart_wizard/steps/charts_pick/highcharts.inc.php'; ?>
</div>
<!-- /div.highcharts-charts-type -->
<!-- div.chartjs-charts-type -->
<div class="charts-type chartjs-charts-type col-sm-12 col-md-12">
<?php include WDT_TEMPLATE_PATH . 'admin/chart_wizard/steps/charts_pick/chartjs.inc.php'; ?>
</div>
<!-- /div.chartjs-charts-type -->
</div>
<!--/.row -->