[mythtv-commits] Ticket #3644: showing priorities while scheduling
MythTV
mythtv at cvs.mythtv.org
Wed Jun 20 09:08:42 UTC 2007
#3644: showing priorities while scheduling
-----------------------+----------------------------------------------------
Reporter: anonymous | Owner: xris
Type: patch | Status: new
Priority: minor | Milestone: unknown
Component: mythweb | Version: unknown
Severity: medium | Mlocked: 0
-----------------------+----------------------------------------------------
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>
}}}
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/3644>
MythTV <http://svn.mythtv.org/trac>
MythTV
More information about the mythtv-commits
mailing list