72 |
* |
* |
73 |
*/ |
*/ |
74 |
var $_default_checked_items = array(); |
var $_default_checked_items = array(); |
75 |
|
|
76 |
|
|
77 |
/** |
/** |
78 |
* Do we show action bar row? |
* Do we show action bar row? |
79 |
*/ |
*/ |
83 |
* This variable tells us whether to display select all checkbox |
* This variable tells us whether to display select all checkbox |
84 |
*/ |
*/ |
85 |
var $_allow_select_all = TRUE; |
var $_allow_select_all = TRUE; |
86 |
|
|
|
|
|
87 |
/** |
/** |
88 |
* This function sets a prefix for all |
* This function sets a prefix for all |
89 |
* variables that are used in the item list |
* variables that are used in the item list |
320 |
if ($obj == '') { |
if ($obj == '') { |
321 |
$obj = " "; |
$obj = " "; |
322 |
} |
} |
|
// if item is match by expression we will replace it with an link object |
|
|
elseif($this->_decode_column_item_expr($obj)) { |
|
|
$obj = $this->_decode_column_item_expr($obj); |
|
|
} |
|
|
// if item is an Array we will replace it with an selection form object |
|
|
elseif($this->_decode_column_item_array($obj)) { |
|
|
$obj = $this->_decode_column_item_array($obj); |
|
|
} |
|
323 |
|
|
324 |
//make sure we don't put a right border on the last |
//make sure we don't put a right border on the last |
325 |
//column we are working on. |
//column we are working on. |
441 |
$container->push(form_hidden($this->_vars["search_fieldVar"], $field)); |
$container->push(form_hidden($this->_vars["search_fieldVar"], $field)); |
442 |
} |
} |
443 |
|
|
444 |
$hidden_fields = $this->get_hidden_fields(); |
if(is_array($this->hidden_items)) { |
445 |
if(is_array($hidden_fields)) { |
foreach($this->hidden_items as $key => $value) { |
|
foreach($hidden_fields as $key => $value) { |
|
446 |
$container->push(form_hidden($key, $value)); |
$container->push(form_hidden($key, $value)); |
447 |
} |
} |
448 |
} |
} |
770 |
$td->set_tag_attribute("align", "left"); |
$td->set_tag_attribute("align", "left"); |
771 |
if ($this->_has_action_column("FIRST") && |
if ($this->_has_action_column("FIRST") && |
772 |
$this->_datasource->get_total_rows()) { |
$this->_datasource->get_total_rows()) { |
773 |
$td->push(html_img("/phphtmllib/images/widgets/arrow_right.gif")); |
$td->push(html_img("img/widgets/arrow_right.gif")); |
774 |
} |
} |
775 |
else { |
else { |
776 |
$td->push(" "); |
$td->push(" "); |
780 |
$td->set_tag_attribute("align", "right"); |
$td->set_tag_attribute("align", "right"); |
781 |
if ($this->_has_action_column("LAST") && |
if ($this->_has_action_column("LAST") && |
782 |
$this->_datasource->get_total_rows()) { |
$this->_datasource->get_total_rows()) { |
783 |
$td->push(html_img("/phphtmllib/images/widgets/arrow_left.gif")); |
$td->push(html_img("img/widgets/arrow_left.gif")); |
784 |
} |
} |
785 |
else { |
else { |
786 |
$td->push(" "); |
$td->push(" "); |
906 |
return $script; |
return $script; |
907 |
} |
} |
908 |
|
|
|
function get_hidden_fields() { |
|
|
user_error("DefaulGUIDataList::get_hidden_fields() - ". |
|
|
"child class must override this method ". |
|
|
"this function should return a hash for hidden fields, if not needed just return" ); |
|
|
} |
|
|
|
|
|
function _decode_column_item_array($obj) { |
|
|
user_error("DefaulGUIDataList::_decode_column_item_array() - ". |
|
|
"child class must override this method ". |
|
|
"this function should decode the column_item if it is a (sub-) array,". |
|
|
"array should e.g. replaced by a select form." ); |
|
|
} |
|
|
|
|
|
function _decode_column_item_expr($obj) { |
|
|
user_error("DefaulGUIDataList::_decode_column_item_expr() - ". |
|
|
"child class must override this method ". |
|
|
"this function should decode the column_item, if it is encoded for e.g. objects" ); |
|
|
} |
|
909 |
} |
} |
910 |
|
|
911 |
/** |
/** |