JSP and CSS should be ASCII.
[java-idp.git] / webApplication / wayf.jsp
1 <?xml version="1.0" encoding="utf-8"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
3         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4 <html>
5 <%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>
6         <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>
7         <jsp:useBean id="requestURL" scope="request" class="java.lang.String"/>
8         <jsp:useBean id="helpText" scope="application" class="java.lang.String"/>
9         <jsp:useBean id="supportContact" scope="application" class="java.lang.String"/>
10         <jsp:useBean id="shire" scope="request" class="java.lang.String"/>
11         <jsp:useBean id="target" scope="request" class="java.lang.String"/>
12         <jsp:useBean id="encodedShire" scope="request" class="java.lang.String"/>
13         <jsp:useBean id="encodedTarget" scope="request" class="java.lang.String"/>
14         <jsp:useBean id="searchResultEmptyText" scope="application" class="java.lang.String"/>
15         <jsp:useBean id="logoLocation" scope="application" class="java.lang.String"/>
16         <logic:present name="searchresults" scope="request">
17                 <jsp:useBean id="searchresults" scope="request" type="edu.internet2.middleware.shibboleth.wayf.Origin[]"/>
18         </logic:present>
19 <head>
20                 <link rel="stylesheet" title="normal" type="text/css" href="wayf.css" /><title>InCommon: Identity Provider Selection</title></head>
21         <body>
22
23                 <div class="head">
24                         <h1>Select an identity provider</h1>
25                 </div>
26
27                 <div class="selector">
28                         <p class="text"><bean:write name="helpText" /></p>
29
30                         <div class="list">
31
32                                 <h2>Choose from a list:</h2>
33                                 <logic:iterate id="originset" name="originsets">
34                                 <form method="get" action="<bean:write name="requestURL" />">
35                                         <p>
36                                         <input type="hidden" name="shire" value="<bean:write name="shire" />" />
37                                         <input type="hidden" name="target" value="<bean:write name="target" />" />
38                                         <input type="hidden" name="action" value="selection" />
39                                         <select name="origin">  
40                                                 <logic:iterate id="origin" name="originset" property="origins">
41                                                         <option value="<jsp:getProperty name="origin" property="name" />">
42                                                                 <jsp:getProperty name="origin" property="displayName" />
43                                                         </option>
44                                                 </logic:iterate>
45                                         </select>
46                                                 <input type="submit" value="Select" />
47                                                 <input type="checkbox" checked="checked" name="cache" value="TRUE" /><span class="warning">Remember my selection on this computer.</span>
48                                                 </p>
49                                         </form>
50                                         </logic:iterate>
51
52                                 </div>
53                                 <div class="search">
54                                 <span class="option">or</span>
55                                 <h2>Search by keyword:</h2>
56
57                                         <form method="get" action="<bean:write name="requestURL" />">
58                                                 <p>
59                                                         <input type="hidden" name="shire" value="<bean:write name="shire" />" />
60                                                         <input type="hidden" name="target" value="<bean:write name="target" />" />
61                                                         <input type="hidden" name="action" value="search" />
62                                                         <input type="text" name="string" />
63                                                         <input type="submit" value="Search" />
64                                                 </p>
65                                         </form>
66                                         <logic:present name="searchResultsEmpty" scope="request">
67                                                 <p class="error"><bean:write name="searchResultEmptyText" /></p>
68                                         </logic:present>
69                                         <logic:present name="searchresults" scope="request">
70                                                 <h3>Search results:</h3>
71                                                 <form method="get" action="<bean:write name="requestURL" />">
72                                                         <ul>
73                                                         <logic:iterate id="currResult" name="searchresults">
74                                                                 <li>
75                                                                 <input type="radio" name="origin" value="<jsp:getProperty name="currResult" property="name" />" /><jsp:getProperty name="currResult" property="displayName" />
76                                                                 </li>
77                                                         </logic:iterate>
78                                                         </ul>
79                                                         <p>
80                                                                 <input type="hidden" name="shire" value="<bean:write name="shire" />" />
81                                                                 <input type="hidden" name="target" value="<bean:write name="target" />" />
82                                                                 <input type="hidden" name="action" value="selection" />
83                                                                 <input type="submit" value="Select" />
84                                                                 <input type="checkbox" checked="checked" name="cache" value="TRUE" /><span class="warning">Remember my selection on this computer.</span>
85                                                         </p>
86                                                 </form> 
87                                         </logic:present>
88
89                                 </div>
90                         </div>
91                         <div class="footer">
92
93                                 <p class="text">Need assistance? Send mail to <a href="mailto:shib-test@internet2.edu">shib-test@internet2.edu</a> with description.</p>
94                                 <div class="logo"><img src="./images/incommon.gif" alt="InCommon" /></div>
95                         </div>
96                         
97         </body></html>