CXM_dojo.anubis
4.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
/*
* Created by PyramIDE.
* User: Steve Marechal
* Date: 11/06/2008
* Time: 09:54
*
*/
read calexium_lib/web/CXM_making_a_web_site.anubis
read tools/basis.anubis // required for 'make_directory'
read locale/L3LanguageInfo.anubis
read mailfountain_constants.anubis
read mailfountain_types.anubis
read calexium_lib/web/CXM_common.anubis
read calexium_lib/web/CXM_making_a_web_site.anubis
read calexium_lib/web/CXM_multihost_http_server.anubis
read common/language_management.anubis
read tools/mf_loggers.anubis
read calexium_lib/net_services_protocols/logger_service.anubis
read system/logger.anubis
public type Dojo_Grid_Data :
grid_data(String).
public define HTML_Off_Form
dojo_button
(
String name,
String execute,
String id,
)
=
literal("
<button dojoType=\"dijit.form.Button\" id=\""+id+"\" onclick=\""+execute+"\">"+name+"</button>")
.
public define HTML_Off_Form
dojo_dialog
(
String name,
String dialog_id,
String execute,
)
=
sequence[
dojo_button(name,"dijit.byId('"+dialog_id+"').show()", "dialog_id"),
div([attr("dojoType", "dijit.Dialog"), id(dialog_id), title(name), attr("execute", execute)],
table([],
empty,
[
row([], [cell([], literal("<input dojoType=dijit.form.TextBox type=\"text\" name=\"name\" id=\"name_"+dialog_id+"\" />"))]),
row([], [cell([columns(2), h_center], literal("<button dojoType=dijit.form.Button type=\"submit\">OK</button>"))]),
],
empty)),
literal("<br/>"),
// literal("
// <div dojoType=\"dijit.Dialog\" id=\""+id+"\" title=\""+name+"\"
// execute=\""+execute+"\">
// <table>
// <tr>
// <td><input dojoType=dijit.form.TextBox type=\"text\" name=\"name\" id=\"name_"+id+"\"></td>
// </tr>
//
// <tr>
// <td colspan=\"2\" align=\"center\">
// <button dojoType=dijit.form.Button type=\"submit\">OK</button></td>
// </tr>
// </table>
// </div><br />")
]
.
public define HTML_Off_Form
dojo_grid
(
String id,
String colum1,
String colum2,
String colum3,
String colum4,
Bool can_edit
)
=
literal("<script type=\"text/javascript\">
dojo.addOnLoad(function(){
init_dojo_grid(\""+colum1+"\",\""+colum2+"\", \""+colum3+"\", \""+colum4+"\", "+ (if can_edit then "1" else "0")+");
}
);
</script>
<div id=\"gridContainer\"></div>")
.
public define HTML_Off_Form
dojo_message_box
(
HTML_Off_Form name1,
HTML_Off_Form name2,
)
=
sequence([
literal("<br/>"),
div([class("message_box")],
sequence([
div([id("node3"), class("box nopad hidden")], name1),
div([id("node4"), class("box two nopad")], name2),
])),
literal("<br/>"),
]).
public define HTML_Off_Form
dojo_tooltip
(
String title,
String keyword,
) =
actioner(same,same, link([id("dojo_tip_" + keyword),class("dojoToolTip")],title, success(title)), "show_address_mailing", [("address_mailing", keyword)], []).
//actioner(same, same, push_button([id("dojo_tip_" + keyword), class("in"), event(onclick,"new_search(this)")], keyword), "", [], []).
public define HTML_Off_Form
dojo_ContentPane
(
String id,
String region,
String title,
HTML_Off_Form content
) =
sequence([
literal("<div id=\"" + id + "\" dojoType=\"dijit.layout.ContentPane\" title=\"" + title + "\" region=\"" + region + "\">"),
content,
literal("</div>")
]).
public define HTML_Off_Form
dojo_TabContainer
(
String id,
HTML_Off_Form content
) =
sequence([
literal("<div id=\"" + id + "\" dojoType=\"dijit.layout.TabContainer\" style=\"width:54em;height:30em\">"),
content,
literal("</div>")
]).
public define HTML_Off_Form
dojo_tree
(
String id,
)=
literal("<div id=\"" + id + "\"</div>").