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 |
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(" "); |
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(" "); |