1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186
|
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/tags/app" prefix="app" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<logic:equal name="RegistrationForm" property="action"
scope="request" value="Edit">
<app:checkLogon/>
</logic:equal>
<html:html>
<head>
<logic:equal name="RegistrationForm" property="action"
scope="request" value="Create">
<title><bean:message key="registration.title.create"/></title>
</logic:equal>
<logic:equal name="RegistrationForm" property="action"
scope="request" value="Edit">
<title><bean:message key="registration.title.edit"/></title>
</logic:equal>
<html:base/>
</head>
<body bgcolor="white">
<html:errors/>
<html:form action="/SaveRegistration" focus="username"
onsubmit="return validateRegistrationForm(this);">
<html:hidden property="action"/>
<table border="0" width="100%">
<tr>
<th align="right">
<bean:message key="prompt.username"/>:
</th>
<td align="left">
<logic:equal name="RegistrationForm" property="action"
scope="request" value="Create">
<html:text property="username" size="16" maxlength="16"/>
</logic:equal>
<logic:equal name="RegistrationForm" property="action"
scope="request" value="Edit">
<%--
<bean:write name="RegistrationForm" property="username"
scope="request" filter="true"/>
--%>
<html:hidden property="username" write="true"/>
</logic:equal>
</td>
</tr>
<tr>
<th align="right">
<bean:message key="prompt.password"/>:
</th>
<td align="left">
<html:password property="password" size="16" maxlength="16"/>
</td>
</tr>
<tr>
<th align="right">
<bean:message key="prompt.password2"/>:
</th>
<td align="left">
<html:password property="password2" size="16" maxlength="16"/>
</td>
</tr>
<tr>
<th align="right">
<bean:message key="prompt.fullName"/>:
</th>
<td align="left">
<html:text property="fullName" size="50"/>
</td>
</tr>
<tr>
<th align="right">
<bean:message key="prompt.fromAddress"/>:
</th>
<td align="left">
<html:text property="fromAddress" size="50"/>
</td>
</tr>
<tr>
<th align="right">
<bean:message key="prompt.replyToAddress"/>:
</th>
<td align="left">
<html:text property="replyToAddress" size="50"/>
</td>
</tr>
<tr>
<td align="right">
<html:submit>
<bean:message key="button.save"/>
</html:submit>
</td>
<td align="left">
<html:reset>
<bean:message key="button.reset"/>
</html:reset>
<html:cancel>
<bean:message key="button.cancel"/>
</html:cancel>
</td>
</tr>
</table>
</html:form>
<logic:equal name="RegistrationForm" property="action"
scope="request" value="Edit">
<div align="center">
<h3><bean:message key="heading.subscriptions"/></h3>
</div>
<table border="1" width="100%">
<tr>
<th align="center" width="30%">
<bean:message key="heading.host"/>
</th>
<th align="center" width="25%">
<bean:message key="heading.user"/>
</th>
<th align="center" width="10%">
<bean:message key="heading.type"/>
</th>
<th align="center" width="10%">
<bean:message key="heading.autoConnect"/>
</th>
<th align="center" width="15%">
<bean:message key="heading.action"/>
</th>
</tr>
<logic:iterate id="subscription" name="user" property="subscriptions">
<tr>
<td align="left">
<bean:write name="subscription" property="host" filter="true"/>
</td>
<td align="left">
<bean:write name="subscription" property="username" filter="true"/>
</td>
<td align="center">
<bean:write name="subscription" property="type" filter="true"/>
</td>
<td align="center">
<bean:write name="subscription" property="autoConnect"/>
</td>
<td align="center">
<app:linkSubscription page="/EditSubscription.do?action=Delete">
<bean:message key="registration.deleteSubscription"/>
</app:linkSubscription>
<app:linkSubscription page="/EditSubscription.do?action=Edit">
<bean:message key="registration.editSubscription"/>
</app:linkSubscription>
</td>
</tr>
</logic:iterate>
</table>
<html:link action="/EditSubscription?action=Create" paramId="username"
paramName="RegistrationForm" paramProperty="username">
<bean:message key="registration.addSubscription"/>
</html:link>
</logic:equal>
<html:javascript formName="RegistrationForm"
dynamicJavascript="true"
staticJavascript="false"/>
<script language="Javascript1.1" src="staticJavascript.jsp"></script>
<jsp:include page="footer.jsp" />
</body>
</html:html>
|