tabhead.qsrc 555 B

12345678910111213141516171819202122232425
  1. # tabhead
  2. '<center><b><table width="90%" cellspacing="0" cellpadding="0" valign="top"><tr>'
  3. tabscount = ARRSIZE('$tabsname')
  4. trwidth = 90 / tabscount
  5. i = 0
  6. :tabs_loop
  7. if ARGS[0] = i:
  8. *p '<th width="<<trwidth>>%"><<$tabsname[i]>></th>'
  9. else
  10. *p '<th width="<<trwidth>>%"><a href="exec:<<$tabsaction[i]>>"><<$tabsname[i]>></a></th>'
  11. end
  12. i = i + 1
  13. if i < tabscount:
  14. jump 'tabs_loop'
  15. end
  16. '</tr></table></b></center>'
  17. killvar 'i'
  18. killvar 'tabscount'
  19. killvar 'trwidth'
  20. killvar '$tabsname'
  21. killvar '$tabsaction'
  22. --- tabhead ---------------------------------