/[cvs]/nfo/php/libs/org.netfrag.patches/phphtmllib/widgets/GenericGUIDataList.php
ViewVC logotype

Diff of /nfo/php/libs/org.netfrag.patches/phphtmllib/widgets/GenericGUIDataList.php

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

revision 1.12 by jonen, Thu May 6 17:14:35 2004 UTC revision 1.13 by jonen, Thu Oct 7 14:17:50 2004 UTC
# Line 4  Line 4 
4  ##    $Id$  ##    $Id$
5  ## -------------------------------------------------------------------------  ## -------------------------------------------------------------------------
6  ##    $Log$  ##    $Log$
7    ##    Revision 1.13  2004/10/07 14:17:50  jonen
8    ##    + pass filter-values to backend now! (page-control!)
9    ##
10  ##    Revision 1.12  2004/05/06 17:14:35  jonen  ##    Revision 1.12  2004/05/06 17:14:35  jonen
11  ##    updated  ##     updated
12  ##  ##
13  ##    Revision 1.11  2003/05/10 17:58:45  jonen  ##    Revision 1.11  2003/05/10 17:58:45  jonen
14  ##    + reworked to implement 'create/add new' item  ##    + reworked to implement 'create/add new' item
# Line 105  class GenericGUIDataList extends Default Line 108  class GenericGUIDataList extends Default
108    
109      // call parent constructor      // call parent constructor
110      $parent =  get_parent_class($this);      $parent =  get_parent_class($this);
111      $this->$parent($title, $width = "100%", $default_orderby='', $default_reverseorder=FALSE);          $this->$parent($title, $width = "100%", $default_orderby='', $default_reverseorder=FALSE);
112    }    }
113    
114    
# Line 141  class GenericGUIDataList extends Default Line 144  class GenericGUIDataList extends Default
144        // V5:        // V5:
145        //print "options: " . Dumper($this->_options);        //print "options: " . Dumper($this->_options);
146                
147    
148              //HACK 2004-10-07: page-filter done by backend now,
149              //                 filter-values are passed to backend
150          $this->_options['data_locator_meta']['filter']['offset'] = $this->offset();
151          $this->_options['data_locator_meta']['filter']['numrows'] = $this->numrows();
152          $this->_options['data_locator_meta']['filter']['search_field'] = $this->search_field();
153          $this->_options['data_locator_meta']['filter']['search_value'] = $this->search_value();
154          $this->_options['data_locator_meta']['filter']['search_modifier'] = $this->simple_search_modifier_value();
155          
156          //$this->_set("offsetVar", 0);
157          
158        $initial_locator = php::mkComponent( 'DataSource::Locator', array( adapter_type => 'phpHtmlLib' ) );        $initial_locator = php::mkComponent( 'DataSource::Locator', array( adapter_type => 'phpHtmlLib' ) );
159        //print "1st locator: " . Dumper($initial_locator);        //print "1st locator: " . Dumper($initial_locator);
160                
# Line 182  class GenericGUIDataList extends Default Line 196  class GenericGUIDataList extends Default
196                        
197          //print Dumper($source);          //print Dumper($source);
198            $headers = $source->get_header();            $headers = $source->get_header();
199            //print Dumper($headers);            //print "headers: " . Dumper($headers);
200                        
201            $this->set_title( $this->get_title() . ' - ' . $source->get_total_rows() . ' Einträge' );            $this->set_title( $this->get_title() . ' - ' . $source->get_total_rows() . ' Einträge' );
202                        
203            foreach($headers as $val) {            foreach($headers as $val) {
204                  $this->add_header_item($val, "150", $val, SORTABLE, SEARCHABLE);                  $this->add_header_item($val, "150", $val, SORTABLE, SEARCHABLE);
205      }      }
206        
207    
208  /*  /*
209          $this->add_header_item("Uid", "200", "uid", SORTABLE, SEARCHABLE);          $this->add_header_item("Uid", "200", "uid", SORTABLE, SEARCHABLE);
# Line 212  class GenericGUIDataList extends Default Line 227  class GenericGUIDataList extends Default
227       * @return TDtag object       * @return TDtag object
228       */       */
229     function wrap_column_item($obj, $col_name, $row_data) {     function wrap_column_item($obj, $col_name, $row_data) {
230        
231            //print "item: " . Dumper($obj) . "<br>";
232    
233          //make sure its set to something.          //make sure its set to something.
234          if ($obj == '') {          if ($obj == '') {

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed