Opened 19 years ago
Closed 18 years ago
#3644 closed patch (invalid)
showing priorities while scheduling
| Reported by: | anonymous | Owned by: | Rob Smith |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.22 |
| Component: | mythweb | Version: | unknown |
| Severity: | medium | Keywords: | |
| Cc: | Ticket locked: | no |
Description
I submitted this to the wishlist for mythweb:
When scheduling a recording and selecting the priority, would be nice to see at least one other schedule for each priority level - then you can choose the priority without guessing!
Here is the code if you want it (im not sure about the sql but is seems to work): modules/tv/detail.php:
// get the recording priorities
$priorities = array();
$sh = $db->query("SELECT recpriority, title FROM record WHERE (startdate > curdate() or next_record = 0) group by recpriority");
while($row = $sh->fetch_row()){
$priorities[$row[0]] = $row[1];
}
and modules/tv/tmpl/default/detail.php
<dd>
<select name="recpriority">
<?php
for ($i=99; $i>=-99; --$i) {
$title = $priorities[$i];
echo "<option value=\"$i\"";
if ($schedule->recpriority == $i)
echo ' SELECTED';
echo ">$i - $title</option>";
}
?>
</select>
</dd>
Change History (4)
Note:
See TracTickets
for help on using tickets.

I'm not entirely sure this helps much. If you submit a patch (svn diff > file.patch) and add in a way to toggle this behavior, and have it off by default, I'll consider including it.