Ejemplo n.º 1
0
</html>
<?php 
// retrieve complete processing time
list($usec, $sec) = explode(' ', microtime());
header('X-phpwcms-Page-Processed-In: ' . number_format(1000 * ($usec + $sec - $phpwcms_rendering_start), 3) . ' ms');
$BE['HTML'] = ob_get_clean();
// Load ToolTip JS only when necessary
if (strpos($BE['HTML'], 'Tip(')) {
    $BE['BODY_CLOSE']['wz_tooltip.js'] = getJavaScriptSourceLink('include/inc_js/wz_tooltip.js', '');
}
//	parse for backend languages
backend_language_parser();
//	replace special backend sections -> good for additional code like custom JavaScript, CSS and so on
//	<!-- phpwcms BODY_CLOSE -->
//	<!-- phpwcms BODY_OPEN -->
//	<!-- phpwcms HEADER -->
// special body onload JavaScript
if ($body_onload) {
    $BE['HTML'] = str_replace('<body>', '<body ' . $body_onload . '>', $BE['HTML']);
}
$BE['HEADER'][] = '  <!--[if lte IE 7]><style type="text/css">body{behavior:url("' . TEMPLATE_PATH . 'inc_css/specific/csshover3.htc");}</style><![endif]-->';
// html head section
$BE['HTML'] = str_replace('<!-- phpwcms HEADER -->', implode(LF, $BE['HEADER']), $BE['HTML']);
// body open area
$BE['HTML'] = str_replace('<!-- phpwcms BODY_OPEN -->', implode(LF, $BE['BODY_OPEN']), $BE['HTML']);
// body close area
$BE['HTML'] = str_replace('<!-- phpwcms BODY_CLOSE -->', implode(LF, $BE['BODY_CLOSE']), $BE['HTML']);
// Show global system status message
$BE['HTML'] = str_replace('{STATUS_MESSAGE}', show_status_message(true), $BE['HTML']);
// return all
echo $BE['HTML'];
Ejemplo n.º 2
0
if ($page == "correction.php") {
    $navigation = build_navigation(array(array('name' => $blended->name, 'link' => "../../mod/blended/view.php?a={$blended->id}", 'type' => 'misc'), array('name' => $strcorrectionpage, 'link' => "../../mod/blended/correction.php?a={$blended->id}", 'type' => 'misc'), array('name' => $strjobstatuspage, 'link' => null, 'type' => 'misc')));
    print_header("{$course->shortname}: {$blended->name}: {$strjobstatuspage}", "{$course->shortname}", $navigation, "", "", true, update_module_button($cm->id, $course->id, $blended->name, $strjobstatuspage), navmenu($course, $cm));
}
print_spacer(20);
print_box(format_text($strtable), 'generalbox', 'intro');
print_spacer(20);
// Print the main part of the page ----------------------------------
print_spacer(20);
if ($page == "scan.php") {
    print_heading(format_string(get_string('scan', 'blended')));
}
if ($page == "correction.php") {
    print_heading(format_string(get_string('correction', 'blended')));
}
print_box(format_text(get_string('jobstatusdesc', 'blended')), 'generalbox', 'intro');
print_spacer(20);
$message = get_status_message($jobid);
show_status_message($jobid, $message, $context, $blended, $page);
if ($page == "scan.php") {
    $volver = "{$CFG->wwwroot}/mod/blended/scan.php?a={$a}";
}
if ($page == "correction.php") {
    $volver = "{$CFG->wwwroot}/mod/blended/correction.php?a={$a}";
}
print_spacer(100);
print_continue($volver);
echo "<BR><BR><center>";
helpbutton($page = 'jobstatus', get_string('pagehelp', 'blended'), $module = 'blended', $image = true, $linktext = true, $text = '', $return = false, $imagetext = '');
echo "</center>";
print_footer($course);