Revision 4006
Added by ben leinfelder almost 16 years ago
saeon-login.xsl | ||
---|---|---|
32 | 32 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> |
33 | 33 |
|
34 | 34 |
<xsl:output method="html"/> |
35 |
<xsl:param name="contextURL"/> |
|
36 |
<xsl:param name="cgi-prefix"/> |
|
35 | 37 |
<xsl:param name="qformat">saeon</xsl:param> |
36 | 38 |
<xsl:template match="/"> |
37 | 39 |
<html> |
... | ... | |
45 | 47 |
</head> |
46 | 48 |
|
47 | 49 |
<script language="JavaScript"> |
48 |
insertTemplateOpening("{$contextURL}"); |
|
49 |
insertSearchBox("{$contextURL}"); |
|
50 |
</script> |
|
50 |
<![CDATA[ |
|
51 |
insertTemplateOpening("]]><xsl:value-of select="$contextURL" /><![CDATA["); |
|
52 |
insertSearchBox("]]><xsl:value-of select="$contextURL" /><![CDATA["); |
|
53 |
]]> |
|
54 |
</script> |
|
51 | 55 |
<xsl:if test="count(login) > 0"> |
52 |
<script language="JavaScript"> |
|
53 |
<![CDATA[
|
|
54 |
function search(){
|
|
55 |
location.href = "{$contextURL}/style/skins/saeon";
|
|
56 |
}]]> |
|
56 |
<script language="JavaScript">
|
|
57 |
<![CDATA[ |
|
58 |
function search(){
|
|
59 |
location.href = "]]><xsl:value-of select="$cgi-prefix" /><![CDATA[/register-dataset.cgi?cfg=saeon";
|
|
60 |
}]]>
|
|
57 | 61 |
</script> |
58 | 62 |
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="timerID=setTimeout('search()',2000)"> |
59 | 63 |
<p class="text_plain">Welcome <xsl:value-of select="login/name"/>. You will be automatically redirected to the homepage</p> |
... | ... | |
65 | 69 |
<p class="text_plain"><xsl:value-of select="unauth_login/message" /></p> |
66 | 70 |
</body> |
67 | 71 |
</xsl:if> |
68 |
<p class="text_plain">Return to the <a href="{$contextURL}/style/skins/knp" target="_top">homepage</a>.
|
|
72 |
<p class="text_plain">Return to the <a href="{$contextURL}/style/skins/saeon" target="_top">homepage</a>.
|
|
69 | 73 |
</p> |
70 | 74 |
<script language="JavaScript"> |
71 |
insertTemplateClosing("{$contextURL}"); |
|
72 |
</script> |
|
75 |
<![CDATA[ |
|
76 |
insertTemplateClosing("]]><xsl:value-of select="$contextURL" /><![CDATA["); |
|
77 |
]]> |
|
78 |
</script> |
|
73 | 79 |
</html> |
74 | 80 |
</xsl:template> |
75 | 81 |
|
Also available in: Unified diff
merge 1.8.1 to head