Revision 4080
Added by daigle about 16 years ago
include_login.jsp | ||
---|---|---|
1 |
<%@ page language="java" %> |
|
1 |
<%@ page language="java" import="java.util.Vector,edu.ucsb.nceas.metacat.util.LDAPUtil"%>
|
|
2 | 2 |
<!-- |
3 | 3 |
/** |
4 | 4 |
* '$RCSfile$' |
... | ... | |
30 | 30 |
|
31 | 31 |
<%@ include file="settings.jsp"%> |
32 | 32 |
<%@ include file="session_vars.jsp"%> |
33 |
|
|
34 |
<% |
|
35 |
Vector<String> organizationList = LDAPUtil.getOrganizations(); |
|
36 |
%> |
|
37 |
|
|
33 | 38 |
<!-- *********************** START LOGIN TABLE ************************* --> |
34 | 39 |
<html> |
35 | 40 |
<head> |
... | ... | |
97 | 102 |
<p> |
98 | 103 |
Logging into your account enables you to search any |
99 | 104 |
additional, non-public data for which you may have access |
100 |
priviliges:
|
|
105 |
privileges:
|
|
101 | 106 |
</p> |
102 | 107 |
<%= loginStatus %> |
103 | 108 |
</td> |
... | ... | |
142 | 147 |
style="padding-top: 2px; padding-bottom: 2px;"> |
143 | 148 |
<select name="organization" style="width:140px;" |
144 | 149 |
<%=loginEnabledDisabled%> > |
145 |
<option value="" <%=((posted_organization.length()<1)? "selected":"")%>>— choose one —</option> |
|
146 |
<option value="NCEAS" <%=((posted_organization.equalsIgnoreCase("NCEAS"))? "selected":"")%>>NCEAS</option> |
|
147 |
<option value="LTER" <%=((posted_organization.equalsIgnoreCase("LTER"))? "selected":"")%>>LTER</option> |
|
148 |
<option value="NRS" <%=((posted_organization.equalsIgnoreCase("NRS"))? "selected":"")%>>NRS</option> |
|
149 |
<option value="PISCO" <%=((posted_organization.equalsIgnoreCase("PISCO"))? "selected":"")%>>PISCO</option> |
|
150 |
<option value="OBFS" <%=((posted_organization.equalsIgnoreCase("OBFS"))? "selected":"")%>>OBFS</option> |
|
151 |
<option value="unaffiliated" <%=((posted_organization.equalsIgnoreCase("unaffiliated"))? "selected":"")%>>unaffiliated</option> |
|
150 |
<option value="" <%=((posted_organization.length()<1)? "selected":"")%>>— choose one —</option> |
|
151 |
<% |
|
152 |
for (String orgName : organizationList) { |
|
153 |
%> |
|
154 |
<option value="<%= orgName %>" <%=((posted_organization.equalsIgnoreCase(orgName))? "selected":"")%>><%= orgName %></option> |
|
155 |
<% |
|
156 |
} |
|
157 |
%> |
|
152 | 158 |
</select> |
153 | 159 |
</td> |
154 | 160 |
<td width="10px"> |
Also available in: Unified diff
Merge 1.9 changes into Head