Project

General

Profile

« Previous | Next » 

Revision 3582

Added by walbridge about 17 years ago

Modified all header and footer calls to be skin specific: in the NCEAS skin, skip rendering the header and footer IFRAME elements, otherwise continue as normal.

View differences:

lib/style/common/templates/nceasFooter.tmpl
1
  <div id="footer">
2
      <div id="footer_logos">
3
        <a href="http://www.msi.ucsb.edu/">
4
          <img src="@systemidserver@@style-skins-path@/nceas/logo_msi.jpg"
5
            alt="MSI: Marine Science Institute" height="66" width="132"/></a>
6
        <a href="http://www.nsf.gov/">
7
          <img src="@systemidserver@@style-skins-path@/nceas/logo_nsf.jpg"
8
            alt="NSF: National Science Foundation" height="66"
9
            width="70"/></a>
10
        <a href="http://www.ucsb.edu/">
11
          <img src="@systemidserver@@style-skins-path@/nceas/logo_ucsb.jpg"
12
            alt="UCSB: University of California at Santa Barbara"
13
            height="66" width="132"/></a>
14
      </div><!-- footer_logos -->
15
      <div id="footer_contact">
16
        <span class="contact_name">
17
          National Center for Ecological
18
          Analysis and Synthesis
19
        </span>
20

  
21
        <span class="contact_address">
22
          735 State Street, Suite 300, Santa
23
          Barbara, CA 93101
24
        </span>
25
        <span class="copyright">
26
          Copyright &#169; 2007 The Regents of
27
          the University of California, All
28
          Rights Reserved
29
        </span>
30
        <span class="copyright">
31
          <a href="http://www.ucsb.edu/"
32
             title="Visit the UCSB website">
33
              UC Santa Barbara
34
          </a>
35
          , Santa Barbara CA 93106 &#149;
36
          (805) 893-8000
37
        </span>
38
        <span class="copyright">
39
          <a href="mailto:webmaster@nceas.ucsb.edu"
40
             title="E-mail the NCEAS webmaster">
41
             Contact
42
          </a>
43
          &#149;
44
          <a
45
            href="http://www.ucsb.edu/policies/terms-of-use.shtml">
46
            Terms of Use
47
          </a>
48
          &#149;
49
          <a href="http://www.nceas.ucsb.edu/accessibility"
50
             title="NCEAS is committed to the accessibility of its products for all users">
51
             Accessibility
52
          </a>
53
        </span>
54

  
55
        <span class="copyright">
56
          Last Modified July 10, 2007
57
        </span>
58
      </div>
59
    </div><!-- footer -->
60
  </div><!-- content_wrapper -->
61
  </div><!-- main wrapper -->
62
</body>
63
</html>
0 64

  
lib/style/common/templates/entryForm.tmpl
1
[% INCLUDE "genericHeader.tmpl" %]
1
[% IF cfg == 'nceas' %]
2
  [% INCLUDE "nceasHeader.tmpl" %]
3
[% ELSE %]
4
  [% INCLUDE "genericHeader.tmpl" %]
5
[% END %]
2 6

  
3 7
  <script language="JavaScript" type="text/javascript" src="@systemidserver@@style-common-path@/templates/entryForm.js">
4 8
  </script>
......
49 53
      </span>
50 54
      [%END%]
51 55
      </span></td></tr>
52
      <tr><td></td></tr>
53
      <tr><td align="left"><span class="regtext">Please have a look at the 
54 56
      <a href="@cgi-prefix@/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide" target="guide">
55 57
        <span class="boldlink">Guide for Completing the Data [%IF cfg =='nceas'%] Repository [% ELSE %] Registry [% END %] Form</span></a> 
56 58
        for help with filling in this form.</span></td</tr>
......
1118 1120
   
1119 1121
</form>
1120 1122

  
1121

  
1122
[% INCLUDE "genericFooter.tmpl" %]
1123
[% IF cfg == 'nceas' %]
1124
  [% INCLUDE "nceasFooter.tmpl" %]
1125
[% ELSE %]
1126
  [% INCLUDE "genericFooter.tmpl" %]
1127
[% END %]
lib/style/common/templates/confirmData.tmpl
22 22
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23 23
-->
24 24

  
25
[% INCLUDE "genericHeader.tmpl" %]
25
[% IF cfg == 'nceas' %]
26
  [% INCLUDE "nceasHeader.tmpl" %]
