Project

General

Profile

« Previous | Next » 

Revision 2827

Added by bowdish about 19 years ago

ESA img files for the ESA Header this incorporate the test changes and the additional submission button. The ESA Home button has been removed from the header but the ESA log will link to the ESA Home site.

There is some additional button code depending on the state of the login or the use
of the submissions button.

Login

<td><a href="#" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('Login','','ESAHeaderSlices/RollOvers/LoginR.gif',1);"><img name="Login" src="ESAHeaderSlices/Login.gif" width="62" height="18" border="0" title="Login" alt="Login"></a></td>

Logout

<td><a href="#" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('Logout','','ESAHeaderSlices/RollOvers/LogoutR.gif',1);"><img name="Logout" src="ESAHeaderSlices/Logout.gif" width="62" height="18" border="0" title="Logout" alt="Logout"></a></td>

My Submissions

<td colspan="3"><a href="#" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('MySubmissions','','ESAHeaderSlices/RollOvers/MySubmissionsR.gif',1);"><img name="MySubmissions" src="ESAHeaderSlices/MySubmissions.gif" width="114" height="18" border="0" title="My Submissions - Before you can view your submissions you must login." alt="My Submissions"></a></td>

View Submissions

&lt;td colspan="3"&gt;&lt;a href="#" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('ViewSubmissions','','ESAHeaderSlices/RollOvers/ViewSubmissionsR.gif',1);"&gt;&lt;img name="ViewSubmissions" src="ESAHeaderSlices/ViewSubmissions.gif" width="114" height="18" border="0" title="View Submissions" alt="View Submissions"&gt;&lt;/a&gt;&lt;/td&gt;

Please note that the href="#" needs to be replaced with the correct href. Other links need to be checked too.

View differences:

header.html
1
<!--
2
    '$RCSfile$'
3
    Copyright: 2003 Regents of the University of California and the
4
               National Center for Ecological Analysis and Synthesis
5
     '$Author$'
6
       '$Date$'
7
   '$Revision$'
8

  
9
   This program is free software; you can redistribute it and/or modify
10
   it under the terms of the GNU General Public License as published by
11
   the Free Software Foundation; either version 2 of the License, or
12
   (at your option) any later version.
13

  
14
   This program is distributed in the hope that it will be useful,
15
   but WITHOUT ANY WARRANTY; without even the implied warranty of
16
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
   GNU General Public License for more details.
18

  
19
   You should have received a copy of the GNU General Public License
20
   along with this program; if not, write to the Free Software
21
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
22
  -->
23
<!--____________________________max_width____________________________________-->
24

  
25
<link rel="stylesheet" type="text/css"
26
        href="@systemidserver@@style-skins-path@/esa/esa.css"></link>
