54 | | <form action="program_detail.php" method="get" name="record_settings"> |
55 | | <input type="hidden" name="chanid" value="<?=$_GET['chanid']?>"> |
56 | | <input type="hidden" name="starttime" value="<?=$_GET['starttime']?>"> |
57 | | <br> |
58 | | <center>Recording Options:</center> |
59 | | <input type="radio" class="radio" name="record" value="never" id="record_never"<?= |
60 | | $this_program->will_record ? '' : ' CHECKED'?>></input> |
61 | | <a>Don't record</a><br> |
62 | | <input type="radio" class="radio" name="record" value="once" id="record_once"<?= |
63 | | $this_program->record_once ? ' CHECKED' : ''?>></input> |
64 | | <a>Record showing</a><br> |
65 | | <input type="radio" class="radio" name="record" value="daily" id="record_daily"<?= |
66 | | $this_program->record_daily ? ' CHECKED' : ''?>></input> |
67 | | <a>Record every day</a> at this time<br> |
68 | | <input type="radio" class="radio" name="record" value="weekly" id="record_weekly"<?= |
69 | | $this_program->record_weekly ? ' CHECKED' : ''?>></input> |
70 | | <a>Record every week</a> at this time<br> |
71 | | <input type="radio" class="radio" name="record" value="channel" id="record_channel"<?= |
72 | | $this_program->record_channel ? ' CHECKED' : ''?>></input> |
73 | | <a>Always record on this channel</a><br> |
74 | | <input type="radio" class="radio" name="record" value="always" id="record_always"<?= |
75 | | $this_program->record_always ? ' CHECKED' : ''?>></input> |
76 | | <a>Always record on any channel</a><br> |
| 53 | <form name="program_detail" method="post" action="program_detail.php?<?php |
| 54 | if ($_GET['recordid']) |
| 55 | echo 'recordid='.urlencode($_GET['recordid']); |
| 56 | else |
| 57 | echo 'chanid='.urlencode($_GET['chanid']).'&starttime='.urlencode($_GET['starttime']) |
| 58 | ?>"> |
| 59 | <center>Schedule Options:</center> |
| 60 | <input type="radio" class="radio" name="record" value="record_never" id="record_never"<?= |
| 61 | $schedule->recordid ? '' : ' CHECKED'?>></input> |
| 62 | <a><?php |
| 63 | if ($schedule->recordid) |
| 64 | echo 'Cancel'; |
| 65 | else |
| 66 | echo 'Don\'t record'; |
| 67 | ?> |
| 68 | </a><br> |
| 69 | <input type="radio" class="radio" name="record" value="<? echo rectype_once?>" id="record_once"<?= |
| 70 | $schedule->type == rectype_once ? ' CHECKED' : ''?>></input> |
| 71 | <a>Record showing</a><br> |
| 72 | <input type="radio" class="radio" name="record" value="<?echo rectype_daily ?>" id="record_daily"<?= |
| 73 | $schedule->type == rectype_daily ? ' CHECKED' : ''?>></input> |
| 74 | <a>Record every day</a> at this time<br> |
| 75 | <input type="radio" class="radio" name="record" value="<? echo rectype_weekly?>" id="record_weekly"<?= |
| 76 | $schedule->type == rectype_weekly ? ' CHECKED' : ''?>></input> |
| 77 | <a>Record every week</a> at this time<br> |
| 78 | <input type="radio" class="radio" name="record" value="<? echo rectype_findone ?>" id="record_findone"<?= |
| 79 | $schedule->type == rectype_findone ? ' CHECKED' : ''?>></input> |
| 80 | <a>Find one episode</a><br> |
| 81 | <input type="radio" class="radio" name="record" value="<? echo rectype_finddaily ?>" id="record_finddaily"<?= |
| 82 | $schedule->type == rectype_finddaily ? ' CHECKED' : ''?>></input> |
| 83 | <a>Find one episode every day</a><br> |
| 84 | <input type="radio" class="radio" name="record" value="<? echo rectype_findweekly ?>" id="record_findweekly"<?= |
| 85 | $schedule->type == rectype_finddaily ? ' CHECKED' : ''?>></input> |
| 86 | <a>Find one episode every week</a><br> |
| 87 | <input type="radio" class="radio" name="record" value="<? echo rectype_channel?>" id="record_channel"<?= |
| 88 | $schedule->type == rectype_channel ? ' CHECKED' : ''?>></input> |
| 89 | <a>Always record on this channel</a><br> |
| 90 | <input type="radio" class="radio" name="record" value="<? echo retype_always ?>" id="record_always"<?= |
| 91 | $schedule->type == rectype_always ? ' CHECKED' : ''?>></input> |
| 92 | <a>Always record on any channel</a><br> |
79 | | <select name="profile"> |
80 | | <?php |
81 | | |
82 | | global $Profiles; |
83 | | foreach($Profiles as $profile) { |
84 | | echo '<option value="'.htmlentities($profile['id']).'"'; |
85 | | if ($this_program->profile == $profile['id']) |
86 | | echo ' SELECTED'; |
87 | | echo '>'.htmlentities($profile['name']).'</option>'; |
88 | | } |
89 | | ?></select><br> |
90 | | Rank<br> |
91 | | <select name="rank"> |
92 | | <?php |
93 | | for($rankcount=-10;$rankcount<=10;++$rankcount) { |
94 | | echo '<option value="'.htmlentities($rankcount).'"'; |
95 | | if ($this_program->rank == $rankcount) |
96 | | echo ' SELECTED'; |
97 | | echo '>'.htmlentities($rankcount).'</option>'; |
98 | | } |
99 | | ?></select><br> |
100 | | <input type="checkbox" class="radio" name="recorddups"<?php if ($this_program->recorddups) echo ' CHECKED' ?>> |
101 | | Record Dupes? <br> |
102 | | <input type="checkbox" class="radio" name="autoexpire" <?php if ($this_program->autoexpire) echo "CHECKED" ?>> |
103 | | Auto-expire? <br> |
104 | | No of recordings to keep?<br><input type="input" name="maxepisodes" size="1" value="<?php echo htmlentities($this_program->maxepisodes) ?>"><br> |
105 | | <input type="checkbox" class="radio" name="maxnewest" <?php if ($this_program->maxnewest) echo "CHECKED" ?>> |
106 | | Record new and expire old? <br> |
107 | | |
| 95 | <?php profile_select($schedule->profile) ?> |
| 96 | <br> |
| 97 | <input type="checkbox" class="radio" name="autocommflag"<?php if ($schedule->autocommflag) echo ' CHECKED' ?> value="1" /> |
| 98 | <a><? echo t('Auto-flag commercials') ?></a><br/> |
| 99 | <input type="checkbox" class="radio" name="autoexpire"<?php if ($schedule->autoexpire) echo ' CHECKED' ?> value="1" /> |
| 100 | <a><? echo t('Auto-expire recordings') ?></a><br/> |
| 101 | <input type="checkbox" class="radio" name="maxnewest"<?php if ($schedule->maxnewest) echo ' CHECKED' ?> value="1" /> |
| 102 | <a><? echo t('Record new and expire old') ?></a><br/> |
| 103 | <input type="checkbox" class="radio" name="inactive"<?php if ($schedule->inactive) echo ' CHECKED' ?> value="1" /> |
| 104 | <a><? echo t('Inactive') ?></a><br/> |
| 105 | <?php echo t('No. of recordings to keep') ?>: |
| 106 | <input type="input" class="quantity" name="maxepisodes" value="<?php echo htmlentities($schedule->maxepisodes) ?>" size="2"/><br/> |
| 107 | <?php echo t('Start Early') ?>: |
| 108 | <input type="input" class="quantity" name="startoffset" value="<?php echo htmlentities($schedule->startoffset) ?>" size="2"/> |
| 109 | <?php echo t('minutes') ?><br/> |
| 110 | <?php echo t('End Late') ?>: |
| 111 | <input type="input" class="quantity" name="endoffset" value="<?php echo htmlentities($schedule->endoffset) ?>" size="2"/> |
| 112 | <?php echo t('minutes') ?><br/> |