Hello, I have checked forum but still not succeed to applied CCS to table correctly. I have 3 files index.php, SalesByCustomer.php and SalesByCustomer.view.php in folder \koolreport\ which exist in root folder. I want to run this report:Report link But table format doesn't work. I have added use \koolreport\clients\Bootstrap; to SalesByCustomer.php
SalesByCustomer.php
<?php
require_once "../koolreport/autoload.php";
use \koolreport\processes\Group;
use \koolreport\processes\Sort;
use \koolreport\processes\Limit;
class SalesByCustomer extends \koolreport\KoolReport
{
use \koolreport\clients\Bootstrap;
public function settings()
{
return array(
"dataSources"=>array(
"sales"=>array(
"connectionString"=>"mysql:host=az-serwer1694423.online.pro;dbname=00007146_pomiarczasu",
"username"=>"00007146_pomiarczasu",
"password"=>"qpidlo1ARM@",
"charset"=>"utf8"
)
)
);
}
public function setup()
{
$this->src('sales')
->query("Select NrStartowy,Miejsce, Uczestnik,Płec,Rokur, Katwiekowa,Miasto,GminaPrusice,PowiatTrzebnicki,Klub,I,II,III,IV,V,VI,VII,VIII,IX,X,Bonus1,Total FROM Klasyfikacja ")
->pipe(new Sort(array(
"Total"=>"desc"
)))
->pipe($this->dataStore('sales_by_customer'));
}
}
SalesByCustomer.view.php
<?php
use \koolreport\widgets\koolphp\Table;
use \koolreport\widgets\google\BarChart;
?>
<div class="text-center">
<h1>Report</h1>
<h4>Test</h4>
</div>
<hr/>
<?php
Table::create(array(
"dataStore"=>$this->dataStore('sales_by_customer'),
"cssClass"=>array(
"table"=>"table table-hover table-bordered"
)
));
?>
Could you be so kind help me? Best Regards Robert