GlisWeb framework
|
◆ $ct [3/3]
Valore iniziale:
= mysqlQuery( 'SELECT * FROM progetti_produzione_view WHERE attivo = 1 OR se_commessa = 1 ORDER BY timestamp_aggiornamento ASC' )
OK! grafico delle ore pianificate per settimana $ct['contents']['chartjs']['bar']['orePianificate']['data'] = array( '01/2019' => array( '# ore' => array( 'value' => 24, 'bgColor' => 'rgba( 128, 128, 128, 0.5 )', 'bdColor' => 'rgba( 96, 96, 96, 0.5 )' ), '# task' => array( 'value' => 36, 'bgColor' => 'rgba( 164, 164, 164, 0.5 )', 'bdColor' => 'rgba( 96, 96, 96, 0.5 )' ) ), '02/2019' => array( '# ore' => array( 'value' => 48, 'bgColor' => 'rgba( 128, 128, 128, 0.5 )', 'bdColor' => 'rgba( 96, 96, 96, 0.5 )' ), '# task' => array( 'value' => 36, 'bgColor' => 'rgba( 164, 164, 164, 0.5 )', 'bdColor' => 'rgba( 96, 96, 96, 0.5 )' ) ) );. foreach( $ct['contents']['chartjs']['bar']['orePianificate']['data'] as $label => $dataset ) { foreach( $dataset as $dsName => $dsData ) { $ct['contents']['chartjs']['bar']['orePianificate']['dataset'][ $dsName ][ $label ] = $dsData; } } Definizione alla linea 68 del file _progetti.dashboard.php. |