1
|
<?xml version="1.0"?>
|
2
|
<!--
|
3
|
* '$RCSfile$'
|
4
|
* Authors: Jivka Bojilova
|
5
|
* Copyright: 2000 Regents of the University of California and the
|
6
|
* National Center for Ecological Analysis and Synthesis
|
7
|
* For Details: http://www.nceas.ucsb.edu/
|
8
|
*
|
9
|
* '$Author: leinfelder $'
|
10
|
* '$Date: 2008-06-17 13:16:32 -0700 (Tue, 17 Jun 2008) $'
|
11
|
* '$Revision: 4006 $'
|
12
|
*
|
13
|
* This program is free software; you can redistribute it and/or modify
|
14
|
* it under the terms of the GNU General Public License as published by
|
15
|
* the Free Software Foundation; either version 2 of the License, or
|
16
|
* (at your option) any later version.
|
17
|
*
|
18
|
* This program is distributed in the hope that it will be useful,
|
19
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
20
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
21
|
* GNU General Public License for more details.
|
22
|
*
|
23
|
* You should have received a copy of the GNU General Public License
|
24
|
* along with this program; if not, write to the Free Software
|
25
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
26
|
*
|
27
|
* This is an XSLT (http://www.w3.org/TR/xslt) stylesheet designed to
|
28
|
* convert an XML file with information about login action
|
29
|
* into an HTML format suitable for rendering with modern web browsers.
|
30
|
-->
|
31
|
|
32
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
33
|
|
34
|
<xsl:output method="html"/>
|
35
|
<xsl:param name="contextURL"/>
|
36
|
<xsl:param name="servletURL"/>
|
37
|
<xsl:param name="cgi-prefix"/>
|
38
|
<xsl:param name="qformat">sanparks</xsl:param>
|
39
|
<xsl:template match="/">
|
40
|
<xsl:choose>
|
41
|
<xsl:when test="count(login) > 0">
|
42
|
<h3>Welcome, <xsl:value-of select="login/name"/> </h3>
|
43
|
<form name="logoutForm" onsubmit="submitLogoutFormIntoDiv('{$servletURL}', this, 'loginSection')">
|
44
|
<input name="qformat" value="sanparks" type="hidden" />
|
45
|
<input name="action" type="hidden" value="logout"/>
|
46
|
<table>
|
47
|
<tr valign="top">
|
48
|
<td><p class="regtext">You are currently logged in.</p></td>
|
49
|
<td align="right">
|
50
|
<input name="action" type="submit" value="Logout" class="button_login" />
|
51
|
</td>
|
52
|
</tr>
|
53
|
<tr valign="top">
|
54
|
<td colspan="2"><p class="regtext">(<xsl:value-of select="login/message"/>)</p></td>
|
55
|
</tr>
|
56
|
<tr>
|
57
|
<td colspan="2" class="regtext" align="center" valign="top">
|
58
|
<!-- reset pass -->
|
59
|
<a href="{$cgi-prefix}/ldapweb.cgi?cfg=sanparks&stage=resetpass" target="_parent">
|
60
|
reset your password
|
61
|
</a>
|
62
|
|
|
63
|
<!-- change pass -->
|
64
|
<a href="{$cgi-prefix}/ldapweb.cgi?cfg=sanparks&stage=changepass" target="_parent">
|
65
|
change your password
|
66
|
</a>
|
67
|
</td>
|
68
|
</tr>
|
69
|
</table>
|
70
|
</form>
|
71
|
|
72
|
<!-- File Upload Form -->
|
73
|
<br/>
|
74
|
<h3>Data Package Upload</h3>
|
75
|
|
76
|
<table width="100%">
|
77
|
<tr valign="top">
|
78
|
<td align="right">
|
79
|
<form method="post" action="{$contextURL}/style/skins/sanparks/upload.jsp">
|
80
|
<input type="submit" value="Go >" class="button_login" />
|
81
|
</form>
|
82
|
</td>
|
83
|
</tr>
|
84
|
</table>
|
85
|
</xsl:when>
|
86
|
<xsl:otherwise>
|
87
|
<h3>Login
|
88
|
<a href="{$contextURL}/cgi-bin/ldapweb.cgi?cfg=sanparks" target="_new" />
|
89
|
<span class="regtext"> (request an account...)</span>
|
90
|
</h3>
|
91
|
<form name="loginForm" id="loginForm" onsubmit="submitLoginFormIntoDiv('{$servletURL}', this, 'loginSection')">
|
92
|
<input name="qformat" type="hidden" value="sanparks" />
|
93
|
<input name="action" type="hidden" value="login"/>
|
94
|
<table>
|
95
|
<tr valign="top">
|
96
|
<td><span class="required">User name</span></td>
|
97
|
<td><input name="shortusername" type="text" value="" style="width: 140" /></td>
|
98
|
<td><input name="username" type="hidden" value="" /></td>
|
99
|
|
100
|
</tr>
|
101
|
<tr>
|
102
|
<td><span class="required">Organization</span></td>
|
103
|
<td><select name="organization" style="width: 140">
|
104
|
<option value="SANParks" selected="">SANParks</option>
|
105
|
<option value="SAEON">SAEON</option>
|
106
|
<option value="NCEAS">NCEAS</option>
|
107
|
<option value="unaffiliated">unaffiliated</option>
|
108
|
</select></td>
|
109
|
</tr>
|
110
|
<tr>
|
111
|
<td><span class="required">Password</span></td>
|
112
|
<td><input name="password" value="" type="password"
|
113
|
style="width: 140" maxlength="50" /></td>
|
114
|
</tr>
|
115
|
<tr>
|
116
|
<td colspan="2" align="center">
|
117
|
<input name="action" value="login" type="submit" class="button_login" />
|
118
|
</td>
|
119
|
</tr>
|
120
|
</table>
|
121
|
</form>
|
122
|
|
123
|
<!-- File Upload Form -->
|
124
|
<br/>
|
125
|
<h3>Data Package Upload</h3>
|
126
|
<p class="regtext">You must be logged into your user account before uploading a data set.</p>
|
127
|
|
128
|
</xsl:otherwise>
|
129
|
|
130
|
</xsl:choose>
|
131
|
</xsl:template>
|
132
|
</xsl:stylesheet>
|
133
|
|