setup-ldap-user_test.jsp

来自「openfire 服务器源码下载」· JSP 代码 · 共 306 行 · 第 1/2 页

JSP
306 行
字号
				</tr>
				<tr>
                    <% value = attributes.get(LdapUserTester.HOME_STATE);
                       failed = value != null && value.contains("{");
                    %>
					<td class="jive-testpanel-vcard-label"><%= value != null ? "<strong>" : ""%><fmt:message key="setup.ldap.user.vcard.state" />:<%= value != null ? "</strong>" : ""%></td>
                    <td class="jive-testpanel-vcard-value"><%= failed || value == null? "" : value%></td>
				</tr>
				<tr>
                    <% value = attributes.get(LdapUserTester.HOME_ZIP);
                       failed = value != null && value.contains("{");
                    %>
					<td class="jive-testpanel-vcard-label"><%= value != null ? "<strong>" : ""%><fmt:message key="setup.ldap.user.vcard.pcode" />:<%= value != null ? "</strong>" : ""%></td>
                    <td class="jive-testpanel-vcard-value"><%= failed || value == null? "" : value%></td>
				</tr>
				<tr>
                    <% value = attributes.get(LdapUserTester.HOME_COUNTRY);
                       failed = value != null && value.contains("{");
                    %>
					<td class="jive-testpanel-vcard-label"><%= value != null ? "<strong>" : ""%><fmt:message key="setup.ldap.user.vcard.country" />:<%= value != null ? "</strong>" : ""%></td>
                    <td class="jive-testpanel-vcard-value"><%= failed || value == null? "" : value%></td>
				</tr>
				<tr>
                    <% value = attributes.get(LdapUserTester.HOME_PHONE);
                       failed = value != null && value.contains("{");
                    %>
					<td class="jive-testpanel-vcard-label"><%= value != null ? "<strong>" : ""%><fmt:message key="setup.ldap.user.vcard.phone" />:<%= value != null ? "</strong>" : ""%></td>
                    <td class="jive-testpanel-vcard-value"><%= failed || value == null? "" : value%></td>
				</tr>
				<tr>
                    <% value = attributes.get(LdapUserTester.HOME_MOBILE);
                       failed = value != null && value.contains("{");
                    %>
					<td class="jive-testpanel-vcard-label"><%= value != null ? "<strong>" : ""%><fmt:message key="setup.ldap.user.vcard.mobile" />:<%= value != null ? "</strong>" : ""%></td>
                    <td class="jive-testpanel-vcard-value"><%= failed || value == null? "" : value%></td>
				</tr>
				<tr>
                    <% value = attributes.get(LdapUserTester.HOME_FAX);
                       failed = value != null && value.contains("{");
                    %>
					<td class="jive-testpanel-vcard-label"><%= value != null ? "<strong>" : ""%><fmt:message key="setup.ldap.user.vcard.fax" />:<%= value != null ? "</strong>" : ""%></td>
                    <td class="jive-testpanel-vcard-value"><%= failed || value == null? "" : value%></td>
				</tr>

				<tr>
                    <% value = attributes.get(LdapUserTester.HOME_PAGER);
                       failed = value != null && value.contains("{");
                    %>
					<td class="jive-testpanel-vcard-label"><%= value != null ? "<strong>" : ""%><fmt:message key="setup.ldap.user.vcard.pager" />:<%= value != null ? "</strong>" : ""%></td>
                    <td class="jive-testpanel-vcard-value"><%= failed || value == null? "" : value%></td>
				</tr>
			</table>

			<table width="331" border="0" cellpadding="0" cellspacing="1" class="jive-testTable-vcard">
				<tr>
					<td colspan="2" class="jive-testpanel-vcard-header"><fmt:message key="setup.ldap.user.vcard.business" /></td>
				</tr>
				<tr>
                    <% value = attributes.get(LdapUserTester.BUSINESS_STREET);
                       failed = value != null && value.contains("{");
                    %>
					<td class="jive-testpanel-vcard-label" width="20%"><%= value != null ? "<strong>" : ""%><fmt:message key="setup.ldap.user.vcard.street" />:<%= value != null ? "</strong>" : ""%></td>
                    <td class="jive-testpanel-vcard-value"><%= failed || value == null? "" : value%></td>
				</tr>
				<tr>
                    <% value = attributes.get(LdapUserTester.BUSINESS_CITY);
                       failed = value != null && value.contains("{");
                    %>
					<td class="jive-testpanel-vcard-label"><%= value != null ? "<strong>" : ""%><fmt:message key="setup.ldap.user.vcard.city" />:<%= value != null ? "</strong>" : ""%></td>
                    <td class="jive-testpanel-vcard-value"><%= failed || value == null? "" : value%></td>
				</tr>
				<tr>
                    <% value = attributes.get(LdapUserTester.BUSINESS_STATE);
                       failed = value != null && value.contains("{");
                    %>
					<td class="jive-testpanel-vcard-label"><%= value != null ? "<strong>" : ""%><fmt:message key="setup.ldap.user.vcard.state" />:<%= value != null ? "</strong>" : ""%></td>
                    <td class="jive-testpanel-vcard-value"><%= failed || value == null? "" : value%></td>
				</tr>
				<tr>
                    <% value = attributes.get(LdapUserTester.BUSINESS_ZIP);
                       failed = value != null && value.contains("{");
                    %>
					<td class="jive-testpanel-vcard-label"><%= value != null ? "<strong>" : ""%><fmt:message key="setup.ldap.user.vcard.pcode" />:<%= value != null ? "</strong>" : ""%></td>
                    <td class="jive-testpanel-vcard-value"><%= failed || value == null? "" : value%></td>
				</tr>
				<tr>
                    <% value = attributes.get(LdapUserTester.BUSINESS_COUNTRY);
                       failed = value != null && value.contains("{");
                    %>
					<td class="jive-testpanel-vcard-label"><%= value != null ? "<strong>" : ""%><fmt:message key="setup.ldap.user.vcard.country" />:<%= value != null ? "</strong>" : ""%></td>
                    <td class="jive-testpanel-vcard-value"><%= failed || value == null? "" : value%></td>
				</tr>
				<tr>
                    <% value = attributes.get(LdapUserTester.BUSINESS_JOB_TITLE);
                       failed = value != null && value.contains("{");
                    %>
					<td class="jive-testpanel-vcard-label"><%= value != null ? "<strong>" : ""%><fmt:message key="setup.ldap.user.vcard.title" />:<%= value != null ? "</strong>" : ""%></td>
                    <td class="jive-testpanel-vcard-value"><%= failed || value == null? "" : value%></td>
				</tr>
				<tr>
                    <% value = attributes.get(LdapUserTester.BUSINESS_DEPARTMENT);
                       failed = value != null && value.contains("{");
                    %>
					<td class="jive-testpanel-vcard-label"><%= value != null ? "<strong>" : ""%><fmt:message key="setup.ldap.user.vcard.department" />:<%= value != null ? "</strong>" : ""%></td>
                    <td class="jive-testpanel-vcard-value"><%= failed || value == null? "" : value%></td>
				</tr>
				<tr>
                    <% value = attributes.get(LdapUserTester.BUSINESS_PHONE);
                       failed = value != null && value.contains("{");
                    %>
					<td class="jive-testpanel-vcard-label"><%= value != null ? "<strong>" : ""%><fmt:message key="setup.ldap.user.vcard.phone" />:<%= value != null ? "</strong>" : ""%></td>
                    <td class="jive-testpanel-vcard-value"><%= failed || value == null? "" : value%></td>
				</tr>
				<tr>
                    <% value = attributes.get(LdapUserTester.BUSINESS_MOBILE);
                        failed = value != null && value.contains("{");
                    %>
					<td class="jive-testpanel-vcard-label"><%= value != null ? "<strong>" : ""%><fmt:message key="setup.ldap.user.vcard.mobile" />:<%= value != null ? "</strong>" : ""%></td>
                    <td class="jive-testpanel-vcard-value"><%= failed || value == null? "" : value%></td>
				</tr>
				<tr>
                    <% value = attributes.get(LdapUserTester.BUSINESS_FAX);
                       failed = value != null && value.contains("{");
                    %>
					<td class="jive-testpanel-vcard-label"><%= value != null ? "<strong>" : ""%><fmt:message key="setup.ldap.user.vcard.fax" />:<%= value != null ? "</strong>" : ""%></td>
                    <td class="jive-testpanel-vcard-value"><%= failed || value == null? "" : value%></td>
				</tr>
				<tr>
                    <% value = attributes.get(LdapUserTester.BUSINESS_PAGER);
                       failed = value != null && value.contains("{");
                    %>
					<td class="jive-testpanel-vcard-label"><%= value != null ? "<strong>" : ""%><fmt:message key="setup.ldap.user.vcard.pager" />:<%= value != null ? "</strong>" : ""%></td>
                    <td class="jive-testpanel-vcard-value"><%= failed || value == null? "" : value%></td>
				</tr>
				<tr>
					<td colspan="2" class="jive-testpanel-vcard-next">
						<a href="<%= ParamUtils.getParameter(request, "currentPage")%>?test=true&serverType=<%= ParamUtils.getParameter(request, "serverType")%>&userIndex=<%=userIndex%>"><fmt:message key="setup.ldap.user.vcard.test.random" /></a>
					</td>
				</tr>
			</table>
            <% } else { %>
            <h4 class="jive-testError"><fmt:message key="setup.ldap.server.test.status-error" /></h4>
            <p><%= errorDetail %></p>
            <% } %>
		</div>

	</div>
</div>


</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?