</td> <?php } ?> </tbody> </table> </form> <?php break; case 1: default: echo "<h1>Objective Aggregate Evaluation Report </h1>\n"; if (has_success()) { echo display_success(); } if (has_notice()) { echo display_notice(); } if (has_error()) { echo display_error(); } $HEAD[] = "<script type=\"text/javascript\" src=\"" . ENTRADA_URL . "/javascript/objectives.js\"></script>"; $HEAD[] = "<script type=\"text/javascript\" src=\"" . ENTRADA_URL . "/javascript/objectives_evaluation_report.js\"></script>"; $HEAD[] = "<script type=\"text/javascript\"> var SITE_URL = '" . ENTRADA_URL . "'; </script>"; ?> <script type="text/javascript"> jQuery (function($) { jQuery('.datepicker').datepicker({ dateFormat: 'yy-mm-dd', minDate: '05-01-01', maxDate: '<?php
// Display Content switch ($STEP) { case 2: if ($SUCCESS) { echo display_success(); } if ($NOTICE) { echo display_notice(); } if ($ERROR) { echo display_error(); } break; case 1: default: if (has_error() || has_notice()) { echo display_status_messages(); } require_once "javascript/evaluations.js.php"; $HEAD[] = "<script type=\"text/javascript\" src=\"" . ENTRADA_URL . "/javascript/objectives.js\"></script>"; $HEAD[] = "<script type=\"text/javascript\"> var SITE_URL = '" . ENTRADA_URL . "'; </script>"; if (!in_array($PROCESSED["questiontype_id"], array(2, 4))) { $HEAD[] = "\n <script type=\"text/javascript\">\n jQuery(document).ready(function() {\n modalDescriptorDialog = new Control.Modal(\$('false-link'), {\n position:\t\t'center',\n overlayOpacity:\t0.75,\n closeOnClick:\t'overlay',\n className:\t\t'modal',\n fade:\t\t\ttrue,\n fadeDuration:\t0.30,\n width: 455\n });\n });\n\n function openDescriptorDialog(response_number, erdescriptor_id) {\n new Ajax.Request('" . ENTRADA_URL . "/admin/evaluations/questions?section=api-descriptors&response_number='+response_number+'&organisation_id=" . $ENTRADA_USER->getActiveOrganisation() . "&erdescriptor_id='+erdescriptor_id, {\n method: 'get',\n onComplete: function(transport) {\n loaded = [];\n modalDescriptorDialog.container.update(transport.responseText);\n modalDescriptorDialog.open();\n }\n });\n }\n </script>"; } if ($PROCESSED["questiontype_id"] == 3) { $HEAD[] = "<script type=\"text/javascript\" src=\"" . ENTRADA_URL . "/javascript/objectives_evaluation_rubric.js\"></script>"; $HEAD[] = "<script type=\"text/javascript\">\n\t\t\t\tvar modalObjectiveDialog;\n\t\t\t\tvar ajax_url = '';\n\n\t\t\t\tjQuery(document).ready(function() {\n\t\t\t\t\tmodalObjectiveDialog = new Control.Modal(\$('false-link'), {\n\t\t\t\t\t\tposition:\t\t'center',\n\t\t\t\t\t\toverlayOpacity:\t0.75,\n\t\t\t\t\t\tcloseOnClick:\t'overlay',\n\t\t\t\t\t\tclassName:\t\t'modal',\n\t\t\t\t\t\tfade:\t\t\ttrue,\n\t\t\t\t\t\tfadeDuration:\t0.30,\n\t\t\t\t\t\twidth: 755,\n\t\t\t\t\t\tbeforeOpen: function () {\n\t\t\t\t\t\t\tjQuery('#mapped_objectives').width('55%');\n\t\t\t\t\t\t\tjQuery('#default_objective_notice').hide();\n\t\t\t\t\t\t\tjQuery('#alternate_objective_notice').show();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t});\n\n\t\t\t\tfunction openObjectiveDialog (rownum) {\n\t\t\t\t\tvar url = '" . ENTRADA_URL . "/api/evaluations-objectives-list.api.php?qrow='+rownum+'&ids='+\$('objective_ids_string_'+rownum).value;\n\t\t\t\t\tif (url && (url != ajax_url)) {\n\t\t\t\t\t\tajax_url = url;\n\t\t\t\t\t\tnew Ajax.Request(ajax_url, {\n\t\t\t\t\t\t\tmethod: 'get',\n\t\t\t\t\t\t\tonComplete: function(transport) {\n\t\t\t\t\t\t\t\tloaded = [];\n\t\t\t\t\t\t\t\tmodalObjectiveDialog.container.update(transport.responseText);\n\t\t\t\t\t\t\t\tmodalObjectiveDialog.open();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmodalObjectiveDialog.open();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t</script>"; } else { $HEAD[] = "<script type=\"text/javascript\" src=\"" . ENTRADA_URL . "/javascript/objectives_evaluation_question.js\"></script>"; } ?>
/** * routine to display standard status messages, Error, Notice, and Success * @param bool $fade true if the messages should fade out */ function display_status_messages($fade = false) { echo "<div class=\"status_messages\">"; if (has_error()) { if ($fade) { fade_element("out", "display-error-box"); } echo display_error(); } if (has_success()) { if ($fade) { fade_element("out", "display-success-box"); } echo display_success(); } if (has_notice()) { if ($fade) { fade_element("out", "display-notice-box"); } echo display_notice(); } echo "</div>"; }