1
<html>
2
<head>
3
<title>header.gif</title>
4
<meta http-equiv="Content-Type" content="text/html;">
5
<!--Fireworks MX 2004 Dreamweaver MX 2004 target.  Created Fri Dec 09 08:24:19 GMT-0800 (Pacific Standard Time) 2005-->
6
<!--Please note that in order for the "roll overs" to exactly swap they need to be created in conjunction with the slices. Slices must be in place when exporting the individual *.gif file to be used with the swap image behavior. I found it helpful to use the exact slice that was used for creating the top "img" file. This was done by moving the slice down, changing the orginal img (such as the text color), then moving the slice back up before exporting the individual *.gif type of file to be used as a swap image file. It might be necessary after exporting the individual swap image file to return the top img file (such as changing the text color back) before exporting the final html file. Export with File name: HTML and Images, Save as type: HTML and Images, HTML: Export HTML File, Slices: Export Slices. I included areas withou slices and Put images in a subfolder titled ESAHeaderSlices. Before the final export the swap image *.gif files were placed in the ESAHeaderSlices/RollOvers directory.
7
cjbwdish -->
27 8
<script language="JavaScript">
28 9
<!--
29 10
function MM_findObj(n, d) { //v4.01
......
47 28
   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
48 29
}
49 30

  
50

  
51
function loginStatus(){
52
 	var httpRequest=false;
53
        /*@cc_on @*/
54
        /*@if (@_jscript_version >= 5)
55
        try {
56
            httpRequest = new ActiveXObject("Msxml2.XMLHTTP");
57
        } catch (e) {
58
            try {
59
                httpRequest = new ActiveXObject("Microsoft.XMLHTTP");
60
            } catch (E) {
61
                httpRequest = false;
62
            }
63
        }
64
        @end @*/
65

  
66
        try{
67
        	if (!httpRequest && typeof XMLHttpRequest!='undefined') {
68
           		httpRequest = new XMLHttpRequest();
69
        	}
70

  
71
        	if(!httpRequest){
72
                	exit(0);
73
        	}
74

  
75
        	httpRequest.open("POST", "@servlet-path@?action=getloggedinuserinfo", true);
76
        	httpRequest.setRequestHeader("Content-Type", "text/xml");
77
        	var stringToSend = "action=getloggedinuserinfo";
78
        	httpRequest.onreadystatechange=function() {
79
                	if (httpRequest.readyState==4) {
80
                        	var response = httpRequest.responseText;
81
                        	var login_block = document.getElementById('login_block');
82
				login_block.innerHTML="";
83
                        	if(response.indexOf("public") > 0){
84
					login_block.innerHTML = "<a href='@cgi-prefix@/register-dataset.cgi?cfg=esa&stage=loginform' target='_top' onMouseOut='MM_swapImgRestore();' onMouseOver='MM_swapImage(\"ESALogin\",\"\",\"ESAHeaderSlices/RollOvers/ESALoginR.gif\",1);'><img name='ESALogin' src='ESAHeaderSlices/ESALogin.gif' width='57' height='17' border='0' alt='Login'></a>";
85
                        	} else {
86
					login_block.innerHTML = "<a href='@cgi-prefix@/register-dataset.cgi?cfg=esa&stage=logout' target='_top' onMouseOut='MM_swapImgRestore();' onMouseOver='MM_swapImage(\"ESALogout\",\"\",\"ESAHeaderSlices/RollOvers/ESALogoutR.gif\",1);'><img name='ESALogout' src='ESAHeaderSlices/ESALogout.gif' width='57' height='17' border='0' alt='Login'></a>";
87
					
88
					if(response.indexOf("isModerator") > 0){
89
                                                document.getElementById("modLink").className="showLink";
90
                                        } else {
91
                                                document.getElementById("userLink").className="showLink";
92
                                        }
93
	                	}
94
                	}
95
		}
96
        	httpRequest.send(stringToSend);
97
     	 } catch (e) {
98
        	alert("caught an exception: " + e
99
                 + " \nresponse was: \n" + httpRequest.responseText);
100
	 }     
101
}
102

  
103 31
//-->
104 32
</script>
105
<body style="margin-left:0px;">
33
</head>
34
<body bgcolor="#ffffff" onLoad="MM_preloadImages('ESAHeaderSlices/RollOvers/ESARegistryR.gif','ESAHeaderSlices/RollOvers/RegisterDataR.gif','ESAHeaderSlices/RollOvers/SearchForDataR.gif','ESAHeaderSlices/RollOvers/MySubmissionsR.gif','ESAHeaderSlices/RollOvers/LogoutR.gif');">
106 35
<table border="0" cellpadding="0" cellspacing="0" width="703">
36
<!-- fwtable fwsrc="ESAHeaderDocsb.png" fwbase="header.gif" fwstyle="Dreamweaver" fwdocid = "1407099340" fwnested="0" -->
37
  <tr>
107 38
   <td><img src="ESAHeaderSlices/spacer.gif" width="19" height="1" border="0" alt=""></td>
108 39
   <td><img src="ESAHeaderSlices/spacer.gif" width="143" height="1" border="0" alt=""></td>
109
   <td><img src="ESAHeaderSlices/spacer.gif" width="78" height="1" border="0" alt=""></td>
110
   <td><img src="ESAHeaderSlices/spacer.gif" width="102" height="1" border="0" alt=""></td>
111
   <td><img src="ESAHeaderSlices/spacer.gif" width="154" height="1" border="0" alt=""></td>
112
   <td><img src="ESAHeaderSlices/spacer.gif" width="102" height="1" border="0" alt=""></td>
40
   <td><img src="ESAHeaderSlices/spacer.gif" width="7" height="1" border="0" alt=""></td>
