2c2f0d6993224adbe2d3d613e8fa81ebfcd019aa
[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="providerId" scope="request" class="java.lang.String"/>
13         <jsp:useBean id="time" 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 <head>
17         <link rel="stylesheet" title="normal" type="text/css" href="wayf.css" />
18         <title>InQueue: Identity Provider Selection</title>
19 </head>
20
21 <body>
22     <div class="head">
23         <h1>Select an identity provider</h1>
24     </div>
25
26     <div class="selector">
27         <p class="text"><bean:write name="helpText" /></p>
28         <div class="list">
29
30             <h2>Choose from a list:</h2>
31
32             <form method="get" action="<bean:write name="requestURL" />">
33                 <p>
34                     <input type="hidden" name="shire" value="<bean:write name="shire" />" />
35                     <input type="hidden" name="target" value="<bean:write name="target" />" />
36                     <logic:present name="providerId" scope="request">
37                             <input type="hidden" name="providerId" value="<bean:write name="providerId" />" />
38                     </logic:present>
39                     <logic:present name="time" scope="request">
40                                 <input type="hidden" name="time" value="<bean:write name="time" />" />
41                     </logic:present>
42                     <input type="hidden" name="action" value="selection" />
43                     <select name="origin">      
44                         <logic:iterate id="site" name="sites">
45                             <option value="<jsp:getProperty name="site" property="name" />">
46                                         <jsp:getProperty name="site" property="displayName" />
47                             </option>
48                         </logic:iterate>
49                     </select>
50                     <input type="submit" value="Select" />
51                     <select name="cache">
52                         <option value="false"> Do not remember
53                         <option value="session" selected> Remember for session
54                         <option value="perm"> Remember for a week
55                     </select>
56                 </p>
57             </form>
58
59             <div class="search">
60                 <span class="option">or</span>
61
62                 <h2>Search by keyword:</h2>
63
64                 <form method="get" action="<bean:write name="requestURL" />">
65                     <p>
66                         <input type="hidden" name="shire" value="<bean:write name="shire" />" />
67                         <input type="hidden" name="target" value="<bean:write name="target" />" />
68                         <logic:present name="providerId" scope="request">
69                             <input type="hidden" name="providerId" value="<bean:write name="providerId" />" />
70                         </logic:present>
71                         <logic:present name="time" scope="request">
72                             <input type="hidden" name="time" value="<bean:write name="time" />" />
73                         </logic:present>
74                         <input type="hidden" name="action" value="search" />
75                         <input type="text" name="string" />
76                         <input type="submit" value="Search" />
77                     </p>
78                 </form>
79
80                 <logic:present name="searchResultsEmpty" scope="request">
81                     <p class="error"><bean:write name="searchResultEmptyText" /></p>
82                 </logic:present>
83
84                 <logic:present name="searchresults" scope="request">
85                     <h3>Search results:</h3>
86                     <form method="get" action="<bean:write name="requestURL" />">
87                         <ul>
88                             <logic:iterate id="currResult" name="searchresults">
89                                 <li>
90                                     <input type="radio" name="origin" value="<jsp:getProperty name="currResult" property="name" />" />
91                                     <jsp:getProperty name="currResult" property="displayName" />
92                                 </li>
93                             </logic:iterate>
94                         </ul>
95                         <p>
96                             <input type="hidden" name="shire" value="<bean:write name="shire" />" />
97                             <input type="hidden" name="target" value="<bean:write name="target" />" />
98                             <logic:present name="providerId" scope="request">
99                                         <input type="hidden" name="providerId" value="<bean:write name="providerId" />" />
100                             </logic:present>
101                             <logic:present name="time" scope="request">
102                                         <input type="hidden" name="time" value="<bean:write name="time" />" />
103                             </logic:present>
104                             <input type="hidden" name="action" value="selection" />
105                             <input type="submit" value="Select" />
106                             <select name="cache">
107                                 <option value="false"> Do not remember
108                                 <option value="session" selected> Remember for session
109                                 <option value="perm"> Remember for a week
110                             </select>
111                         </p>
112                     </form>     
113                 </logic:present>
114
115             </div>
116         </div>
117
118         <div class="footer">
119             <p class="text">Need assistance? Send mail to <a href="mailto:inqueue-support@internet2.edu">inqueue-support@internet2.edu</a> with description.</p>
120             <div class="logo"><img src="./images/internet2.gif" alt="InQueue" /></div>
121         </div>
122                         
123 </body>
124 </html>