Skip to content
Snippets Groups Projects
index.phtml 37.8 KiB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985
<?php $this->headLink()->appendStylesheet($this->baseUrl() . '/css/courses/edit.css'); ?>
<?php $this->headScript()->appendFile($this->baseUrl() . '/javascript/courses/edit.js'); ?>

<form action="<?php echo $this->url(array('action' => 'edit.post')); ?>" enctype="multipart/form-data" method="post">





<?php if (!in_array($this->request->getType(), array('RemoveCourse', 'AddACEToCourse', 'RemoveACEFromCourse'))) { ?>


<div class="main_section">
<h2>Course ID</h2>

    <fieldset class="three_column" id="courseId">
        <div class="column">
            <label for="subject" class="required">Subject:</label>
            <input type="text"
                   id="subject"
                   name="subject"
                   value="<?php echo htmlentities($this->course->getSubject(), ENT_COMPAT, 'UTF-8'); ?>" />
        </div>


        <div class="column">
            <label for="courseNumber" class="required">Course Number:</label>
            <input type="text"
                   id="courseNumber"
                   name="courseNumber"
                   value="<?php echo htmlentities($this->course->getCourseNumber(), ENT_COMPAT, 'UTF-8'); ?>" />
        </div>

        <div class="column">
            <label for="courseLetter">Course Letter:</label>
            <input type="text"
                   id="courseLetter"
                   name="courseLetter"
                   value="<?php echo htmlentities($this->course->getCourseLetter(), ENT_COMPAT, 'UTF-8'); ?>" />
        </div>

        <div class="clear"></div>
    </fieldset>


    <fieldset>
        <label for="title" class="required">Course Title:</label>
        <input type="text" id="courseTitle" name="title" value="<?php echo htmlentities($this->course->getTitle(), ENT_COMPAT, 'UTF-8'); ?>" />

        <div class="clear"></div>
    </fieldset>


    <fieldset class="three_column">
        <h3>Crosslistings</h3>
        <table>
            <?php $hasTieIn = false;
            foreach($this->course->getCrosslistings() as $key => $crosslist) {
                if($crosslist['type'] == 'grad tie-in') { $hasTieIn = true; }
                if($crosslist['type'] != 'home listing') { ?>
            <tr <?php if($crosslist['type'] == 'grad tie-in') { ?>class="grad_tie_in_row"<?php } ?>>
                <th> Subject: </th>
                <td> <input type="hidden"
                            name="crosslistings[<?php echo $key; ?>][action]"
                            value="edit"
                            <?php if($crosslist['type'] == 'grad tie-in') { ?>readonly=""<?php } ?>/>
                     <input type="text"
                            name="crosslistings[<?php echo $key; ?>][subject]"
                            value="<?php echo $crosslist['subject']; ?>"
                            <?php if($crosslist['type'] == 'grad tie-in') { ?>readonly=""<?php } ?>/> </td>
                <th> Course Number: </th>
                <td> <input type="text"
                            name="crosslistings[<?php echo $key; ?>][courseNumber]"
                            value="<?php echo $crosslist['courseNumber']; ?>"
                            <?php if($crosslist['type'] == 'grad tie-in') { ?>readonly=""<?php } ?> /> </td>
                <th> Course Letter: </th>
                <td> <input type="text"
                            name="crosslistings[<?php echo $key; ?>][courseLetter]"
                            value="<?php echo $crosslist['courseLetter']; ?>"
                            <?php if($crosslist['type'] == 'grad tie-in') { ?>readonly=""<?php } ?> /> </td>
                <td class="hidden">
                    <input type="hidden"
                           name="crosslistings[<?php echo $key; ?>][type]"
                           value="<?php echo $crosslist['type']; ?>" />
                </td>
                <td> <input type="checkbox"
                            id="crosslistings_<?php echo $key; ?>_delete"
                            name="crosslistings[<?php echo $key; ?>][delete]"
                            value="yes" />
                     <label for="crosslistings_<?php echo $key; ?>_delete">Remove</label>
                </td>
            </tr>
            <?php } } ?>
            <tr class="hidden_new_record">
                <th> Subject: </th>
                <td> <input disabled="disabled" type="text" name="crosslistings[__key__][subject]" /> </td>
                <th> Course Number: </th>
                <td> <input disabled="disabled" type="text" name="crosslistings[__key__][courseNumber]" /> </td>
                <th> Course Letter: </th>
                <td> <input disabled="disabled" type="text" name="crosslistings[__key__][courseLetter]" /> </td>
                <td class="hidden"> <input disabled="disabled" type="hidden" name="crosslistings[__key__][type]" value="crosslisting" /> </td>
                <td> <a href="#" class="remove_record_button">Remove</a> </td>
            </tr>
            <tr>
                <td colspan="4">
                    <a href="#" class="add_record_button"><img src="/images/cross_listing_button.png" alt="Add Crosslisting" /></a>
                    <?php if(!$hasTieIn) { ?>
                    <a href="#"
                       class="add_record_button"
                       id="add_tie_in_button_<?php echo $this->course->getSubject()
                                                      . '_' . $this->course->getCourseNumber()
                                                      . '_' . $this->course->getCourseLetter(); ?>"
                    >
                        <img src="/images/grad_tie_button.png" alt="Add Graduate Tie-In" />
                    </a>
                    <?php } ?>
                </td>
            </tr>
        </table>
    </fieldset>
</div>







<div class="main_section">
<h2>Credit Hours</h2>

    <div class="two_column">
        <fieldset id="credits" class="column">
            <h3 class="required">Credit (leave blank if not defined)</h3>

            <div>
                <label for="creditsSingleValues">Single Values</label>
                <input type="text"
                       name="credits[1]"
                       id="creditsSingleValues"
                       value="<?php echo $this->course->getCredits(Courses_CourseModel::CREDIT_TYPE_SINGLE); ?>" />
            </div>
            <div>
                <label>Range</label>
                <input type="text"
                       name="credits[2]"
                       value="<?php echo $this->course->getCredits(Courses_CourseModel::CREDIT_TYPE_RANGE_MIN); ?>" /> -
                <input type="text"
                       name="credits[3]"
                       value="<?php echo $this->course->getCredits(Courses_CourseModel::CREDIT_TYPE_RANGE_MAX); ?>" />
            </div>
            <div>
                <label>Max per Semester</label>
                <input type="text"
                       name="credits[4]"
                       value="<?php echo $this->course->getCredits(Courses_CourseModel::CREDIT_TYPE_SEMESTER_MAX); ?>" />
            </div>
            <div>
                <label>Max per Degree</label>
                <input type="text"
                       name="credits[5]"
                       value="<?php echo $this->course->getCredits(Courses_CourseModel::CREDIT_TYPE_DEGREE_MAX); ?>" />
            </div>
        </fieldset>


        <fieldset class="three_column column">
            <h3>Terms Offered<br />(Remove terms never taught)</h3>

            <label>
                <input type="checkbox"
                       name="termsOffered[]"
                       value="Fall"
                       <?php if(in_array('Fall', $this->course->getTermsOffered())) { ?>
                       checked="checked"
                       <?php } ?>
                       />
                Fall
            </label>
            <br />
            <label>
                <input type="checkbox"
                       name="termsOffered[]"
                       value="Spring"
                       <?php if(in_array('Spring', $this->course->getTermsOffered())) { ?>
                       checked="checked"
                       <?php } ?>
                       />
                Spring
            </label>
            <br />
            <label>
                <input type="checkbox"
                       name="termsOffered[]"
                       value="Summer"
                       <?php if(in_array('Summer', $this->course->getTermsOffered())) { ?>
                       checked="checked"
                       <?php } ?>
                       />
                Summer
            </label>
        </fieldset>
    </div>
    <div class="clear"></div>


    <fieldset class="two_of_three_column" id="activities">
        <h3>Activity</h3>
        <table>
            <?php foreach($this->course->getActivities() as $key => $activity) { ?>
            <tr>
                <th> Type </th>
                <td>
                    <select name="activities[<?php echo $key; ?>][type]">
                        <option value="-1">--Select One--</option>
                        <option value="lec"
                                <?php if($activity['type'] == 'lec') { ?>selected="selected"<?php } ?>
                        >Lecture</option>
                        <option value="lab"
                                <?php if($activity['type'] == 'lab') { ?>selected="selected"<?php } ?>
                        >Lab</option>
                        <option value="quz"
                                <?php if($activity['type'] == 'quz') { ?>selected="selected"<?php } ?>
                        >Quiz</option>
                        <option value="rct"
                                <?php if($activity['type'] == 'rct') { ?>selected="selected"<?php } ?>
                        >Recitation</option>
                        <option value="stu"
                                <?php if($activity['type'] == 'stu') { ?>selected="selected"<?php } ?>
                        >Studio</option>
                        <option value="fld"
                                <?php if($activity['type'] == 'fld') { ?>selected="selected"<?php } ?>
                        >Field</option>
                        <option value="ind"
                                <?php if($activity['type'] == 'ind') { ?>selected="selected"<?php } ?>
                        >Independent Study</option>
                        <option value="psi"
                                <?php if($activity['type'] == 'psi') { ?>selected="selected"<?php } ?>
                        >P.S.I.</option>
                    </select>
                </td>
                <th> Hours per week </th>
                <td> <input type="text"
                            name="activities[<?php echo $key; ?>][hours]"
                            value="<?php echo $activity['hours']; ?>" /> </td>
                <td> <input type="checkbox"
                            name="activities[<?php echo $key; ?>][delete]"
                            value="yes" /> </td>
            </tr>
            <?php } ?>
            <tr class="hidden_new_record">
                <th> Type </th>
                <td>
                    <select disabled="disabled" name="activities[__key__][type]">
                        <option value="-1">--Select One--</option>
                        <option value="lec">Lecture</option>
                        <option value="lab">Lab</option>
                        <option value="quz">Quiz</option>
                        <option value="rct">Recitation</option>
                        <option value="stu">Studio</option>
                        <option value="fld">Field</option>
                        <option value="ind">Independent Study</option>
                        <option value="psi">P.S.I.</option>
                    </select>
                </td>
                <th> Hours per week </th>
                <td> <input disabled="disabled" type="text" name="activities[__key__][hours]" /> </td>
                <td> <a href="#" class="remove_record_button">Remove</a> </td>
            </tr>
            <tr>
                <td colspan="3">
                    <a href="#" class="add_record_button">Add Activity</a>
                </td>
            </tr>
        </table>
    </fieldset>


    <h3>Prerequisite</h3>
    <fieldset>
        <textarea id="prerequisite" name="prerequisite" class="mceEditor"><?php echo $this->course->getPrerequisite(); ?></textarea>
    </fieldset>


    <div class="clear"></div>

</div>






<div class="main_section two_column" id="credits_and_terms_section">
<h2>Time, Locations Taught</h2>


    <fieldset class="four_column">
        <div class="legend">Grading:</div>

        <div class="column">
            <input type="radio"
                   class="radio"
                   id="gradingType_unrestricted"
                   name="gradingType"
                   value="unrestricted"
                   <?php if($this->course->getGradingType() == 'unrestricted') { ?>
                   checked="checked"
                   <?php } ?>
                   />
            <label for="gradingType_unrestricted">Unrestricted</label>
        </div>

        <div class="column">
            <input type="radio"
                   class="radio"
                   id="gradingType_letter_grade_only"
                   name="gradingType"
                   value="letter grade only"
                   <?php if($this->course->getGradingType() == 'letter grade only') { ?>
                   checked="checked"
                   <?php } ?>
                   />
            <label for="gradingType_letter_grade_only">Letter Grade Only</label>
        </div>

        <div class="column">
            <input type="radio"
                   class="radio"
                   id="gradingType_pass_no_pass_only"
                   name="gradingType"
                   value="pass/no pass only"
                   <?php if($this->course->getGradingType() == 'pass/no pass only') { ?>
                   checked="checked"
                   <?php } ?>
                   />
            <label for="gradingType_pass_no_pass_only">Pass / No Pass Only</label>
        </div>

        <div class="clear"></div>
    </fieldset>


    <?php if (!in_array($this->request->getType(), array('NewCourse', 'NewCourseWithIS'))) { ?>
    <fieldset class="four_column">
        <div class="legend">DF Removal:</div>
        <div class="column">
            <input type="radio"
                   id="dfRemoval_no"
                   class="radio"
                   name="dfRemoval"
                   value="no"
                   <?php if($this->course->getDfRemoval() == 'no') { ?>
                   checked="checked"
                   <?php } ?>
                   />
            <label for="dfRemoval_no">No</label>
        </div>

        <div class="column">
            <input type="radio"
                   id="dfRemoval_yes"
                   class="radio"
                   name="dfRemoval"
                   value="yes"
                   <?php if($this->course->getDfRemoval() == 'yes') { ?>
                   checked="checked"
                   <?php } ?>
                   />
            <label for="dfRemoval_yes">Yes</label>
        </div>

        <div class="clear"></div>
    </fieldset>
    <?php } else { ?>
    <input type="hidden" name="dfRemoval" value="no" />
    <?php } ?>
    <!-- fieldset id="dfRemovalFieldset">
        <div class="legend">DF Removal:</div>
        <div class="selections">
            <div>
                <input type="radio"
                       id="dfRemoval_no"
                       class="radio"
                       name="dfRemoval"
                       value="no"
                       <?php if($this->course->dfRemoval == 'no') { ?>
                       checked="checked"
                       <?php } ?>
                       />
                <label for="dfRemoval_no">No</label>
            </div>

            <div>
                <input type="radio"
                       id="dfRemoval_yes"
                       class="radio"
                       name="dfRemoval"
                       value="yes"
                       <?php if($this->course->dfRemoval == 'yes') { ?>
                       checked="checked"
                       <?php } ?>
                       />
                <label for="dfRemoval_yes">Yes, previous version of this course</label>
            </div>

            <div>
                <input type="radio"
                       id="dfRemoval_yes"
                       class="radio"
                       name="dfRemoval"
                       value="yes"
                       <?php if($this->course->dfRemoval == 'yes') { ?>
                       checked="checked"
                       <?php } ?>
                       />
                <label for="dfRemoval_yes">Yes, the following course:</label>
            </div>
            <div id="dfRemovalCourseId">
                <?php /*echo $this->formSelect('dfRemovalSubject', null, null, Subjects::getInstance()->getSubjectList()); ?>
                <?php echo $this->formSelect('dfRemovalCourseNumber'); ?>
                <?php echo $this->formSelect('dfRemovalCourseLetter'); ?>
                <?php echo $this->formSelect('dfRemovalLastEffectiveSemester'); */ ?>
            </div>
        </div>

        <div class="clear"></div>
    </fieldset -->


    <fieldset class="four_column">
        <div class="legend required">Delivery Method(s):</div>

        <div class="column">
            <input type="checkbox"
                   id="deliveryMethods_classroom"
                   name="deliveryMethods[]"
                   value="Classroom"
                   <?php if(in_array('Classroom', $this->course->getDeliveryMethods())) { ?>
                   checked="checked"
                   <?php } ?>
                   />
            <label for="deliveryMethods_classroom">Classroom</label>
        </div>

        <div class="column">
            <input type="checkbox"
                   id="deliveryMethods_web"
                   name="deliveryMethods[]"
                   value="Web"
                   <?php if(in_array('Web', $this->course->getDeliveryMethods())) { ?>
                   checked="checked"
                   <?php } ?>
                   />
            <label for="deliveryMethods_web">Web</label>
        </div>

        <div class="column">
            <input type="checkbox"
                   id="deliveryMethods_correspondence"
                   name="deliveryMethods[]"
                   value="Correspondence"
                   <?php if(in_array('Correspondence', $this->course->getDeliveryMethods())) { ?>
                   checked="checked"
                   <?php } ?>
                   />
            <label for="deliveryMethods_correspondence">Correspondence</label>
        </div>

        <div class="clear"></div>
    </fieldset>


    <fieldset class="four_column" id="campuses">
        <div class="legend required">Campus(es)</div>

        <div class="column">
            <input type="checkbox"
                   id="campuses_unl"
                   name="campuses[]"
                   value="UNL"
                   <?php if(in_array('UNL', $this->course->getCampuses())) { ?>
                   checked="checked"
                   <?php } ?>
                   />
            <label for="campuses_unl">UNL</label>
        </div>
        <div class="column">
            <input type="checkbox"
                   id="campuses_uno"
                   name="campuses[]"
                   value="UNO"
                   <?php if(in_array('UNO', $this->course->getCampuses())) { ?>
                   checked="checked"
                   <?php } ?>
                   />
            <label for="campuses_uno">UNO</label>
        </div>
        <div class="column">
            <input type="checkbox"
                   id="campuses_unmc"
                   name="campuses[]"
                   value="UNMC"
                   <?php if(in_array('UNMC', $this->course->getCampuses())) { ?>
                   checked="checked"
                   <?php } ?>
                   />
            <label for="campuses_unmc">UNMC</label>
        </div>
        <div class="column">&nbsp;<!-- spacer --></div>
        <div class="column">
            <input type="checkbox"
                   id="campuses_unk"
                   name="campuses[]"
                   value="UNK"
                   <?php if(in_array('UNK', $this->course->getCampuses())) { ?>
                   checked="checked"
                   <?php } ?>
                   />
            <label for="campuses_unk">UNK</label>
        </div>


        <div class="clear"></div>
    </fieldset>


    <fieldset class="four_column">
        <div class="legend">IS/ES Status</div>

        <div class="column">
            <input type="hidden"
                   name="__integratedStudies"
                   disabled="disabled"
                   value="no" />
            <input type="checkbox"
                   name="__integratedStudies"
                   disabled="disabled"
                   <?php if ($this->course->isIntegratedStudies()) { ?>
                   checked="checked"
                   <?php } ?>
            />
            <label>Integrated Studies</label>
        </div>

        <div class="column">
            <input type="hidden"
                   name="__essentialStudies"
                   disabled="disabled"
                   value="no" />
            <input type="checkbox"
                   name="__essentialStudies"
                   disabled="disabled"
                   <?php if ($this->course->isEssentialStudies()) { ?>
                   checked="checked"
                   <?php } ?>
            />
            <label>Essential Studies</label>
        </div>

        <div class="clear"></div>
    </fieldset>


    <div class="clear"></div>
</div>









<div class="main_section">
<h2>Notes &amp; Description</h2>


    <h3>Notes</h3>
    <fieldset>
        <textarea id="notes" name="notes" class="mceEditor"><?php echo $this->course->getNotes(); ?></textarea>
    </fieldset>


    <h3>Description</h3>
    <fieldset>
        <textarea id="description" name="description" class="mceEditor"><?php echo $this->course->getDescription(); ?></textarea>
    </fieldset>


    <div class="clear"></div>

</div>










<?php $gradTieIn = $this->course->getGradTieIn(); ?>
<div class="main_section">
<h2>Graduate Tie-In</h2>


    <fieldset>
        <label>
            Credits<br />
            <input type="text" name="gradTieIn[credits]" value="<?php echo $gradTieIn['credits']; ?>" /><br />
        </label>
        <label>
            Prereq<br />
            <textarea name="gradTieIn[prerequisites]" class="mceEditor"><?php echo $gradTieIn['prerequisites']; ?></textarea><br />
        </label>
        <label>
            Notes<br />
            <textarea name="gradTieIn[notes]" class="mceEditor"><?php echo $gradTieIn['notes']; ?></textarea>
        </label>
    </fieldset>


</div>


<?php } // if not a remove course request ?>




