<?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>