1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.0//EN">
6 <style type=
"text/css">
9 font-family: verdana
, sans-serif
;
29 text-decoration:underline
;
34 text-decoration: none
;
47 border-bottom-width:1px;
48 border-bottom-style:dotted
;
64 <table width=
"90%" border=
"0" cellspacing=
"1" cellpadding=
"5">
67 <big><tt><%
Global.helma.Inspector.prototype.properties
%
></tt></big><br>
87 <table width=
"90%" border=
"0" cellspacing=
"1" cellpadding=
"5">
89 <td>Sourcecode in helmaTools.zip/Global/helma.Inspector.js:
90 <pre><font color=
"#aaaaaa">182:
</font> this.properties_macro = function() {
91 <font color=
"#aaaaaa">183:
</font> if (hopObj._id) {
92 <font color=
"#aaaaaa">184:
</font> renderSkin(skins.property, {
93 <font color=
"#aaaaaa">185:
</font> title:
<font color=
"#9999aa">"_id
"</font>, value: hopObj._id
94 <font color=
"#aaaaaa">186:
</font> });
95 <font color=
"#aaaaaa">187:
</font> renderSkin(skins.property, {
96 <font color=
"#aaaaaa">188:
</font> title:
<font color=
"#9999aa">"_prototype
"</font>, value: hopObj._prototype
97 <font color=
"#aaaaaa">189:
</font> });
98 <font color=
"#aaaaaa">190:
</font> }
99 <font color=
"#aaaaaa">191:
</font>
100 <font color=
"#aaaaaa">192:
</font> if (hopObj._parent) {
101 <font color=
"#aaaaaa">193:
</font> renderSkin(skins.property, {
102 <font color=
"#aaaaaa">194:
</font> title: html.linkAsString({
103 <font color=
"#aaaaaa">195:
</font> href: hopObj._parent.href(req.action)
104 <font color=
"#aaaaaa">196:
</font> },
<font color=
"#9999aa">"_parent
"</font>),
105 <font color=
"#aaaaaa">197:
</font> value: hopObj._parent
106 <font color=
"#aaaaaa">198:
</font> });
107 <font color=
"#aaaaaa">199:
</font> }
108 <font color=
"#aaaaaa">200:
</font>
109 <font color=
"#aaaaaa">201:
</font> for (var i in properties) {
110 <font color=
"#aaaaaa">202:
</font> var obj = properties[i];
111 <font color=
"#aaaaaa">203:
</font> if (obj.value instanceof Date) {
112 <font color=
"#aaaaaa">204:
</font> var param = {value: obj.value.toString()};
113 <font color=
"#aaaaaa">205:
</font> param.title = html.linkAsString({
114 <font color=
"#aaaaaa">206:
</font> href:
<font color=
"#9999aa">"javascript:void(null)
"</font>,
115 <font color=
"#aaaaaa">207:
</font> onclick:
<font color=
"#9999aa">"toggleEditor(this)
"</font>
116 <font color=
"#aaaaaa">208:
</font> }, obj.key);
117 <font color=
"#aaaaaa">209:
</font> param.key = obj.key;
118 <font color=
"#aaaaaa">210:
</font> param.years = genOptions(
1970,
2070, obj.value.getFullYear());
119 <font color=
"#aaaaaa">211:
</font> param.months = genOptions(
1,
12, obj.value.getMonth()+
1);
120 <font color=
"#aaaaaa">212:
</font> param.days = genOptions(
1,
31, obj.value.getDate());
121 <font color=
"#aaaaaa">213:
</font> param.hours = genOptions(
0,
23, obj.value.getHours());
122 <font color=
"#aaaaaa">214:
</font> param.minutes = genOptions(
0,
59, obj.value.getMinutes());
123 <font color=
"#aaaaaa">215:
</font> param.seconds = genOptions(
0,
59, obj.value.getSeconds());
124 <font color=
"#aaaaaa">216:
</font> renderSkin(skins.date, param);
125 <font color=
"#aaaaaa">217:
</font> } else {
126 <font color=
"#aaaaaa">218:
</font> var param = {value: obj.value};
127 <font color=
"#aaaaaa">219:
</font> if (obj.value.href) {
128 <font color=
"#aaaaaa">220:
</font> param.title = html.linkAsString({href: obj.value.href(req.action)}, obj.key);
129 <font color=
"#aaaaaa">221:
</font> renderSkin(skins.property, param);
130 <font color=
"#aaaaaa">222:
</font> } else {
131 <font color=
"#aaaaaa">223:
</font> param.title = html.linkAsString({
132 <font color=
"#aaaaaa">224:
</font> href:
<font color=
"#9999aa">"javascript:void(null)
"</font>,
133 <font color=
"#aaaaaa">225:
</font> onclick:
<font color=
"#9999aa">"toggleEditor(this)
"</font>
134 <font color=
"#aaaaaa">226:
</font> }, obj.key);
135 <font color=
"#aaaaaa">227:
</font> param.key = obj.key;
136 <font color=
"#aaaaaa">228:
</font> renderSkin(skins.editor, param);
137 <font color=
"#aaaaaa">229:
</font> }
138 <font color=
"#aaaaaa">230:
</font> }
139 <font color=
"#aaaaaa">231:
</font> }
140 <font color=
"#aaaaaa">232:
</font>
141 <font color=
"#aaaaaa">233:
</font> return;
142 <font color=
"#aaaaaa">234:
</font> }