/[cvs]/nfo/php/libs/org.netfrag.app/WebExplorer/Module/DataItem.php
ViewVC logotype

Diff of /nfo/php/libs/org.netfrag.app/WebExplorer/Module/DataItem.php

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

revision 1.1 by jonen, Fri Apr 4 00:50:44 2003 UTC revision 1.2 by jonen, Sun Apr 6 01:33:45 2003 UTC
# Line 4  Line 4 
4  ##    $Id$  ##    $Id$
5  ##    -----------------------------------------------------------------------------  ##    -----------------------------------------------------------------------------
6  ##    $Log$  ##    $Log$
7    ##    Revision 1.2  2003/04/06 01:33:45  jonen
8    ##    + purged code
9    ##
10  ##    Revision 1.1  2003/04/04 00:50:44  jonen  ##    Revision 1.1  2003/04/04 00:50:44  jonen
11  ##    + initial commit  ##    + initial commit
12  ##  ##
# Line 25  class WebExplorer_Module_DataItem extend Line 28  class WebExplorer_Module_DataItem extend
28       $this->_gui_object = new EditDataItem($this->_args['caption'], $this->_args['options'] );       $this->_gui_object = new EditDataItem($this->_args['caption'], $this->_args['options'] );
29      }      }
30    }    }
31      
 /*  
   function view_DataItem() {  
       $initial_locator = php::mkComponent( 'DataSource::Locator', array( adapter_type => 'phpHtmlLib' ) );  
       $proxy = php::mkComponent('DataSource::Generic', $initial_locator, $this->_args['options']['data_locator_meta']);  
       $source = $proxy->get_adapter();  
       $source->do_query();  
       $result = $source->_result;  
     //print Dumper($source->_result);  
   
     $table = new InfoTable($this->_args['caption'], $width="100%", "center");  
     if (is_array($result)) {  
       foreach($result as $key => $value) {  
         if(!$value) { $value = " "; }  
         $table->add_row(span_font10bold($key), $value);  
       }  
     }  
     // build submit form  
     $container = container(  
                     form_open($this->_args['caption'], $_SERVER['PHP_SELF'], 'POST'),  
                     form_submit('ecitem', "edit"),  
                     form_close()  
                     );  
     //$table->add_row(div_build_spacergif_tag(), $container);  
     $table->add_row(" ", $container);  
     return $table;  
   }  
 */  
     
32    
33  }  }
34    

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