[mythtv] MythWeb

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


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

Sheesh

How many times do I have to try this??

It should show arrows every time the hours are shown.
It uses anchors to move you near the set of arrows you clicked on.

Here is the latest and best patch.  I hope.  Can someone let me know if
it works?

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>";
>  	}
>  


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

--- listings.php	2002-12-06 16:40:51.000000000 -0500
+++ listings.php.new	2002-12-06 17:00:44.000000000 -0500
@@ -42,7 +42,7 @@
 $channelarray =3D setupChannels();
 $recordArray =3D setupRecordings();
 $programarray =3D setupPrograms($channelarray, $timearray, $timeSlots);
-
+$anchor=3D0;
=20
 //
 //	Start outputing. First a big
@@ -181,13 +181,27 @@
 	print "\t</tr>\n";
=20
 	if ($timebar =3D=3D $timeBarCount) { // print the time listing every 15 c=
hannels
-		print "<tr><td>";
+		$anchor++;
+		print "<tr><td><a name=3D'anchor$anchor'";
+
+//
+//	Left arrow to go back in time
+//	(if only it were that easy)
+//
+print "<A HREF=3D\"main.php?mode=3Dlistings&timeoffset=3D$pastOffset#ancho=
r$anchor\"><IMG 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=
#anchor$anchor\"><IMG SRC=3D\"images/right.gif\" BORDER=3D\"0\" ALT=3D\"rig=
ht\"></A>";
+
 		print "</td></tr>";
 	}
=20

--=-l1R79yNqOndkDrJPErs0--