/[cvs]/nfo/php/libs/com.newsblob.phphtmllib/widgets/data_list/DefaultGUIDataList.inc
ViewVC logotype

Diff of /nfo/php/libs/com.newsblob.phphtmllib/widgets/data_list/DefaultGUIDataList.inc

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

revision 1.6 by jonen, Sun Feb 23 23:43:55 2003 UTC revision 1.10 by jonen, Tue Apr 8 23:33:48 2003 UTC
# Line 72  class DefaultGUIDatalist extends DataLis Line 72  class DefaultGUIDatalist extends DataLis
72       *       *
73       */       */
74      var $_default_checked_items = array();      var $_default_checked_items = array();
75        
76        
77      /**      /**
78       * Do we show action bar row?       * Do we show action bar row?
79       */       */
# Line 83  class DefaultGUIDatalist extends DataLis Line 83  class DefaultGUIDatalist extends DataLis
83      * This variable tells us whether to display select all checkbox      * This variable tells us whether to display select all checkbox
84      */      */
85      var $_allow_select_all = TRUE;      var $_allow_select_all = TRUE;
86    
   
87      /**      /**
88       * This function sets a prefix for all       * This function sets a prefix for all
89       * variables that are used in the item list       * variables that are used in the item list
# Line 321  class DefaultGUIDatalist extends DataLis Line 320  class DefaultGUIDatalist extends DataLis
320          if ($obj == '') {          if ($obj == '') {
321              $obj = " ";              $obj = " ";
322          }          }
         // if item is match by expression we will replace it with an link object    
         elseif($this->_decode_column_item_expr($obj)) {    
           $obj = $this->_decode_column_item_expr($obj);    
         }    
         // if item is an Array we will replace it with an selection form object    
         elseif($this->_decode_column_item_array($obj)) {  
           $obj = $this->_decode_column_item_array($obj);    
         }    
323    
324          //make sure we don't put a right border on the last          //make sure we don't put a right border on the last
325          //column we are working on.          //column we are working on.
# Line 450  class DefaultGUIDatalist extends DataLis Line 441  class DefaultGUIDatalist extends DataLis
441              $container->push(form_hidden($this->_vars["search_fieldVar"], $field));              $container->push(form_hidden($this->_vars["search_fieldVar"], $field));
442          }          }
443    
         $hidden_fields = $this->get_hidden_fields();  
         if(is_array($hidden_fields)) {    
           foreach($hidden_fields as $key => $value) {    
             $container->push(form_hidden($key, $value));    
           }  
         }  
         $container->push(form_close() );  
444          return $container;          return $container;
445      }      }
446    
# Line 780  class DefaultGUIDatalist extends DataLis Line 764  class DefaultGUIDatalist extends DataLis
764              $td->set_tag_attribute("align", "left");              $td->set_tag_attribute("align", "left");
765              if ($this->_has_action_column("FIRST") &&              if ($this->_has_action_column("FIRST") &&
766                  $this->_datasource->get_total_rows()) {                  $this->_datasource->get_total_rows()) {
767                  $td->push(html_img("/phphtmllib/images/widgets/arrow_right.gif"));                  $td->push(html_img("img/widgets/arrow_right.gif"));
768              }              }
769              else {              else {
770                  $td->push(" ");                  $td->push(" ");
# Line 790  class DefaultGUIDatalist extends DataLis Line 774  class DefaultGUIDatalist extends DataLis
774              $td->set_tag_attribute("align", "right");              $td->set_tag_attribute("align", "right");
775              if ($this->_has_action_column("LAST") &&              if ($this->_has_action_column("LAST") &&
776                  $this->_datasource->get_total_rows()) {                  $this->_datasource->get_total_rows()) {
777                  $td->push(html_img("/phphtmllib/images/widgets/arrow_left.gif"));                  $td->push(html_img("img/widgets/arrow_left.gif"));
778              }              }
779              else {              else {
780                  $td->push(" ");                  $td->push(" ");
# Line 916  class DefaultGUIDatalist extends DataLis Line 900  class DefaultGUIDatalist extends DataLis
900          return $script;          return $script;
901      }      }
902    
     function get_hidden_fields() {  
          user_error("DefaulGUIDataList::get_hidden_fields() - ".  
                            "child class must override this method ".  
                            "this function should return a hash for hidden fields, if not needed just return" );  
     }  
   
     function _decode_column_item_array($obj) {  
          user_error("DefaulGUIDataList::_decode_column_item_array() - ".  
                            "child class must override this method ".  
                            "this function should decode the column_item if it is a (sub-) array,".  
                            "array should e.g. replaced by a select form." );  
     }  
     
     function _decode_column_item_expr($obj) {  
          user_error("DefaulGUIDataList::_decode_column_item_expr() - ".  
                            "child class must override this method ".  
                            "this function should decode the column_item, if it is encoded for e.g. objects" );  
     }  
903  }  }
904    
905  /**  /**

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.10

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