/sun/webapp/mail/alias/edit.jsp |
---|
0,0 → 1,126 |
<%@ page contentType="text/html;charset=UTF-8" language="java" %> |
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> |
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> |
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> |
<%@ taglib uri="/WEB-INF/ak-backpath.tld" prefix="backpath" %> |
<html> |
<head> |
<meta http-equiv="expires" content="0"> |
<title><bean:message key="ak.webcontrol.page.mail.alias.edit.title" /></title> |
<script> |
function submitForm() |
{ |
idx = 0; |
while(true) { |
var t = document.forms[0].elements["dests[" + (idx++) + "].email"]; |
if(t) t.disabled = false; |
else break; |
} |
} |
function loadForm() |
{ |
idx = 0; |
while(true) { |
var s = document.forms[0].elements["dests[" + (idx++) + "].mailbox"]; |
if(s) mailboxChanged(s); |
else break; |
} |
} |
function mailboxChanged(s) |
{ |
// extract index |
var name = s.name; |
var i1 = name.indexOf("["); |
var i2 = name.indexOf("]"); |
if(i1 < 0 || i2 < 0) return; |
var idx = name.substring(i1+1, i2); |
// find text field |
var t = document.forms[0].elements["dests[" + idx + "].email"]; |
// change status |
if(t) { |
if(s.options[s.selectedIndex] && s.options[s.selectedIndex].value != '') { |
t.disabled = true; |
} |
else { |
t.disabled = false; |
} |
} |
} |
</script> |
</head> |
<body> |
<h1><bean:message key="ak.webcontrol.page.mail.alias.edit.title" /></h1> |
<html:errors/> |
<html:form action="/mail/alias/submit" onsubmit="submitForm()"> |
<backpath:current/> |
<html:hidden property="id" /> |
<p> |
<bean:message key="ak.webcontrol.page.mail.alias.edit.address" />: |
<html:text property="address" /> |
<br> |
<bean:message key="ak.webcontrol.page.mail.alias.edit.domain" />: |
<html:select property="domain"> |
<html:option value="" key="ak.webcontrol.page.mail.alias.edit.domain.empty"/> |
<html:options collection="domains" property="id" labelProperty="name" /> |
</html:select> |
<br> |
<bean:message key="ak.webcontrol.page.mail.alias.edit.owner" />: |
<html:select property="owner"> |
<html:option value="" key="ak.webcontrol.page.mail.alias.edit.owner.empty"/> |
<html:options collection="users" property="id" labelProperty="login" /> |
</html:select> |
<br> |
</p> |
<table> |
<tr> |
<th><bean:message key="ak.webcontrol.page.mail.alias.edit.header.tomailbox" /></th> |
<th><bean:message key="ak.webcontrol.page.mail.alias.edit.header.toexternal" /></th> |
<th> </th> |
</tr> |
<logic:iterate name="ak.webcontrol.core.form.MailAliasEditForm" property="dests" id="dests" indexId="iid"> |
<tr> |
<td> |
<html:hidden name="dests" property="id" indexed="true" /> |
<html:select name="dests" property="mailbox" indexed="true" onchange="mailboxChanged(this)"> |
<html:option value="" key="ak.webcontrol.page.mail.alias.edit.external"/> |
<html:options collection="mailboxes" property="id" labelProperty="login" /> |
</html:select> |
</td> |
<td><html:text name="dests" property="email" indexed="true" /></td> |
<td><html:submit property="delete.dests" indexed="true"><bean:message key="ak.webcontrol.page.mail.alias.edit.delete" /></html:submit></td> |
</tr> |
</logic:iterate> |
<tr> |
<td colspan=3><html:submit property="add"><bean:message key="ak.webcontrol.page.mail.alias.edit.add" /></html:submit></td> |
<tr> |
</tr> |
<td colspan=3> |
<html:submit property="submit"><bean:message key="ak.webcontrol.page.mail.alias.edit.submit" /></html:submit> |
<backpath:backlink><bean:message key="ak.webcontrol.page.mail.alias.edit.cancel" /></backpath:backlink> |
</td> |
</tr> |
</table> |
</html:form> |
<script>loadForm();</script> |
</body> |
</html> |
/sun/webapp/mail/alias/list.jsp |
---|
0,0 → 1,41 |
<%@ page contentType="text/html;charset=UTF-8" language="java" %> |
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> |
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> |
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> |
<%@ taglib uri="/WEB-INF/ak-backpath.tld" prefix="backpath" %> |
<html> |
<head> |
<meta http-equiv="expires" content="0"> |
<title><bean:message key="ak.webcontrol.page.mail.alias.list.title" /></title> |
</head> |
<body> |
<h1><bean:message key="ak.webcontrol.page.mail.alias.list.title" /></h1> |
<html:errors/> |
<table> |
<tr> |
<th><bean:message key="ak.webcontrol.page.mail.alias.list.alias" /></th> |
<th> </th> |
<th> </th> |
</tr> |
<logic:iterate name="aliases" id="alias"> |
<tr> |
<td><bean:write name="alias" property="address" /></td> |
<td><backpath:link action="/mail/alias/edit" paramId="id" paramName="alias" paramProperty="id"><bean:message key="ak.webcontrol.page.mail.alias.list.edit" /></backpath:link></td> |
<td><backpath:link action="/mail/alias/delete" paramId="id" paramName="alias" paramProperty="id"><bean:message key="ak.webcontrol.page.mail.alias.list.delete" /></backpath:link></td> |
</tr> |
</logic:iterate> |
</table> |
<backpath:link action="/mail/alias/edit"><bean:message key="ak.webcontrol.page.mail.alias.list.add" /></backpath:link> |
<br> |
<backpath:backlink><bean:message key="ak.webcontrol.page.mail.alias.list.back" /></backpath:backlink> |
</body> |
</html> |
/sun/webapp/mail/box/edit.jsp |
---|
0,0 → 1,75 |
<%@ page contentType="text/html;charset=UTF-8" language="java" %> |
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> |
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> |
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> |
<%@ taglib uri="/WEB-INF/ak-backpath.tld" prefix="backpath" %> |
<html> |
<head> |
<meta http-equiv="expires" content="0"> |
<title><bean:message key="ak.webcontrol.page.mail.box.edit.title" /></title> |
</head> |
<body> |
<h1><bean:message key="ak.webcontrol.page.mail.box.edit.title" /></h1> |
<html:errors/> |
<html:form action="/mail/box/submit"> |
<backpath:current /> |
<html:hidden property="id" /> |
<bean:message key="ak.webcontrol.page.mail.box.edit.login" />: |
<html:text property="login" /> |
<br> |
FIXME: checkbox to get password from owner |
<br> |
<bean:message key="ak.webcontrol.page.mail.box.edit.password" />: |
<html:password property="password" redisplay="false" /> |
<br> |
<bean:message key="ak.webcontrol.page.mail.box.edit.password_again" />: |
<html:password property="password2" redisplay="false" /> |
<br> |
<bean:message key="ak.webcontrol.page.mail.box.edit.domain" />: |
<html:select property="domain"> |
<html:option value="" key="ak.webcontrol.page.mail.box.edit.domain.empty"/> |
<html:options collection="domains" property="id" labelProperty="name" /> |
</html:select> |
<br> |
<bean:message key="ak.webcontrol.page.mail.box.edit.owner" />: |
<html:select property="owner"> |
<html:option value="" key="ak.webcontrol.page.mail.box.edit.owner.empty"/> |
<html:options collection="users" property="id" labelProperty="login" /> |
</html:select> |
<br> |
<bean:message key="ak.webcontrol.page.mail.box.edit.systemuser" />: |
<html:select property="systemuser"> |
<html:option value="" key="ak.webcontrol.page.mail.box.edit.systemuser.empty"/> |
<html:options collection="systemusers" property="id" labelProperty="name" /> |
</html:select> |
FIXME: uid+name should be shown |
<br> |
<html:checkbox property="viruscheck" /> |
<bean:message key="ak.webcontrol.page.mail.box.edit.viruscheck" /> |
<br> |
<html:checkbox property="spamcheck" /> |
<bean:message key="ak.webcontrol.page.mail.box.edit.spamcheck" /> |
<br> |
<html:submit><bean:message key="ak.webcontrol.page.mail.box.edit.submit" /></html:submit> |
<backpath:backlink><bean:message key="ak.webcontrol.page.mail.box.edit.back" /></backpath:backlink> |
</html:form> |
</body> |
</html> |
/sun/webapp/mail/box/list.jsp |
---|
0,0 → 1,44 |
<%@ page contentType="text/html;charset=UTF-8" language="java" %> |
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> |
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> |
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> |
<%@ taglib uri="/WEB-INF/ak-backpath.tld" prefix="backpath" %> |
<html> |
<head> |
<meta http-equiv="expires" content="0"> |
<title><bean:message key="ak.webcontrol.page.mail.box.list.title" /></title> |
</head> |
<body> |
<h1><bean:message key="ak.webcontrol.page.mail.box.list.title" /></h1> |
<html:errors/> |
<table> |
<tr> |
<th><bean:message key="ak.webcontrol.page.mail.box.list.login" /></th> |
<th><bean:message key="ak.webcontrol.page.mail.box.list.domain" /></th> |
<th><bean:message key="ak.webcontrol.page.mail.box.list.owner" /></th> |
<th> </th> |
</tr> |
<logic:iterate name="mailboxes" id="mailbox"> |
<tr> |
<td><bean:write name="mailbox" property="login" /></td> |
<td><bean:write name="mailbox" property="domain.name" /></td> |
<td><bean:write name="mailbox" property="owner.login" /></td> |
<td><backpath:link action="/mail/box/edit" paramId="id" paramName="mailbox" paramProperty="id"><bean:message key="ak.webcontrol.page.mail.box.list.edit" /></backpath:link></td> |
<td><backpath:link action="/mail/box/delete" paramId="id" paramName="mailbox" paramProperty="id"><bean:message key="ak.webcontrol.page.mail.box.list.delete" /></backpath:link></td> |
</tr> |
</logic:iterate> |
</table> |
<backpath:link action="/mail/box/edit"><bean:message key="ak.webcontrol.page.mail.box.list.add" /></backpath:link> |
<br> |
<backpath:backlink><bean:message key="ak.webcontrol.page.mail.box.list.back" /></backpath:backlink> |
</body> |
</html> |