41
   <td><img src="ESAHeaderSlices/spacer.gif" width="99" height="1" border="0" alt=""></td>
42
   <td><img src="ESAHeaderSlices/spacer.gif" width="15" height="1" border="0" alt=""></td>
43
   <td><img src="ESAHeaderSlices/spacer.gif" width="82" height="1" border="0" alt=""></td>
44
   <td><img src="ESAHeaderSlices/spacer.gif" width="105" height="1" border="0" alt=""></td>
45
   <td><img src="ESAHeaderSlices/spacer.gif" width="43" height="1" border="0" alt=""></td>
46
   <td><img src="ESAHeaderSlices/spacer.gif" width="16" height="1" border="0" alt=""></td>
47
   <td><img src="ESAHeaderSlices/spacer.gif" width="55" height="1" border="0" alt=""></td>
48
   <td><img src="ESAHeaderSlices/spacer.gif" width="62" height="1" border="0" alt=""></td>
113 49
   <td><img src="ESAHeaderSlices/spacer.gif" width="57" height="1" border="0" alt=""></td>
114
   <td><img src="ESAHeaderSlices/spacer.gif" width="48" height="1" border="0" alt=""></td>
115 50
   <td><img src="ESAHeaderSlices/spacer.gif" width="1" height="1" border="0" alt=""></td>
116 51
  </tr>
117 52

  
118 53
  <tr>
119
   <td colspan="8"><img name="header_r1_c1" src="ESAHeaderSlices/header_r1_c1.gif" width="703" height="36" border="0" alt=""></td>
120
   <td><img src="ESAHeaderSlices/spacer.gif" width="1" height="36" border="0" alt=""></td>
54
   <td colspan="12"><img name="header_r1_c1" src="ESAHeaderSlices/header_r1_c1.gif" width="703" height="32" border="0" alt=""></td>
55
   <td><img src="ESAHeaderSlices/spacer.gif" width="1" height="32" border="0" alt=""></td>
121 56
  </tr>
122 57
  <tr>
123
   <td rowspan="4"><img name="header_r2_c1" src="ESAHeaderSlices/header_r2_c1.gif" width="19" height="91" border="0" alt=""></td>
124
   <td><a href="http://www.esa.org/" target="_top"><img name="ESAHomeLogo" src="ESAHeaderSlices/ESAHomeLogo.gif" width="143" height="54" border="0" alt="ESA Home"></a></td>
125
   <td rowspan="2" colspan="6"><img name="header_r2_c3" src="ESAHeaderSlices/header_r2_c3.gif" width="541" height="67" border="0" alt=""></td>
58
   <td rowspan="4"><img name="header_r2_c1" src="ESAHeaderSlices/header_r2_c1.gif" width="19" height="118" border="0" alt=""></td>
59
   <td><a href="http://www.esa.org/" target="_top"><img name="ESAHomeLogo" src="ESAHeaderSlices/ESAHomeLogo.gif" width="143" height="54" border="0" title="Ecological Society of America" alt="ESA Home"></a></td>
60
   <td rowspan="2" colspan="10"><img name="header_r2_c3" src="ESAHeaderSlices/header_r2_c3.gif" width="541" height="71" border="0" alt=""></td>
126 61
   <td><img src="ESAHeaderSlices/spacer.gif" width="1" height="54" border="0" alt=""></td>
127 62
  </tr>
128 63
  <tr>
129
   <td rowspan="3"><img name="header_r3_c2" src="ESAHeaderSlices/header_r3_c2.gif" width="143" height="37" border="0" alt=""></td>
130
   <td><img src="ESAHeaderSlices/spacer.gif" width="1" height="13" border="0" alt=""></td>
64
   <td rowspan="3"><img name="header_r3_c2" src="ESAHeaderSlices/header_r3_c2.gif" width="143" height="64" border="0" alt=""></td>
65
   <td><img src="ESAHeaderSlices/spacer.gif" width="1" height="17" border="0" alt=""></td>
131 66
  </tr>
132 67
  <tr>
133
   <td><a href="http://www.esa.org/" target="_top" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('ESAHome2','','ESAHeaderSlices/ESAHome2_f2.gif','ESAHome2','','ESAHeaderSlices/RollOvers/ESAHomeR.gif',1);"><img name="ESAHome2" src="ESAHeaderSlices/ESAHome2.gif" width="78" height="17" border="0" alt="ESA Home"></a></td>
