Ticket #1149: custom_inactive.patch

File custom_inactive.patch, 1.8 KB (added by derek@…, 14 years ago)

Allow toggle of custom rules between active/inactive

  • themes/default/tv/schedules_custom.php

     
    210210                <dd><input type="checkbox" class="radio" name="autouserjob3"<?php if ($schedule->autouserjob3) echo ' CHECKED' ?> value="1" /></dd>
    211211                <dt><?php echo get_backend_setting('UserJobDesc4') ?>:</dt>
    212212                <dd><input type="checkbox" class="radio" name="autouserjob4"<?php if ($schedule->autouserjob4) echo ' CHECKED' ?> value="1" /></dd>
     213                <dt><?php echo t('Inactive') ?>:</dt>
     214                <dd><input type="checkbox" class="radio" name="inactive"<?php if ($schedule->inactive) echo ' CHECKED' ?> value="1" /></dd>
    213215                <dt><?php echo t('Auto-expire recordings') ?>:</dt>
    214216                <dd><input type="checkbox" class="radio" name="autoexpire"<?php if ($schedule->autoexpire) echo ' CHECKED' ?> value="1" /></dd>
    215217                <dt><?php echo t('Record new and expire old') ?>:</dt>
  • modules/tv/schedules_custom.php

     
    8282            $schedule->autouserjob2  = $_POST['autouserjob2'] ? 1 : 0;
    8383            $schedule->autouserjob3  = $_POST['autouserjob3'] ? 1 : 0;
    8484            $schedule->autouserjob4  = $_POST['autouserjob4'] ? 1 : 0;
     85            $schedule->inactive      = $_POST['inactive']     ? 1 : 0;
    8586            $schedule->maxnewest     = $_POST['maxnewest']    ? 1 : 0;
    8687            $schedule->dupin         = _or($_POST['dupin'],    15);
    8788            $schedule->dupmethod     = _or($_POST['dupmethod'], 6);