Beispiel #1
0
print_grade_page_head($course->id, 'report', 'grader', null, false, $buttons, false);
if (ob_get_level() == 0) {
    ob_start();
}
echo '				
	<center>
		<div><img src="' . $CFG->wwwroot . EVXLOGOROOT . '" width="230" alt="EvalCOMIX"/></div><br>
		<div><input type="button" style="color:#333333" value="' . get_string('assesssection', 'block_evalcomix') . '" onclick="location.href=\'' . $CFG->wwwroot . '/blocks/evalcomix/assessment/index.php?id=' . $courseid . '\'"/></div><br>
	</center>
';
echo "\r\t<noscript>\r\t\t<div style='color: #f00;'>" . get_string('alertjavascript', 'block_evalcomix') . "</div>\r\t</noscript>\n";
if (has_capability('moodle/block:edit', $context, $USER->id)) {
    //if the login user is an editing teacher
    $editing = true;
} else {
    $editing = false;
}
echo '
	<script type="text/javascript">
		function urledit(u, nombre, edit){
			win2 = window.open(u, nombre, "menubar=0,location=0,scrollbars,resizable,width=780,height=500");
			checkChildedit(edit);
		}
		function checkChildedit(edit) {
			if (win2.closed) {
			 window.location.replace("' . $CFG->wwwroot . '/blocks/evalcomix/tool/index.php?id=' . $courseid . '&edit=" + edit);
		
				/*window.location.href = "' . $CFG->wwwroot . '/blocks/evalcomix/tool/index.php?id=' . $courseid . '&edit=" + edit;*/
		}
		else setTimeout("checkChildedit(\'"+edit+"\')",1);
		}