Project

General

Profile

« Previous | Next » 

Revision 8376

Added by Jing Tao about 11 years ago

Use java script in the index.html to create the page. So the account skin doesn't involve any java classes.

View differences:

lib/style/skins/account/account.js
84 84
//  ( e.g. if you do not want a header to be included, set: HEADER_URL="";)
85 85
////////////////////////////////////////////////////////////////////////////////
86 86

  
87
//The server url which will install the skin
88
var SERVER_URL
89
   = "https://chico1.dyndns.org";
87 90

  
91
//The name of the context
92
var CONTEXT_NAME
93
    ="account";
94
    
95
//The combination of the serverl url and context name
96
var CONTEXT_URL
97
  = SERVER_URL + "/"+CONTEXT_NAME;
98

  
99
//The url path of the cgi directory
100
var CGI_URL 
101
   = CONTEXT_URL + "/cgi-bin";
102

  
88 103
//  Location of the header that will be displayed at the top of the page
89 104
var HEADER_URL 
90 105
  = "style/skins/account/header.html";
lib/style/skins/account/account.properties
1
#properties for the account skin
2

  
3
# email settings
4
email.sender=NCEAS Identity Service <help@nceas.ucsb.edu>
5
email.recipient=help@nceas.ucsb.edu
6
email.admin=the identify service administrator
lib/style/skins/account/index.html
1
<!-- *  Does a redirect to jsp index page * -->
2
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
1

  
2
<!--
3
/**
4
 *  '$RCSfile$'
5
 *    Copyright: 2004 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: daigle $'
10
 *     '$Date: 2008-07-06 21:25:34 -0700 (Sun, 06 Jul 2008) $'
11
 * '$Revision: 4080 $'
12
 * 
13
 * This is an HTML document for displaying metadata catalog tools
14
 *
15
 * This program is free software; you can redistribute it and/or modify
16
 * it under the terms of the GNU General Public License as published by
17
 * the Free Software Foundation; either version 2 of the License, or
18
 * (at your option) any later version.
19
 *
20
 * This program is distributed in the hope that it will be useful,
21
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23
 * GNU General Public License for more details.
24
 *
25
 * You should have received a copy of the GNU General Public License
26
 * along with this program; if not, write to the Free Software
27
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
28
 */
29
-->
30

  
31

  
32
   
33
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
3 34
<html>
4 35
<head>
5
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6
    <script language="JavaScript">
7
        function doRedirectWithParams() {   
8
                   document.location.href="./index.jsp";
9
                       }
10
  </script>
11
  </head>
12
  <body>
13
    <script language="JavaScript">doRedirectWithParams()</script></body></html>
36
<title>Account Management</title>
37
  <link rel="stylesheet" type="text/css" 
38
        href="account.css"></link>
39
  <script language="JavaScript" type="text/JavaScript"
40
          src="account.js"></script>
41
  <script language="JavaScript" type="text/JavaScript"
42
          src="../../common/branding.js"></script>
43
</head>
44
<body>
45
      <script language="JavaScript">
46
          insertTemplateOpening(CONTEXT_URL);
47
      </script>
48
<table width="760" border="0" cellspacing="0" cellpadding="0">
49
  <tr><td colspan="5">
50

  
51
<p>The <b>Account Manager</b> is used to manage your preferences regarding your
52
NCEAS account. Currently you can create a new account, lookup your account if your have
53
forgotten your account name, change your password if you
54
know your previous password, and if you have forgotten your password,
55
you can reset it to a new value that will be emailed to the address on 
56
record for the account.</p>
57

  
58

  
59
<br><br>
60
<tr><td colspan="5">
61
<b>Choose an action:</b>
62

  
63
    <ul>
64
        <li><script type="text/javascript">document.write('<a href="'+CGI_URL+'/ldapweb.cgi?cfg=account">Create a new account</a>');</script>
65
        <li><script type="text/javascript">document.write('<a href="'+CGI_URL+'/ldapweb.cgi?cfg=account&amp;stage=lookupname">Lookup your account</a>');</script>
66
        <li><script type="text/javascript">document.write('<a href="'+CGI_URL+'/ldapweb.cgi?cfg=account&amp;stage=changepass">Change your password</a>');</script>
67
        <li><script type="text/javascript">document.write('<a href="'+CGI_URL+'/ldapweb.cgi?cfg=account&amp;stage=resetpass">Reset your password</a>');</script>
68
    </ul>
69
</td>
70
</tr>
71
</table>
72

  
73
<script language="JavaScript">          
74
    insertTemplateClosing(CONTEXT_URL);
75
</script>
76
</body>
77
</html>
lib/style/skins/account/header.html
9 9
<body>
10 10
<table width="760" border="0" cellspacing="0" cellpadding="0">
11 11
  <tr> 
12
    <td valign="middle" colspan="4" class="title">Ecoinformatics.org Account Manager</td>
12
    <td valign="middle" colspan="4" class="title">NCEAS Account Manager</td>
13 13
  </tr>
14 14
  <tr> 
15 15
    <td class="spacerrow" valign="top" colspan="4">&nbsp;</td>
16 16
  </tr>
17 17
  <tr> 
18 18
    <td valign="top" width="20%"> 
19
      <p><a href="./index.jsp" target="_top"> Main menu</a></p>
19
      <p><a href="./index.html" target="_top"> Main menu</a></p>
20 20
    </td>
21 21
  </tr>
22 22
</table>

Also available in: Unified diff