Project

General

Profile

« Previous | Next » 

Revision 2211

New alternative KNB skin. Duplicates much of what is on the KNB site, but
this skin can work standalone with metacat (ie, you do not need the KNB
web site to be installed). Modified the resultset.xsl to do some things
specific to this skin.

View differences:

lib/style/skins/knb2/portalpages.css
1
 /*
2
  *   '$RCSfile$'
3
  *     Purpose: Default style sheet for KNB project web pages 
4
  *              Using this stylesheet rather than placing styles directly in 
5
  *              the KNB web documents allows us to globally change the 
6
  *              formatting styles of the entire site in one easy place.
7
  *   Copyright: 2000 Regents of the University of California and the
8
  *               National Center for Ecological Analysis and Synthesis
9
  *     Authors: Matt Jones
10
  *
11
  *    '$Author$'
12
  *      '$Date$'
13
  *  '$Revision$'
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
 *  styles specific to the portal page and other 
32
 *  scientist-targeted pages accessed from the portal
33
 */		
34
		
35
body { 
36
  	padding-top: 3px;
37
    color: #333333; 
38
    background-image: url(images/bgpattern.gif);
39
    font-size: 11px; 
40
    font-family: Verdana,Arial,Helvetica,sans-serif; }
41
		
42
.maintable {
43
    background: #ffffff;
44
}
45

  
46
.subpanel {
47

  
48
  background:    #ffffff;
49
  border-left:   solid #cccccc 1px;
50
  border-right:  solid #cccccc 1px;
51
  border-bottom: solid #cccccc 1px;
52
}
53

  
54
.subpanel_lite {
55
  background:    #ffffff;
56
  border:        solid #cccccc 1px;
57
}
58

  
59
a {
60
    color: #669933;
61
    font-weight: bold;
62
    font-size: 11px; 
63
    text-decoration: none; }
64
		
65
a:hover {
66
    color: #ff9933;
67
    text-decoration: underline; }
68
		
69
.logo {
70
    background: #ffffff;
71
    background-image: url(images/panelhead_bg.gif);
72
		padding: 5px; }
73
		
74
.title {
75
    background: #0247A8;     
76
		font-family: Georgia, Times New Roman, Times, serif;
77
    color:      #eeeeee;
78
    font-size: 24px; 
79
    font-weight: bold;}
80
		
81
p.title {
82
  padding-left: 15px;
83
}
84

  
85
p.sectionheader {
86

  
87
    background-image: url(images/transparent1x1.gif);
88
	  text-align: left;
89
    color: #0247A8; 
90
    font-size: 14px; 
91
    font-weight: bold; 
92
}
93
		
94
.sectionheader {
95

  
96
    background-image: url(images/panelhead_bg.gif);
97
	  text-align: center;
98
    color: #0247A8; 
99
    font-size: 14px; 
100
    font-weight: bold; 
101
}
102

  
103
.text_plain { 
104
	  padding: 5px;
105
    color: #666666;
106
    font-weight: normal;
107
    font-size: 11px; }
108

  
109
.text_plain_smaller { 
110

  
111
	  padding: 5px;
112
    font-weight: normal;
113
    font-size: 11px; }
114

  
115
.text_plain_no_padding { 
116
	padding: 0px;
117
    margin-left: 10px;
118
    margin-top: 0px;
119
    margin-bottom: 0px;
120
    color: #666666;
121
    font-weight: normal;
122
    font-size: 11px; }
123

  
124
.text_example { 
125

  
126
	  padding: 5px;
127
    color: #999999;
128
    font-weight: normal;
129
    font-size: 11px; }
130

  
131
.searchcat {
132
  	padding-left: 5px;
133
    color: #0247A8;
134
    font-weight: bold;
135
    font-size: 11px; }
136
		
137
td.searchsubcat {
138
  	padding-left: 15px; }
139

  
140
a.searchsubcat {
141
    color: #669933; 
142
    font-weight: normal;
143
    font-size: 11px; }
144
		
145
a.searchsubcat:hover {
146
    color: #ff9933;
147
    text-decoration: underline; }
148
		
149
.subsection {
150
  	padding-left: 5px;
151
    color: #0247A8;
152
    font-weight: bold;
153
    font-size: 12px; }
154

  
155
.news {
156
  	padding-bottom: 0px;
157
  	margin-bottom: 0px;
158
  	margin-left: 5px;
159
    color: #0247A8;
160
    font-weight: bold;
161
    font-size: 11px; }
162
		
163
a.toollink {
164
    color: #225522;
165
		text-align: left;
166
    font-size: 14px; 
167
    text-decoration: none; }
168
    
169
a.toollink:hover {
170
    color: #ff9933;
171
    text-decoration: underline; }
172

  
173
em.loginStatus {
174

  
175
  color: #cc6633; 
176
  font-weight: bold;
177
  font-style:  normal;
178
}
179

  
180
.buttonBG_login { 
181
	width: 80px;
182
}
183

  
184
.buttonBG_logout {
185
	width:        80px;
186
	background:   #ff9966;		
187
}
188

  
189
.button_login { 
190
	width: 65px;
191
}
192

  
0 193

  
lib/style/skins/knb2/knb2.xml
1
<?xml version="1.0"?>
2
<style-set name="knb">
3
<!-- general login & search -->
4
  <default-style>@systemidserver@@style-common-path@/ascii-treeview.xsl</default-style>
5

  
6
  <doctype publicid="-//NCEAS//resultset//EN">
7
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-skins-path@/knb2/resultset.xsl</target>
8
  </doctype>
9

  
10
<!--
11
    ARE THESE STILL NEEDED????????????
12

  
13
  <doctype publicid="-//NCEAS//login//EN">
14
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/login.xsl</target>
15
  </doctype>
16

  
17
  <doctype publicid="-//NCEAS//eml-generic//EN">
18
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/generic-morpho.xsl</target>
19
  </doctype>
20
-->
21

  
22

  
23
<!-- pre-beta6 modules -->
24
<!-- NOTE these settings are unchanged from the previous version - only the xsl 
25
     filename has changed from "eml-dataset-display.xsl" to "eml-dataset-2.0.0beta4.xsl" -->
26
  <doctype publicid="eml://ecoinformatics.org/eml-2.0.0">
27
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0/eml-2.0.0.xsl</target>
28
  </doctype>
29
  <doctype publicid="-//NCEAS//eml-dataset//EN">
30
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0beta4/eml-dataset-2.0.0beta4.xsl</target>
31
  </doctype>
32
  <doctype publicid="-//NCEAS//eml-dataset-2.0//EN">
33
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0beta4/eml-dataset-2.0.0beta4.xsl</target>
34
  </doctype>
35
  <doctype publicid="-//NCEAS//eml-resource//EN">
