// but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with VPL for Moodle. If not, see <http://www.gnu.org/licenses/>. /** * Show a graph that represent for an antivity the time dedicated by student * * @package mod_vpl * @copyright 2012 Juan Carlos Rodríguez-del-Pino * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @author Juan Carlos Rodríguez-del-Pino <*****@*****.**> */ require_once dirname(__FILE__) . '/../../../config.php'; require_once dirname(__FILE__) . '/../locallib.php'; require_once dirname(__FILE__) . '/../vpl.class.php'; require_login(); $id = required_param('id', PARAM_INT); $vpl = new mod_vpl($id); $vpl->prepare_page('views/activityworkinggraph.php', array('id' => $id)); $course = $vpl->get_course(); $instance = $vpl->get_instance(); $vpl->require_capability(VPL_GRADE_CAPABILITY); //Print header $vpl->print_header_simple(); echo '<div class="clearer"> </div>'; echo '<div style="text-align: center">'; echo '<img src="' . vpl_rel_url('workinggraph.php', 'id', $id, 'userid', -1) . '" alt="Working periods" />'; echo '</div>'; $vpl->print_footer_simple();
// GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with VPL for Moodle. If not, see <http://www.gnu.org/licenses/>. /** * Show two files diff * * @package mod_vpl * @copyright 2012 Juan Carlos Rodríguez-del-Pino * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @author Juan Carlos Rodríguez-del-Pino <*****@*****.**> */ require_once dirname(__FILE__) . '/../../../config.php'; require_once dirname(__FILE__) . '/../locallib.php'; require_once dirname(__FILE__) . '/../vpl.class.php'; require_once dirname(__FILE__) . '/diff.class.php'; require_login(); $id = required_param('id', PARAM_INT); $vpl = new mod_vpl($id); $vpl->prepare_page('similarity/diff.php', array('id' => $id)); //Print header $PAGE->requires->css(new moodle_url('/mod/vpl/css/sh.css')); $vpl->print_header_simple(get_string('diff', VPL)); //$vpl->print_view_tabs(basename(__FILE__)); //Get left file vpl_diff::vpl_get_similfile('1', $vpl, $HTMLheader1, $filename1, $data1); //Get right file vpl_diff::vpl_get_similfile('2', $vpl, $HTMLheader2, $filename2, $data2); //Show files vpl_diff::show($filename1, $data1, $HTMLheader1, $filename2, $data2, $HTMLheader2); $vpl->print_footer();