Dashboard - Add chart type setting (#6951)
* Dashboard - Add chart type setting
This commit is contained in:
@@ -65,6 +65,7 @@
|
||||
$dashboard_name = $_POST["dashboard_name"] ?? '';
|
||||
$dashboard_path = $_POST["dashboard_path"] ?? '';
|
||||
$dashboard_groups = $_POST["dashboard_groups"] ?? '';
|
||||
$dashboard_chart_type = $_POST["dashboard_chart_type"] ?? '';
|
||||
$dashboard_heading_text_color = $_POST["dashboard_heading_text_color"] ?? '';
|
||||
$dashboard_number_text_color = $_POST["dashboard_number_text_color"] ?? '';
|
||||
$dashboard_column_span = $_POST["dashboard_column_span"] ?? '';
|
||||
@@ -165,6 +166,7 @@
|
||||
$array['dashboard'][0]['dashboard_uuid'] = $dashboard_uuid;
|
||||
$array['dashboard'][0]['dashboard_name'] = $dashboard_name;
|
||||
$array['dashboard'][0]['dashboard_path'] = $dashboard_path;
|
||||
$array['dashboard'][0]['dashboard_chart_type'] = $dashboard_chart_type;
|
||||
$array['dashboard'][0]['dashboard_heading_text_color'] = $dashboard_heading_text_color;
|
||||
$array['dashboard'][0]['dashboard_number_text_color'] = $dashboard_number_text_color;
|
||||
$array['dashboard'][0]['dashboard_column_span'] = $dashboard_column_span;
|
||||
@@ -212,6 +214,7 @@
|
||||
$sql .= " dashboard_uuid, ";
|
||||
$sql .= " dashboard_name, ";
|
||||
$sql .= " dashboard_path, ";
|
||||
$sql .= " dashboard_chart_type, ";
|
||||
$sql .= " dashboard_heading_text_color, ";
|
||||
$sql .= " dashboard_number_text_color, ";
|
||||
$sql .= " dashboard_column_span, ";
|
||||
@@ -227,6 +230,7 @@
|
||||
if (is_array($row) && @sizeof($row) != 0) {
|
||||
$dashboard_name = $row["dashboard_name"];
|
||||
$dashboard_path = $row["dashboard_path"];
|
||||
$dashboard_chart_type = $row["dashboard_chart_type"];
|
||||
$dashboard_heading_text_color = $row["dashboard_heading_text_color"];
|
||||
$dashboard_number_text_color = $row["dashboard_number_text_color"];
|
||||
$dashboard_column_span = $row["dashboard_column_span"];
|
||||
@@ -404,6 +408,30 @@
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
||||
echo $text['label-dashboard_chart_type']."\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' style='position: relative;' align='left'>\n";
|
||||
echo " <select name='dashboard_chart_type' class='formfld'>\n";
|
||||
if ($dashboard_chart_type == "doughnut") {
|
||||
echo " <option value='doughnut' selected='selected'>".$text['label-doughnut']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='doughnut'>".$text['label-doughnut']."</option>\n";
|
||||
}
|
||||
if ($dashboard_chart_type == "none") {
|
||||
echo " <option value='none' selected='selected'>".$text['label-none']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='none'>".$text['label-none']."</option>\n";
|
||||
}
|
||||
echo " </select>\n";
|
||||
echo "<br />\n";
|
||||
echo $text['description-dashboard_chart_type']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
||||
echo $text['label-dashboard_heading_text_color']."\n";
|
||||
@@ -543,4 +571,4 @@
|
||||
//include the footer
|
||||
require_once "resources/footer.php";
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user