﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	mlocked
3644	showing priorities while scheduling	anonymous	Rob Smith	"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>
}}}
"	patch	closed	minor	0.22	mythweb	unknown	medium	invalid			0
