<%@ taglib uri='/WEB-INF/templates/jsp/tld/template.tld' prefix='jetspeed' %>

<%@ page import = "org.apache.turbine.util.Log" %>
<%@ page import = "org.apache.turbine.util.RunData" %>

<%@ page import = "java.util.Enumeration" %>
<%@ page import = "java.util.Hashtable" %>

<% 
RunData data = (RunData) request.getAttribute("rundata");
String jspeid = (String) request.getAttribute("js_peid");
%>

<p><jetspeed:l10n key="JETSPEEDQUESTIONNAIRE_DEAR_JETSPEED_USER_JSP"/><P><jetspeed:l10n key="JETSPEEDQUESTIONNAIRE_THANK_YOU_FOR_TAKIN_JSP"/><P><jetspeed:l10n key="JETSPEEDQUESTIONNAIRE_PLEASE_BE_AS_SPECIF_JSP"/><p><jetspeed:l10n key="JETSPEEDQUESTIONNAIRE_THE_FOLLOWING_TABLE_JSP"/><a href="<jetspeed:portletlink jspeid="<%=jspeid%>" action="controls.Customize"/>"><jetspeed:l10n key="JETSPEEDQUESTIONNAIRE_HERE_JSP"/></A><jetspeed:l10n key="JETSPEEDQUESTIONNAIRE_TO_CHANGE_YOUR_RESP_JSP"/><P>
<TABLE BORDER="1">
    <TR>
        <TH><jetspeed:l10n key="JETSPEEDQUESTIONNAIRE_QUESTION_JSP"/></TH>
        <TH><jetspeed:l10n key="JETSPEEDQUESTIONNAIRE_RESPONSE_JSP"/></TH>
    </TR>
<%
Hashtable questions = (Hashtable) request.getAttribute("questions");
if (questions != null)
{
    Enumeration i = questions.keys();

    while(i.hasMoreElements())
    {
        String title = (String) i.nextElement();
        String value = (String) questions.get(title);
        value = value == null || value.length() == 0 ? "NOT PROVIDED" : value;
%>
    <TR>
        <TD><B><%=title%></B></TD>
        <TD><%=(value.equalsIgnoreCase("") ? "&nbsp;" : value) %></TD>
    </TR>
<%
    }
}

%>
    <TR>
        <TD COLSPAN="2">
            <FORM METHOD="POST">
                <INPUT TYPE="hidden" NAME="js_peid" VALUE="<%=jspeid%>">              
                <p><jetspeed:l10n key="JETSPEEDQUESTIONNAIRE_FILE_CONTAINING_IMAG_JSP"/><INPUT TYPE="FILE" SIZE="30" NAME="emailAttachment" VALUE="">                
                <p>&nbsp;&nbsp;
                <INPUT TYPE="SUBMIT" NAME="eventSubmit_doEmail" VALUE="E-Mail Questionnaire"><jetspeed:l10n key="JETSPEEDQUESTIONNAIRE_TO_JSP"/><INPUT TYPE="TEXT" SIZE="30" NAME="emailTo" VALUE="jetspeed-dev@jakarta.apache.org">
                &nbsp;&nbsp;<font COLOR="RED"><B><%=data.getMessage() == null ? "" : data.getMessage()%></B></FONT>
            </FORM>
        </TD>
    </TR>
</TABLE>
<P><jetspeed:l10n key="JETSPEEDQUESTIONNAIRE_THANK_YOU_AGAIN_YOU_JSP"/><P><jetspeed:l10n key="JETSPEEDQUESTIONNAIRE_JETSPEED_DEVELOPMEN_JSP"/><P>
<IMG SRC="<jetspeed:contentUri href="images/jetspeed-powered.gif"/>">
