ultimix

- Main Page
- Data Structures
- Files
- Examples

- File List
- Globals

user_manager_view.js
Go to the documentation of this file.
1
6 if( !ultimix )
7 {
8 ultimix = {};
9 }
10
16 if( !ultimix.user_manager )
17 {
18 ultimix.user_manager = {};
19 }
20
30 ultimix.user_manager.set_default_options = function( ViewOptions )
31 {
32 if( !ViewOptions )
33 {
34 ViewOptions = {};
35 }
36
37 ViewOptions.meta = ViewOptions.meta ? ViewOptions.meta : 'meta_user_list';
38 ViewOptions.package_name = ViewOptions.package_name ? ViewOptions.package_name : 'user::user_view';
39 ViewOptions.paging_require_form = ViewOptions.paging_require_form ? ViewOptions.paging_require_form : '0';
40 ViewOptions.add_hidden_fields = ViewOptions.add_hidden_fields ? ViewOptions.add_hidden_fields : '0';
41
42 return( ViewOptions );
43 }
44
54 ultimix.user_manager.get_list_form = function( Fuctions , ViewOptions )
55 {
56 if( !Fuctions )
57 {
58 Fuctions = {};
59 }
60
61 ViewOptions = ultimix.user_manager.set_default_options( ViewOptions );
62
63 ultimix.ajax_gate.direct_view( ViewOptions , Fuctions );
64 }
65
81 ultimix.user_manager.get_custom_list_form = function( Fuctions , Header , Item , Footer , ViewOptions )
82 {
83 if( !Fuctions )
84 {
85 Fuctions = {};
86 }
87
88 ViewOptions = ultimix.user_manager.set_default_options( ViewOptions );
89
90 ViewOptions.header = Header ? Header : 'user_header.tpl';
91 ViewOptions.item = Item ? Item : 'user_item.tpl';
92 ViewOptions.footer = Footer ? Footer : 'user_footer.tpl';
93
94 ultimix.ajax_gate.direct_view( ViewOptions , Fuctions );
95 }