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

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

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

revision 1.1 by jonen, Fri Apr 4 00:32:57 2003 UTC revision 1.2 by jonen, Fri Apr 4 23:58:33 2003 UTC
# Line 4  Line 4 
4  ##    $Id$  ##    $Id$
5  ##    -----------------------------------------------------------------------------  ##    -----------------------------------------------------------------------------
6  ##    $Log$  ##    $Log$
7    ##    Revision 1.2  2003/04/04 23:58:33  jonen
8    ##    + minor changes
9    ##
10  ##    Revision 1.1  2003/04/04 00:32:57  jonen  ##    Revision 1.1  2003/04/04 00:32:57  jonen
11  ##    + initial commit  ##    + initial commit
12  ##  ##
# Line 106  class DataItem extends InfoTable { Line 109  class DataItem extends InfoTable {
109     $result = $this->_datasource->_result;     $result = $this->_datasource->_result;
110      if (is_array($result)) {      if (is_array($result)) {
111        foreach($result as $key => $value) {        foreach($result as $key => $value) {
112          if(!$value) { $value = " "; }          if(!$value) { $value = _HTML_SPACE; }
113          // if item is match by expression we will replace it with an link object            // if item is match by expression we will replace it with an link object  
114          if($this->_options['decode']) {          if($this->_options['decode']) {
115           if($this->decode_item_expr($value)) {             if($this->decode_item_expr($value)) {  
# Line 144  class DataItem extends InfoTable { Line 147  class DataItem extends InfoTable {
147        }        }
148      }      }
149      // submit button      // submit button
150      $container->add(form_submit('ecfedit', "edit"));      $container->add(form_submit('ecdfe', "edit"));
151      // close form      // close form
152      $container->add(form_close());      $container->add(form_close());
153    
154      // add container to InfoTable      // add container to InfoTable
155      $this->add_row(" ", $container);      $this->add_row(_HTML_SPACE, $container);
156    }    }
157    
158    function decode_item_array($item) {    function decode_item_array($item) {

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

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