Project

General

Profile

« Previous | Next » 

Revision 4484

redesign the look and feel - save point.
-cart editing is done by clicking individual assessments rather than doing them in batches.
-cart status is shown in the search results (but still need a refresh for after adding cart items from search...)

View differences:

header.jsp
33 33

  
34 34
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
35 35
<%@page import="java.util.Iterator"%>
36
<%@page import="edu.ucsb.nceas.metacat.service.SessionService"%>
36 37
<html>
37 38
<head>
38 39
<title>FIRST Data Repository</title>
......
58 59

  
59 60
<body onload="highlight()">
60 61
<table width="100%" border="0" cellspacing="0" cellpadding="0">
61
	<tr valign="top">
62
		<td width="400">
63
			<img src="<%=STYLE_SKINS_URL%>/first/images/first2banner.jpg">	
62
	<tr>
63
		<td width="75%" height="145" valign="middle" background="<%=STYLE_SKINS_URL%>/first/images/bkgrndgradient.gif">
64
			<table width="1094" border="0" cellspacing="0" cellpadding="0">
65
			  <tr>
66
			    <td width="1012"><img src="<%=STYLE_SKINS_URL%>/first/images/first_logo.png" width="1012" height="133" /></td>
67
			    <td width="82" valign="top"><br />
68
			      <table width="63" border="0" cellspacing="0" cellpadding="0">
69
			      <tr>
70
			        	<td>&nbsp;</td>
71
			      </tr>
72
			      <tr>
73
						<td>&nbsp;</td>
74
			      </tr>
75
			      <tr>
76
						<td>&nbsp;</td>
77
			      </tr>
78
			    </table>
79
			    </td>
80
			  </tr>
81
			</table>
64 82
		</td>
65
		<td>
66
			<table width="100%">
67
				<tr>
68
					<th colspan="3" class="title">
69
						FIRST Data Repository
70
					</th>
71
				</tr>
72
				<tr>
73
					<td>
74
						<a href="index.jsp" target="_top">
75
						Search	
76
						</a>
77
					</td>
78
					<td valign="top">
79
						<p><a href="about.jsp" target="_top">About</a></p>
80
					</td>
81
					<td>
83
	</tr>
84
	<tr>
85
		<td height="48" valign="middle" bgcolor="#C8C4B9" background="<%=STYLE_SKINS_URL%>/first/images/navbarbackground.gif">
86
			<table width="780" border="0" cellspacing="0" cellpadding="0">
87
			  <tr>
88
			    <td width="30%">&nbsp;</td>
89
			    <td><a href="index.jsp" target="_top">Search</a></td>
90
			    <td><a href="about.jsp" target="_top">About</a></td>
82 91
						<%
83 92
						boolean loggedIn = SessionService.isSessionRegistered(request.getSession().getId());
84 93
						String[] docids = null;
......
89 98
							fields = 
90 99
								SessionService.getRegisteredSession(request.getSession().getId()).getDocumentCart().getFields();
91 100
							%>
101
							<td>
102
								<a href="<%=SERVLET_URL%>?action=logout&qformat=first">Logout</a>
103
							</td>
104
							<td>
92 105
							<div id="importantThings">
93 106
								<a href="cart.jsp" target="_top">
94 107
									Cart 
95 108
								</a>
96 109
								(Items: <%=docids.length %>, Fields: <%=fields.size() %>)
97 110
							</div>
111
							<!-- for the cart status -->
112
							<div style="display:none;">
113
								<form id='cartForm'>
114
									<%
115
									for (int i = 0; i < docids.length; i++) {
116
									%>							
117
										<input name="@packageId" value="<%=docids[i] %>" type="hidden"> 
118
									<%} %>
119
								</form>
120
							</div>
98 121
							<!-- for use when downloading merged data -->
99 122
							<div style="display:none;">
100 123
								<form id='fieldForm'>
......
112 135
									%>
113 136
								</form>
114 137
							</div>
138
							</td>
115 139
						<%	
116 140
						}
117 141
						else {
118 142
						%>
119
							<a href="login.jsp" target="_top">Login</a>
143
							<td>
144
								<a href="login.jsp" target="_top">Login</a>
145
							</td>
120 146
						<%	
121 147
						}
122 148
						%>						
123
					</td>
124
				</tr>
125
				<tr>
126
					<td colspan="3">
127
						
128
					</td>
129
				</tr>
149
			  </tr>
130 150
			</table>
131 151
		</td>
132 152
	</tr>

Also available in: Unified diff