/[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.7 by jonen, Wed Feb 26 21:41:26 2003 UTC
# Line 317  class DefaultGUIDatalist extends DataLis Line 317  class DefaultGUIDatalist extends DataLis
317       */       */
318      function wrap_column_item($obj, $col_name) {      function wrap_column_item($obj, $col_name) {
319    
320            $databrowser = new DataBrowser();
321    
322          //make sure its set to something.          //make sure its set to something.
323          if ($obj == '') {          if ($obj == '') {
324              $obj = " ";              $obj = " ";
325          }          }
326          // 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  
327          elseif($this->_decode_column_item_expr($obj)) {            elseif($databrowser->decode_column_item_expr($obj)) {  
328            $obj = $this->_decode_column_item_expr($obj);              $obj = $databrowser->decode_column_item_expr($obj);  
329          }            }  
330          // if item is an Array we will replace it with an selection form object            // if item is an Array we will replace it with an selection form object  
331          elseif($this->_decode_column_item_array($obj)) {          elseif($databrowser->decode_column_item_array($obj, array( 'form' => 1)) ) {
332            $obj = $this->_decode_column_item_array($obj);              $obj = $databrowser->decode_column_item_array($obj, array( 'form' => 1));  
333          }            }  
334    
335          //make sure we don't put a right border on the last          //make sure we don't put a right border on the last
# Line 780  class DefaultGUIDatalist extends DataLis Line 782  class DefaultGUIDatalist extends DataLis
782              $td->set_tag_attribute("align", "left");              $td->set_tag_attribute("align", "left");
783              if ($this->_has_action_column("FIRST") &&              if ($this->_has_action_column("FIRST") &&
784                  $this->_datasource->get_total_rows()) {                  $this->_datasource->get_total_rows()) {
785                  $td->push(html_img("/phphtmllib/images/widgets/arrow_right.gif"));                  $td->push(html_img("img/widgets/arrow_right.gif"));
786              }              }
787              else {              else {
788                  $td->push(" ");                  $td->push(" ");
# Line 790  class DefaultGUIDatalist extends DataLis Line 792  class DefaultGUIDatalist extends DataLis
792              $td->set_tag_attribute("align", "right");              $td->set_tag_attribute("align", "right");
793              if ($this->_has_action_column("LAST") &&              if ($this->_has_action_column("LAST") &&
794                  $this->_datasource->get_total_rows()) {                  $this->_datasource->get_total_rows()) {
795                  $td->push(html_img("/phphtmllib/images/widgets/arrow_left.gif"));                  $td->push(html_img("img/widgets/arrow_left.gif"));
796              }              }
797              else {              else {
798                  $td->push(" ");                  $td->push(" ");

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

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