Exemplo n.º 1
0
        <td><strong><?php 
echo JText::_('GURU_PROGRAM_DETAILS_TIME_MINUTES');
?>
</strong></td>
        <td><strong><?php 
echo JText::_('GURU_PROGRAM_DETAILS_STATUS');
?>
</strong></td>
        </tr>
<?php 
if ($program_bought == 0) {
    // program bought = 0 = trial - begin
    ?>
     <?php 
    foreach ($pdays as $days) {
        $total_for_a_day = guruModelguruProgram::getsum_points_and_time_for_a_day1($days->id);
        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, $days->id);
        if ($day_status == 2) {