[mythtv] MythWeb

Michael Kedl mythtv-dev@snowman.net
06 Dec 2002 17:05:02 -0500


OK

Here is a better patch that uses anchors to move you close the the <- or
-> arrow that you clicked on.

AND

I think this patch will actually work; I don't use patch very often.....

Mike


On Fri, 2002-12-06 at 16:55, Michael Kedl wrote:
> Attached is a small patch to make the listings show the <- and -> arrows
> every time the times are shown; I like this a lot instead of having to
> scroll back to the top....
> 
> Thanks for the nice web interface!
> Mike
> 
> P.S.
> I'm not sure why all the tabs are in the original version.  I took them
> out of my patch, was this to make it easier to read on the console
> maybe?
> 
> 
> On Fri, 2002-12-06 at 15:14, Russell Hatch wrote:
> > Attached is a more recent cvs diff for mythweb, so if you're gonna do it this weekend, use this one.  I cleaned up the main program listing guide in addition to everything else i listed for the previous patch.  I wouldn't mind getting some feedback for this from people, so if you're bored, check it out, it makes the web interface a lot more useable IMO.
> > 
> > Russell Hatch
> 
> ----
> 

> --- a	2002-12-06 16:40:51.000000000 -0500
> +++ listings.php	2002-12-06 16:51:39.000000000 -0500
> @@ -182,12 +182,25 @@
>  
>  	if ($timebar == $timeBarCount) { // print the time listing every 15 channels
>  		print "<tr><td>";
> +
> +//
> +//	Left arrow to go back in time
> +//	(if only it were that easy)
> +//
> +print "<A HREF=\"main.php?mode=listings&timeoffset=$pastOffset\"><IMG SRC=\"images/left.gif\" BORDER=\"0\" ALT=\"left\"></A></td>";
> +
>  		for ($timeslot = 0; $timeslot < $timeSlots; $timeslot += 1) {
>  			$theTime = $timearray[$timeslot];
>  		    $theTime->setColour($text_dark, $list_fg_colour);
>  			$theTime->printYourself();
>  		}
>  		$timebar = 0;
> +
> +//
> +//	Right arrow to go forward in time
> +//
> +print "<td><A HREF=\"main.php?mode=listings&timeoffset=$futureOffset\"><IMG SRC=\"images/right.gif\" BORDER=\"0\" ALT=\"right\"></A>";
> +
>  		print "</td></tr>";
>  	}
>