Exemplo n.º 1
0
            ?>
"><?php 
            echo JText::_("GURU_VIEW_ORDERS") . " (" . $nr_orders . ")";
            ?>
</a>
                        <?php 
        } else {
        }
        ?>
                        </td>
                        <td class="g_cell_2 hidden-phone"> 
                            <?php 
        $user = JFactory::getUser();
        $user_id = $user->id;
        $completed_progress = $guruModelguruOrder->courseCompleted($user_id, $id);
        $date_completed = $guruModelguruOrder->dateCourseCompleted($user_id, $id);
        $date_completed = date("" . $format_date . "", strtotime($date_completed));
        $style_color = "";
        if ($completed_progress == true) {
            if ($deviceType != "phone") {
                $var_lang = JText::_('GURU_COMPLETED');
                $lesson_module_progress = $var_lang . " " . "(" . $date_completed . ")";
                $style_color = 'style="color:#669900"';
            } else {
                $var_lang = JText::_('GURU_COMPLETED');
                $lesson_module_progress = $var_lang;
            }
        } else {
            $lesson_module_progress = $guruModelguruOrder->getLastViewedLessandMod($user_id, $id);
        }
        if (isset($lesson_module_progress)) {