<?php require_once ('../php/connect.php'); ?>
<?php require ("php/secure.php"); ?>
<?php
date_default_timezone_set("America/Chicago");
$todaydate = date("Y-m-d");
$colname_login = $_GET['aid'];
$query_login = "SELECT * FROM users WHERE aid = '$colname_login'";
$login = mysqli_query($SMB, $query_login);
$row_login = mysqli_fetch_assoc($login);
$totalRows_login = mysqli_num_rows($login);
$Course_Type = $row_login['type'];
$AID = $row_login['aid'];
$CID = $row_login['cid'];
$Complete = $row_login['evaluation'];
if($Complete == '1'){
$query_Content = "SELECT * FROM Evaluation WHERE aid='$AID'";
$Content = mysqli_query($SMB, $query_Content);
$row_Content = mysqli_fetch_assoc($Content);
$totalRows_Content = mysqli_num_rows($Content);
$query_Type = "SELECT * FROM SMB_Courses WHERE id='$Course_Type'";
$Type = mysqli_query($SMB, $query_Type);
$row_Type = mysqli_fetch_assoc($Type);
$totalRows_Type = mysqli_num_rows($Type);
$Objectives = $row_Type['syllabus'];
$CourseTitle = $row_Type['name'];
$query_Type = "SELECT * FROM SMB_Courses WHERE id='$Course_Type'";
$Type = mysqli_query($SMB, $query_Type);
$row_Type = mysqli_fetch_assoc($Type);
$totalRows_Type = mysqli_num_rows($Type);
$Objectives = $row_Type['syllabus'];
$CourseTitle = $row_Type['name'];
$query_Course = "SELECT * FROM Courses WHERE id='$CID'";
$Course = mysqli_query($SMB, $query_Course);
$row_Course = mysqli_fetch_assoc($Course);
$totalRows_Course = mysqli_num_rows($Course);
$ID = $row_Course['id'];
$Start_Date = date('F d', strtotime($row_Course['start_date']));
$location = $row_Course['location'];
$Address = $row_Course['street_address'];
$City = $row_Course['city'];
$State = $row_Course['state'];
$Zip = $row_Course['zip_code'];
$ShowLocation = '<p><strong>'.$CourseTitle.'</strong></br>
'.$location.'</br>'.$Address.'</br>'.$City.', '.$State.' '.$Zip.'</p>';
}
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>SMB Course Attendees</title>
<link rel="stylesheet" type="text/css" href="css/evaluation.css">
</head>
<body onload="window.print()">
<table width="90%" align="center" cellpadding="2" cellspacing="2" class="tblBrd">
<tbody>
<tr>
<td><table width="100%" cellspacing="4" cellpadding="4">
<tbody>
<tr>
<td height="500" align="center" valign="top" bgcolor="#F8F8F8"><table width="100%" border="0" cellspacing="2" cellpadding="2">
<tbody>
<tr>
<td colspan="6" align="center" valign="top" class="pageHdr"><h1>Course Evaluation</h1></td>
</tr>
<tr>
<td colspan="6" align="left" valign="top" class="content"><?php echo $ShowLocation; ?> </td>
</tr>
<tr>
<td colspan="6" align="left" valign="top" class="content"><?php echo $Objectives; ?> </td>
</tr>
<tr>
<td align="left" valign="middle" nowrap="nowrap" class="content"><em><strong>Please evaluate this course</strong></em></td>
<td align="center" valign="top" nowrap="nowrap" class="content"><strong>1<br>
</strong><span class="content_small">(Very <em>Poor</em>)</span></td>
<td align="center" valign="top" nowrap="nowrap" class="content"><strong>2</strong><br>
<span class="content_small">(<em>Poor</em>)</span></td>
<td align="center" valign="top" nowrap="nowrap" class="content"><strong>3</strong><br>
<span class="content_small">(<em>Fair</em>)</span></td>
<td align="center" valign="top" nowrap="nowrap" class="content"><strong>4</strong><br>
<span class="content_small">(<em>Good</em>)</span></td>
<td align="center" valign="top" nowrap="nowrap" class="content"><strong>5<br>
</strong><span class="content_small">(<em>Excellent</em>) </span></td>
</tr>
<tr>
<td width="50%" align="left" valign="middle" class="content">Meeting site was adequate in size, comfortable, and convenient</td>
<td width="10%" align="center" valign="middle" class="content"><input type="radio" name="E1" id="radio" value="1" <?php if ($row_Content['E1'] == 1): ?> checked = "checked"<?php endif; ?>></td>
<td width="10%" align="center" valign="middle" class="content"><input type="radio" name="E1" id="radio2" value="2" <?php if ($row_Content['E1'] == 2): ?> checked = "checked"<?php endif; ?>></td>
<td width="10%" align="center" valign="middle" class="content"><input type="radio" name="E1" id="radio3" value="3" <?php if ($row_Content['E1'] == 3): ?> checked = "checked"<?php endif; ?>></td>
<td width="10%" align="center" valign="middle" class="content"><input type="radio" name="E1" id="radio4" value="4" <?php if ($row_Content['E1'] == 4): ?> checked = "checked"<?php endif; ?>></td>
<td width="10%" align="center" valign="middle" class="content"><input name="E1" type="radio" id="radio5" value="5" <?php if ($row_Content['E1'] == 5): ?> checked = "checked"<?php endif; ?>></td>
</tr>
<tr>
<td align="left" valign="middle" class="content">Course administration was efficient and friendly</td>
<td align="center" valign="middle" class="content"><input type="radio" name="E2" id="radio6" value="1" <?php if ($row_Content['E2'] == 1): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input type="radio" name="E2" id="radio7" value="2" <?php if ($row_Content['E2'] == 2): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input type="radio" name="E2" id="radio8" value="3" <?php if ($row_Content['E2'] == 3): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input type="radio" name="E2" id="radio9" value="4" <?php if ($row_Content['E2'] == 4): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input name="E2" type="radio" id="radio10" value="5" <?php if ($row_Content['E2'] == 5): ?> checked = "checked"<?php endif; ?>></td>
</tr>
<tr>
<td align="left" valign="middle" class="content">Course objectives were consistent with the course as advertised</td>
<td align="center" valign="middle" class="content"><input type="radio" name="E3" id="radio11" value="1" <?php if ($row_Content['E3'] == 1): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input type="radio" name="E3" id="radio12" value="2" <?php if ($row_Content['E3'] == 2): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input type="radio" name="E3" id="radio13" value="3" <?php if ($row_Content['E3'] == 3): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input type="radio" name="E3" id="radio14" value="4" <?php if ($row_Content['E3'] == 4): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input name="E3" type="radio" id="radio15" value="5" <?php if ($row_Content['E3'] == 5): ?> checked = "checked"<?php endif; ?>></td>
</tr>
<tr>
<td align="left" valign="middle" class="content">COURSE OBJECTIVE #1 was adequately addressed and achieved</td>
<td align="center" valign="middle" class="content"><input type="radio" name="E4" id="radio16" value="1" <?php if ($row_Content['E4'] == 1): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input type="radio" name="E4" id="radio17" value="2" <?php if ($row_Content['E4'] == 2): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input type="radio" name="E4" id="radio18" value="3" <?php if ($row_Content['E4'] == 3): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input type="radio" name="E4" id="radio19" value="4" <?php if ($row_Content['E4'] == 4): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input name="E4" type="radio" id="radio20" value="5" <?php if ($row_Content['E4'] == 5): ?> checked = "checked"<?php endif; ?>></td>
</tr>
<tr>
<td align="left" valign="middle" class="content">COURSE OBJECTIVE #2 was adequately addressed and achieved</td>
<td align="center" valign="middle" class="content"><input type="radio" name="E5" id="radio21" value="1" <?php if ($row_Content['E5'] == 1): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input type="radio" name="E5" id="radio22" value="2" <?php if ($row_Content['E5'] == 2): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input type="radio" name="E5" id="radio23" value="3" <?php if ($row_Content['E5'] == 3): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input type="radio" name="E5" id="radio24" value="4" <?php if ($row_Content['E5'] == 4): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input name="E5" type="radio" id="radio25" value="5" <?php if ($row_Content['E5'] == 5): ?> checked = "checked"<?php endif; ?>></td>
</tr>
<tr>
<td align="left" valign="middle" class="content">COURSE OBJECTIVE #3 was adequately addressed and achieved</td>
<td align="center" valign="middle" class="content"><input type="radio" name="E6" id="radio26" value="1" <?php if ($row_Content['E6'] == 1): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input type="radio" name="E6" id="radio27" value="2" <?php if ($row_Content['E6'] == 2): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input type="radio" name="E6" id="radio28" value="3" <?php if ($row_Content['E6'] == 3): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input type="radio" name="E6" id="radio29" value="4" <?php if ($row_Content['E6'] == 4): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input name="E6" type="radio" id="radio30" value="5" <?php if ($row_Content['E6'] == 5): ?> checked = "checked"<?php endif; ?>></td>
</tr>
<tr>
<td align="left" valign="middle" class="content">Course material was up-to-date, well-organized, and presented in sufficient depth</td>
<td align="center" valign="middle" class="content"><input type="radio" name="E7" id="radio71" value="1" <?php if ($row_Content['E7'] == 1): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input type="radio" name="E7" id="radio72" value="2" <?php if ($row_Content['E7'] == 2): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input type="radio" name="E7" id="radio73" value="3" <?php if ($row_Content['E7'] == 3): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input type="radio" name="E7" id="radio74" value="4" <?php if ($row_Content['E7'] == 4): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input name="E7" type="radio" id="radio75" value="5" <?php if ($row_Content['E7'] == 5): ?> checked = "checked"<?php endif; ?>></td>
</tr>
<tr>
<td align="left" valign="middle" class="content">Instructor demonstrated a comprehensive knowledge of the subject</td>
<td align="center" valign="middle" class="content"><input type="radio" name="E8" id="radio76" value="1" <?php if ($row_Content['E8'] == 1): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input type="radio" name="E8" id="radio77" value="2" <?php if ($row_Content['E8'] == 2): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input type="radio" name="E8" id="radio78" value="3" <?php if ($row_Content['E8'] == 3): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input type="radio" name="E8" id="radio79" value="4" <?php if ($row_Content['E8'] == 4): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input name="E8" type="radio" id="radio80" value="5" <?php if ($row_Content['E8'] == 5): ?> checked = "checked"<?php endif; ?>></td>
</tr>
<tr>
<td align="left" valign="middle" class="content">Instructor appeared to be interested and enthusiastic about the subject</td>
<td align="center" valign="middle" class="content"><input type="radio" name="E9" id="radio41" value="1" <?php if ($row_Content['E9'] == 1): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input type="radio" name="E9" id="radio42" value="2" <?php if ($row_Content['E9'] == 2): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input type="radio" name="E9" id="radio43" value="3" <?php if ($row_Content['E9'] == 3): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input type="radio" name="E9" id="radio44" value="4" <?php if ($row_Content['E9'] == 4): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input name="E9" type="radio" id="radio45" value="5" <?php if ($row_Content['E9'] == 5): ?> checked = "checked"<?php endif; ?>></td>
</tr>
<tr>
<td align="left" valign="middle" class="content">Audio-visual materials used were relevant and of high quality</td>
<td align="center" valign="middle" class="content"><input type="radio" name="E10" id="radio46" value="1" <?php if ($row_Content['E10'] == 1): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input type="radio" name="E10" id="radio47" value="2" <?php if ($row_Content['E10'] == 2): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input type="radio" name="E10" id="radio48" value="3" <?php if ($row_Content['E10'] == 3): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input type="radio" name="E10" id="radio49" value="4" <?php if ($row_Content['E10'] == 4): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input name="E10" type="radio" id="radio50" value="5" <?php if ($row_Content['E10'] == 5): ?> checked = "checked"<?php endif; ?>></td>
</tr>
<tr>
<td align="left" valign="middle" class="content">Handout materials enhanced course content</td>
<td align="center" valign="middle" class="content"><input type="radio" name="E11" id="radio51" value="1" <?php if ($row_Content['E11'] == 1): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input type="radio" name="E11" id="radio52" value="2" <?php if ($row_Content['E11'] == 2): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input type="radio" name="E11" id="radio53" value="3" <?php if ($row_Content['E11'] == 3): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input type="radio" name="E11" id="radio54" value="4" <?php if ($row_Content['E11'] == 4): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input name="E11" type="radio" id="radio55" value="5" <?php if ($row_Content['E11'] == 5): ?> checked = "checked"<?php endif; ?>></td>
</tr>
<tr>
<td align="left" valign="middle" class="content">Overall, I would rate this course:</td>
<td align="center" valign="middle" class="content"><input type="radio" name="E12" id="radio56" value="1" <?php if ($row_Content['E12'] == 1): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input type="radio" name="E12" id="radio57" value="2" <?php if ($row_Content['E12'] == 2): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input type="radio" name="E12" id="radio58" value="3" <?php if ($row_Content['E12'] == 3): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input type="radio" name="E12" id="radio59" value="4" <?php if ($row_Content['E12'] == 4): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input name="E12" type="radio" id="radio60" value="5" <?php if ($row_Content['E12'] == 5): ?> checked = "checked"<?php endif; ?>></td>
</tr>
<tr>
<td align="left" valign="middle" class="content">Overall, I would rate this instructor:</td>
<td align="center" valign="middle" class="content"><input type="radio" name="E13" id="radio61" value="1" <?php if ($row_Content['E13'] == 1): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input type="radio" name="E13" id="radio62" value="2" <?php if ($row_Content['E13'] == 2): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input type="radio" name="E13" id="radio63" value="3" <?php if ($row_Content['E13'] == 3): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input type="radio" name="E13" id="radio64" value="4" <?php if ($row_Content['E13'] == 4): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input name="E13" type="radio" id="radio65" value="5" <?php if ($row_Content['E13'] == 5): ?> checked = "checked"<?php endif; ?>></td>
</tr>
<tr>
<td align="left" valign="middle" class="content">Overall, this course met my expectations:</td>
<td align="center" valign="middle" class="content"><input type="radio" name="E14" id="radio66" value="1" <?php if ($row_Content['E14'] == 1): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input type="radio" name="E14" id="radio67" value="2" <?php if ($row_Content['E14'] == 2): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input type="radio" name="E14" id="radio68" value="3" <?php if ($row_Content['E14'] == 3): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input type="radio" name="E14" id="radio69" value="4" <?php if ($row_Content['E14'] == 4): ?> checked = "checked"<?php endif; ?>></td>
<td align="center" valign="middle" class="content"><input name="E14" type="radio" id="radio70" value="5" <?php if ($row_Content['E14'] == 5): ?> checked = "checked"<?php endif; ?>></td>
</tr>
<tr>
<td colspan="6" align="left" valign="middle" class="signLine"> </td>
</tr>
<tr>
<td colspan="6" align="left" valign="top" class="content"><strong>The best thing about this course was:</strong></td>
</tr>
<tr>
<td colspan="6" align="left" valign="top" class="content"><?php echo $row_Content['Q1']; ?></td>
</tr>
<tr>
<td colspan="6" align="left" valign="top" class="content"><strong>If I could change one thing about this course, I would:</strong></td>
</tr>
<tr>
<td colspan="6" align="left" valign="top" class="content"><?php echo $row_Content['Q2']; ?></td>
</tr>
<tr>
<td colspan="6" align="left" valign="top" class="content"><strong>Is there anything that could have been explained in greater detail?</strong></td>
</tr>
<tr>
<td colspan="6" align="left" valign="top" class="content"><?php echo $row_Content['Q3']; ?></td>
</tr>
<tr>
<td colspan="6" align="left" valign="top" class="content"><strong>Please make any additional comments:</strong></td>
</tr>
<tr>
<td colspan="6" align="left" valign="top" class="content"><?php echo $row_Content['comments']; ?></td>
</tr>
</tbody>
</table> </td>
</tr>
</tbody>
</table></td>
</tr>
</tbody>
</table>
</body>
</html> |