[mythtv] [PATCH] Mythweb: Added left/right arrows to program listing view

Chris Delis cedelis at uillinois.edu
Sun Mar 14 11:16:58 EST 2004


The arrow images seemed a tad large.  Here are smaller ones:

--Chris

On Sat, Mar 13, 2004 at 07:55:21PM -0600, Chris Delis wrote:
> 
> I sort of like the left and right arrows in MythTV's EPG that lets me
> know if a program 'starts before' and/or 'ends after' the currently
> listed time slot.
> 
> Disclaimer: This is my first patch and I haven't spent too much time
> studying the Mythweb code.  But, so far it seems to work well for me. :)
> 
> Attached is the patch file along with 2 arrow images which belong in:
> themes/Default/img/
> 
> --Chris
> 
> 
> 

> Index: mythweb/themes/Default/program_listing.php
> ===================================================================
> RCS file: /var/lib/mythcvs/mythweb/themes/Default/program_listing.php,v
> retrieving revision 1.20
> diff -u -r1.20 program_listing.php
> --- mythweb/themes/Default/program_listing.php	17 Feb 2004 03:31:27 -0000	1.20
> +++ mythweb/themes/Default/program_listing.php	14 Mar 2004 01:45:07 -0000
> @@ -268,6 +268,12 @@
>  		$mouseover .= 'return true;"';
>  	// Print a link to record this show
>  		echo '<a id="program_'.$program_id_counter.'" href="program_detail.php?chanid='.$program->chanid.'&starttime='.$program->starttime.'"'.$mouseover.'>';
> +
> +	// Is this program 'Already in Progress'?
> +		$display_starttime = $list_starttime - $timeslots_used * timeslot_size;
> +		if ($program->starttime <= $display_starttime - timeslot_blocks * timeslot_size)
> +			echo '<img src="themes/Default/img/leftwhite.png">';
> +
>  		if ($percent > 5) {
>  			echo $program->title;
>  			if (strlen($program->subtitle) > 0) {
> @@ -301,6 +307,11 @@
>  	// Finally, print some other information
>  		if ($program->previouslyshown)
>  			echo "<BR><i>(Rerun)</i>";
> +
> +	// Does this program 'Continue'?
> +		if ($program->endtime >= $list_starttime + timeslot_blocks * timeslot_size)
> +			echo '<img src="themes/Default/img/rightwhite.png">';
> +
>  	?></td>
>  <?php
>  	}



> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

-------------- next part --------------
A non-text attachment was scrubbed...
Name: leftwhite.png
Type: image/png
Size: 170 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20040314/2f253708/leftwhite-0001.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rightwhite.png
Type: image/png
Size: 170 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20040314/2f253708/rightwhite-0001.png


More information about the mythtv-dev mailing list