<input type=submit value="refresh">
+% my $export = param('export');
+% session('export', $export );
+<input type=checkbox name=export value=1 title="export" <%= $export ? 'checked' : '' %> >
+% my $timefmt = param('timefmt');
+% session('timefmt', $timefmt );
+timefmt: <input name=timefmt value="<%= $timefmt %>">
+
</form>
+% if ( $export ) {
+<img id=gnuplot src="/gnuplot?timefmt=<%= $timefmt %>">
+% }
+
<%= include 'data/items/' . session('show') %>
<div class=pager>
<li>columns: <%= join(',',@$columns) %>
<li>numeric: <%= dumper $numeric %>
<li>order: <%= session('order') %> sort: <%= session('sort') %>
+<li>filters: <%= dumper $filters %>
</ul>
+
+<script type="text/javascript">
+$(document).ready( function(){
+ $('select[name=limit]').change( function(){
+ console.debug( 'limit changed', this );
+ $(this).closest('form').submit();
+ });
+});
+</script>