Index: program_listing.php
===================================================================
RCS file: /var/lib/mythcvs/mythweb/themes/Default/program_listing.php,v
retrieving revision 1.35
diff -u -r1.35 program_listing.php
--- program_listing.php	1 Mar 2005 05:21:22 -0000	1.35
+++ program_listing.php	4 Mar 2005 07:15:05 -0000
@@ -20,6 +20,23 @@
     // Print the header info specific to the program listing
 ?>
 <p>
+<script language=javascript>
+function MoveProgramListing(amount) {
+  var length = get_element('program_listing').date.length;
+  var cur = get_element('program_listing').date.selectedIndex;
+  var newPos = cur;
+  if (cur + amount < 0) {
+    newPos = 0;
+  } else if (cur + amount > length - 1) {
+    newPos = length - 1;
+  } else {
+    newPos = cur + amount;
+  }
+    
+  get_element('program_listing').date.selectedIndex = newPos;
+  get_element('program_listing').submit();
+}
+</script>
 <table align="center" width="90%" cellspacing="2" cellpadding="2">
 <tr>
     <td width="50%" align="center"><?php echo t('Currently Browsing:  $1', strftime(' %a %b %e, %Y, %I:%M %p', $start_time)) ?></td>
@@ -39,7 +56,7 @@
                 }
                 ?></select></td>
             <td align="right"><?echo t('Date') ?>:&nbsp;</td>
-            <td><select name="date" onchange="get_element('program_listing').submit()"><?php
+            <td><a href="javascript:MoveProgramListing(-1);"><img src="images/left.gif" border="0" alt="left"><select name="date" onchange="get_element('program_listing').submit()"><?php
             // Find out how many days into the future we should bother checking
                 $result = mysql_query('SELECT TO_DAYS(max(starttime)) - TO_DAYS(NOW()) FROM program')
                     or trigger_error('SQL Error: '.mysql_error(), FATAL);
@@ -53,7 +70,7 @@
                     if ($date == date("Ymd", $start_time)) echo " selected";
                     echo ">".strftime($_SESSION['date_listing_jump'] , $time)."</option>";
                 }
-                ?></select></td>
+                ?></select><a href="javascript:MoveProgramListing(+1);"><img src="images/right.gif" border="0" alt="right"></a></td>
             <td align="center"><noscript><input type="submit" class="submit" value="<? echo t('Jump') ?>"></noscript></td>
 
 
