Beispiel #1
0
function list_modules($mod, $id, $student_mod, $string)
{
    $old_letter = '';
    if ($id == '1') {
        echo "<div class=\"content\" style=\"display:block\" id=\"list{$id}\">";
    } else {
        echo "<div class=\"content\" style=\"display:none\" id=\"list{$id}\">";
    }
    echo drawTabs($id, $string);
    if ($id == '1') {
        echo "<div style=\"width:100%; height:100%; overflow-y:scroll; border:1px solid #95AEC8; font-size:90%\" id=\"list{$id}\">";
    } else {
        echo "<div style=\"width:100%; height:100%; overflow-y:scroll; border:1px solid #95AEC8; font-size:90%\" id=\"list{$id}\">";
    }
    $loop = 0;
    foreach ($mod as $idMod => $mod_info) {
        $moduleid = $mod_info['moduleid'];
        $fullname = $mod_info['fullname'];
        if ($old_letter != strtoupper(substr($moduleid, 0, 1))) {
            echo "<table border=\"0\" style=\"padding-bottom:5px; width:100%; color:#1E3287\"><tr><td><nobr>&nbsp;" . strtoupper(substr($moduleid, 0, 1)) . "</nobr></td><td style=\"width:98%\"><hr noshade=\"noshade\" style=\"border:0px; height:1px; color:#E5E5E5; background-color:#E5E5E5; width:100%\" /></td></tr></table>\n";
        }
        if (isset($student_mod[$idMod]) and $student_mod[$idMod]['attempt'] == $id) {
            echo "<div class=\"r2\" id=\"divmod" . $id . "_" . $loop . "\"><input type=\"checkbox\" onclick=\"toggle('divmod" . $id . "_" . $loop . "')\" name=\"mod" . $id . "_" . $loop . "\" id=\"mod" . $id . "_" . $loop . "\" value=\"" . $idMod . "\" checked />&nbsp;<label for=\"mod" . $id . "_" . $loop . "\">{$moduleid}:&nbsp;{$fullname}</label></div>\n";
        } else {
            echo "<div class=\"r1\" id=\"divmod" . $id . "_" . $loop . "\"><input type=\"checkbox\" onclick=\"toggle('divmod" . $id . "_" . $loop . "')\" name=\"mod" . $id . "_" . $loop . "\" id=\"mod" . $id . "_" . $loop . "\" value=\"" . $idMod . "\" />&nbsp;<label for=\"mod" . $id . "_" . $loop . "\">{$moduleid}:&nbsp;{$fullname}</label></div>\n";
        }
        $loop++;
        $old_letter = strtoupper(substr($moduleid, 0, 1));
    }
    echo "</div>\n</div>\n";
}
Beispiel #2
0
  <div class="page_title"><?php 
echo $string['summativeexamfeedback'];
?>
: <span style="font-weight:normal"><?php 
echo $_GET['calyear'];
?>
/<?php 
echo substr($_GET['calyear'], 2, 2) + 1;
?>
</span></div>
</div>

<table class="header">
<tr>
<th style="text-align:right" colspan="2"><div style="text-align:right; vertical-align:bottom"><?php 
echo drawTabs($current_year, 'academic', 6, 1);
?>
</div></th>
</tr>
<tr><td colspan="2" style="border:0px; background-color:#1E3C7B; height:5px"></td></tr>
</table>

<blockquote>
<table class="stats">
<tr>
<th><?php 
echo $string['school'];
?>
</th>
<th><?php 
echo $string['exams'];
Beispiel #3
0
            $selected = 'selected ';
        }
        echo "<option value=\"{$id}\" {$selected}>{$title}</option>";
    }
    echo "</optgroup>";
}
echo "</select>&nbsp;";
echo "<input type=\"hidden\" name=\"calyear\" value=\"{$current_year}\" /><br />";
if (isset($_GET['module'])) {
    $extra = '&module=' . $_GET['module'];
} else {
    $extra = '';
}
?>
<div style="text-align:right; vertical-align:bottom"><?php 
echo drawTabs($current_year, 'calendar', 3, 2, $extra);
?>
</div>
</th>
</tr>
<tr><td colspan="2" style="border:0px; background-color:#1E3C7B; height:5px"></td></tr>
</table>
<?php 
if ($userObject->has_role('SysAdmin')) {
    echo "<div style=\"margin:5px\"><span class=\"extraevents\">" . $string['extraevents'] . "</span></div>\n";
} else {
    echo "<br />\n";
}
function getDayOfWeek($day, $month, $year, $CalendarSystem)
{
    // CalendarSystem = 1 for Gregorian Calendar
Beispiel #4
0
    case 2:
        echo $string['questionfeedback'];
        break;
    case 3:
        echo $string['cohortperformance'];
        break;
}
$extra = "&school={$schoolID}&type=" . $_GET['type'];
?>
</span></div>
</div>

