[mythtv] MythWeb

Michael Kedl mythtv-dev@snowman.net
06 Dec 2002 16:55:42 -0500


--=-JtY6WZ6bdqMUeEFgeT/5
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

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


--=-JtY6WZ6bdqMUeEFgeT/5
Content-Disposition: attachment; filename=mythwebpatch
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; name=mythwebpatch; charset=ISO-8859-1

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

--=-JtY6WZ6bdqMUeEFgeT/5--