<?php

require_once "config.php";
$ClassDbObj = new ClassDb();
$csvFile = 'csvfile/data.csv';
$csv = $ClassDbObj->readCSV($csvFile);
$chart_name = "5";
$chart_type = "column";
$chart_title = "Chart";
$txt_type = "5";
if (isset($_REQUEST['chart_name'])) {
    $chart_name = $_REQUEST['chart_name'];
}
if (isset($_REQUEST['chart_name'])) {
    $chart_type = $_REQUEST['chart_type'];
}
if (isset($_REQUEST['txt_type'])) {
    if ($_REQUEST['txt_type'] != "") {
        $txt_type = $_REQUEST['txt_type'];
    }
}
$privacyArray = $ClassDbObj->getFieldArray($csv, $chart_name);
//$newArray=$ClassDbObj->getFieldArray($csv,$chart_name);
$vals = explode('_', $chart_name);
if (count($vals) == 1) {
    $privacyArray = $ClassDbObj->getFieldArray($csv, $vals[0]);
}
if (count($vals) == 1) {
    $newArray = $ClassDbObj->getFieldArray($csv, $vals[0]);
}
if (count($vals) == 2) {
Esempio n. 2
0
<?php

include_once "config.php";
$ClassDbObj = new ClassDb();
$csvFile = 'csvfile/data.csv';
$csv = $ClassDbObj->readCSV($csvFile);
//echo '<pre>';
//print_r($csv);
//echo '</pre>';die;
$num = count($csv);
//print_r(array_count_values($num));
?>
 <style>
 #networks
 {
 	background-color:rgb(26, 188, 156);
	
 }
 .menu #networks a:hover
 {
 	color:white !important;
 }
 </style>
   <div class="row">
   <div class="col-md-12">
   <div class="col-md-6">
   
   </div>
   <div class="col-md-6">
   		<div class="div_right">