13 $ct[
'page'][
'contents'][
'metros'] = array(
17 'produzione' => array(
18 'label' =>
'produzione' 21 'label' =>
'i tuoi focus per ' . ( ( isset(
$_REQUEST[
'nw'] ) ) ?
'la settimana prossima' :
'questa settimana' )
24 'label' =>
'la tua settimana' 30 $ct[
'page'][
'contents'][
'metro'][
'general'][] = array(
31 'url' =>
$cf[
'contents'][
'pages'][
'attivita_gestione'][
'url'][
$cf[
'localization'][
'language'][
'ietf'] ],
34 'title' =>
'inserimento ore lavoro',
35 'text' =>
'registra le ore per le tue attività in corso' 44 $cf[
'mysql'][
'connection'],
45 'SELECT attivita_view.* FROM attivita_view WHERE ore > 0 AND id_anagrafica = ? AND data BETWEEN ? AND ? '.
46 'ORDER BY data ASC, id ASC ',
48 array(
's' =>
$_SESSION[
'account'][
'id_anagrafica'] ),
49 array(
's' => date(
'Y-m-d', strtotime(
'monday this week' ) ) ),
50 array(
's' => date(
'Y-m-d', strtotime(
'friday this week' ) ) )
55 foreach( $diario as
$d ) {
56 $ct[
'etc'][
'diario'][ strftime(
'%A', strtotime( $d[
'data'] ) ) ][
'righe'][] =
$d;
57 if( ! isset(
$ct[
'etc'][
'diario'][ strftime(
'%A', strtotime( $d[
'data'] ) ) ][
'totale'] ) ) {
58 $ct[
'etc'][
'diario'][ strftime(
'%A', strtotime( $d[
'data'] ) ) ][
'totale'] = $d[
'ore'];
60 $ct[
'etc'][
'diario'][ strftime(
'%A', strtotime( $d[
'data'] ) ) ][
'totale'] += $d[
'ore'];
66 $ct[
'page'][
'contents'][
'metro'][
'diario'][] = array(
67 'include' =>
'inc/attivita.riepilogo.html' 75 if( isset(
$_SESSION[
'account'][
'se_cliente'] ) && ! empty(
$_SESSION[
'account'][
'se_cliente'] ) ) {
76 $ct[
'page'][
'contents'][
'metro'][
'general'][] = array(
77 'url' =>
$cf[
'contents'][
'pages'][
'task_gestione'][
'url'][
$cf[
'localization'][
'language'][
'ietf'] ],
80 'title' =>
'inserisci una richiesta',
81 'text' =>
'verrà gestita e analizzata entro 24/48 ore lavorative' 85 'SELECT count( id ) FROM task WHERE id_responsabile = ? AND timestamp_completamento IS NULL',
86 array( array(
's' =>
$_SESSION[
'account'][
'id_anagrafica'] ) )
88 $ct[
'page'][
'contents'][
'metro'][
'general'][] = array(
89 'url' =>
$cf[
'contents'][
'pages'][
'task_gestione'][
'url'][
$cf[
'localization'][
'language'][
'ietf'] ],
92 'title' =>
'inserisci nuove cose da fare',
93 'text' =>
'crea rapidamente un nuovo task' 96 $ct[
'page'][
'contents'][
'metro'][
'general'][] = array(
97 'url' =>
$cf[
'contents'][
'pages'][
'task'][
'url'][
$cf[
'localization'][
'language'][
'ietf'] ],
100 'title' =>
'hai ' .
$n .
' cose da fare',
101 'text' =>
'gestisci i task assegnati a te' 119 $cf[
'mysql'][
'connection'],
120 'SELECT task_view.* FROM task_view WHERE id_responsabile = ? AND ( anno_previsto < ? OR ( anno_previsto = ? AND settimana_prevista <= ? ) ) AND timestamp_completamento IS NULL '.
121 'ORDER BY anno_previsto ASC, settimana_prevista ASC ',
123 array(
's' =>
$_SESSION[
'account'][
'id_anagrafica'] ),
124 array(
's' => date(
'Y', strtotime(
'monday '.$wPrefix.
' week' ) ) ),
125 array(
's' => date(
'Y', strtotime(
'monday '.$wPrefix.
' week' ) ) ),
126 array(
's' => date(
'W', strtotime(
'monday '.$wPrefix.
' week' ) ) )
132 $cf[
'mysql'][
'connection'],
133 'SELECT coalesce( sum( attivita_view.ore ) ) AS t FROM attivita_view INNER JOIN task_view ON task_view.id = attivita_view.id_task WHERE attivita_view.data >= ? AND task_view.id_responsabile = ? AND task_view.anno_previsto <= ? AND task_view.settimana_prevista <= ?',
135 array(
's' => date(
'Y-m-d', strtotime(
'monday '.$wPrefix.
' week' ) ) ),
136 array(
's' =>
$_SESSION[
'account'][
'id_anagrafica'] ),
137 array(
's' => date(
'Y', strtotime(
'monday '.$wPrefix.
' week' ) ) ),
138 array(
's' => date(
'W', strtotime(
'monday '.$wPrefix.
' week' ) ) )
144 $cf[
'mysql'][
'connection'],
145 'SELECT coalesce( sum( attivita_view.ore ) ) AS t FROM attivita_view '.
146 'LEFT JOIN task_view ON task_view.id = attivita_view.id_task '.
147 'WHERE attivita_view.data >= ? AND attivita_view.id_anagrafica = ? AND ( '.
148 '( attivita_view.id_task IS NULL ) OR ( '.
149 'task_view.id_responsabile = ? AND ( task_view.anno_previsto > ? OR ( task_view.anno_previsto = ? AND task_view.settimana_prevista > ? ) )'.
152 array(
's' => date(
'Y-m-d', strtotime(
'monday '.$wPrefix.
' week' ) ) ),
153 array(
's' =>
$_SESSION[
'account'][
'id_anagrafica'] ),
154 array(
's' =>
$_SESSION[
'account'][
'id_anagrafica'] ),
155 array(
's' => date(
'Y', strtotime(
'monday '.$wPrefix.
' week' ) ) ),
156 array(
's' => date(
'Y', strtotime(
'monday '.$wPrefix.
' week' ) ) ),
157 array(
's' => date(
'W', strtotime(
'monday '.$wPrefix.
' week' ) ) )
163 $cf[
'mysql'][
'connection'],
164 'SELECT sum( coalesce( task_view.ore_residue, 0 ) ) AS t FROM task_view WHERE task_view.id_responsabile = ? '.
165 'AND task_view.timestamp_completamento IS NULL '.
166 'AND ( task_view.anno_previsto < ? OR ( task_view.anno_previsto = ? AND task_view.settimana_prevista <= ? ) )',
168 array(
's' =>
$_SESSION[
'account'][
'id_anagrafica'] ),
169 array(
's' => date(
'Y', strtotime(
'monday '.$wPrefix.
' week' ) ) ),
170 array(
's' => date(
'Y', strtotime(
'monday '.$wPrefix.
' week' ) ) ),
171 array(
's' => date(
'W', strtotime(
'monday '.$wPrefix.
' week' ) ) )
176 $ct[
'contents'][
'chartjs'][
'doughnut'][
'avanzamento'] = array(
178 'ore da fare' => array(
180 'value' =>
$ct[
'etc'][
'ore'][
'residue'],
181 'bgColor' =>
'rgba( 96, 96, 96, 0.5 )',
182 'bdColor' =>
'rgba( 96, 96, 96, 0.5 )' 185 'ore fatte' => array(
187 'value' =>
$ct[
'etc'][
'ore'][
'fatte'],
188 'bgColor' =>
'rgba( 160, 160, 160, 0.5 )',
189 'bdColor' =>
'rgba( 96, 96, 96, 0.5 )' 192 'altre attività' => array(
194 'value' =>
$ct[
'etc'][
'ore'][
'extra'],
195 'bgColor' =>
'rgba( 16, 16, 16, 0.5 )',
196 'bdColor' =>
'rgba( 96, 96, 96, 0.5 )' 202 'gridLines' => array(
'display' =>
false )
212 foreach(
$ct[
'contents'][
'chartjs'][
'doughnut'][
'avanzamento'][
'data'] as $label => $dataset ) {
213 foreach( $dataset as $dsName => $dsData ) {
214 $ct[
'contents'][
'chartjs'][
'doughnut'][
'avanzamento'][
'dataset'][ $dsName ][
'data'][ $label ] = $dsData;
218 $ct[
'contents'][
'chartjs'][
'doughnut'][
'avanzamento'][
'options'] = json_encode(
$ct[
'contents'][
'chartjs'][
'doughnut'][
'avanzamento'][
'options'],
true );
222 $ct[
'page'][
'contents'][
'metro'][
'focus'][] = array(
223 'include' =>
'inc/progetti.focus.html'
if(!empty($_REQUEST['id'])) $d
$cf['ricerca']['template']
if(isset( $_REQUEST['amazonCheckoutSessionId'])) $_SESSION['carrello']
$ct['page']['contents']['metros']
$_REQUEST['__view__'][ $ct['view']['id']]['__restrict__']['id_progetto']['EQ']