Would be better if we use some kind of CSS to stick the header and just scrool the contents...
Gustavo --- Michael Ruelle <[EMAIL PROTECTED]> escreveu: > Puts a time header every fifteen rows so we don't have to scroll all > the > way back to the top to double check when a show is. > > -- > Mike Ruelle > [EMAIL PROTECTED] > http://world.std.com/~mruelle/ > > Index: guide.rpy > =================================================================== > RCS file: /cvsroot/freevo/freevo/src/www/htdocs/guide.rpy,v > retrieving revision 1.7 > diff -u -r1.7 guide.rpy > --- guide.rpy 30 May 2003 18:26:52 -0000 1.7 > +++ guide.rpy 20 Jul 2003 16:56:30 -0000 > @@ -120,27 +120,32 @@ > > fv.tableOpen('border="0" cellpadding="4" cellspacing="1"') > > - fv.tableRowOpen('class="chanrow"') > - fv.tableCell(time.strftime('%b %d'), 'class="guidehead"') > - now = int(mfrguidestart / INTERVAL) * INTERVAL > - for i in range(n_cols): > - if i == n_cols-1 or i == 0: > - dacell = '' > - datime = time.strftime('%H:%M', time.localtime(now)) > - if i == n_cols-1: > - dacell = datime + ' <a > href="guide.rpy?stime=%i"><img src="images/RightArrow.png" > border="0"></a>' % mfrnextguide > - else: > - if mfrprevguide > 0: > - dacell = '<a href="guide.rpy?stime=%i"><img > src="images/LeftArrow.png" border="0"></a> ' % > mfrprevguide + datime > - else: > - dacell = datime > - fv.tableCell(dacell, 'class="guidehead"') > - else: > - fv.tableCell(time.strftime('%H:%M', > time.localtime(now)), 'class="guidehead"') > - now += INTERVAL > - fv.tableRowClose() > > + showheader = 0 > for chan in guide.chan_list: > + #put guidehead every X rows > + if showheader % 15 == 0: > + fv.tableRowOpen('class="chanrow"') > + fv.tableCell(time.strftime('%b %d'), > 'class="guidehead"') > + headerstart = int(mfrguidestart / INTERVAL) * > INTERVAL > + for i in range(n_cols): > + if i == n_cols-1 or i == 0: > + dacell = '' > + datime = time.strftime('%H:%M', > time.localtime(headerstart)) > + if i == n_cols-1: > + dacell = datime + ' <a > href="guide.rpy?stime=%i"><img src="images/RightArrow.png" > border="0"></a>' % mfrnextguide > + else: > + if mfrprevguide > 0: > + dacell = '<a > href="guide.rpy?stime=%i"><img src="images/LeftArrow.png" > border="0"></a> ' % mfrprevguide + datime > + else: > + dacell = datime > + fv.tableCell(dacell, 'class="guidehead"') > + else: > + fv.tableCell(time.strftime('%H:%M', > time.localtime(headerstart)), 'class="guidehead"') > + headerstart += INTERVAL > + fv.tableRowClose() > + showheader+= 1 > + > now = mfrguidestart > fv.tableRowOpen('class="chanrow"') > # chan.displayname = string.replace(chan.displayname, > "&", "SUB") > _______________________________________________________________________ Yahoo! Mail Mais espa�o, mais seguran�a e gratuito: caixa postal de 6MB, antiv�rus, prote��o contra spam. http://br.mail.yahoo.com/ ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 _______________________________________________ Freevo-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-devel
