if ( is_array( $this -> task['users'] ) ): foreach ( $this -> task['users'] as $user_tmp_id ):?>
$user_tmp = \factory\Users::user_details( $user_tmp_id );?>
= $user_tmp['name'][0] . $user_tmp['surname'][0];?>
= $user_tmp['name'] . $user_tmp['surname'];?>
endforeach; endif;?>
if ( $this -> task['text'] ):?>
= htmlspecialchars_decode( $this -> task['text'] );?>
endif;?>
Załączniki
if ( is_array( $this -> task_attachments ) and count( $this -> task_attachments ) ):?>
foreach ( $this -> task_attachments as $attachment ):?>
-
= htmlspecialchars( $attachment['title_effective'] );?>
(= $attachment['size_human'];?>)
endforeach;?>
else:?>
- Brak załączników.
endif;?>
Status
Priorytet
Projekt
Termin
if ( $this -> task['date_start'] ):?>
= $this -> task['date_start'];?>
endif;?>
if ( $this -> task['date_end'] ):?>
= $this -> task['date_end'];?>
endif;?>
Klient
if ( $this -> task['client_id'] ):?>
= \factory\Crm::get_client_name( $this -> task['client_id'] );?>
endif;?>
foreach ( $this -> task_works as $task_work ):?>
endforeach;?>
Komentarze
foreach ( $this -> task['comments'] as $comment ):?>-
= \factory\Users::user_details( $comment['user_id'] )['name'] . ' ' . \factory\Users::user_details( $comment['user_id'] )['surname'];?>
= date( 'Y/m/d H:i', strtotime( $comment['date_add'] ) );?>
= nl2br( $comment['text'] );?>
endforeach;?>