<table class="header">
<tr>
<th style="text-align:right" colspan="2"><div style="text-align:right; vertical-align:bottom"><?php 
echo drawTabs($current_year, 'academic', 6, 1, $extra);
?>
</div></th>
</tr>
<tr><td colspan="2" style="border:0px; background-color:#1E3C7B; height:5px"></td></tr>
</table>

<table class="stats">
<tr>
<th><?php 
echo $string['paper'];
?>
</th>
<th><?php 
echo $string['feedbackreleased'];
?>
Beispiel #5
0
    if ($metadata_no > 0) {
        echo "<input type=\"submit\" name=\"save_metadata\" value=\"" . $string['save'] . "\" class=\"ok\" />";
    }
    echo "<input type=\"hidden\" name=\"metadata_no\" value=\"{$metadata_no}\" /></td></tr>\n";
}
?>
</form>
</table>

<?php 
if ($tab == 'teams') {
    echo "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" id=\"Teams_tab\" style=\"width:100%\">\n";
} else {
    echo "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" id=\"Teams_tab\" style=\"width:100%; display:none\">\n";
}
echo drawTabs('Teams', 4, '', $user_details['roles'], $bg_color, $string);
echo "<tr><td class=\"coltitle\">&nbsp;" . $string['team'] . "</td><td class=\"coltitle\">&nbsp;</td><td class=\"coltitle\">" . $string['dateadded'] . "</td></tr>\n";
if ($userObject->has_role('Admin') or $userObject->has_role('SysAdmin')) {
    echo "<tr><td colspan=\"4\">&nbsp;<img onclick=\"editMultiTeams(); return false;\" src=\"../artwork/pencil_16.png\" width=\"16\" height=\"16\" alt=\"" . $string['editteams'] . "\" />&nbsp;<a href=\"\" onclick=\"editMultiTeams(); return false;\">" . $string['editteams'] . "</a></td></tr>\n";
}
if ($userObject->has_role(array('SysAdmin', 'Admin')) or $userObject->get_user_ID() == $userID) {
    // Only allow Admin/SysAdmin or current user to view this information
    $result = $mysqli->prepare("SELECT moduleID, fullname, DATE_FORMAT(added,'%d/%m/%Y') AS added FROM modules_staff, modules WHERE modules_staff.idMod = modules.id AND memberID = ? ORDER BY moduleID");
    $result->bind_param('i', $userID);
    $result->execute();
    $result->store_result();
    $result->bind_result($moduleID, $fullname, $added);
    while ($result->fetch()) {
        echo "<tr><td>&nbsp;{$moduleID}</td><td>{$fullname}</td><td>{$added}</td></tr>\n";
    }
    $result->close();
Beispiel #6
0
        <img src="../artwork/r_logo.gif" alt="logo" class="logo_img" />
				<div class="logo_lrg_txt">Rog&#333;</div>
				<div class="logo_small_txt"><?php 
echo $string['eassessmentmanagementsystem'];
?>
</div>
      </th>
      <th style="text-align:right; vertical-align:top"><img src="../artwork/toprightmenu.gif" id="toprightmenu_icon" /></th>
    </tr>
	  <tr>
	    <td colspan="2" style="background-color:#EEF4FF; text-align:right; vertical-align:bottom">
<?php 
$default_session = '';
if (count($sessions_with_papers) > 0) {
    $default_session = $sessions_with_papers[count($sessions_with_papers) - 1];
    echo drawTabs($sessions_with_papers, $default_session);
}
?>
	    </td>
	  </tr>
	  <tr>
	    <td colspan="2" style="height:6px; background-color:#1E3C7B"></td>
	  </tr>
	</table>

<?php 
if (!$userObject->has_role('Student')) {
    ?>
   <p style="margin-left:20px"><?php 
    echo $string['staffmsg'];
    ?>
  <div class="page_title"><?php 
echo $string['summativeexamstats'];
?>
: <span style="font-weight:normal"><?php 
echo $string[$month_names[$current_month - 1]] . ' (' . $_GET['calyear'];
?>
/<?php 
echo substr($_GET['calyear'], 2, 2) + 1;
?>
)</span></div>
</div>

<table class="header" style="font-size:90%">
<tr>
<th style="text-align:right" colspan="2"><div style="text-align:right; vertical-align:bottom"><?php 
echo drawTabs($current_year, 'academic', 6, 1, '&month=' . $current_month);
?>
</div></th>
</tr>
<tr><td colspan="2" style="border:0; background-color:#1E3C7B; height:5px"></td></tr>
</table>

<blockquote>
<table class="stats">
  <tr><th><?php 
echo $string['date'];
?>
</th><th><?php 
echo $string['papers'];
?>
</th><th><?php