27
[% ELSE %]
28
  [% INCLUDE "genericHeader.tmpl" %]
29
[% END %]
30

  
26 31
[% IF cfg == 'nrs' %]
27 32
  [% lsite = 'reserve' %]
28 33
  [% usite = 'Reserve' %]
......
630 635
</table>
631 636
</form>
632 637
<p>&nbsp;</p>
633
[% INCLUDE "genericFooter.tmpl" %]
638
[% IF cfg == 'nceas' %]
639
  [% INCLUDE "nceasFooter.tmpl" %]
640
[% ELSE %]
641
  [% INCLUDE "genericFooter.tmpl" %]
642
[% END %]
lib/style/common/templates/genericGuide.tmpl
23 23
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
24 24
-->
25 25

  
26
[% INCLUDE "genericHeader.tmpl" %]
26
[% IF cfg == 'nceas' %]
27
  [% INCLUDE "nceasHeader.tmpl" %]
28
[% ELSE %]
29
  [% INCLUDE "genericHeader.tmpl" %]
30
[% END %]
27 31

  
28 32
[% IF cfg == 'nrs' %]
29 33
  [% lsite = 'reserve' %]
......
375 379
</table>
376 380
<p></p>
377 381

  
378
[% INCLUDE "genericFooter.tmpl" %]
382
[% IF cfg == 'nceas' %]
383
  [% INCLUDE "nceasFooter.tmpl" %]
384
[% ELSE %]
385
  [% INCLUDE "genericFooter.tmpl" %]
386
[% END %]
lib/style/common/templates/genericResponse.tmpl
1
[% INCLUDE "genericHeader.tmpl" %]
1
[% IF cfg == 'nceas' %]
2
  [% INCLUDE "nceasHeader.tmpl" %]
3
[% ELSE %]
4
  [% INCLUDE "genericHeader.tmpl" %]
5
[% END %]
2 6

  
3 7
    [% IF status == 'success' %]
4 8
        
......
239 243
            [% END %]
240 244
        [% END %]
241 245
    [% END %]
242
[% INCLUDE "genericFooter.tmpl" %]
246
[% IF cfg == 'nceas' %]
247
  [% INCLUDE "nceasFooter.tmpl" %]
248
[% ELSE %]
249
  [% INCLUDE "genericFooter.tmpl" %]
250
[% END %]
lib/style/common/templates/deleteData.tmpl
22 22
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23 23
-->
24 24

  
25
[% INCLUDE "genericHeader.tmpl" %]
25
[% IF cfg == 'nceas' %]
26
  [% INCLUDE "nceasHeader.tmpl" %]
27
[% ELSE %]
28
  [% INCLUDE "genericHeader.tmpl" %]
29
[% END %]
30

  
26 31
[% IF cfg == 'nrs' %]
27 32
  [% lsite = 'reserve' %]
28 33
  [% usite = 'Reserve' %]
......
92 97
</table>
93 98
</form>
94 99
<p>&nbsp;</p>
95
[% INCLUDE "genericFooter.tmpl" %]
100
[% IF cfg == 'nceas' %]
101
  [% INCLUDE "nceasFooter.tmpl" %]
102
[% ELSE %]
103
  [% INCLUDE "genericFooter.tmpl" %]
104
[% END %]
lib/style/common/templates/loginForm.tmpl
1
<!--
2
  *  '$RCSfile$'
3
  *      Authors: Saurabh Garg
4
  *    Copyright: 2000 Regents of the University of California and the
5
  *               National Center for Ecological Analysis and Synthesis
6
  *  For Details: http://www.nceas.ucsb.edu/
7
  *
8
  *   '$Author$'
9
  *     '$Date$'
10
  * '$Revision$'
11
  * 
12
  * This is an HTML document for displaying metadata catalog tools
13
  *
14
  * This program is free software; you can redistribute it and/or modify
15
  * it under the terms of the GNU General Public License as published by
16
  * the Free Software Foundation; either version 2 of the License, or
17
  * (at your option) any later version.
18
  *
19
  * This program is distributed in the hope that it will be useful,
20
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22
  * GNU General Public License for more details.
23
  *
24
  * You should have received a copy of the GNU General Public License
25
  * along with this program; if not, write to the Free Software