36
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0beta4/eml-dataset-2.0.0beta4.xsl</target>
37
  </doctype>
38
  <doctype publicid="-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN">
39
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0beta4/eml-dataset-2.0.0beta4.xsl</target>
40
  </doctype>
41
<!-- beta6 modules -->
42
  <doctype publicid="-//ecoinformatics.org//eml-access-2.0.0beta6//EN">
43
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0beta6/eml-access-2.0.0beta6.xsl</target>
44
  </doctype>
45
  <doctype publicid="-//ecoinformatics.org//eml-attribute-2.0.0beta6//EN">
46
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0beta6/eml-attribute-2.0.0beta6.xsl</target>
47
  </doctype>
48
  <doctype publicid="-//ecoinformatics.org//eml-constraint-2.0.0beta6//EN">
49
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0beta6/eml-constraint-2.0.0beta6.xsl</target>
50
  </doctype>
51
  <doctype publicid="-//ecoinformatics.org//eml-coverage-2.0.0beta6//EN">
52
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0beta6/eml-coverage-2.0.0beta6.xsl</target>
53
  </doctype>
54
  <doctype publicid="-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN">
55
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0beta6/eml-dataset-2.0.0beta6.xsl</target>
56
  </doctype>
57
  <doctype publicid="-//ecoinformatics.org//eml-entity-2.0.0beta6//EN">
58
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0beta6/eml-entity-2.0.0beta6.xsl</target>
59
  </doctype>
60
  <doctype publicid="-//ecoinformatics.org//eml-literature-2.0.0beta6//EN">
61
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0beta6/eml-literature-2.0.0beta6.xsl</target>
62
  </doctype>
63
  <doctype publicid="-//ecoinformatics.org//eml-physical-2.0.0beta6//EN">
64
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0beta6/eml-physical-2.0.0beta6.xsl</target>
65
  </doctype>
66
  <doctype publicid="-//ecoinformatics.org//eml-project-2.0.0beta6//EN">
67
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0beta6/eml-project-2.0.0beta6.xsl</target>
68
  </doctype>
69
  <doctype publicid="-//ecoinformatics.org//eml-protocol-2.0.0beta6//EN">
70
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0beta6/eml-protocol-2.0.0beta6.xsl</target>
71
  </doctype>
72
  <doctype publicid="-//ecoinformatics.org//eml-software-2.0.0beta6//EN">
73
    <target publicid="-//W3C//HTML//EN">@systemidserver@@style-common-path@/eml-2.0.0beta6/eml-software-2.0.0beta6.xsl</target>
74
  </doctype>
75
</style-set>
0 76

  
lib/style/skins/knb2/resultset.xsl
1
<?xml version="1.0"?>
2
<!--
3
*  '$RCSfile$'
4
*      Authors: Matt Jones, CHad Berkley
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$'
10
*     '$Date$'
11
* '$Revision$'
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

  
33
  <xsl:output method="html"/>
34
  <xsl:param name="sessid"/>
35
  <xsl:param name="qformat">default</xsl:param>
36
  <xsl:param name="enableediting">false</xsl:param>
37
  <xsl:template match="/">
38
   <html>
39
      <head>
40
        <link rel="stylesheet" type="text/css" 
41
              href="@style-skins-path@/{$qformat}/{$qformat}.css" />
42
        <script language="Javascript" type="text/JavaScript"
43
                src="@style-skins-path@/{$qformat}/{$qformat}.js" />
44
        <script language="Javascript" type="text/JavaScript"
45
                src="@style-common-path@/branding.js" />
46
        <script language="JavaScript">
47
          <![CDATA[
48
          function submitform(action,form_ref) {
49
              form_ref.action.value=action;
50
              form_ref.sessionid.value="]]><xsl:value-of select="$sessid" /><![CDATA[";
51
              form_ref.qformat.value="]]><xsl:value-of select="$qformat" /><![CDATA[";
52
              form_ref.submit();
53
          }
54

  
55
          ]]>
56
        </script>
57
      </head>
58

  
59
      <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
60
      <script language="JavaScript">
61
          insertTemplateOpening();
62
          insertSearchBox();
63
      </script>
64
        <table width="100%" align="center" border="0" cellpadding="5" cellspacing="0">
65
           <tr>
66
             <td align="left"><br></br><p class="emphasis"><xsl:number value="count(resultset/document)" /> data packages found</p></td>
67
           </tr></table>
68
<!-- This tests to see if there are returned documents,
69
            if there are not then don't show the query results -->
70

  
71
      <xsl:if test="count(resultset/document) &gt; 0">
72

  
73
         <table width="95%" align="center" border="0" cellpadding="0" cellspacing="0">
74
           <tr>
75
             <th class="tablehead_lcorner" align="right" valign="top"><img src="@style-skins-path@/default/images/transparent1x1.gif" width="1" height="1" /></th>
76
             <th class="tablehead">Title</th>
77
             <th width="15%" class="tablehead" style="text-align: left">Contacts</th>
78
             <th width="15%" class="tablehead" style="text-align: left">Organization</th>
79
             <th width="15%" class="tablehead" style="text-align: left">Keywords</th>
80
             <xsl:if test="$enableediting = 'true'">
81
               <th width="10%" class="tablehead" style="text-align: middle">Actions</th>
82
             </xsl:if>
83
             <th class="tablehead_rcorner" align="right" valign="top"><img src="@style-skins-path@/default/images/transparent1x1.gif" width="1" height="1" /></th>
84
           </tr>
85

  
86
         <xsl:for-each select="resultset/document">
87
           <xsl:sort select="./param[@name='dataset/title']"/>
88
           <tr valign="top" class="subpanel">
89
             <xsl:attribute name="class">
90
               <xsl:choose>
91
                 <xsl:when test="position() mod 2 = 1">rowodd</xsl:when>
92
                 <xsl:when test="position() mod 2 = 0">roweven</xsl:when>
93
               </xsl:choose>
94
             </xsl:attribute>
95

  
96
             <td width="10">&#160;</td>
97
             <td class="text_plain">
98
               <form action="@servlet-path@" method="POST">
99
                 <xsl:attribute name="name">
100
                   <xsl:value-of select="translate(./docid, '()-.', '')" />
101
                 </xsl:attribute>
102

  
103
                 <input type="hidden" name="qformat" />
104
                 <input type="hidden" name="sessionid" />
105
                 <xsl:if test="$enableediting = 'true'">
106
	 	           <input type="hidden" name="enableediting" value="{$enableediting}"/>
107
                 </xsl:if>
108
                 <input type="hidden" name="action" value="read"/>
109
                 <input type="hidden" name="docid">
110
                   <xsl:attribute name="value">
111
                     <xsl:value-of select="./docid"/>
112
                   </xsl:attribute>
