$button_width = 125; } ?> <table cellpadding="0" cellspacing="0" border="0" style="margin-left:auto; margin-right:auto; margin-top:40px; font-size:100%; border-top:1px solid #95AEC8;border-left:1px solid #95AEC8; border-right:1px solid #95AEC8; background-color:white; width:<?php echo $table_width; ?> %"> <tr> <?php $icon_types = array('formative', 'progress', 'summative', 'survey'); echo '<td colspan="2"><table cellspacing="4" cellpadding="0" border="0" style="width:100%"><tr><td style="width:52px"><img src="../artwork/' . $icon_types[$test_type] . '.png" style="width:48px; height:48px; padding-left:4px" alt="Icon" />'; echo "</td><td><span class=\"paper_title\">{$paper_title}</span></td>\n</tr></table></td></tr>"; echo "<tr>\n</table>\n<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"font-size:95%; margin-left:auto; margin-right:auto;border:1px solid #95AEC8;background-color:#F1F5FB\" width=\"{$table_width}%\">\n"; echo '<tr><td colspan="4"> </td>'; if ($test_type == 2) { $student_photo = UserUtils::student_photo_exist($userObject->get_username()); if ($student_photo !== false) { $photo_size = getimagesize($cfg_web_root . 'users/photos/' . $student_photo); echo '<td rowspan="'; if ($sound_demo == '1') { echo '8'; } else { echo '7'; } echo '" style="vertical-align:top; padding:8px"><div class="photoid">' . $string['photoid'] . '</div><img src="../users/photos/' . $student_photo . '" ' . $photo_size[3] . ' alt="Photo" style="border: 10px solid white" /></td>'; } } echo '</tr>'; if ($rubric != '') { echo '<tr><td class="f" style="vertical-align:top"><nobr>' . $string['rubric'] . '</nobr></td><td colspan="3" style="text-align:justify; line-height:140%; padding-right:20px; padding-bottom:15px">' . $rubric . '</td></tr>'; }
; width:100%; line-height:175%; padding-bottom:10px"> <form name="myform" action="<?php echo $_SERVER['PHP_SELF']; ?> ?userID=<?php echo $userID; ?> " method="post"> <?php if ($user_details['gender'] == 'Male') { $generic_icon = '../artwork/user_male_64.png'; } else { $generic_icon = '../artwork/user_female_64.png'; } if (stripos($user_details['roles'], 'Student') !== false) { $student_photo = UserUtils::student_photo_exist($user_details['username']); if ($student_photo !== false) { $photo_size = getimagesize('photos/' . $student_photo); if (isset($demo) and $demo == true) { echo "<tr><td rowspan=\"6\" style=\"vertical-align:top; width:" . $photo_size[2] . "px\"><img src=\"./pixel_photo.php?username="******"\" " . $photo_size[3] . " alt=\"Photo\" /></td>"; } else { echo "<tr><td rowspan=\"6\" style=\"vertical-align:top; width:" . $photo_size[2] . "px\"><img src=\"photos/" . $student_photo . "\" " . $photo_size[3] . " alt=\"Photo\" /></td>"; } } else { echo "<tr><td rowspan=\"6\" width=\"100\" style=\"vertical-align:top; text-align:center; padding-top:6px\"><img src=\"{$generic_icon}\" width=\"64\" height=\"64\" alt=\"User Folder\" style=\"background-color:white; padding:5px; border:2px solid #9A6508\" /></td>\n"; } } else { echo "<tr><td rowspan=\"6\" width=\"100\" style=\"vertical-align:top; text-align:center; padding-top:6px\"><img src=\"{$generic_icon}\" width=\"64\" height=\"64\" alt=\"User Folder\" style=\"background-color:white; padding:5px; border:2px solid #9A6508\" /></td>\n"; } echo "<td colspan=\"4\" style=\"vertical-align:top\"> <a href=\"../index.php\">" . $string['home'] . "</a><img src=\"../artwork/breadcrumb_arrow.png\" class=\"breadcrumb_arrow\" alt=\"-\" /><a href=\"search.php\">" . $string['usersearch'] . "</a><img src=\"../artwork/toprightmenu.gif\" id=\"toprightmenu_icon\" />"; if ($userObject->has_role('SysAdmin')) {