KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

CCS not load to Table #661

Open Robert Gezela opened this topic on on Feb 8, 2019 - 4 comments

Robert Gezela commented on Feb 8, 2019

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

KoolReport commented on Feb 9, 2019

Could you please move your report out of koolreport folder. Please create another folder like myreport in the same level with koolreport folder and put your report there.

KoolReport commented on Feb 9, 2019

By the way, please let me know your version of PHP and your OS.

Robert Gezela commented on Feb 9, 2019

Hello, Pages are on hosting server, PHP version is 5.6,IdeaWebServer/0.83.183. I have moved to new folder Reports but still the same Report is available http://euforiabiegacza-sport.pl/reports/index.php

Robert Gezela commented on Feb 9, 2019

See printscreen from debug mode

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
None yet

None