113
                 </input>
114
                 <xsl:for-each select="./relation">
115
                   <input type="hidden" name="docid">
116
                     <xsl:attribute name="value" >
117
                       <xsl:value-of select="./relationdoc" />
118
                     </xsl:attribute>
119
                   </input>
120
                 </xsl:for-each>
121

  
122
                 <a>
123
                   <xsl:attribute name="href">javascript:submitform('read',document.<xsl:value-of select="translate(./docid, '()-.', '')"/>)</xsl:attribute>
124
                   <xsl:text>&#187;&#160;</xsl:text>
125
                   <xsl:choose>
126
                     <xsl:when test="./param[@name='dataset/title']!=''">
127
                        <xsl:value-of select="./param[@name='dataset/title']"/>
128
                     </xsl:when>
129
                     <xsl:otherwise>
130
                       <xsl:value-of select="./param[@name='citation/title']"/>
131
                       <xsl:value-of select="./param[@name='software/title']"/>
132
                       <xsl:value-of select="./param[@name='protocol/title']"/>
133
                     </xsl:otherwise>
134
                   </xsl:choose>
135
                 </a><br />
136
                 <br/>
137
                 <p><pre>ID: <xsl:value-of select="./docid"/></pre></p>
138

  
139
                 <xsl:if test="starts-with(./doctype, 'eml://ecoinformatics.org/eml-2.0.0')">
140
                 <a>
