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