ultimix

- Main Page
- Data Structures
- Files
- Examples

- File List
- Globals

page_manager_view.js
Go to the documentation of this file.
1
6 if( !ultimix )
7 {
8 ultimix = {};
9 }
10
16 if( !ultimix.page_manager )
17 {
18 ultimix.page_manager = {};
19 }
20
30 ultimix.page_manager.set_default_options = function( ViewOptions )
31 {
32 if( !ViewOptions )
33 {
34 ViewOptions = {};
35 }
36
37 ViewOptions.meta = ViewOptions.meta ? ViewOptions.meta : 'meta_page_list';
38 var PackageName = 'page::page_manager::page_manager_view';
39 ViewOptions.package_name = ViewOptions.package_name ? ViewOptions.package_name : PackageName;
40 ViewOptions.paging_require_form = ViewOptions.paging_require_form ? ViewOptions.paging_require_form : '0';
41 ViewOptions.add_hidden_fields = ViewOptions.add_hidden_fields ? ViewOptions.add_hidden_fields : '0';
42
43 return( ViewOptions );
44 }
45
55 ultimix.page_manager.get_list_form = function( ResultAcceptor , ViewOptions )
56 {
57 if( !ResultAcceptor )
58 {
59 ResultAcceptor = function(){};
60 }
61 if( !ViewOptions )
62 {
63 ViewOptions = {};
64 }
65 if( !ViewOptions.meta )
66 {
67 ViewOptions.meta = 'meta_page_list';
68 }
69 if( !ViewOptions.package_name )
70 {
71 ViewOptions.package_name = 'page::page_manager::page_manager_view';
72 }
73 ultimix.ajax_gate.direct_view( ViewOptions , ResultAcceptor );
74 }
75
91 ultimix.page_manager.get_custom_list_form = function( Fuctions , Header , Item , Footer , ViewOptions )
92 {
93 if( !Fuctions )
94 {
95 Fuctions = {};
96 }
97
98 ViewOptions = ultimix.page_manager.set_default_options( ViewOptions );
99
100 ViewOptions.header = Header ? Header : 'page_header.tpl';
101 ViewOptions.item = Item ? Item : 'page_item.tpl';
102 ViewOptions.footer = Footer ? Footer : 'page_footer.tpl';
103
104 ultimix.ajax_gate.direct_view( ViewOptions , Fuctions );
105 }