Example #1
0
$authlib = new authlib();
$authresult = '';
// checking token
$loggedinuserdata = new SimpleXMLElement($authlib->getDetailsByToken($token));
if (strlen($loggedinuserdata->error) > 1) {
    // print_r($loggedinuserdata);
    //$headerStr = $loggedinuserdata->name;
    header("Location: ../index.php");
    exit;
}
// getting form definition
$titleStr = '';
$enumlib = new EnumLib();
$formdef = simplexml_load_string($enumlib->getExamInstanceQuestionsByID($formid));
$titleStr = $formdef->overview->data->instance->name;
$scaleXML = simplexml_load_string($enumlib->getCriteriaScaleItems($formdef->overview->data->instance->scale_id));
$formtable = "<table style='width:100%' id='assessment_form_table'><tr style='background-color:#F3F3F3;'><th style='width:20%'>Assessment item</th><th colspan='{$scaleXML->count()}' style='width:40%'>Quality of Performance</th><th>Comments</th></tr>";
$count = 1;
$i = 0;
$questionArr = "[";
foreach ($formdef->questiondata->question as $question) {
    switch ($question->type) {
        case '0':
            $formtable .= "<tr id='qrow_{$question->id}' style='background-color:rgba(255, 200, 200, 1)'><td><span >{$count}) {$question->text}</span></td>";
            $i = 0;
            foreach ($scaleXML->item as $item) {
                $formtable .= "<td><input type='radio' name='choice_id_{$question->id}' id='choice_id_{$question->id}_{$i}' value='{$item->value}' data-iconpos='left' data-theme='e' needs_comment='{$item->needs_comment}' onclick='markQuestion({$question->id})'/><label for='choice_id_{$question->id}_{$i}'>{$item->short_description}</label></td>";
                $i++;
            }
            $formtable .= "<td><input type='text' id='comments_id_{$question->id}' onkeyup='validateAssessment()' onblur='submitcomment({$question->id})'></input></td></tr>";
            $questionArr .= "{$question->id},";
Example #2
0
            $modifystr = $session->modifycount > 0 ? "Changed" : "";
            $titlestr .= "'{$modifystr}" . (strlen($modifystr) > 0 && strlen($moderatedstr) > 0 ? ', ' : '') . $moderatedstr . "'";
        }
        $reportTableStr .= "<tr {$titlestr} class='" . ($session->modifycount > 0 || $session->lastmodifiedby > 0 ? 'modified' : "") . " " . ($session->moderatecount > 0 || $session->lastmoderatedby > 0 ? 'moderated' : "") . "'><td><input type='image' src='{$CFG->wwwroot}{$CFG->basedir}/icons/gtk-print-preview.png' BORDER='0' style='vertical-align: text-bottom;' onclick='openExamDetailForSession({$session->id}); return false;'/></td>";
        $reportTableStr .= "<td>{$session->fname} {$session->lname}</td><td>{$session->studentnum}</td>";
        $reportTableStr .= "<td>{$session->datetime}</td>";
        $reportTableStr .= "<td>{$sitedata->code}</td>";
        $reportTableStr .= "<td>{$session->score}/{$session->total}</td>";
        $reportTableStr .= "<td>" . ($session->overall_rating == 1 ? 'S' : 'NS') . "</td>";
        $reportTableStr .= "<td>" . ($session->overall_rating == 1 ? $additional_rating : "n/a") . "</td>";
        $reportTableStr .= "<td>{$session->examiner}</td>";
        $reportTableStr .= "<td><img src=\"{$CFG->serviceURL}?action=showsignatureimage&session_ID={$session->id}&token={$token}\"/></td>";
        $reportTableStr .= "</tr>";
    }
    $reportTableStr .= "</tbody></table><br/></p>";
    $criteriaXML = $enumlib->getCriteriaScaleItems($reportXML->summary->scale_id[0]);
    // print_r($reportXML->summary->scale_id);
}
?>
<html>
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=10"/>
        <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
        <link type="text/css" href="<?php 
print "{$CFG->wwwroot}{$CFG->basedir}";
?>
css/jquery-ui.css" rel="stylesheet" />
        <link rel="stylesheet" type="text/css" href="<?php 
