Exemplo n.º 1
0
">
                                <img style="border:none;" src="<?php 
            echo JUri::base() . "components/com_guru/images/back.png";
            ?>
" alt="<?php 
            echo JText::_("GURU_PREVIOUS_LESSON");
            ?>
" title="<?php 
            echo JText::_("GURU_PREVIOUS_LESSON");
            ?>
"/>
                            </a>
                    <?php 
        } else {
            $prev_module = $guruModelguruTask->getPrevModule($step->pid, $step->prev_module);
            $cid_array = $guruModelguruTask->getAllSteps($prev_module);
            $cid = "0";
            if (isset($cid_array) && is_array($cid_array) && count($cid_array) > 0) {
                $cid = $cid_array[count($cid_array) - 1]["id"];
            }
            if (@$prev_module != 0) {
                ?>
                                <a href="<?php 
                echo JRoute::_("index.php?option=com_guru&view=guruTasks&catid=" . intval($catid) . "&task=view&module=" . $prev_module . "&cid=" . $cid . $tmpl);
                ?>
">
                                    <img style="border:none;" src="<?php 
                echo JUri::base() . "components/com_guru/images/back.png";
                ?>
" alt="<?php 
                echo JText::_("GURU_PREVIOUS_LESSON");