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

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

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

revision 1.3 by jonen, Fri Nov 14 21:31:40 2003 UTC revision 1.4 by jonen, Thu May 6 16:27:42 2004 UTC
# Line 57  class InfoTable extends BaseWidget { Line 57  class InfoTable extends BaseWidget {
57      var $_show_vertical_cellborder = TRUE;      var $_show_vertical_cellborder = TRUE;
58    
59    
60        /**
61         * Show any internal borders?
62         */
63        var $_show_cellborders = TRUE;
64    
65    
66    
67      /**      /**
68       * The constructor       * The constructor
# Line 231  class InfoTable extends BaseWidget { Line 237  class InfoTable extends BaseWidget {
237      }      }
238    
239    
240        /**
241         * This method is used to set the flag to
242         * allow showing of the internal borders or not.
243         *
244         * @param boolean
245         * @return none
246         */
247        function set_show_cellborders( $flag=true ) {
248            $this->_show_cellborders = $flag;
249        }
250        
251    
252    
253    
254      /******************/      /******************/
255      /*  Private APIs  */      /*  Private APIs  */
# Line 311  class InfoTable extends BaseWidget { Line 330  class InfoTable extends BaseWidget {
330          $style .= "padding-left:5px;padding-right:5px;";          $style .= "padding-left:5px;padding-right:5px;";
331    
332          //now determine the bordering          //now determine the bordering
333          if ( $col_num != $total_cols &&          if ($this->_show_cellborders) {
334               $this->get_vertical_cellborder() ) {              if ( $col_num != $total_cols &&
335              $class = "contentvertical";                   $this->get_vertical_cellborder() ) {
336                    $class = "contentvertical";
337                } else {
338                    $class = "contentnovertical";
339                }
340                $attributes = array("class" => $class);
341          } else {          } else {
342              $class = "contentnovertical";              $attributes = array();
343          }                    }      
344            
         $attributes = array("class" => $class);  
345          return new TDtag( $attributes );          return new TDtag( $attributes );
346      }      }
347  }  }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

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