134
   <td><a href="http://data.esa.org" target="_top" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('ESARegistry2','','ESAHeaderSlices/RollOvers/ESARegistryR.gif',1);"><img name="ESARegistry2" src="ESAHeaderSlices/ESARegistry2.gif" width="102" height="17" border="0" alt="Registry Home"></a></td>
135
   <td><a href="@cgi-prefix@/register-dataset.cgi?cfg=esa" target="_top" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('ESARegisterNewData','','ESAHeaderSlices/RollOvers/ESANewDataSetR.gif',1);"><img name="ESARegisterNewData" src="ESAHeaderSlices/ESARegisterNewData.gif" width="154" height="17" border="0" alt="Register a New Data Set"></a></td>
136
   <td><a href="http://data.esa.org#search" target="_top" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('ESASearch','','ESAHeaderSlices/RollOvers/ESASearchR.gif',1);"><img name="ESASearch" src="ESAHeaderSlices/ESASearch.gif" width="102" height="17" border="0" alt="Search for Data"></a></td>
137
   <td><div id="login_block"><a href="#" target="_top" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('ESALogin','','ESAHeaderSlices/RollOvers/ESALoginR.gif',1);"><img name="ESALogin" src="ESAHeaderSlices/ESALogin.gif" width="57" height="17" border="0" alt="Login"></a></div></td>
138
   <td rowspan="2"><img name="header_r4_c8" src="ESAHeaderSlices/header_r4_c8.gif" width="48" height="24" border="0" alt=""></td>
139
   <td><img src="ESAHeaderSlices/spacer.gif" width="1" height="17" border="0" alt=""></td>
68
   <td rowspan="2"><img name="header_r4_c3" src="ESAHeaderSlices/header_r4_c3.gif" width="7" height="47" border="0" alt=""></td>
69
   <td><a href="http://data.esa.org" target="_top" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('ESARegistry','','ESAHeaderSlices/RollOvers/ESARegistryR.gif',1);"><img name="ESARegistry" src="ESAHeaderSlices/ESARegistry.gif" width="99" height="18" border="0" title="ESA Registry" alt="ESA Registry"></a></td>
70
   <td colspan="2"><a href="@cgi-prefix@/register-dataset.cgi?cfg=esa" target="_top" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('RegisterData','','ESAHeaderSlices/RollOvers/RegisterDataR.gif',1);"><img name="RegisterData" src="ESAHeaderSlices/RegisterData.gif" width="97" height="18" border="0" title="Register Data" alt="Register Data"></a></td>
71
   <td><a href="http://data.esa.org#search" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('SearchForData','','ESAHeaderSlices/RollOvers/SearchForDataR.gif',1);"><img name="SearchForData" src="ESAHeaderSlices/SearchForData.gif" width="105" height="18" border="0" title="Search for Data" alt="Search for Data"></a></td>
72
   <td colspan="3"><a href="#" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('MySubmissions','','ESAHeaderSlices/RollOvers/MySubmissionsR.gif',1);"><img name="MySubmissions" src="ESAHeaderSlices/MySubmissions.gif" width="114" height="18" border="0" title="My Submissions - Before you can view your submissions you must login." alt="My Submissions"></a></td>
73
   <td><a href="#" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('Login','','ESAHeaderSlices/RollOvers/LoginR.gif',1);"><img name="Login" src="ESAHeaderSlices/Login.gif" width="62" height="18" border="0" title="Login" alt="Login"></a></td>
74
   <td rowspan="2"><img name="header_r4_c12" src="ESAHeaderSlices/header_r4_c12.gif" width="57" height="47" border="0" alt=""></td>
75
   <td><img src="ESAHeaderSlices/spacer.gif" width="1" height="18" border="0" alt=""></td>
140 76
  </tr>
141 77
  <tr>
142
   <td colspan="5"><img name="header_r5_c3" src="ESAHeaderSlices/header_r5_c3.gif" width="493" height="7" border="0" alt=""></td>
143
   <td><img src="ESAHeaderSlices/spacer.gif" width="1" height="7" border="0" alt=""></td>
