You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

25 lines
690 B

  1. /* standard 2-column layout with
  2. wrapper
  3. + wtab
  4. + main
  5. + head
  6. + toolbar_area
  7. + body
  8. + footer
  9. + sidebar_area
  10. */
  11. wn.PageLayout = function(args) {
  12. $.extend(this, args)
  13. this.wrapper = $a(this.parent, 'div');
  14. this.wtab = make_table(this.wrapper, 1, 2, '100%', [this.main_width, this.sidebar_width]);
  15. this.main = $a($td(this.wtab,0,0), 'div', 'layout_wrapper');
  16. this.sidebar_area = $a($td(this.wtab,0,1), 'div');
  17. this.head = $a(this.main, 'div');
  18. this.toolbar_area = $a(this.main, 'div');
  19. this.body = $a(this.main, 'div');
  20. this.footer = $a(this.main, 'div');
  21. if(this.heading) {
  22. this.page_head = new PageHeader(this.head, this.heading);
  23. }
  24. }