Project

General

Profile

« Previous | Next » 

Revision 2536

Added by sgarg over 19 years ago

New header for the ESA skin

(Commit done by Saurabh Garg for Callie Bowdish)

View differences:

lib/style/skins/esa/header.html
1
  <!--
1
<!--
2 2
    '$RCSfile$'
3 3
    Copyright: 2003 Regents of the University of California and the
4 4
               National Center for Ecological Analysis and Synthesis
......
15 15
   but WITHOUT ANY WARRANTY; without even the implied warranty of
16 16
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 17
   GNU General Public License for more details.
18
     
18

  
19 19
   You should have received a copy of the GNU General Public License
20 20
   along with this program; if not, write to the Free Software
21 21
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
......
25 25
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
26 26
<html>
27 27
<head>
28
  <title>ESA Data Registry</title>
29
  <link rel="stylesheet" type="text/css" 
28
<title>ESA Data Registry</title>
29
<meta http-equiv="Content-Type" content="text/html;">
30
<link rel="stylesheet" type="text/css"
30 31
        href="@systemidserver@@style-skins-path@/esa/esa.css"></link>
31
<script language="Javascript">
32
function trim(stringToTrim) {
33
                return stringToTrim.replace(/^\s*/, '').replace(/\s*$/,'');       
32
<script language="JavaScript">
33
<!--
34
function MM_findObj(n, d) { //v4.01
35
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
36
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
37
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
38
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
39
  if(!x && d.getElementById) x=d.getElementById(n); return x;
34 40
}
35
function checkSearch(submitFormObj) {
36
        var searchString = trim(submitFormObj.elements["anyfield"].value);
37
        
38
	if (searchString=="") {
39
                searchString="%";
40
        }
41
function MM_swapImage() { //v3.0
42
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
43
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
44
}
45
function MM_swapImgRestore() { //v3.0
46
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
47
}
41 48

  
42
	if(searchString != "%"){
43
		submitFormObj.anyfield.value = "";
44
        	submitFormObj.title.value = searchString;
45
        	submitFormObj.surName.value = searchString;
46
        	submitFormObj.givenName.value = searchString;
47
        	submitFormObj.keyword.value = searchString;
48
        	submitFormObj.organizationName.value = searchString;
49
        	submitFormObj.para.value = searchString;
50
        	submitFormObj.geographicDescription.value = searchString;
51
        	submitFormObj.literalLayout.value = searchString;
52
        	submitFormObj.operator.value="UNION";
53
        	var abs = document.getElementById("abstract");
54
        	abs.value=searchString;
55
	}
56
       	return true;
49
function MM_preloadImages() { //v3.0
50
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
51
   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
52
   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
57 53
}
54

  
55
//-->
58 56
</script>
59 57
</head>
58
<body bgcolor="#ffffff" onLoad="MM_preloadImages('ESAHeaderSlices/RollOvers/ESAHome.gif','ESAHeaderSlices/RollOvers/ESARegister.gif','ESAHeaderSlices/RollOvers/RegNew.gif','ESAHeaderSlices/RollOvers/Search.gif')">
59
<table border="0" cellpadding="0" cellspacing="0" width="724">
60
  <tr>
61
   <td><img src="ESAHeaderSlices/spacer.gif" width="20" height="1" border="0" alt=""></td>
62
   <td><img src="ESAHeaderSlices/spacer.gif" width="143" height="1" border="0" alt=""></td>
63
   <td><img src="ESAHeaderSlices/spacer.gif" width="41" height="1" border="0" alt=""></td>
64
   <td><img src="ESAHeaderSlices/spacer.gif" width="77" height="1" border="0" alt=""></td>
65
   <td><img src="ESAHeaderSlices/spacer.gif" width="102" height="1" border="0" alt=""></td>
66
   <td><img src="ESAHeaderSlices/spacer.gif" width="152" height="1" border="0" alt=""></td>
67
   <td><img src="ESAHeaderSlices/spacer.gif" width="101" height="1" border="0" alt=""></td>
68
   <td><img src="ESAHeaderSlices/spacer.gif" width="88" height="1" border="0" alt=""></td>
69
   <td><img src="ESAHeaderSlices/spacer.gif" width="1" height="1" border="0" alt=""></td>
70
  </tr>
60 71

  
61
<body>
62
<table width="760" class="headertopmargin" border="0" cellspacing="0" cellpadding="0">
63
  <tr> 
64
    <td rowspan="3" width="20%" valign="top"> 
65
      <div align="left"><img src="@systemidserver@@style-skins-path@/esa/esa-logo.gif"></div>
66
    </td>
67
    <td valign="middle" colspan="4" class="title">Ecological Society of America Data Registry</td>
72
  <tr>
73
   <td colspan="8"><img name="ESAHeader3_r1_c1" src="ESAHeaderSlices/ESAHeader3_r1_c1.gif" width="724" height="36" border="0" alt=""></td>
74
   <td><img src="ESAHeaderSlices/spacer.gif" width="1" height="36" border="0" alt=""></td>
68 75
  </tr>
69
  <tr> 
70
    <td class="spacerrow" valign="top" colspan="4">&nbsp;</td>
76
  <tr>
77
   <td rowspan="3"><img name="ESAHeader3_r2_c1" src="ESAHeaderSlices/ESAHeader3_r2_c1.gif" width="20" height="85" border="0" alt=""></td>
78
   <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>
79
   <td rowspan="2" colspan="6"><img name="ESAHeader3_r2_c3" src="ESAHeaderSlices/ESAHeader3_r2_c3.gif" width="561" height="69" border="0" alt=""></td>
80
   <td><img src="ESAHeaderSlices/spacer.gif" width="1" height="54" border="0" alt=""></td>
71 81
  </tr>
72
  <tr> 
73
    <td valign="top" width="20%"> 
74
      <p><a href="http://www.esa.org" target="_top"> ESA Home</a></p>
75
    </td>
76
    <td valign="top" width="20%"> 
77
      <p><a href="@systemidserver@@style-skins-path@/esa/index.html" target="_top">Registry Home</a></p>
78
    </td>
79
    <td valign="top" width="20%"> 
80
      <p><a href="@cgi-prefix@/register-dataset.cgi?cfg=esa" target="_top">Register a <br>New Data Set</a></p>
81
    </td>
82
    <td valign="top" width="20%"> 
83
<p class="searchbox">
84
Search for Data<br />
85
<form method="POST" action="@servlet-path@" target="_top" onSubmit="return checkSearch(this)">
86
  <input value="INTERSECT" name="operator" type="hidden">   
87
  <input size="14" name="anyfield" type="text" value="">
88
  <!--<input name="organizationName" value="Ecological Society of America" type="hidden">-->
89
  <input type="hidden" name="organizationName">
90
  <input type="hidden" name="surName">
91
  <input type="hidden" name="givenName">
92
  <input type="hidden" name="keyword">
93
  <input type="hidden" name="title">
94
  <input type="hidden" name="abstract/para" id="abstract">
95
  <input type="hidden" name="para">
96
  <input type="hidden" value="literalLayout">
97
  <input type="hidden" name="geographicDescription">
98
  <input name="action" value="query" type="hidden">
99
  <input name="qformat" value="esa" type="hidden">
100
  <input name="enableediting" value="true" type="hidden">
101
  <input name="returnfield" value="originator/individualName/surName" type="hidden">
102
  <input name="returnfield" value="originator/individualName/givenName" type="hidden">
103
  <input name="returnfield" value="creator/individualName/surName" type="hidden">
104
  <input name="returnfield" value="creator/individualName/givenName" type="hidden">
105
  <input name="returnfield" value="originator/organizationName" type="hidden">
106
  <input name="returnfield" value="creator/organizationName" type="hidden">
107
  <input name="returnfield" value="dataset/title" type="hidden">
108
  <input name="returnfield" value="keyword" type="hidden">
109
  <input name="returndoctype" value="eml://ecoinformatics.org/eml-2.0.1" type="hidden">
110
  <input name="returndoctype" value="eml://ecoinformatics.org/eml-2.0.0" type="hidden">
111
  <input name="returndoctype" value="-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN" type="hidden">
112
  <input name="returndoctype" value="-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN" type="hidden">
113
  <input name="returndoctype" value="-//NCEAS//resource//EN" type="hidden">
114
  <input name="returndoctype" value="-//NCEAS//eml-dataset//EN" type="hidden">
115
  <!-- <input value="Start Search" type="submit"> -->
116
</form>
117
</p>
118
    </td>
82
  <tr>
83
   <td rowspan="2"><img name="ESAHeader3_r3_c2" src="ESAHeaderSlices/ESAHeader3_r3_c2.gif" width="143" height="31" border="0" alt=""></td>
84
   <td><img src="ESAHeaderSlices/spacer.gif" width="1" height="15" border="0" alt=""></td>
119 85
  </tr>
86
  <tr>
87
   <td><img name="ESAHeader3_r4_c3" src="ESAHeaderSlices/ESAHeader3_r4_c3.gif" width="41" height="16" border="0" alt=""></td>
88
   <td><a href="http://www.esa.org/" onMouseOut="MM_swapImgRestore();" target="_top" onMouseOver="MM_swapImage('ESAHome','','ESAHeaderSlices/RollOvers/ESAHome.gif',1)"><img name="ESAHome" src="ESAHeaderSlices/ESAHome.gif" width="77" height="16" border="0" alt="ESA Home"></a></td>
89
   <td><a href="@systemidserver@@style-skins-path@/esa/index.html" target="_top" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('ESARegister','','ESAHeaderSlices/RollOvers/ESARegister.gif',1)"><img name="ESARegister" src="ESAHeaderSlices/ESARegister.gif" width="102" height="16" border="0" alt="ESA Register"></a></td>
90
   <td><a href="@cgi-prefix@/register-dataset.cgi?cfg=esa" target="_top" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('RegNew','','ESAHeaderSlices/RollOvers/RegNew.gif',1)"><img name="RegNew" src="ESAHeaderSlices/RegNew.gif" width="152" height="16" border="0" alt="Register a New Data Set"></a></td>
91
   <td><a href="@systemidserver@@style-skins-path@/esa/index.html#search" target="_top" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('Search','','ESAHeaderSlices/RollOvers/Search.gif',1)"><img name="Search" src="ESAHeaderSlices/Search.gif" width="101" height="16" border="0" alt="Search for Data"></a></td>
92
   <td><img name="ESAHeader3_r4_c8" src="ESAHeaderSlices/ESAHeader3_r4_c8.gif" width="88" height="16" border="0" alt=""></td>
93
   <td><img src="ESAHeaderSlices/spacer.gif" width="1" height="16" border="0" alt=""></td>
94
  </tr>
120 95
</table>
121 96
</body>
122 97
</html>

Also available in: Unified diff