ultimix

- Main Page
- Data Structures
- Files
- Examples

- File List
- Globals

template_content_view.js
Go to the documentation of this file.
1
6 if( !ultimix )
7 {
8 ultimix = {};
9 }
10
16 if( !ultimix.template_content )
17 {
18 ultimix.template_content = {};
19 }
20
30 ultimix.template_content.set_default_options = function( ViewOptions )
31 {
32 if( !ViewOptions )
33 {
34 ViewOptions = {};
35 }
36
37 ViewOptions.meta = ViewOptions.meta ? ViewOptions.meta : 'meta_template_content_list';
38 var PackageName = 'page::template_content::template_content_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.template_content.get_list_form = function( ResultAcceptor , ViewOptions )
56 {
57 if( !ResultAcceptor )
58 {
59 ResultAcceptor = function(){};
60 }
61
62 ViewOptions = ultimix.template_content.set_default_options( ViewOptions );
63
64 ultimix.ajax_gate.direct_view( ViewOptions , ResultAcceptor );
65 }
66
82 ultimix.template_content.get_custom_list_form = function( ResultAcceptor , Header , Item , Footer , ViewOptions )
83 {
84 ultimix.auto.get_custom_list_form( Fuctions , Header , Item , Footer , false , ViewOptions , 'ad_banner' );
85 }
86
96 ultimix.template_content.delete = function( Id , DataSelector )
97 {
98 ultimix.auto.delete(
99 Id , DataSelector ,
100 {
101 'package_name' : 'page::template_content::template_content_controller' ,
102 'template_content_context_action' : 'delete_record' ,
103 'template_content_action' : 'delete_record' , 'template_content_record_id' : Id ,
104 'meta' : 'meta_delete_template_content'
105 }
106 );
107 }
108
120 ultimix.template_content.record_view_form = function( Id , DataSelector )
121 {
122 ultimix.auto.record_view_form(
123 Id , DataSelector ,
124 {
125 'package_name' : 'page::template_content::template_content_view' ,
126 'template_content_context_action' : 'record_view_form' ,
127 'template_content_action' : 'record_view_form' , 'template_content_record_id' : Id ,
128 'meta' : 'meta_record_view_template_content_form'
129 }
130 );
131 }