Beispiel #1
0
 function getChart($REQUEST)
 {
     $grid = new grid(true);
     $grid->setTable("grafik");
     $grid->setGroupBy("tahun");
     $grid->addField(array("field" => "tahun", "name" => "tahun"));
     $grid->addField(array("field" => "SUM(page_view)", "name" => "page_view"));
     $grid->addField(array("field" => "SUM(page_visit)", "name" => "page_visit"));
     return $grid->doRead($REQUEST);
 }