User Tools

Site Tools


tech2018:s4:get_activity

Get_activity

http://your.domain.com/common/activities/get_activity/2

##Verify Adharsh The get_activities is filling the array $activity which is giving huge flexibility in the view rendering.

$reclamo = "";
$pending = "";
if($activity->reclamo == 't') $reclamo ="<i title='Reclamo' class='fa fa-bell-o red'></i> ";                                                                                    if($activity->thread_status == 'PENDING') $pending ="<i class='fa fa-hourglass-start'></i> ";
"<td>".$reclamo."".$pending."<a href='$link'>$activity->activity_title</a> <small style='font-size:70%'>($activity->role)</small> $thread <br><small>Creata da $activity->company_name<br>$activity->first_name $activity->last_name  il ".date('d-m-Y H:i',strtotime(str_replace('/', '-',$activity->created)))."</small><br><small>Assegnata a $activity->duty_company</small>$deadline</td>";

Back to: dev forms

tech2018/s4/get_activity.1528374879.txt.gz · Last modified: 2018/06/07 12:34 by Gianluca Pelliccioli