<?php
if (in_array($this->request->getType(), array('NewCourseWithACE', 'AddACEToCourse', 'AddACEAndChangeCourse'))) {
?>

<div class="main_section" id="aceSection">
<h2>ACE Certification</h2>

    <div>
        In its review of requests for ACE certification, the Interim ACE committee
        (eventually the UCC ACE subcommittee) will use such criteria as:
        <ul>
        <li>
            Does the course clearly address the Learning Outcome(s) identified?
        </li>
        <li>
            Does the course provide students with opportunities to develop the
            knowledge/skills necessary for successful achievement of the Learning
            Outcome(s)?
        </li>
        <li>
            Does the course provide students with opportunities to demonstrate
            achievement of the Learning Outcome(s)?
        </li>
        <li>
            Does the course reinforce at least one of the following as appropriate
            for the discipline and as identified by the department offering
            the course: Writing, Oral Communication, Visual Literacy, Historical
            Perspectives, Mathematics and Statistics, Critical Thinking, Teamwork,
            Problem Solving, Ethics, Civics, Social Responsibility, Global Awareness,
            or Human Diversity?
        </li>
        <li>
            Have the hosting department/unit and the instructor(s) agreed to
            follow through with their responsibilities as outlined in the ACE
            Course Certification Request Form?
        </li>
        </ul>
    </div>


    <div class="required">
        Students select which one outcome they will receive ACE credit for.  Faculty
        should indicate which one or two ACE Learning Outcome(s) are satisfied by
        the course.
    </div>

    <fieldset class="wideOption">
        <ul id="aceOutcomeList">

        <?php foreach(Courses_CourseModel::getAceOutcomeDataWithSloKey() as $sloKey => $outcome) { ?>
        <?php $outcomeData = $this->course->getAceOutcomeByShortName($outcome['shortName']); ?>
        <?php if ($sloKey == 'SLO1') { ?>
            <div class="sloCategoryDescription">
                Develop intellectual and practical <b>skills</b>, including proficiency
                in written, oral, and visual communication; inquiry techniques;
                critical and creative thinking; quantitative applications; information
                assessment; teamwork; and problem-solving.
            </div>
        <?php } else if ($sloKey == 'SLO4') { ?>
            <div class="sloCategoryDescription">
                Build <b>knowledge</b> of diverse peoples and cultures and of the
                natural and physical world through study of mathematics, sciences
                and technologies, histories, humanities, arts, social sciences,
                and human diversity.
            </div>
        <?php } else if ($sloKey == 'SLO8') { ?>
            <div class="sloCategoryDescription">
                Exercise individual and social <b>responsibilities</b> through the
                study of ethical principles and reasoning, application of civic
                knowledge, interaction with diverse cultures, and engagement with
                global issues.
            </div>
        <?php } else if ($sloKey == 'SLO10') { ?>
            <div class="sloCategoryDescription">
                <b>Integrate</b> these abilities and capacities, adapting them to
                new settings, questions, and responsibilities.
            </div>
        <?php } ?>
        <li>
        <label for="ace[outcomes][<?php echo $outcome['shortName']; ?>][enabled]">
            <?php echo $sloKey; ?>.
            <?php echo $this->formCheckbox('ace[outcomes][' . $outcome['shortName'] . '][enabled]', '1', array('checked' => is_array($outcomeData))); ?>
            <?php echo $outcome['description']; ?>
        </label>
        <span <?php if (!is_array($outcomeData)) { ?>style="display: none;"<?php } ?>>
        <br />

        <br />
        <label class="required">
            Describe opportunities students should have to learn the outcome.<br />
            How is the learning objective embedded in the course?
        </label>
        <br />
        <textarea id="mceEditor<?php echo ++$mceEditorCount; ?>" class="mceEditor" name="ace[outcomes][<?php echo $outcome['shortName']; ?>][justification]"><?php echo $outcomeData['justification']; ?></textarea>

        <br />
        <label class="required">
            Describe student work that will be used to assess student achievement
            of the outcome.
        </label>
        <br />
        <textarea id="mceEditor<?php echo ++$mceEditorCount; ?>" class="mceEditor" name="ace[outcomes][<?php echo $outcome['shortName']; ?>][studentWork]"><?php echo $outcomeData['studentWork']; ?></textarea>

        <br />
        <label class="required">
            As part of the ACE certification process, the department/unit agrees to
            collect and assess a reasonable sample of students' work and provide
            reflections on students' achievement of the Learning Outcomes for its
            respective ACE-certified courses.<br />
            Please comment on your plans to develop a process to collect and evaluate
            student work over time for the purpose of assessing student success for
            this ACE outcome.
        </label>
        <br />
        <textarea id="mceEditor<?php echo ++$mceEditorCount; ?>" class="mceEditor" name="ace[outcomes][<?php echo $outcome['shortName']; ?>][assesmentPlan]"><?php echo $outcomeData['assesmentPlan']; ?></textarea>

        </span>
        </li>
        <?php } ?>

        </ul>

    </fieldset>


    <fieldset>
        <div class="required">
        What Outcome(s) or skill(s) will be reinforced in this course?
        </div>

        <div id="reinforcementDescription">
        According to the ACE document approved by faculty (Structural Criteria,
        item 9), "Every ACE course will reinforce at least one of the following
        skills listed below as appropriate for the discipline and as identified
        by the department offering the course..." Indicate skills that will be reinforced
        by the course by clicking on as many as apply and describe briefly how those
        skills will be reinforced.<br /><br />

        <b>These areas are those <em>OTHER THAN</em> the one or two outcomes for
        which you seek ACE certification. Students will not receive ACE credit for
        the reinforced skills, and the reinforced skills do not need to be assessed
        for ACE purposes.</b>
        </div>

        <ul id="aceReinforcementList">
        <?php foreach (Courses_CourseModel::getAceReinforcementNames() as $shortName => $longName) { ?>
        <?php $reinforcementData = $this->course->getAceReinforcementByShortName($shortName); ?>
        <li>
        <label for="ace[reinforcements][<?php echo $shortName; ?>][enabled]">
            <?php echo $this->formCheckbox('ace[reinforcements][' . $shortName . '][enabled]', '1', array('checked' => is_array($reinforcementData))); ?>
            <?php echo $longName; ?>
        </label>
        <span <?php if (!$reinforcementData) { ?>style="display: none;"<?php } ?>>
            <br /><br />
            <label class="required">Describe briefly how this skill will be reinforced.</label><br />
            <textarea id="mceEditor<?php echo ++$mceEditorCount; ?>" class="mceEditor" name="ace[reinforcements][<?php echo $shortName; ?>][description]"><?php echo $reinforcementData['description']; ?></textarea>
        </span>
        </li>
        <?php } ?>
        </ul>
    </fieldset>

</div>

<?php } ?>


















