Exemplo n.º 1
0
   $new_task_array = substr($new_task_array, 0, strlen($new_task_array) - 1);
   $total_for_a_day = guruModelguruProgram::getsum_points_and_time_for_a_day2($new_task_array);
   if ($total_for_a_day[0]->s_points) {
       $total_points_for_a_day = $total_for_a_day[0]->s_points;
   } else {
       $total_points_for_a_day = 0;
   }
   if ($total_for_a_day[0]->s_time) {
       $total_time_for_a_day = $total_for_a_day[0]->s_time;
   } else {
       $total_time_for_a_day = 0;
   }
   $status_color = "white";
   // we find the DAY STATUS for the days and we change the COLOR accordingly
   //if($k<$program->freetrial) {
   $day_status = guruModelguruProgram::find_day_status($my->id, $program->id, $day_id);
   if ($day_status == 2) {
       $status_color = "green";
   }
   if ($day_status == 1) {
       $status_color = "yellow";
   }
   // }
   ?>
 <tr bgcolor="<?php 
   if ($k % 2 == 0) {
       echo "#f7f7f7";
   } else {
       echo "#eeeeee";
   }
   ?>