Revision 4397
Added by ben leinfelder about 16 years ago
cart.jsp | ||
---|---|---|
54 | 54 |
|
55 | 55 |
var docids = new Array(); |
56 | 56 |
var objs = document.getElementsByName("@packageId"); |
57 |
if (objs.length == 0) { |
|
58 |
return; |
|
59 |
} |
|
57 | 60 |
for (var i=0; i< objs.length; i++) { |
58 | 61 |
docids[i] = objs[i].value; |
59 | 62 |
} |
... | ... | |
98 | 101 |
|
99 | 102 |
<table width="100%" border="0" cellspacing="0" cellpadding="0"> |
100 | 103 |
<tr> |
101 |
<th> |
|
102 |
Cart
|
|
104 |
<th>Cart</th>
|
|
105 |
<th>
|
|
103 | 106 |
<form method="POST" action="<%=SERVLET_URL%>" target="_top" id="searchForm"> |
104 | 107 |
<input name="qformat" value="first-assessment" type="hidden"> |
105 | 108 |
<input name="action" value="squery" type="hidden"> |
... | ... | |
113 | 116 |
<%} %> |
114 | 117 |
</form> |
115 | 118 |
</th> |
119 |
<th align="right" style="text-align:right;"> |
|
120 |
<a href="<%=SERVLET_URL%>?action=logout&qformat=first">Logout</a> |
|
121 |
</th> |
|
116 | 122 |
</tr> |
117 | 123 |
<tr> |
118 |
<td> |
|
124 |
<td colspan="3"">
|
|
119 | 125 |
<p class="emphasis">Selected Metadata Fields: </p> |
120 | 126 |
<p> |
121 | 127 |
<table> |
... | ... | |
139 | 145 |
</td> |
140 | 146 |
</tr> |
141 | 147 |
<tr> |
142 |
<th> |
|
148 |
<th colspan="3">
|
|
143 | 149 |
|
144 | 150 |
</th> |
145 |
</tr>
|
|
151 |
</tr> |
|
146 | 152 |
<tr> |
147 |
<td> |
|
148 |
<div id="ajaxCartResults" style="display:none;">
|
|
149 |
Loading Cart...
|
|
153 |
<td colspan="3">
|
|
154 |
<div id="ajaxCartResults" style="/*display:none;*/">
|
|
155 |
<p class="emphasis">Cart is Empty</p>
|
|
150 | 156 |
</div> |
151 | 157 |
</td> |
152 | 158 |
</tr> |
Also available in: Unified diff
add logout link.
do not search for cart documents if the cart is empty.