<div class="main_section">
<h2>Supportive Material</h2>


    <?php if (!in_array($this->request->getType(), array('AddACEToCourse', 'RemoveACEFromCourse'))) { ?>
    <fieldset>
        <label>
            <h3 class="required">Justification</h3>
            <textarea name="request[justification]" class="mceEditor"><?php echo $this->request->getJustification(); ?></textarea>
        </label>
    </fieldset>
    <?php } else { ?>
    <input type="hidden" name="request[justification]" value="See ACE Certification Details" />
    <?php } ?>


    <fieldset>
        <label>
            <?php if (in_array($this->request->getType(), array('NewCourse', 'NewCourseWithIS', 'NewCourseWithACE', 'AddACEToCourse', 'AddACEAndChangeCourse'))) { ?>
            <h3 class="required">Syllabus (Required)</h3>
            <?php } else { ?>
            <h3>Syllabus</h3>
            <?php } ?>

            <?php
                $syllabus = $this->request->getFile(Requests_RequestModel::FILE_TYPE_SYLLABUS);
                if ($syllabus) {
                    if ($syllabus['file']) { ?>
                        <a href="<?php echo $this->baseUrl(); ?>/requests/view/get-file/fileId/<?php echo $syllabus['file']; ?>">
                    <?php } else { ?>
                        <a href="<?php echo $this->baseUrl(); ?>/requests/view/get-file/fileId/session/type/<?php echo Requests_RequestModel::FILE_TYPE_SYLLABUS; ?>">
                    <?php }
                    echo htmlspecialchars($syllabus['title']);
                    echo '</a>';
                }
            ?>
            <input type="file" name="request[<?php echo Requests_RequestModel::FILE_TYPE_SYLLABUS; ?>]" />
        </label>
        <label>
            Remove
            <input type="hidden"   name="removeFiles[<?php echo Requests_RequestModel::FILE_TYPE_SYLLABUS; ?>]" value="no" />
            <input type="checkbox" name="removeFiles[<?php echo Requests_RequestModel::FILE_TYPE_SYLLABUS; ?>]" value="yes" />
        </label>
        <?php if (in_array($this->request->getType(), array('NewCourseWithACE', 'AddACEToCourse', 'AddACEAndChangeCourse'))) { ?>
        <div>
            Attach a copy of the sample syllabus that clearly identifies:
            <ul>
            <li>
                The Learning Outcome(s) that are satisfied by the course.
            </li>
            <li>
                A brief description of the opportunities this course provides students
                to acquire the knowledge or skills necessary to achieve the Learning
                Outcome(s)
            </li>
            <li>
                A brief description of the graded assignments that the instructor(s)
                uses to assess the students' achievement of the Outcome(s).
            </li>
            </ul>
        </div>
        <?php } ?>
    </fieldset>


    <fieldset>
        <label>
            <h3>Crosslist Memo (Required if applicable)</h3>
            <?php
                $crosslistMemo = $this->request->getFile(Requests_RequestModel::FILE_TYPE_CROSSLIST_MEMO);
                if ($crosslistMemo) {
                    if ($crosslistMemo['file']) { ?>
                        <a href="<?php echo $this->baseUrl(); ?>/requests/view/get-file/fileId/<?php echo $crosslistMemo['file']; ?>">
                    <?php } else { ?>
                        <a href="<?php echo $this->baseUrl(); ?>/requests/view/get-file/fileId/session/type/<?php echo Requests_RequestModel::FILE_TYPE_CROSSLIST_MEMO; ?>">
                    <?php }
                    echo htmlspecialchars($crosslistMemo['title']);
                    echo '</a>';
                }
            ?>
            <input type="file" name="request[<?php echo Requests_RequestModel::FILE_TYPE_CROSSLIST_MEMO; ?>]" />
        </label>
        <label>
            Remove
            <input type="hidden"   name="removeFiles[<?php echo Requests_RequestModel::FILE_TYPE_CROSSLIST_MEMO; ?>]" value="no" />
            <input type="checkbox" name="removeFiles[<?php echo Requests_RequestModel::FILE_TYPE_CROSSLIST_MEMO; ?>]" value="yes" />
        </label>
        <?php if (in_array($this->request->getType(), array('NewCourseWithACE', 'AddACEToCourse', 'AddACEAndChangeCourse'))) { ?>
        <div>
            If the course proposed for ACE certification is cross-listed, include a
            letter of support from the chair/head of each cross-listed unit.
        </div>
        <?php } ?>
    </fieldset>


    <?php if(in_array($this->request->getType(), array('NewCourseWithIS', 'AddISToCourse'))) { ?>
    <fieldset>
        <label>
            <h3 class="required">IS Narrative Documentation</h3>
            <?php
                $ISNarrative = $this->request->getFile(Requests_RequestModel::FILE_TYPE_IS_NARRATIVE);
                if ($ISNarrative) {
                    if ($ISNarrative['file']) { ?>
                        <a href="<?php echo $this->baseUrl(); ?>/requests/view/get-file/fileId/<?php echo $ISNarrative['file']; ?>">
                    <?php } else { ?>
                        <a href="<?php echo $this->baseUrl(); ?>/requests/view/get-file/fileId/session/type/<?php echo Requests_RequestModel::FILE_TYPE_IS_NARRATIVE; ?>">
                    <?php }
                    echo htmlspecialchars($ISNarrative['title']);
                    echo '</a>';
                }
            ?>
            <input type="file" name="request[<?php echo Requests_RequestModel::FILE_TYPE_IS_NARRATIVE; ?>]" />
        </label>
        <label>
            Remove
            <input type="hidden"   name="removeFiles[<?php echo Requests_RequestModel::FILE_TYPE_IS_NARRATIVE; ?>]" value="no" />
            <input type="checkbox" name="removeFiles[<?php echo Requests_RequestModel::FILE_TYPE_IS_NARRATIVE; ?>]" value="yes" />
        </label>
    </fieldset>
    <?php } ?>


    <fieldset>
        <label>
            <h3>Additional Documentation (Optional)</h3>
            <?php
                $additionalDocumentation = $this->request->getFile(Requests_RequestModel::FILE_TYPE_OTHER);
                if ($additionalDocumentation) {
                    if ($additionalDocumentation['file']) { ?>
                        <a href="<?php echo $this->baseUrl(); ?>/requests/view/get-file/fileId/<?php echo $additionalDocumentation['file']; ?>">
                    <?php } else { ?>
                        <a href="<?php echo $this->baseUrl(); ?>/requests/view/get-file/fileId/session/type/<?php echo Requests_RequestModel::FILE_TYPE_OTHER; ?>">
                    <?php }
                    echo htmlspecialchars($additionalDocumentation['title']);
                    echo '</a>';
                }
            ?>
            <input type="file" name="request[<?php echo Requests_RequestModel::FILE_TYPE_OTHER; ?>]" />
        </label>
        <label>
            Remove
            <input type="hidden"   name="removeFiles[<?php echo Requests_RequestModel::FILE_TYPE_OTHER; ?>]" value="no" />
            <input type="checkbox" name="removeFiles[<?php echo Requests_RequestModel::FILE_TYPE_OTHER; ?>]" value="yes" />
        </label>
        <?php if (in_array($this->request->getType(), array('NewCourseWithACE', 'AddACEToCourse', 'AddACEAndChangeCourse'))) { ?>
        <div>
            If the course proposed for ACE certification is an Honors course, include
            letter of support from chair/head of the department offering the Honors
            course.
        </div>
        <?php } ?>
    </fieldset>



</div>








<input type="submit" value="Preview" />
<input id="cancel_request" type="submit" name="submitType" value="Cancel" />

</form>