78
   <td colspan="8"><img name="header_r5_c4" src="ESAHeaderSlices/header_r5_c4.gif" width="477" height="29" border="0" alt=""></td>
79
   <td><img src="ESAHeaderSlices/spacer.gif" width="1" height="29" border="0" alt=""></td>
144 80
  </tr>
145 81
</table>
146
<!--- TODO if user then have the link to view all the documents which have been inserted already. If not user then view all documents which have not been moderated yet -->
147
<form id="modSearch" name="modSearch" action="@servlet-path@" method="post" target="_top">
148
       <input type="hidden" name="action" value="squery"/>
149
       <input type="hidden" name="qformat" value="esa"/>
150
       <input type="hidden" name="enableediting" value="true"/>
151
       <input type="hidden" name="query" value="<pathquery><querytitle>Moderator-Search</querytitle><returndoctype>eml://ecoinformatics.org/eml-2.0.1</returndoctype><returndoctype>eml://ecoinformatics.org/eml-2.0.0</returndoctype><returndoctype>-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN</returndoctype><returndoctype>-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN</returndoctype><returndoctype>-//NCEAS//resource//EN</returndoctype><returndoctype>-//NCEAS//eml-dataset//EN</returndoctype><returnfield>originator/individualName/surName</returnfield><returnfield>originator/individualName/givenName</returnfield><returnfield>creator/individualName/surName</returnfield><returnfield>creator/individualName/givenName</returnfield><returnfield>originator/organizationName</returnfield><returnfield>creator/organizationName</returnfield><returnfield>dataset/title</returnfield><returnfield>keyword</returnfield><querygroup operator='INTERSECT'><queryterm searchmode='not-contains' casesensitive='false'><value>public</value><pathexpr>dataset/access/allow/principal</pathexpr></queryterm><queryterm searchmode='not-contains' casesensitive='false'><value>Revision Requested</value><pathexpr>additionalMetadata/moderatorComment</pathexpr></queryterm></querygroup></pathquery>"/>
152
<p><a id="modLink" class="hide" onClick="this.parentNode.parentNode.submit();">View documents pending moderation</a></p>
153
</form>
154
<form id="userSearch" name="userSearch" action="@servlet-path@" method="post" target="_top">
155
       <input type="hidden" name="action" value="squery"/>
156
       <input type="hidden" name="qformat" value="esa"/>
157
       <input type="hidden" name="enableediting" value="true"/>
158
       <input type="hidden" name="query" value="<pathquery><querytitle>Moderator-Search</querytitle><returndoctype>eml://ecoinformatics.org/eml-2.0.1</returndoctype><returndoctype>eml://ecoinformatics.org/eml-2.0.0</returndoctype><returndoctype>-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN</returndoctype><returndoctype>-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN</returndoctype><returndoctype>-//NCEAS//resource//EN</returndoctype><returndoctype>-//NCEAS//eml-dataset//EN</returndoctype><returnfield>originator/individualName/surName</returnfield><returnfield>originator/individualName/givenName</returnfield><returnfield>creator/individualName/surName</returnfield><returnfield>creator/individualName/givenName</returnfield><returnfield>originator/organizationName</returnfield><returnfield>creator/organizationName</returnfield><returnfield>dataset/title</returnfield><returnfield>keyword</returnfield><querygroup operator='INTERSECT'><queryterm searchmode='not-contains' casesensitive='false'><value>public</value><pathexpr>dataset/access/allow/principal</pathexpr></queryterm></querygroup></pathquery>"/>
159
<p><a id="userLink" class="hide" onClick="this.parentNode.parentNode.submit();">View documents pending approval</a></p>
160
</form>
161
<script>
162
MM_preloadImages('ESAHeaderSlices/ESAHome2_f2.gif','ESAHeaderSlices/RollOvers/ESAHomeR.gif','ESAHeaderSlices/RollOvers/ESARegistryR.gif','ESAHeaderSlices/RollOvers/ESANewDataSetR.gif','ESAHeaderSlices/RollOvers/ESASearchR.gif','ESAHeaderSlices/RollOvers/ESALoginR.gif');
163
loginStatus();
164
</script>
165 82
</body>
83
</html>

Also available in: Unified diff