26
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
27
-->
28
<html>
29
<head>
30
<title>Data Repository Login Form</title>
31
<link rel="stylesheet" href="@html-path@/style/default.css" type="text/css">
32
  <link rel="stylesheet" type="text/css" 
33
        href="@systemidserver@@style-skins-path@/[%cfg%]/[%cfg%].css"></link>
34
  <script language="JavaScript" type="text/JavaScript"
35
          src="@systemidserver@@style-skins-path@/[%cfg%]/[%cfg%].js"></script>
36
  <script language="JavaScript" type="text/JavaScript"
37
          src="@systemidserver@@style-common-path@/branding.js"></script>
1
[% IF cfg == 'nceas' %]
2
  [% INCLUDE "nceasHeader.tmpl" %]
3
[% ELSE %]
4
  [% INCLUDE "genericHeader.tmpl" %]
5
[% END %]
6
      <script language="JavaScript">
7
function submitform(formObj) {
38 8

  
39
  <script language="JavaScript" type="text/javascript">
40
  function submitform(formObj) {
41

  
42 9
  if (trim(formObj.elements["loginAction"].value)!="Login") return true;
43 10
  //trim username & passwd:
44 11
  var username = trim(formObj.elements["uid"].value);
......
70 37
function trim(stringToTrim) {
71 38
  return stringToTrim.replace(/^\s*/, '').replace(/\s*$/,'');
72 39
}
73

  
74
 </script>
75

  
76
</head>
77
<body>
78
      <script language="JavaScript">
79
          insertTemplateOpening();
80
          insertSearchBox();
81 40
      </script>
82 41
  <br />
83 42
      [% IF message != '' %]
......
173 132
	Dont have an account yet? <a href="@cgi-prefix@/ldapweb.cgi?cfg=[%cfg%]">Create a new account</a>
174 133
	 <br />
175 134
	Forgot your password? <a href="@cgi-prefix@/ldapweb.cgi?cfg=[%cfg%]&amp;stage=resetpass">Reset your password</a>
176
  
177
  <p>&nbsp;</p>
178
<script language="JavaScript">          
179
    insertTemplateClosing();
180
</script>
181
</body>
182
</html>
135

  
136
[% IF cfg == 'nceas' %]
137
  [% INCLUDE "nceasFooter.tmpl" %]
138
[% ELSE %]
139
  [% INCLUDE "genericFooter.tmpl" %]
140
[% END %]  
lib/style/common/templates/nceasHeader.tmpl
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
<html>
3
<head>
4
  <title>NCEAS Data Repository</title>
5

  
6
  <link rel="stylesheet" type="text/css"
7
    href="@systemidserver@@style-skins-path@/nceas/nceas.css" />
8
  <script language="Javascript" type="text/JavaScript"
9
    src="@systemidserver@@style-skins-path@/nceas/nceas.js" />
10
  <script language="Javascript" type="text/JavaScript"
11
    src="@systemidserver@@style-common-path@/branding.js" />
12
  <script type="text/javascript"
13
    src="@systemidserver@@style-skins-path@/nceas/navigation.js" />
14
  <link rel="stylesheet" type="text/css"
15
    href="@systemidserver@@style-skins-path@/nceas/nceas.css" />
16
</head>
17
<body id="Overview">
18
  <div id="main_wrapper">
19

  
20
  <div id="header">
21
    <p>Skip to <a href="#navigation">navigation</a>,
22
          <a href="#main_content">main content</a>,
23
          <a href="#secondary_content">secondary content</a>
24
          or to <a href="#search">search</a>.
25
    </p>
26
    <h1>
27
      <span/>
28
      <a href="/">NCEAS</a>
29
    </h1>
30
  </div>
31
  <div id="navigation">
32
    <ul id="main_nav">
33
      <ul class="menu">
34
        <li class="collapsed">
35
          <a href="http://www.nceas.ucsb.edu">
36
            Home
37
          </a>
38
        </li>
39
        <li class="collapsed">
40
          <a href="http://data.nceas.ucsb.edu">
41
            Repository
42
          </a>
43
        </li>
44
        <li class="collapsed">
45
          <a href="@cgi-prefix@/register-dataset.cgi?cfg=nceas">
46
            Register
47
          </a>
48
        </li>
49
      </ul>
50
    </ul>
51
  </div>
52
  <div id="content_wrapper">
0 53

  

Also available in: Unified diff