/[SQLSession]/trunk/share/web/templates/fragments/queries
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/share/web/templates/fragments/queries

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

revision 86 by dpavlin, Tue Jan 30 23:51:09 2007 UTC revision 87 by dpavlin, Mon Feb 5 18:27:46 2007 UTC
# Line 1  Line 1 
1  <%args>  <%args>
2  $on_database => undef  $on_database => undef
3    $created_on => undef;
4  $order  $order
5  </%args>  </%args>
6  <%init>  <%init>
# Line 13  my $edit = Jifty->web->current_user->rol Line 14  my $edit = Jifty->web->current_user->rol
14    
15  $queries->unlimit;  $queries->unlimit;
16  $queries->limit( column => 'on_database', value => $on_database ) if ( $on_database );  $queries->limit( column => 'on_database', value => $on_database ) if ( $on_database );
17    $queries->limit( column => 'created_on', operator => 'STARTSWITH', value => $created_on ) if ( $created_on );
18  $queries->order_by( column => $order, order => 'asc' );  $queries->order_by( column => $order, order => 'asc' );
19    
20  warn $queries->build_select_query,$/;  warn $queries->build_select_query,$/;
# Line 28  Sort by: Line 30  Sort by:
30          onclick => {          onclick => {
31                  replace_with => '/fragments/queries',                  replace_with => '/fragments/queries',
32                  args => {                  args => {
33                          on_database => $on_database ? $on_database : '',                          on_database => $on_database || '',
34                            created_on => $created_on || '',
35                          order => $c,                          order => $c,
36                  },                  },
37          },          },
# Line 36  Sort by: Line 39  Sort by:
39  ) : $c %>  ) : $c %>
40  % }  % }
41    
42    % if ($created_on) {
43    Filter:
44    <% Jifty->web->link(
45            label => $created_on,
46            onclick => {
47                    replace_with => '/fragments/queries',
48                    args => {
49                            on_database => $on_database || '',
50                            order => $order,
51                    },
52            },
53            #as_button => 1,
54    ) %>
55    % }
56    
57  <dl>  <dl>
58  % while (my $q = $queries->next) {  % while (my $q = $queries->next) {
59          <dt><% Jifty->web->tangent(          <dt><% Jifty->web->tangent(

Legend:
Removed from v.86  
changed lines
  Added in v.87

  ViewVC Help
Powered by ViewVC 1.1.26