function _stat_wd(&$PDOdb, $id_ws, $tDeb, $tFin) { $ws = new TWorkstation(); $ws->load($PDOdb, $id_ws); $TData = _get_data_ws($PDOdb, $id_ws, $tDeb, $tFin, $ws->nb_ressource); ?> <table class="border" style="margin-top:20px;width:100%;"> <tr> <td><?php echo $ws->getNomUrl(1) . ' du ' . date('d/m/Y', $tDeb) . ' au ' . date('d/m/Y', $tFin); ?> </td> </tr> <tr> <td> <div id="stat-ws-<?php echo $id_ws; ?> "></div> <?php $d = new TReport_dashboard(); $d->format = 'area'; $d->getChart('stat-ws-' . $id_ws, false, '', $TData); ?> </td> </tr> </table> <?php }
function _stat_wd(&$PDOdb, $id_ws, $tDeb, $tFin) { $ws = new TWorkstation(); $ws->load($PDOdb, $id_ws); $TData = _get_data_ws($PDOdb, $id_ws, $tDeb, $tFin, $ws->nb_ressource); // var_dump($TData); ?> <table class="border" style="margin-top:20px;width:100%;"> <tr> <td><?php echo $ws->getNomUrl(1) . ' du ' . date('d/m/Y', $tDeb) . ' au ' . date('d/m/Y', $tFin); ?> </td> </tr> <tr> <td> <?php $l = new TListviewTBS('stat_ws_' . $id_ws); echo $l->renderArray($PDOdb, $TData, array('type' => 'chart', 'chartType' => 'AreaChart')); ?> </td> </tr> </table> <?php }