141
                   <xsl:attribute name="href"><![CDATA[http://nebulous.nceas.ucsb.edu:8090/httprenderer/servlet/jalamafrontservlet?action=loadxmlinstance&url=@systemidserver@@servlet-path@%3Faction=read%26qformat=xml%26docid=]]><xsl:value-of select="./docid"/></xsl:attribute>
142
                   <xsl:text>&#187;&#160;</xsl:text>
143
                   <b>Create data entry form</b>
144
                 </a><br/>
145
                 </xsl:if>
146

  
147
               </form>
148
             </td>
149

  
150
             <td class="text_plain">
151
               <xsl:for-each select="./param[@name='originator/individualName/surName']" >
152
                 <xsl:value-of select="." />
153
                 <br/>
154
                </xsl:for-each>
155
               <xsl:for-each select="./param[@name='creator/individualName/surName']" >
156
                 <xsl:value-of select="." />
157
                 <br/>
158
               </xsl:for-each>
159

  
160
             </td>
161
             <td class="text_plain">
162
                 <xsl:value-of select="./param[@name='originator/organizationName']" />
163
                 <xsl:value-of select="./param[@name='creator/organizationName']" />
164

  
165
             </td>
166

  
167
             <td class="text_plain">
168
               <xsl:for-each
169
                select="./param[@name='keyword']">
170
                 <xsl:value-of select="." />
171
                 <br/>
172
               </xsl:for-each>
173

  
174
             </td>
175
	   
176
             <xsl:if test="$enableediting = 'true'">
177
               <td class="text_plain">
178
	       <form action="@servlet-path@" method="POST">
179
	               <input type="hidden" name="action" value="read"/>
180
	 	       <input type="hidden" name="qformat" value="{$qformat}"/>
181
				<input type="hidden" name="sessionid"  value="{$sessid}"/>
182
                       <input type="hidden" name="docid">
183
                       <xsl:attribute name="value">
184
                          <xsl:value-of select="./docid"/>
185
                       </xsl:attribute>
186
                       </input>
187
                       <center>
188
		       <input type="SUBMIT"  value=" View " name="View">
189
 	               </input>
190
	               </center>
191
	             </form>
192
                 <form action="@cgi-prefix@/register-dataset.cgi" 
193
                       method="POST">
194
	               <input type="hidden" name="stage" value="modify"/>	
195
	 	           <input type="hidden" name="cfg" value="{$qformat}"/>
196
					<input type="hidden" name="sessionid"  value="{$sessid}"/>
197
                   <input type="hidden" name="docid">
198
                     <xsl:attribute name="value">
199
                       <xsl:value-of select="./docid"/>
200
                     </xsl:attribute>
201
                   </input>
202
                   <center>
203
		             <input type="SUBMIT"  value=" Edit " name="Edit">
204
 	                 </input>
205
	               </center>
206
	             </form>
207
                 <form action="@cgi-prefix@/register-dataset.cgi" 
208
                       method="POST">
209
	               <input type="hidden" name="stage" value="delete"/>	
210
	 	           <input type="hidden" name="cfg" value="{$qformat}"/>
211
					<input type="hidden" name="sessionid"  value="{$sessid}"/>
212
                   <input type="hidden" name="docid">
213
                     <xsl:attribute name="value">
214
                       <xsl:value-of select="./docid"/>
215
                     </xsl:attribute>
216
                   </input>
217
                   <center>
218
		             <input type="SUBMIT"  value="Delete" name="Delete">
219
 	                 </input>
220
	               </center>
221
	             </form>
222
	           </td>	  
223
             </xsl:if>
224
             <td width="10">&#160;</td>
225
             </tr>
226
             <tr class="searchresultsdivider"><td colspan="6">
227
             <img src="@style-skins-path@/default/images/transparent1x1.gif" width="1" height="1" /></td></tr>
228

  
229
          </xsl:for-each>
230
          </table>
231

  
232
       </xsl:if>
233
      <script language="JavaScript">
234
          insertTemplateClosing();
235
      </script>
236
    </body>
237
    </html>
238
    </xsl:template>
239

  
240
</xsl:stylesheet>
0 241

  
lib/style/skins/knb2/include_portalhead.jsp
1
<% 
2
 /**
3
  *  '$RCSfile$'
4
  *      Authors: Matt Jones, CHad Berkley
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$'
10
  *     '$Date$'
11
  * '$Revision$'
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
  
32
  // if including page has not set a value for the display title, 
33
  // use the default one from the settings file
34
  if (include_portalhead_title==null) include_portalhead_title = DEFAULT_PORTALHEAD_TITLE;
35
%>
36
<!-- ********************* START PORTAL HEADER TABLE *********************** -->
37
<table width="100%" cellpadding="0" cellspacing="0">
38
  <tr>
39
    <td width="10" align="right" valign="top" class="title">&#160;</td>
40

  
41
    <td width="80" align="center" valign="bottom" class="title">
42
      <a target="_top" href="index.jsp">
43
        <img
44
        src="images/KNBLogo_top.gif"
45
         border="0" /></a></td>
46

  
47
    <td align="left" valign="middle" class="title">
48
      <p class="title"><%=include_portalhead_title%></p></td>
49
  </tr>
50

  
51
  <tr>
52
    <td width="10" align="right" valign="top" class="maintable">
53
      <img
54
      src="images/transparent1x1.gif"
55
       width="10" height="3" /></td>
56

  
57
    <td width="80" rowspan="2" align="center" valign="top"
58
    class="sectionheader">
59
      <a target="_top" href="index.jsp">
60
        <img
61
        src="images/KNBLogo_bottom.gif"
62
         width="80" height="25" border="0" /></a></td>
63

  
64
    <td align="left" valign="top" class="toollink" width="100%">
65
    <img src="images/transparent1x1.gif"
66
       width="600" height="3" /></td>
67
  </tr>
68
  <tr>
69
    <td width="10" align="right" valign="top" class="sectionheader">
70
    &#160;</td>
71

  
72
    <td align="left" valign="middle" class="sectionheader" style="text-align: left">
73
    &#160;&#160;&#160;<a target="_top" href="index.jsp"
74
    class="toollink">Home</a></td>
75
  </tr>
76
</table>
77
<!-- *********************** END PORTAL HEADER TABLE *********************** -->
78
<% 
79
  // reset title to null, ready for next use
80
  include_portalhead_title=null;
81
%>
0 82

  
lib/style/skins/knb2/include_session_vars.jsp
1
<%@ page import="edu.ucsb.nceas.metacat.client.*" %>
2
<% 
3
 /**
4
  *  '$RCSfile$'
5
  *      Authors: Matt Jones, CHad Berkley
6
  *    Copyright: 2000 Regents of the University of California and the
7
  *               National Center for Ecological Analysis and Synthesis
8
  *  For Details: http://www.nceas.ucsb.edu/
9
  *
10
  *   '$Author$'
11
  *     '$Date$'
12
  * '$Revision$'
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
  * This is an XSLT (http://www.w3.org/TR/xslt) stylesheet designed to
29
  * convert an XML file showing the resultset of a query
30
  * into an HTML format suitable for rendering with modern web browsers.
31
  */
32

  
33
  //////////////////////////////////////////////////////////////////////////////
34
  //
35
  // NOTE:
36
  //
37
  //  GLOBAL CONSTANTS (SETTINGS SUCH AS METACAT URL, LDAP DOMAIN	AND DEBUG 
38
  //  SWITCH) ARE ALL IN THE INCLUDE FILE "PORTAL_SETTINGS.jsp"
39
  //
40
  //////////////////////////////////////////////////////////////////////////////
41

  
42
  // GLOBAL VARIABLES //////////////////////////////////////////////////////////
43
	String      loginStatus           = null;
44
	String    	sess_sessionId        = null;
45
	String      sessionidField        = null;
46
	String      metacatResponse       = null;
47
	String      posted_ldapUserName   = null;
48
	String      typedUserName         = null;
49
	String      posted_organization   = null;
50
	String      posted_password       = null;
51
	String      loginAction           = null;
52
	String      loginButtonLabel      = null;
53
	String      loginEnabledDisabled  = null;
54
	Metacat     metacat               = null;
55
	HttpSession rfSession             = null;
56
	boolean     isLoggedIn            = false;
57
    String      relativeRoot          = "@style-skins-path@/knb2";
58
    String      knbSiteUrl            = "@knb-site-url@";
59
    String      include_portalhead_title = null;
60
	
61
  //////////////////////////////////////////////////////////////////////////////	
62
	
63
  try {
64
		rfSession = request.getSession(true);
65
		
66
	} catch(Exception e) {
67
	
68
		throw new ServletException("trying to get session: "+e);
69
	}
70
	
71
	Object sess_sessionIdObj = rfSession.getAttribute("sess_sessionIdObj");
72
	
73
	if (sess_sessionIdObj!=null) {
74
	  sess_sessionId = (String)sess_sessionIdObj;
75
    
76
		// if sess_sessionIdObj is empty string, that means user has logged out
77
		// (had problems if I set it to null, so used empty string instead)
78
		if (sess_sessionId.length() < 1) sess_sessionId = null;
79
	  else isLoggedIn = true;
80
    
81
  } else {
82
		
83
    sess_sessionId = null;
84
	}
85
	
86
	typedUserName   = request.getParameter("username");
87
	typedUserName   = (typedUserName!=null)? typedUserName.trim() : "";
88
	
89
	posted_organization = request.getParameter("organization");
90
	posted_organization = (posted_organization!=null)? posted_organization.trim() : "";
91

  
92
	posted_ldapUserName = "uid=" + typedUserName 
93
                                    + ",o=" + posted_organization + LDAP_DOMAIN;
94
	
95
	posted_password = request.getParameter("password");
96
	posted_password = (posted_password!=null)? posted_password.trim() : "";
97
	
98
	loginAction     = request.getParameter("loginAction");
99
	loginAction     = (loginAction!=null)? loginAction.trim() : "";
100
	
101
  //////////////////////////////////////////////////////////////////////////////	
102
	
103
	if (loginAction.equals(LOGOUT_LABEL)) { 
104
	// DO LOGOUT //////////////////////////////////////////////////////////////		
105
	
106
	  if (sess_sessionId!=null && rfSession.getAttribute("sess_metacatObj")!=null) {
107
		  metacat = (Metacat)(rfSession.getAttribute("sess_metacatObj"));
108
			metacat.logout();			
109
		}
110
		sess_sessionId = null;
111
		rfSession.setAttribute("sess_sessionIdObj", "");
112
		isLoggedIn = false;
113
		
114
	} else if (loginAction.equals(LOGIN_LABEL)) {  
115
	// DO LOGIN ////////////////////////////////////////////////////////////////	
116
	
117
		if (sess_sessionId!=null) isLoggedIn = true;		
118
		else {
119
		
120
		  // get metacat object - either cached from session...
121
			if (rfSession.getAttribute("sess_metacatObj")!=null) {
122
				
123
				metacat = (Metacat)(rfSession.getAttribute("sess_metacatObj"));
124
			
125
			} else {   // ...or create it if it doesn't already exist
126
				try {
127
					metacat = MetacatFactory.createMetacatConnection(METACAT_URL);
128
				} catch (MetacatInaccessibleException mie) {
129
					throw new ServletException("Metacat connection to "+METACAT_URL
130
                                                +" failed." + mie.getMessage());
131
				}
132
				if (metacat==null) {
133
					throw new ServletException("Metacat connection to "+METACAT_URL
134
                                          +" failed - Metacat object is NULL!");
135
				}
136
				rfSession.setAttribute("sess_metacatObj", metacat);
137
			}
138
			// now do login...
139
			try {
140
					metacatResponse = metacat.login(posted_ldapUserName, posted_password);
141
					
142
					if (metacatResponse!=null && metacatResponse.indexOf("<login>") >= 0) {
143
						sess_sessionId = metacat.getSessionId();
144
						rfSession.setAttribute("sess_sessionIdObj", 
145
                                  ((sess_sessionId!=null)? sess_sessionId: "") );
146
						isLoggedIn = true;
147
					} else {
148
						loginStatus = "<em class=\"loginStatus\">Incorrect username or password - please try again</em>";
149
						isLoggedIn = false;
150
					}
151
			} catch (MetacatAuthException mae) {
152
					loginStatus = "<em class=\"loginStatus\">Incorrect username or password! - please try again</em>";
153
					isLoggedIn = false;
154
			} catch (MetacatInaccessibleException mie) {
155
					isLoggedIn = false;
156
					loginStatus = "<em class=\"loginStatus\">ERROR logging in - problems connecting - please try later</em>";
157
			}
158
		}
159
  }
160
	
161
  //////////////////////////////////////////////////////////////////////////////	
162

  
163
  if (isLoggedIn) {
164
		loginButtonLabel     = LOGOUT_LABEL;
165
		loginEnabledDisabled = "disabled";
166
		if (sess_sessionId!=null && sess_sessionId.length()>0) {
167
  	  sessionidField = "<input type=\"hidden\" name=\"sessionid\"     value=\""
168
                                                          +sess_sessionId+"\">";
169
	  } else {
170
	    sessionidField = "";
171
		}
172
		// if loginStatus has already been set above, don't overwrite it...
173
	  if (loginStatus==null) loginStatus 
174
                          = "<em class=\"loginStatus\">You ARE logged in</em>";
175
  } else {
176
		loginButtonLabel     = LOGIN_LABEL;
177
		loginEnabledDisabled = "";
178
	  sessionidField = "";
179
	  // if loginStatus has already been set above, don't overwrite it...
180
	  if (loginStatus==null) loginStatus 
181
                      = "<em class=\"loginStatus\">You are NOT logged in</em>";
182
	}
183

  
184
  if (DEBUG_TO_BROWSER) {
185
%>	
186
<table>							
187
	<tr> 
188
		<td colspan="4" align="left" valign="top" class="text_plain" bgcolor="#ffff00">
189
			<ul>
190
				<li>METACAT_URL:&nbsp;<%=METACAT_URL%></li>
191
				<li>rfSession:&nbsp;<%=rfSession%></li>
192
				<li>metacatResponse:&nbsp;<%=metacatResponse%></li>
193
				<li>posted_ldapUserName:&nbsp;<%=posted_ldapUserName%></li>
194
				<li>posted_password:&nbsp;<%=posted_password%></li>
195
				<li>isLoggedIn:&nbsp;<%=isLoggedIn%></li>
196
				<li>sess_sessionId LOCAL:&nbsp;<%=sess_sessionId%></li>
197
				<li>sess_sessionIdObj FROM SESSION:&nbsp;<%=rfSession.getAttribute("sess_sessionIdObj")%></li>
198
			</ul></td>
199
  </tr>
200
</table>
201
<%
202
  }
203
%>
0 204

  
lib/style/skins/knb2/include_portalhead_page.jsp
1
<%@ page    language="java" %>
2
<!--
3
  *  '$RCSfile$'
4
  *      Authors: Matt Jones, CHad Berkley
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$'
10
  *     '$Date$'
11
  * '$Revision$'
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
-->
28
<%@ include file="PORTAL_SETTINGS.jsp"%>
29
<%@ include file="include_session_vars.jsp"%>  
30
<% 
31
  //remember previous rel root value...
32
  String prevRRValue  = relativeRoot;
33
  //now set rel root to parent dir...
34
  relativeRoot = "..";
35
%>
36
<head>
37
  <title>KNB :: The Knowledge Network for Biocomplexity</title>
38
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
39
  <link href="portalpages.css" rel="stylesheet" type="text/css">
40
  <script language="JavaScript" type="text/JavaScript" src="portalpages.js"></script>
41
  </head>
42

  
43
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
44
  <%@ include file="include_portalhead.jsp" %>
45
</body>
46
</html>
47

  
48
<% 
49
  //restore previous rel root value...
50
  relativeRoot = prevRRValue;
51
%>
0 52

  
lib/style/skins/knb2/index.jsp
1
<%@ page    language="java" %>
2
<%
3
 /**
4
  *  '$RCSfile$'
5
  *      Authors: Matt Jones, CHad Berkley
6
  *    Copyright: 2000 Regents of the University of California and the
7
  *               National Center for Ecological Analysis and Synthesis
8
  *  For Details: http://www.nceas.ucsb.edu/
9
  *
10
  *   '$Author$'
11
  *     '$Date$'
12
  * '$Revision$'
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
  * This is an XSLT (http://www.w3.org/TR/xslt) stylesheet designed to
29
  * convert an XML file showing the resultset of a query
30
  * into an HTML format suitable for rendering with modern web browsers.
31
  */
32
%>
33
<%@ include file="PORTAL_SETTINGS.jsp"%>
34
<%@ include file="include_session_vars.jsp"%>
35
<%
36
///////////////////////////////////////////////////////////////////////////////
37
//
38
// NOTE:
39
//
40
//  GLOBAL CONSTANTS (SETTINGS SUCH AS METACAT URL, LDAP DOMAIN	AND DEBUG
41
//  SWITCH) ARE ALL IN THE INCLUDE FILE "PORTAL_SETTINGS.jsp"
42
//
43
///////////////////////////////////////////////////////////////////////////////
44
%>
45

  
46
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
47
<html>
48
<head>
49
<title>KNB :: The Knowledge Network for Biocomplexity</title>
50
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
51
<link href="./portalpages.css" rel="stylesheet" type="text/css">
52
<script language="JavaScript" type="text/JavaScript" src="./portalpages.js"></script>
53
</head>
54

  
55
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
56
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0" class="maintable">
57
  <tr>
58
    <td width="10" height="21" align="right" valign="top" class="title">&nbsp;</td>
59
    <td width="80" rowspan="2" align="center" valign="bottom" class="title"><img src="./images/KNBLogo_top.gif"></td>
60
    <td width="650" rowspan="2" align="center" valign="middle" class="title"><img src="./images/knbTitleText.gif" width="510" height="23" border="0"></td>
61
    <td width="10" height="21" align="left" valign="top" class="title">&nbsp;</td>
62
  </tr>
63
  <tr>
64
    <td width="10" align="right" valign="top" class="title">&nbsp;</td>
65
    <td width="10" align="left" valign="top" class="title">&nbsp;</td>
66
  </tr>
67
  <tr>
68
    <td width="10" align="right" valign="top"><img src="./images/transparent1x1.gif" width="10" height="3"></td>
69
    <td width="80" rowspan="2" align="center" valign="top" class="sectionheader"><img src="./images/KNBLogo_bottom.gif" width="80" height="25"></td>
70
    <td colspan="2" align="left" valign="top"><img src="./images/transparent1x1.gif" width="660" height="3"><img src="./images/transparent1x1.gif" width="1" height="1"></td>
71
  </tr>
72
  <tr>
73
    <td width="10" align="right" valign="top" class="sectionheader">&nbsp;</td>
74
    <td colspan="2" align="center" valign="top" class="sectionheader">&nbsp;</td>
75
  </tr>
76
  <tr>
77
    <td colspan="4"> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
78
        <tr>
79
          <td> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="text_plain">
80
              <tr>
81
                <td><p class="text_plain">The <b>Knowledge Network for Biocomplexity (KNB)</b> is a
82
                    national network intended to facilitate ecological and environmental
83
                    research on biocomplexity.
84
                    
85
                    For scientists, the KNB is an efficient way to discover, access,
86
                    interpret, integrate and analyze complex <b>ecological data</b>
87
                    from a highly-distributed set of field stations, laboratories,
88
                    research sites, and individual researchers.</p>
89
                    <div class="news">News</div>
90
                    <p class="text_plain_no_padding">Registration opened for the
91
                      <a href="<%=knbSiteUrl%>/knbworkshop.jsp">KNB Data Management 
92
                      Tools Workshop</a>, September 28-30, 2004
93
                    </p>
94
                </td>
95
              </tr>
96
            </table></td>
97
        </tr>
98
        <tr>
99
          <td class="loginStatus"><img src="images/transparent1x1.gif" width="200" height="5"></td>
100
        </tr>
101
        <tr>
102
          <td class="text_plain"><%@ include file="include_searchbox.jsp" %></td>
103
        </tr>
104
        <tr>
105
          <td><img src="images/transparent1x1.gif" width="200" height="5"></td>
106
        </tr>
107
        <tr>
108
          <td class="text_plain"><table width="100%" border="0" cellspacing="0" cellpadding="0">
109
              <tr>
110
                <td width="49%" align="center" valign="top"> <table width="365" border="0" cellspacing="0" cellpadding="0">
111
                    <tr>
112
                      <td width="10"><img src="./images/panelhead_bg_lcorner.gif" width="10" height="21"></td>
113
                      <td width="344" class="sectionheader">login &amp; registration</td>
114
                      <td width="10"><img src="./images/panelhead_bg_rcorner.gif" width="10" height="21"></td>
115
                    </tr>
116
                    <tr>
117
                      <td height="246" colspan="3" valign="top"> <table width="364" border="0" cellpadding="0" cellspacing="0" class="subpanel">
118
                          <tr>
119
                            <td width="1" rowspan="9"><img src="./images/transparent1x1.gif" width="1" height="245"></td>
120
                            <td colspan="2" class="text_plain"><a name="loginanchor"></a>Logging
121
                              into your account enables you to search any additional,
122
                              non-public data for which you may have access priviliges:<br> </br>
123
                              <%= loginStatus %></td>
124
                            <td width="105" rowspan="3" align="right" valign="top"  style="padding-top: 5px; padding-right: 5px;"><img src="./images/pen.jpg" width="100" height="100"></td>
125
                          </tr>
126
                          <form name="loginform" method="post" action="index.jsp" target="_top" onSubmit="return allowSubmit(this);">
127
                            <input type="hidden" name="action"  value="login">
128
                            <input type="hidden" name="ldapusername"  value="">
129
                            <input type="hidden" name="qformat" value="knb">
130
                            <input type="hidden" name="enableediting" value="true">
131
                            <tr valign="middle">
132
                              <td align="left" valign="middle" class="text_plain">username:</td>
133
                              <td width="173" align="left" class="text_plain" style="padding-top: 2px; padding-bottom: 2px;">
134
                                <input name="username" type="text" style="width: 140px;" value="<%=typedUserName%>" <%=loginEnabledDisabled%>></td>
135
                            </tr>
136
                            <tr valign="middle">
137
                              <td height="28" align="left" valign="middle" class="text_plain">organization:</td>
138
                              <td align="left" class="text_plain" style="padding-top: 2px; padding-bottom: 2px;">
139
                                <select name="organization" style="width:140px;" <%=loginEnabledDisabled%>>
140
                                  <option value=""       <%=((posted_organization.length()<1)?                 "selected":"")%>>&#8212;
141
                                  choose one &#8212;</option>
142
                                  <option value="NCEAS"        <%=((posted_organization.equalsIgnoreCase("NCEAS"))?        "selected":"")%>>NCEAS</option>
143
                                  <option value="LTER"         <%=((posted_organization.equalsIgnoreCase("LTER"))?         "selected":"")%>>LTER</option>
144
                                  <option value="UCNRS"          <%=((posted_organization.equalsIgnoreCase("UCNRS"))?          "selected":"")%>>UCNRS</option>
145
                                  <option value="PISCO"        <%=((posted_organization.equalsIgnoreCase("PISCO"))?        "selected":"")%>>PISCO</option>
146
                                  <option value="OBFS"         <%=((posted_organization.equalsIgnoreCase("OBFS"))?         "selected":"")%>>OBFS</option>
147
                                  <option value="SDSC"         <%=((posted_organization.equalsIgnoreCase("SDSC"))?         "selected":"")%>>SDSC</option>
148
                                  <option value="KU"         <%=((posted_organization.equalsIgnoreCase("KU"))?         "selected":"")%>>KU</option>
149
                                  <option value="unaffiliated" <%=((posted_organization.equalsIgnoreCase("unaffiliated"))? "selected":"")%>>unaffiliated</option>
150
                                </select></td>
151
                            </tr>
152
                            <tr valign="middle">
153
                              <td width="85" align="left" valign="middle" class="text_plain">password:</td>
154
                              <td colspan="2" align="left" class="text_plain" style="padding-top: 2px; padding-bottom: 2px;">
155
                                <table width="100%" border="0" cellpadding="0" cellspacing="0">
156
                                  <tr>
157
                                    <td width="150" align="left"> <input name="password" type="password" maxlength="50" style="width:140px;"
158
                                      value="<%=posted_password%>" <%=loginEnabledDisabled%>></td>
159
                                    <td align="center"class="<%= ((isLoggedIn)? "buttonBG_logout": "buttonBG_login") %>"><input                                      type="submit" name="loginAction" value="<%=loginButtonLabel%>" class="button_login" /></td>
160
                                    <td align="left">&nbsp;</td>
161
                                  </tr>
162
                                </table></td>
163
                            </tr>
164
                          </form>
165
                          <tr valign="middle">
166
                            <td colspan="2"><img src="./images/transparent1x1.gif" width="20" height="10"></td>
167
                            <td><img src="./images/transparent1x1.gif" width="10" height="5"></td>
168
                          </tr>
169
                          <tr valign="middle">
170
                            <td height="20">&nbsp;</td>
171
                            <td height="20" align="left"><a href="http://ldap.ecoinformatics.org/cgi-bin/ldapweb.cgi?cfg=knb" target="_blank">create
172
                              a new account</a></td>
173
                            <td height="20">&nbsp;</td>
174
                          </tr>
175
                          <tr valign="middle">
176
                            <td height="20">&nbsp;</td>
177
                            <td height="20" align="left"><a href="http://ldap.ecoinformatics.org/cgi-bin/ldapweb.cgi?stage=resetpass&cfg=knb" target="_blank">forgot
178
                              your password?</a></td>
179
                            <td height="20">&nbsp;</td>
180
                          </tr>
181
                          <tr valign="middle">
182
                            <td height="20">&nbsp;</td>
183
                            <td height="20" align="left"><a href="http://ldap.ecoinformatics.org/cgi-bin/ldapweb.cgi?stage=changepass&cfg=knb" target="_blank">change
184
                                your password</a></td>
185
                            <td height="20">&nbsp;</td>
186
                          </tr>
187
                          <tr valign="middle">
188
                            <td colspan="3"><img src="./images/transparent1x1.gif" width="20" height="2"></td>
189
                          </tr>
190
                      </table></td>
191
                    </tr>
192
                  </table></td>
193
                <td width="10">&nbsp;</td>
194
                <td width="49%" align="center" valign="top"> <table width="365" border="0" cellpadding="0" cellspacing="0">
195
                    <tr>
196
                      <td width="10"><img src="./images/panelhead_bg_lcorner.gif" width="10" height="21"></td>
197
                      <td width="344" class="sectionheader">data management</td>
198
                      <td width="10"><img src="./images/panelhead_bg_rcorner.gif" width="10" height="21"></td>
199
                    </tr>
200
                    <tr>
201
                      <td colspan="3"><table width="364" border="0" cellpadding="0" cellspacing="0" class="subpanel">
202
                          <tr valign="top">
203
                            <td width="1" rowspan="8"><img src="./images/transparent1x1.gif" width="1" height="245"></td>
204
                            <td valign="top"> <table width="100%" border="0" cellpadding="0" cellspacing="0">
205
                                <tr class="text_plain"> 
206
                                  <td colspan="2" valign="bottom" class="text_plain"><b>Online 
207
                                    Data Registry</b><br> </td>
208
                                  <td width="105" rowspan="3" align="right" valign="top" style="padding-top: 5px; padding-right: 5px;"><img src="images/MorphoButterfly.jpg" width="100" height="100"></td>
209
                                </tr>
210
                                <tr class="text_plain"> 
211
                                  <td width="22" class="text_plain" valign="top"><img src="./images/blue_dots.gif" width="8" height="10"></td>
212
                                  <td width="234" class="text_plain" valign="top"><%
213
																	/***************
214
																	NOT YET USED
215
																	String registerAnchor = (isLoggedIn)?
216
																	  "<a href=\"/cgi-bin/register-dataset.cgi?cfg=knb\">" : 
217
																		 "<a href=\"#\" onclick=\"javascript:alert('You must be logged in to use the online registry!')\">";
218
																		
219
																		***********/
220
																		%> <a href="/cgi-bin/register-dataset.cgi?cfg=knb<%=((sess_sessionId!=null)? "&sessionid="+sess_sessionId: "")%>">Register 
221
                                    your dataset online</a></td>
222
                                </tr>
223
                                <tr class="text_plain"> 
224
                                  <td colspan="2" class="text_plain" valign="bottom"><b>Morpho</b> 
225
                                    is easy-to-use data management software. Use it 
226
                                    to:</td>
227
                                </tr>
228
                                <tr valign="baseline" class="text_plain"> 
229
                                  <td class="text_plain"><img src="./images/blue_dots.gif" width="8" height="10"></td>
230
                                  <td class="text_plain" colspan="2">query, view, 
231
                                    retrieve and manipulate ecological data from the 
232
                                    KNB network</td>
233
                                </tr>
234
                                <tr valign="baseline" class="text_plain"> 
235
                                  <td class="text_plain"><img src="./images/blue_dots.gif" width="8" height="10"></td>
236
                                  <td class="text_plain" colspan="2">create, view 
237
                                    and manipulate your own datasets, and specify 
238
                                    access control to manage their availability </td>
239
                                </tr>
240
                                <tr class="text_plain"> 
241
                                  <td colspan="3" align="center" style="height: 20px"> <p><a href="<%=knbSiteUrl%>/morphoportal.jsp" target="_self">Morpho: 
242
                                      more information and downloads</a></p></td>
243
                                </tr>
244
                                <tr class="text_plain"> 
245
                                  <td colspan="3" style="height: 40px" align="center"> <p><b style="margin-top: 15px">Quick 
246
                                      Download for:</b><br>
247
                                      <a href="<%=MORPHO_DOWNLOAD_LINK_WINDOWS%>">Windows</a>&nbsp;&nbsp;::&nbsp;&nbsp;<a href="<%=MORPHO_DOWNLOAD_LINK_MACOSX%>">Mac 
248
                                      OS X</a>&nbsp;&nbsp;::&nbsp;&nbsp;<a href="<%=MORPHO_DOWNLOAD_LINK_LINUX%>">Linux</a></p></td>
249
                                </tr>
250
                              </table></td>
251
                          </tr>
252
                        </table></td>
253
                    </tr>
254
                  </table></td>
255
              </tr>
256
            </table></td>
257
        </tr>
258
        <tr>
259
          <td align="right" valign="top"><img src="images/transparent1x1.gif" width="200" height="5"></td>
260
        </tr>
261
        <tr>
262
          <td class="text_plain"><table width="100%" border="0" cellspacing="0" cellpadding="0">
263
              <tr> 
264
                <td width="10" align="right" valign="top"><img src="<%=relativeRoot%>/images/panelhead_bg_lcorner.gif" width="10" height="21"></td>
265
                <td width="720" class="sectionheader">about the KNB project</td>
266
                <td width="10" align="left" valign="top"><img src="<%=relativeRoot%>/images/panelhead_bg_rcorner.gif" width="10" height="21"></td>
267
              </tr>
268
              <tr> 
269
                <td colspan="3"><table width="740" border="0" cellpadding="2" cellspacing="0" class="subpanel">
270
                    <tr align="center" valign="middle"> 
271
                      <td height="36" colspan="4" align="left" class="text_plain_smaller"><a href="<%=knbSiteUrl%>/home.html">The 
272
                        KNB Project</a> focuses on research into <a href="<%=knbSiteUrl%>/informatics">informatics</a> 
273
                        and <a href="<%=knbSiteUrl%>/biodiversity">biocomplexity</a>, through the 
274
                        development of <a href="<%=knbSiteUrl%>/software">software products</a> and 
275
                        by providing <a href="<%=knbSiteUrl%>/education">education, outreach and training</a> 
276
                      </td>
277
                    </tr>
278
                    <tr align="center" valign="middle"> 
279
                      <td colspan="2" align="left">&nbsp;</td>
280
                      <td colspan="2" align="right" class="text_plain_smaller"><a href="<%=knbSiteUrl%>/home.html">&gt;&gt; 
281
                        more information about the KNB Project... &gt;&gt;</a></td>
282
                    </tr>
283
                    <tr align="center" valign="middle"> 
284
                      <td colspan="2" align="left" class="text_plain_smaller">Sponsored 
285
                        and developed by:<br></td>
286
                      <td colspan="2" align="right">&nbsp;</td>
287
                    </tr>
288
                    <tr align="center" valign="middle"> 
289
                      <td width="25%"><a href="http://www.nceas.ucsb.edu" target="_blank"><img src="images/NCEASlogo_sm.gif" width="54" height="54" border="0"></a></td>
290
                      <td width="25%"><a href="http://www.ttu.edu" target="_blank"><img
291
 src="images/TTUlogo_sm.gif" alt="TTU Logo" width="43" height="43" border="0" align="middle"></a></td>
292
                      <td width="25%"><a href="http://www.lternet.edu" target="_blank"><img
293
 src="images/LTERlogo_sm.gif" alt="LTER Logo" width="40" height="40" border="0" align="middle"></a></td>
294
                      <td width="25%"><a href="http://www.sdsc.edu" target="_blank"><img src="images/SDSClogo_sm.gif" width="98" height="37" border="0"></a></td>
295
                    </tr>
296
                    <tr align="center" valign="middle"> 
297
                      <td width="25%"><a
298
 href="http://www.nceas.ucsb.edu" target="_blank" class="text_plain_smaller">National 
299
                        Center for Ecological Analysis and Synthesis</a> </td>
300
                      <td width="25%"><a href="http://www.ttu.edu" target="_blank"
301
 class="text_plain_smaller">Texas Tech University</a> </td>
302
                      <td width="25%"><a href="http://www.lternet.edu" target="_blank"
303
 class="text_plain_smaller">Long Term Ecological Research Network</a> </td>
304
                      <td width="25%"><a href="http://www.sdsc.edu" target="_blank"
305
 class="text_plain_smaller">San Diego Supercomputer Center</a> </td>
306
                    </tr>
307
                    <tr> 
308
                      <td align="left" valign="top" class="text_example" colspan="4"><img src="./images/transparent1x1.gif" width="200" height="10"></td>
309
                    </tr>
310
                    <tr> 
311
                      <td align="left" valign="top" class="text_example" colspan="4"><a
312
 href="http://www.nsf.gov" target="_blank">National Science Foundation</a> Knowledge 
313
                        and Distributed Intelligence Program</td>
314
                    </tr>
315
                    <tr> 
316
                      <td align="left" valign="top" class="text_example" colspan="4">This 
317
                        material is based upon work supported by the National Science 
318
                        Foundation under Grant No. DEB99&#8211;80154. Any opinions, 
319
                        findings and conclusions or recomendations expressed in this 
320
                        material are those of the author(s) and do not necessarily 
321
                        reflect the views of the National Science Foundation (NSF). 
322
                      </td>
323
                    </tr>
324
                  </table> </td>
325
              </tr>
326
            </table></td>
327
        </tr>
328
      </table></td>
329
  </tr>
330
</table>
331
</td>
332
  </tr>
333
</table>
334
</body>
335
</html>
0 336

  
lib/style/skins/knb2/knb2.css
1
 /*
2
  *   '$RCSfile$'
3
  *     Purpose: Default style sheet for KNB project web pages 
4
  *              Using this stylesheet rather than placing styles directly in 
5
  *              the KNB web documents allows us to globally change the 
6
  *              formatting styles of the entire site in one easy place.
7
  *   Copyright: 2000 Regents of the University of California and the
8
  *               National Center for Ecological Analysis and Synthesis
9
  *     Authors: Matt Jones
10
  *
11
  *    '$Author$'
12
  *      '$Date$'
13
  *  '$Revision$'
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
 *  import eml css:
34
 */
35

  
36
@import url(@style-common-path@/@eml-css@);
37

  
38

  
39
/*
40
 *  import eml css:
41
 */
42

  
43
@import url(@knb-site-url@/portalpages.css);
44

  
45

  
46
/**
47
 *  set the correct iframe sizes to accomodate the 
48
 *  header, footer, left and right areas.
49
 *  NOTE: these styles apply only to each 
50
 *  container frame, *NOT* to the document within it!
51
 */  
52
.iframeheaderclass {
53
  height:   80px; 
54
  width:    100%;
55
  border:   0px;
56
  margin:   0px;
57
}
58

  
59
.iframesearchboxclass {
60
  height:   431px; 
61
  width:    100%;
62
  border:   0px;
63
  margin:   0px;
64
}
65

  
66
.iframeleftcolclass  { /* not used */ }
67
.iframerightcolclass { /* not used */ }
68
.iframefooterclass   { /* not used */ }
69

  
70
/**
71
 *  set the size and alignment etc of the top-level layout table
72
 */  
73
.templatetableclass {
74
  width:   100%; 
75
  border:   0px;
76
  padding:  0px;
77
  margin:   0px;
78
}
79

  
80

  
81
/**
82
 *  set the style of the main content area and its contents
83
 */ 
84
.templatecontentareaclass {
85
  border:   0px;
86
  padding:  0px;
87
  margin:   0px;
88
}
89

  
90

  
91
/**
92
 *  set the correct <td> sizes to accomodate the 
93
 *  header, footer, left and right iframes.
94
 *  NOTE: these styles apply only to each 
95
 *  container frame, *NOT* to the document in
96
 *  the iframe within it!
97
 */  
98
.templateheaderrowclass {
99
  height:   80px; 
100
/*
101
  no width allowed - uses same width as table class
102
*/
103
  border:   0px;
104
  padding:  0px;
105
  margin:   0px;
106
}
107

  
108

  
109
.templateleftcolclass {
110
  height:   100%; 
111
  width:    0px;
112
  border:   0px;
113
  padding:  0px;
114
  margin:   0px;
115
}
116

  
117

  
118
.templaterightcolclass {
119
  height:   100%; 
120
  width:    0px;
121
  border:   0px;
122
  padding:  0px;
123
  margin:   0px;
124
}
125

  
126

  
127
.templatefooterrowclass {
128
  height:   0px; 
129
/*
130
  no width allowed - uses same width as table class
131
*/
132
  border:   0px;
133
  padding:  0px;
134
  margin:   0px;
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff