No regular expressions were active.
|
|
1 |
|
<xsl:style
sheet vers
ion="1.0"
xmlns:xsl=
"http://ww
w.w3.org/1
999/XSL/Tr
ansform" x
mlns="http
://www.w3.
org/1999/x
html">
|
|
|
2 |
|
|
|
|
3 |
|
<xsl:inclu
de href="f
orm_inputs
.xsl" />
|
|
|
4 |
|
|
|
|
5 |
|
<xsl:templ
ate match=
"urls" />
|
|
|
6 |
|
|
|
|
7 |
|
<xsl:templ
ate match=
"join">
|
|
|
8 |
|
|
|
|
9 |
|
<div c
lass="wnd_
box">
|
|
|
10 |
|
|
|
|
11 |
|
<div sty
le="displa
y:none;" i
d="js_code
">
|
|
|
12 |
|
|
|
|
13 |
|
var f = do
cument.for
ms['orca_j
oin_form']
;
|
|
|
14 |
|
var ret =
true;
|
|
|
15 |
|
|
|
|
16 |
|
<xsl:for-e
ach select
="join_for
m/*">
|
|
|
17 |
|
var va
l<xsl:valu
e-of selec
t="name()"
/> = f.el
ements['<x
sl:value-o
f select="
name()" />
'].value;
|
|
|
18 |
|
if (!v
al<xsl:val
ue-of sele
ct="name()
" />.match
(<xsl:valu
e-of selec
t="regexp"
/>))
|
|
|
19 |
|
{
|
|
|
20 |
|
va
r e = docu
ment.getEl
ementById(
'f_err_<xs
l:value-of
select="n
ame()" />'
);
|
|
|
21 |
|
e.
innerHTML
= '<xsl:va
lue-of sel
ect="err"
/>';
|
|
|
22 |
|
e.
style.disp
lay = 'inl
ine';
|
|
|
23 |
|
re
t = false;
|
|
|
24 |
|
}
|
|
|
25 |
|
else
|
|
|
26 |
|
{
|
|
|
27 |
|
va
r e = docu
ment.getEl
ementById(
'f_err_<xs
l:value-of
select="n
ame()" />'
);
|
|
|
28 |
|
e.
style.disp
lay = 'non
e';
|
|
|
29 |
|
}
|
|
|
30 |
|
</xsl:for-
each>
|
|
|
31 |
|
|
|
|
32 |
|
if (ret)
|
|
|
33 |
|
{
|
|
|
34 |
|
orca_l
ogin.joinF
ormSubmit
(
|
|
|
35 |
|
<xsl:f
or-each se
lect="join
_form/*">
|
|
|
36 |
|
f.
elements['
<xsl:value
-of select
="name()"
/>'].value
<xsl:if te
st="positi
on() != la
st()">,</x
sl:if>
|
|
|
37 |
|
</xsl:
for-each>)
;
|
|
|
38 |
|
}
|
|
|
39 |
|
|
|
|
40 |
|
ret = fals
e;
|
|
|
41 |
|
|
|
|
42 |
|
|
|
|
43 |
|
</div>
|
|
|
44 |
|
|
|
|
45 |
|
<div cla
ss="wnd_ti
tle">
|
|
|
46 |
|
<h2>
[L[Join]]<
/h2>
|
|
|
47 |
|
</div>
|
|
|
48 |
|
|
|
|
49 |
|
<div cla
ss="wnd_co
ntent">
|
|
|
50 |
|
|
|
|
51 |
|
<for
m name="or
ca_join_fo
rm" onsubm
it="var s=
document.g
etElementB
yId('js_co
de').inner
HTML; eval
(s); retur
n ret;">
|
|
|
52 |
|
|
|
|
53 |
|
<div>
|
|
|
54 |
|
|
|
|
55 |
|
<xsl:a
pply-templ
ates selec
t="join_fo
rm" />
|
|
|
56 |
|
|
|
|
57 |
|
</div>
|
|
|
58 |
|
|
|
|
59 |
|
<input typ
e="submit"
name="sbm
t" value="
sbmt" styl
e="display
:none;" />
|
|
|
60 |
|
|
|
|
61 |
|
<input typ
e="hidden"
name="act
ion" value
="join_for
m_submit"
/>
|
|
|
62 |
|
|
|
|
63 |
|
<div style
="margin:3
0px; margi
n-right:10
0px; margi
n-top:0px;
">
|
|
|
64 |
|
|
|
|
65 |
|
<div c
lass="btn"
onmouseov
er="this.s
tyle.backg
roundPosit
ion='0 25p
x'" onmous
eout="this
.style.bac
kgroundPos
ition='0 0
'">
|
|
|
66 |
|
<a
href="jav
ascript:vo
id(0);" on
click="f.h
ideHTML();
return fa
lse;"><img
src="{/ro
ot/urls/im
g}button_l
.gif" /></
a>
|
|
|
67 |
|
<i
mg src="{/
root/urls/
img}btn_ic
on_cancel.
gif" />
|
|
|
68 |
|
<b
>[L[Cancel
]]</b>
|
|
|
69 |
|
</div>
|
|
|
70 |
|
|
|
|
71 |
|
<div c
lass="btn"
onmouseov
er="this.s
tyle.backg
roundPosit
ion='0 25p
x'" onmous
eout="this
.style.bac
kgroundPos
ition='0 0
'" >
|
|
|
72 |
|
<a
href="jav
ascript:vo
id(0);" on
click="var
s=documen
t.getEleme
ntById('js
_code').in
nerHTML; e
val(s); re
turn ret;"
><img src=
"{/root/ur
ls/img}but
ton_l.gif"
/></a>
|
|
|
73 |
|
<i
mg src="{/
root/urls/
img}btn_ic
on_submit.
gif" />
|
|
|
74 |
|
<b
>[L[Submit
]]</b>
|
|
|
75 |
|
</div>
|
|
|
76 |
|
|
|
|
77 |
|
</div>
|
|
|
78 |
|
|
|
|
79 |
|
</fo
rm>
|
|
|
80 |
|
|
|
|
81 |
|
<br
/>
|
|
|
82 |
|
|
|
|
83 |
|
</div>
|
|
|
84 |
|
|
|
|
85 |
|
</
div>
|
|
|
86 |
|
|
|
|
87 |
|
</xsl:temp
late>
|
|
|
88 |
|
|
|
|
89 |
|
<xsl:templ
ate match=
"join_form
">
|
|
|
90 |
|
|
|
|
91 |
|
<xsl:f
or-each se
lect="*">
|
|
|
92 |
|
|
|
|
93 |
|
<x
sl:choose>
|
|
|
94 |
|
|
|
|
95 |
|
<xsl:whe
n test="ty
pe = 'text
'">
|
|
|
96 |
|
<xsl
:call-temp
late name=
"text" />
|
|
|
97 |
|
</xsl:wh
en>
|
|
|
98 |
|
|
|
|
99 |
|
</
xsl:choose
>
|
|
|
100 |
|
|
|
|
101 |
|
</xsl:
for-each>
|
|
|
102 |
|
|
|
|
103 |
|
</xsl:temp
late>
|
|
|
104 |
|
|
|
|
105 |
|
</xsl:styl
esheet>
|
|
|
106 |
|
|
|
|
107 |
|
|