print "{$CFG->wwwroot}{$CFG->basedir}";
?>
Example #3
0
    header("Location: ./login.php");
    exit;
}
$mobiledetect = new Mobile_Detect();
$CFG->site_root = realpath(dirname(__FILE__));
$headerStr = "<div class='header-wrapper' style=''>\n        <div style='position:absolute; left:10px; top:10px'><a href='javascript:window.location.assign(\"{$CFG->wwwroot}{$CFG->basedir}index.php?logout\");' >Log Out</a></div>";
if ($CFG->wwwroot == "https://srm-itd01/") {
    $headerStr .= "DEV: {$CFG->sysname} " . ($CFG->istrainingsite ? ' (TRAINING)' : '') . " </span><br/>";
} else {
    $headerStr .= "PROD: {$CFG->sysname} " . ($CFG->istrainingsite ? ' (TRAINING)' : '') . "</span><br/>";
}
$headerStr .= " <span id='user_feedback' style='width: 80%'>";
$headerStr .= $loggedinuserdata->name . "</span></div>";
// list criteria types here
$instanceData = simplexml_load_string($enumlib->getCriteriaScaleOverview($_REQUEST['id']));
$itemdata = simplexml_load_string($enumlib->getCriteriaScaleItems($_REQUEST['id']));
//print_r($instanceData->item[0]);
$listTableStr = "<table id='itemstbl'><thead><tr><th style='width:50px;'>Reorder</th><th>Edit</th><th>{$stringlib->get_string('assessment_criteria_short_description')}</th>\n    <th>{$stringlib->get_string('assessment_criteria_long_description')}</th>\n        <th>{$stringlib->get_string('assessment_criteria_value')}</th>\n            <th>{$stringlib->get_string('assessment_criteria_needs_comment')}</th>\n    <th>{$stringlib->get_string('assessment_item_list_remove')}</th></tr></thead><tbody>";
foreach ($itemdata->item as $item) {
    $listTableStr .= "<tr class='sortablerow' entryid='{$item->id}'><td class='draghandle'><img src='{$CFG->wwwroot}{$CFG->basedir}/icons/object-flip-vertical.png'/></td>\n        <td class='editimg'>\n        <input type='image' src='{$CFG->wwwroot}{$CFG->basedir}/icons/gtk-edit.png' BORDER='0' style='vertical-align: middle; display:table-cell' onclick='update_item_popup(\"{$item->id}\"); return false;'/></td>\n<td>{$item->short_description}</td>        \n<td>{$item->long_description}</td>        \n<td>{$item->value}</td>         \n    <td>" . ($item->needs_comment == 'true' ? 'Yes' : 'No') . "</td>         \n        ";
    $listTableStr .= "<td class='deletehandle'><input type='image' src='{$CFG->wwwroot}{$CFG->basedir}/icons/gtk-cancel.png' BORDER='0' style='vertical-align: text-bottom;' onclick='delete_item({$item->id}); return false;'/></td></tr>";
}
$listTableStr .= "</tbody></table>";
if ($authlib->user_has_capability($loggedinuserdata->userID, $authlib::roles_view_system_users) || $authlib->user_has_capability($loggedinuserdata->userID, $authlib::roles_edit_system_users) || $authlib->user_has_capability($loggedinuserdata->userID, $authlib::roles_edit_strings)) {
    $menuStr .= "<li class='showing'><label class='tree-toggle nav-header'>{$stringlib->get_string('system_administration_label')}</label>";
    $menuStr .= "<ul class='nav nav-list tree'>" . "<li><div style='vertical-align: middle; display:table;'>" . "<div style='display:table-cell; vertical-align:middle'><input type='image' src='{$CFG->wwwroot}{$CFG->basedir}icons/dialog-question.png' BORDER='0'  onclick='showHelp(\"{$stringlib->get_string('system_users_setup_help')}\"); return false;'/></div>" . "<div style='float:left; display:table-cell; vertical-align:middle'><a href='{$CFG->wwwroot}{$CFG->basedir}admin/users'>{$stringlib->get_string('system_users_setup')}</a></div>" . "</div></li>";
    if ($authlib->user_has_capability($loggedinuserdata->userID, $authlib::roles_view_students)) {
        $menuStr .= "<li><div style='vertical-align: middle; display:table;'>" . "<div style='display:table-cell; vertical-align:middle'><input type='image' src='{$CFG->wwwroot}{$CFG->basedir}icons/dialog-question.png' BORDER='0'  onclick='showHelp(\"{$stringlib->get_string('participants_setup_help')}\"); return false;'/></div>" . "<div style='float:left;display:table-cell; vertical-align:middle'><a href='{$CFG->wwwroot}{$CFG->basedir}students'>{$stringlib->get_string('participants_setup')}</a></div>" . "</div></li>";
    }
    $menuStr .= "<li><div style='vertical-align: middle; display:table;'>" . "<div style='display:table-cell; vertical-align:middle'><input type='image' src='{$CFG->wwwroot}{$CFG->basedir}icons/dialog-question.png' BORDER='0'  onclick='showHelp(\"{$stringlib->get_string('system_criteria_setup_help')}\"); return false;'/></div>" . "<div style='float:left;display:table-cell; vertical-align:middle'>{$stringlib->get_string('string_criteria_types_label')}</div>" . "</div></li>";
    $menuStr .= "<li><div style='vertical-align: middle; display:table;'>" . "<div style='display:table-cell; vertical-align:middle'><input type='image' src='{$CFG->wwwroot}{$CFG->basedir}icons/dialog-question.png' BORDER='0'  onclick='showHelp(\"{$stringlib->get_string('system_labels_help')}\"); return false;'/></div>" . "<div style='float:left;display:table-cell; vertical-align:middle'><a href='{$CFG->wwwroot}{$CFG->basedir}admin/strings'>{$stringlib->get_string('string_management_form_label')}</a></div>" . "</div></li>";
Example #4
0
 /**
  * Gets the report for a participant session as an HTML document.  Used to generate a printable PDF for emailing
  * @global type $CFG
  * @param type $session_ID the session ID this is from
  * @return string an HTML formatted string containing summary information about teh results of an assessment session.
  */
 public function getReportForStudentSessionAsHTML($session_ID, $showOverallResult = false)
 {
     global $CFG;
     $count = 0;
     $enumlib = new EnumLib();
     // get the session information
     $formdef = simplexml_load_string($this->getReportForStudentSession($session_ID));
     $criteriaXML = simplexml_load_string($enumlib->getCriteriaScaleItems($formdef->overview->scaleid));
     // build an HTML string
     // overview section
     $htmlStr = "<html><head>" . $CFG->printableformCSS . "</head><br/>\n    <h3 style='text-align:left'>{$formdef->overview->exam} feedback</h3><p/>\n            <div style=''>\n                <div style='width:100%; position:relative; float:left;'>\n                    <div style='width:170px; position:relative; float:left; font-weight:bold'>Student Name:</div>\n                    <div style='width:170px; position:relative; float:left;'>{$formdef->overview->studentname}</div>\n                </div>\n                 <div style='width:100%; position:relative; float:left; '>\n                    <div style='width:170px; position:relative; float:left; font-weight:bold'>Student Number:</div>\n                    <div style='width:170px; position:relative; float:left;'>{$formdef->overview->studentnum}</div>\n                </div> \n                  <div style='width:100%; position:relative; float:left;'>\n                    <div style='width:170px; position:relative; float:left; font-weight:bold'>Assessment Date:</div>\n                    <div style='width:300px; position:relative; float:left;'>{$formdef->overview->datetime}</div>\n                </div> \n            </div><br/>";
     if ($showOverallResult) {
         $display_overall_rating = $formdef->overview->overall_rating;
         $htmlStr .= "<span style='font-weight:bold'>Overall Rating:</span> {$display_overall_rating}<br/>";
         $display_additional_rating = strval($display_overall_rating) == 'Not satisfactory' ? "n/a" : $formdef->overview->additional_rating;
         $htmlStr .= "<span style='font-weight:bold'>Additional Rating:</span> {$display_additional_rating}<br/><br/>";
     }
     //$htmlStr.="<table ><tr><th class='form'>Assessment Criteria</th><th class='form' colspan='3'>Quality of Performance</th></tr>";
     //        $htmlStr.="<div style='position:relative; float:left; '>
     //                <div style='width:250px; position:relative; float:left' class='header'>Assessment Criteria</div>
     //                <div class='header' style='width:400px; position:relative; float:left; border-bottom: solid 1px #000;'>Performance<br/></div></div>";
     $htmlStr .= "<div style='width:100%; position:relative; float:left; '>\n                <div style='width:250px; position:relative; float:left' class='header'>Assessment Criteria</div>\n                <div class='header' style='width:100px;  position:relative; float:left'>Result</div>\n                <div class='header' style='width:298px;  position:relative; float:left'>Comments</div>\n               </div>";
     // Loop through questions
     foreach ($formdef->questiondata->question as $question) {
         // limit each page of questions to 15
         if ($count % 15 != 0 || $count == 0) {
             switch ($question->type) {
                 case '0':
                     $count++;
                     $htmlStr .= "<div style='width:100%;  position:relative; float:left; padding:0px; height:30px'>\n                <div class='formcell' style='width:250px; position:relative; float:left' >{$count})<span style='font-size:" . (1 - 0.1 * (strlen($question->text) / 30)) . "em'> {$question->text}</span></div>\n                <div class='formcell' style='width:100px; text-align:center; position:relative; float:left;'><strong>";
                     foreach ($criteriaXML->item as $item) {
                         // print('Answer is:'.$question->answer.'<br/>');
                         // print('Comparing to:'.$item->value.'<br/>');
                         if (strval($item->value) == strval($question->answer)) {
                             //    print('Match!');
                             $htmlStr .= $item->short_description;
                         }
                     }
                     //die();
                     //. (($question->answer == '1') ? "S" : "NS") .
                     $htmlStr .= "</strong></div>\n                \n                <div class='formcell' style='width:298px;  position:relative; float:left; font-family: opensansemoji'>" . htmlentities($question->comment) . "</div>\n               </div>";
                     //  $htmlStr.="<tr><th class='form' colspan='4'>{$question->text}</th></tr>";
                     break;
                 case '1':
                     $count++;
                     $htmlStr .= "<div style='width:100%;  position:relative; float:left; padding:0px; height:30px'>\n                <div class='formcell' style='width:250px; position:relative; float:left' >{$count})<span style='font-size:" . (1 - 0.1 * (strlen($question->text) / 30)) . "em'> {$question->text}</span></div>\n                <div class='formcell' style='width:100px; text-align:center; position:relative; float:left;'><strong>";
                     foreach ($criteriaXML->item as $item) {
                         // print('Answer is:'.$question->answer.'<br/>');
                         // print('Comparing to:'.$item->value.'<br/>');
                         if (strval($item->value) == strval($question->answer)) {
                             //    print('Match!');
                             $htmlStr .= $item->short_description;
                         }
                     }
                     //die();
                     //. (($question->answer == '1') ? "S" : "NS") .
                     $htmlStr .= "</strong></div>\n                \n                <div class='formcell' style='width:298px;  position:relative; float:left'>" . htmlentities($question->comment) . "</div>\n               </div>";
                     //$htmlStr.="<tr><td class='form' style=''><span>{$count}) {$question->text}</span></td class='form'><td class='form' style='font-size:1.5em;'>&#x274f;</td class='form'><td class='form' style='font-size:1.5em;'>&#x274f;</td><td class='form'>&nbsp;</td></tr>";
                     //  $htmlStr.="<div><div style='width:200px; position:relative; float:left'>".$count.") ".$question->text."</div><div style='width:50px; position:relative; float:left; font-size:1.5em'>&#x274f;</div><div style='width:50px; font-size:1.5em; position:relative; float:left'>&#x274f;</div><div style='width:398px; position:relative; float:left'>Comments</div></div>";
                     break;
                 default:
                     break;
             }
         } else {
             $count++;
             $htmlStr .= "<pagebreak /><br/>";
             $htmlStr .= "<div style='position:relative; float:left; '>\n                <div style='width:250px; position:relative; float:left' class='header'>Assessment Criteria</div>\n                <div class='header' style='width:400px; position:relative; float:left; border-bottom: solid 1px #000;'>Quality of Performance</div>\n             </div>";
             $htmlStr .= "<div style='width:100%; position:relative; float:left; '>\n                <div style='width:250px; position:relative; float:left' class='header'>&nbsp;</div>\n                <div class='header' style='width:100px;  position:relative; float:left'>Result</div>\n                <div class='header' style='width:298px;  position:relative; float:left'>Comments</div>\n               </div>";
             $htmlStr .= "<div style='width:100%;  position:relative; float:left; padding:0px; height:30px'>\n                <div class='formcell' style='width:250px; position:relative; float:left' >{$count})<span style='font-size:" . (1 - 0.1 * (strlen($question->text) / 30)) . "em'> {$question->text}</span></div>\n                <div class='formcell' style='width:100px; text-align:center; position:relative; float:left'><strong>" . ($question->answer == '1' ? "S" : "NS") . "</strong></div>\n                \n                <div class='formcell' style='width:298px;  position:relative; float:left'>" . htmlentities($question->comment) . "</div>\n               </div>";
         }
     }
     $htmlStr .= "<span style='font-weight:bold; font-size:0.8em'>Legend:</span><br/>";
     foreach ($criteriaXML->item as $item) {
         $htmlStr .= "<span style='font-weight:bold; font-size:0.8em'>{$item->short_description}:</span><span style='font-size:0.8em'>{$item->long_description}</span><br/>";
     }
     $htmlStr .= '<br/>';
     // overall comments
     $htmlStr .= " <div style='width:170px; position:relative; float:left; font-weight:bold'>Additional Comments:</div>";
     $htmlStr .= "<div  style='width:650px;'>{$formdef->overview->comments}</div>";
     $htmlStr .= '<br/>';
     if (!$showOverallResult) {
         $htmlStr .= "<hr/><span style='font-size:0.6em'><i>This form is designed to provide each student with feedback from the examiner on which competencies were not performed satisfactorily, and why. It is a learning support for you and is NOT designed as a Grading Sheet to reflect your OVERALL GLOBAL RATING.<br/> \nThe OVERALL GLOBAL RATING is a separate independent global rating by the examiner and you will be notified of this Grade as part of the official Examination reporting process.  As with all OSCE examinations the OVERALL  GLOBAL RATING is final, meaning that remarks are not possible. Any queries should be directed to your Course/Unit Co-odinator, and not to the examiners.</span>\n</i><br/>";
     } else {
         $htmlStr .= "<hr/><span style='font-size:0.6em'><i>Any queries should be directed to your Course/Unit Co-odinator, and not to the examiners.</span>";
     }
     return $htmlStr . '</html>';
 }
Example #5
0
 public function get_printable_assessment_form_as_word($id, $PHPWord)
 {
     global $CFG;
     $count = 0;
     $enumlib = new EnumLib();
     $formdef = simplexml_load_string($enumlib->getExamInstanceQuestionsByID($id));
     $scaleXML = simplexml_load_string($enumlib->getCriteriaScaleItems($formdef->overview->data->instance->scale_id));
     // Create a new PHPWord Object
     // Every element you want to append to the word document is placed in a section. So you need a section:
     $section = $PHPWord->createSection();
     // add the title
     $section->addText($formdef->overview->data->instance->name, array('name' => 'Tahoma', 'size' => 14, 'bold' => true));
     $section->addText("Student Name:\t____________________", array('name' => 'Tahoma', 'size' => 12, 'bold' => true));
     $section->addText("Student Number:\t____________________", array('name' => 'Tahoma', 'size' => 12, 'bold' => true));
     // add the table for the asessment
     $tableStyle = array('border' => 'single', 'borderColor' => '000000', 'borderSize' => 6);
     $headerCellStyle = array('bgColor' => 'D9D9D9', 'border' => 'single', 'borderColor' => '000000', 'borderSize' => 6);
     $headerSpanCellStyle = array('bgColor' => 'D9D9D9', 'border' => 'single', 'borderColor' => '000000', 'borderSize' => 6, 'gridSpan' => count($scaleXML->children()) + 1);
     $bodyCellStyle = array('border' => 'single', 'borderColor' => '000000', 'borderSize' => 6);
     $table = $section->addTable($tableStyle);
     $table->addRow();
     $table->addCell(3750, $headerCellStyle)->addText('Assessment Criteria', array('name' => 'Tahoma', 'size' => 12));
     $cell = $table->addCell(6000, $headerSpanCellStyle)->addText('Quality of Performance', array('name' => 'Tahoma', 'size' => 12));
     $table->addRow();
     $table->addCell(3750, $headerCellStyle);
     $cellwidth = 0;
     foreach ($scaleXML->item as $item) {
         $table->addCell(750, $headerCellStyle)->addText($item->short_description, array('name' => 'Tahoma', 'size' => 12));
         $cellwidth += 750;
     }
     $table->addCell(6000 - $cellwidth, $headerCellStyle)->addText('Comments', array('name' => 'Tahoma', 'size' => 12));
     foreach ($formdef->questiondata->question as $question) {
         //   if ((($count % 15) != 0) || ($count == 0)) {
         switch ($question->type) {
             case '0':
                 //  $htmlStr.="<tr><th class='form' colspan='4'>{$question->text}</th></tr>";
                 $count++;
                 $table->addRow();
                 $textrun = $table->addCell(3750, $bodyCellStyle)->addTextRun();
                 $textrun->addText("{$count}) ", array('name' => 'Tahoma', 'size' => 12));
                 $textrun->addText($question->text, array('name' => 'Tahoma', 'size' => 12 - 1 * (strlen($question->text) / 25)));
                 $cellwidth = 0;
                 foreach ($scaleXML->item as $item) {
                     $textrun = $table->addCell(750, $bodyCellStyle)->addText("□", array('name' => 'Tahoma', 'size' => 20, 'bold' => true));
                     $cellwidth += 750;
                 }
                 // $textrun = $table->addCell(750, $bodyCellStyle)->addText("□", array('name' => 'Tahoma', 'size' => 20, 'bold' => true));
                 // $table->addCell(750, $bodyCellStyle)->addText('□', array('name' => 'Tahoma', 'size' => 20, 'bold' => true));
                 //   $table->addCell(6000-$cellwidth, $headerCellStyle)->addText('Comments', array('name' => 'Tahoma', 'size' => 12));
                 $table->addCell(6000 - $cellwidth, $bodyCellStyle);
                 break;
             case '1':
                 $count++;
                 $table->addRow();
                 $textrun = $table->addCell(3750, $bodyCellStyle)->addTextRun();
                 $textrun->addText("{$count}) ", array('name' => 'Tahoma', 'size' => 12));
                 $textrun->addText($question->text, array('name' => 'Tahoma', 'size' => 12 - 1 * (strlen($question->text) / 25)));
                 $textrun = $table->addCell(750, $bodyCellStyle)->addText("□", array('name' => 'Tahoma', 'size' => 20, 'bold' => true));
                 $table->addCell(750, $bodyCellStyle)->addText('□', array('name' => 'Tahoma', 'size' => 20, 'bold' => true));
                 $table->addCell(4500, $bodyCellStyle);
                 break;
             default:
                 break;
         }
     }
     $section->addTextBreak(1);
     $section->addText("Overall Global rating", array('name' => 'Tahoma', 'size' => 12));
     $table = $section->addTable($tableStyle);
     $table->addRow();
     $textrun = $table->addCell(4875, $headerCellStyle)->addTextRun();
     $textrun->addText('Satisfactory');
     $textrun->addText("□", array('name' => 'Tahoma', 'size' => 20, 'bold' => true));
     $textrun = $table->addCell(4875, $headerCellStyle)->addTextRun();
     $textrun->addText('Not Satisfactory');
     $textrun->addText("□", array('name' => 'Tahoma', 'size' => 20, 'bold' => true));
     $section->addTextBreak(1);
     $section->addText("Additional Rating if Satisfactory", array('name' => 'Tahoma', 'size' => 12));
     $table = $section->addTable($tableStyle);
     $table->addRow();
     $textrun = $table->addCell(3250, $headerCellStyle)->addTextRun();
     $textrun->addText('Excellent');
     $textrun->addText("□", array('name' => 'Tahoma', 'size' => 20, 'bold' => true));
     $textrun = $table->addCell(3250, $headerCellStyle)->addTextRun();
     $textrun->addText('Expected Standard');
     $textrun->addText("□", array('name' => 'Tahoma', 'size' => 20, 'bold' => true));
     $textrun = $table->addCell(3250, $headerCellStyle)->addTextRun();
     $textrun->addText('Marginal Pass');
     $textrun->addText("□", array('name' => 'Tahoma', 'size' => 20, 'bold' => true));
     $section->addTextBreak(1);
     $section->addText("Overall Comments", array('name' => 'Tahoma', 'size' => 12));
     $section->addText("____________________________________________________________________", array('name' => 'Tahoma', 'size' => 12));
     $section->addText("____________________________________________________________________", array('name' => 'Tahoma', 'size' => 12));
     $section->addTextBreak(1);
     $section->addText("Mark:\t\t\t____________________", array('name' => 'Tahoma', 'size' => 12));
     $section->addText("Examiner Name:\t____________________", array('name' => 'Tahoma', 'size' => 12));
     $section->addText("Signature:\t\t____________________    Date:_____________________", array('name' => 'Tahoma', 'size' => 12));
     // headers and footers
     $header = $section->addHeader();
     $header->addText('UNCONTROLLED DRAFT ONLY- NOT FOR USE IN EXAMINATION');
     $header = $section->addFooter();
     $header->addText('Generated:' . date("j F, Y, g:i a"));
     return $PHPWord;
 }