/[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.11 by jonen, Sat May 10 17:58:45 2003 UTC revision 1.12 by jonen, Thu May 6 17:14:35 2004 UTC
# Line 4  Line 4 
4  ##    $Id$  ##    $Id$
5  ## -------------------------------------------------------------------------  ## -------------------------------------------------------------------------
6  ##    $Log$  ##    $Log$
7    ##    Revision 1.12  2004/05/06 17:14:35  jonen
8    ##    updated
9    ##
10  ##    Revision 1.11  2003/05/10 17:58:45  jonen  ##    Revision 1.11  2003/05/10 17:58:45  jonen
11  ##    + reworked to implement 'create/add new' item  ##    + reworked to implement 'create/add new' item
12  ##  ##
# Line 161  class GenericGUIDataList extends Default Line 164  class GenericGUIDataList extends Default
164        $source = $proxy->get_adapter();        $source = $proxy->get_adapter();
165    
166        // V4:        // V4:
167            //$source = $this->_datasource;              //$source = $this->_datasource;
168          
169        //print "objectlist-source: " . Dumper($source);        //print "objectlist-source: " . Dumper($source);
170        //exit;        //exit;
171    
# Line 406  class GenericGUIDataList extends Default Line 409  class GenericGUIDataList extends Default
409    
410      /**      /**
411       * this is the method that builds       * this is the method that builds
412       * the contents for the 'create new' actionbar       * the contents for the buttons of actionbar
413       * td cell.       * td cell.
414       *       *
415       * @return ContainerWidget object       * @return ContainerWidget object
416       */       */
417      function actionbar_cell_new() {      function actionbar_cell_new() {
418          $action_create = $this->_options['actionbar']['create'];          $action_buttons = $this->_options['actionbar']['buttons'];
419    
420          if(is_array($action_create)) {          if(is_array($action_buttons)) {
421            $action_form = container(            $action_form = container();
422              foreach($action_buttons as $type) {
423                $action_form->add(
424                               _HTML_SPACE,                               _HTML_SPACE,
425                               form_submit($action_create['name'], $action_create['value'])                               form_submit($type['name'], $type['value'])
426                               );                               );
427              }
428            return $action_form;            return $action_form;
429          } else {          } else {
430            return _HTML_SPACE;            return _HTML_SPACE;
# Line 470  class GenericGUIDataList extends Default Line 476  class GenericGUIDataList extends Default
476          if ( $this->_show_results() ) {          if ( $this->_show_results() ) {
477              $this->data_prefetch();              $this->data_prefetch();
478          }          }
479            
480          //This function gives the child class          //This function gives the child class
481          //a chance to build the tables/divs/containers          //a chance to build the tables/divs/containers
482          //that will be responsible for the look/feel          //that will be responsible for the look/feel
# Line 541  class GenericGUIDataList extends Default Line 547  class GenericGUIDataList extends Default
547    
548          function child_add_row_cell($obj, $col_name, $last_in_row_flag, $row_data) {          function child_add_row_cell($obj, $col_name, $last_in_row_flag, $row_data) {
549          if (!$this->_cur_col_cntr) {          if (!$this->_cur_col_cntr) {
550            //if (!isset($this->_cur_col_cntr)) {
551              $this->_cur_col_cntr = 1;              $this->_cur_col_cntr = 1;
552              //lets see if we need to add an action column              //lets see if we need to add an action column
553              //as the first column.              //as the first column.

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

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