Project

General

Profile

1
<?xml version="1.0"?>
2
<!--
3
*  '$RCSfile: loginbox.xsl,v $'
4
*      Authors: Chris Jones
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: cjones $'
10
*     '$Date: 2004/10/05 23:50:46 $'
11
* '$Revision: 1.1 $'
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 showing the resultset of a query
29
* into an HTML format suitable for rendering with modern web browsers.
30
-->
31
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
32
  <xsl:param name="contextURL"/>
33
  <!-- This parameter gets overidden by the chosen default qformat -->
34
  <xsl:param name="qformat">default</xsl:param>
35

    
36
  <xsl:output method="html" encoding="iso-8859-1" indent="yes" standalone="yes"
37
    doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
38
    doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" />
39
    
40
  <xsl:template name="loginbox">
41
    <xsl:comment>begin the login form area</xsl:comment>
42
      <!-- begin login form area -->
43
      <div id="loginbox">
44
        <!--
45
        <form name="loginForm" method="POST" 
46
          action="{$contextURL}/style/skins/{$qformat}/index.jsp">
47
          <label class="login"><%=loginStatus%></label>
48
          <% if (!isLoggedIn) {%> 
49
          <label class="login" for="username">username</label>
50
          <input class="login" type="text" name="username" value="<%=typedUserName%>" />
51
          <label class="login" for="password">password</label>
52
          <input class="login" type="password" name="password" />
53
          <input type="submit" name="loginAction" value="<%=loginButtonLabel%>" class="submit" />
54
          <% } else { %>
55
          <input type="submit" name="loginAction" value="<%=loginButtonLabel%>" class="submit" />
56
          <% } %>
57
          <input type="hidden" name="action" value="login">
58
          <input type="hidden" name="ldapusername"  value="">
59
          <input type="hidden" name="organization"  value="LTER">
60
          <input type="hidden" name="qformat" value="{$qformat}">
61
          <input type="hidden" name="enableediting" value="true">
62
        </form> 
63
        -->
64
      </div>
65
    <xsl:comment>end the login form area</xsl:comment>
66
    <!-- end login form area -->
67
  </xsl:template>
68

    
69
</xsl:stylesheet>
(3-3/14)