/[suikacvs]/test/html-whatpm/table.cgi
Suika

Diff of /test/html-whatpm/table.cgi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by wakaba, Sun May 27 10:00:48 2007 UTC revision 1.7 by wakaba, Tue May 6 08:47:09 2008 UTC
# Line 63  if ($mode eq '/table') { Line 63  if ($mode eq '/table') {
63      $i++; print STDOUT "<h1>Table $i</h1>\n";      $i++; print STDOUT "<h1>Table $i</h1>\n";
64    
65      my $table = Whatpm::HTMLTable->form_table ($table_el);      my $table = Whatpm::HTMLTable->form_table ($table_el);
66        Whatpm::HTMLTable->assign_header ($table);
67    
68      for (@{$table->{column_group}}, @{$table->{column}}, $table->{caption}) {      delete $table->{element};
69    
70        for (@{$table->{column_group}}, @{$table->{column}}, $table->{caption},
71             @{$table->{row}}) {
72        next unless $_;        next unless $_;
73        delete $_->{element};        delete $_->{element};
74      }      }
# Line 81  if ($mode eq '/table') { Line 85  if ($mode eq '/table') {
85        for (@{$_}) {        for (@{$_}) {
86          next unless $_;          next unless $_;
87          for (@$_) {          for (@$_) {
88              $_->{id} = ''.$_->{element} if defined $_->{element};
89            delete $_->{element};            delete $_->{element};
90              $_->{is_header} = $_->{is_header} ? 1 : 0;
91          }          }
92        }        }
93      }      }
# Line 90  if ($mode eq '/table') { Line 96  if ($mode eq '/table') {
96    tableToCanvas (    tableToCanvas (
97  ';  ';
98      print STDOUT objToJson ($table);      print STDOUT objToJson ($table);
99      print STDOUT ');      print STDOUT ', document.body, "");
100  </script>';  </script>';
101    }    }
102    
# Line 107  Wakaba <w@suika.fam.cx>. Line 113  Wakaba <w@suika.fam.cx>.
113    
114  =head1 LICENSE  =head1 LICENSE
115    
116  Copyright 2007 Wakaba <w@suika.fam.cx>  Copyright 2007-2008 Wakaba <w@suika.fam.cx>
117    
118  This library is free software; you can redistribute it  This library is free software; you can redistribute it
119  and/or modify it under the same terms as Perl itself.  and/or modify it under the same terms as Perl itself.

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.7

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24