1 |
jonen |
1.1 |
<? |
2 |
|
|
/* |
3 |
|
|
## ----------------------------------------------------------------------------- |
4 |
jonen |
1.2 |
## $Id: DataList.php,v 1.1 2003/03/20 03:49:22 jonen Exp $ |
5 |
jonen |
1.1 |
## ----------------------------------------------------------------------------- |
6 |
jonen |
1.2 |
## $Log: DataList.php,v $ |
7 |
|
|
## Revision 1.1 2003/03/20 03:49:22 jonen |
8 |
|
|
## + initial commit |
9 |
|
|
## |
10 |
jonen |
1.1 |
## Revision 1.1 2003/03/01 22:57:23 cvsmax |
11 |
|
|
## + inital commit |
12 |
|
|
## |
13 |
|
|
## |
14 |
|
|
## ----------------------------------------------------------------------------- |
15 |
|
|
*/ |
16 |
|
|
|
17 |
|
|
loadModule('WebExplorer::Module::AbstractGUIModule'); |
18 |
|
|
|
19 |
|
|
class WebExplorer_Module_DataList extends WebExplorer_Module_AbstractGUIModule { |
20 |
|
|
|
21 |
|
|
function set_gui_object() { |
22 |
|
|
//print "Options: " . Dumper($this->_args); |
23 |
|
|
$list = new GenericGUIDataList($this->_args['caption'], 600, $this->_args['orderby'], FALSE, $this->_args['options']); |
24 |
jonen |
1.2 |
$list->set_form_method('POST'); |
25 |
|
|
// set name of unique ident which exists for each data rowset/object |
26 |
|
|
$unique_ident_name = "guid"; |
27 |
|
|
// enable action button for each row |
28 |
|
|
$list->add_action_column('checkbox', 'FIRST', $unique_ident_name); |
29 |
|
|
// enable actionbar for the action buttons |
30 |
|
|
$list->set_actionbar(); |
31 |
|
|
|
32 |
jonen |
1.1 |
$this->_gui_object = &$list; |
33 |
|
|
} |
34 |
|
|
|
35 |
|
|
} |
36 |
|
|
|
37 |
|
|
?> |