/sun/hostadmiral/trunk/webapp/mail/alias/list.jsp |
---|
0,0 → 1,78 |
<%@ 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" %> |
<%@ taglib uri="/WEB-INF/hostadmiral-core.tld" prefix="core" %> |
<html> |
<head> |
<meta http-equiv="expires" content="0"> |
<title><bean:message key="ak.hostadmiral.page.mail.alias.list.title" /></title> |
</head> |
<body> |
<h1><bean:message key="ak.hostadmiral.page.mail.alias.list.title" /></h1> |
<html:errors/> |
<table border=1> |
<tr> |
<th><bean:message key="ak.hostadmiral.page.mail.alias.list.alias" /></th> |
<th><bean:message key="ak.hostadmiral.page.mail.alias.list.domain" /></th> |
<th><bean:message key="ak.hostadmiral.page.mail.alias.list.owner" /></th> |
<th><bean:message key="ak.hostadmiral.page.mail.alias.list.enabled" /></th> |
<th> </th> |
<th> </th> |
</tr> |
<logic:iterate name="aliases" id="alias"> |
<tr> |
<td><bean:write name="alias" property="address" /></td> |
<td><bean:write name="alias" property="domain.name" /></td> |
<td><bean:write name="alias" property="owner.login" /></td> |
<td> |
<logic:equal name="alias" property="enabled" value="true">x</logic:equal> |
<logic:notEqual name="alias" property="enabled" value="true"> </logic:notEqual> |
</td> |
<td> |
<core:editable name="alias"> |
<backpath:link action="/mail/alias/edit" paramId="id" paramName="alias" paramProperty="id"><bean:message key="ak.hostadmiral.page.mail.alias.list.edit" /></backpath:link> |
</core:editable> |
<core:notEditable name="alias"> |
<core:rights name="alias" method="mayChangeDestinations"> |
<backpath:link action="/mail/alias/edit" paramId="id" paramName="alias" paramProperty="id"><bean:message key="ak.hostadmiral.page.mail.alias.list.editdests" /></backpath:link> |
</core:rights> |
<core:noRights name="alias" method="mayChangeDestinations"> |
<core:viewable name="alias"> |
<backpath:link action="/mail/alias/edit" paramId="id" paramName="alias" paramProperty="id"><bean:message key="ak.hostadmiral.page.mail.alias.list.view" /></backpath:link> |
</core:viewable> |
<core:notViewable name="alias"> |
|
</core:notViewable> |
</core:noRights> |
</core:notEditable> |
</td> |
<td> |
<core:deleteable name="alias"> |
<backpath:link action="/mail/alias/delete" paramId="id" paramName="alias" paramProperty="id"><bean:message key="ak.hostadmiral.page.mail.alias.list.delete" /></backpath:link> |
</core:deleteable> |
<core:notDeleteable name="alias"> |
|
</core:notDeleteable> |
</td> |
</tr> |
</logic:iterate> |
</table> |
<logic:equal name="allowedToCreate" value="true"> |
<backpath:link action="/mail/alias/edit"><bean:message key="ak.hostadmiral.page.mail.alias.list.add" /></backpath:link> |
</logic:equal> |
<br> |
<backpath:backlink><bean:message key="ak.hostadmiral.page.mail.alias.list.back" /></backpath:backlink> |
</body> |
</html> |
/sun/hostadmiral/trunk/webapp/mail/alias/edit.jsp |
---|
0,0 → 1,157 |
<%@ 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" %> |
<%@ taglib uri="/WEB-INF/hostadmiral-core.tld" prefix="core" %> |
<html> |
<head> |
<meta http-equiv="expires" content="0"> |
<title><bean:message key="ak.hostadmiral.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.hostadmiral.page.mail.alias.edit.title" /></h1> |
<html:errors/> |
<html:form action="/mail/alias/submit" onsubmit="submitForm()"> |
<backpath:current/> |
<html:hidden property="id" /> |
<table border=1> |
<tr> |
<th><bean:message key="ak.hostadmiral.page.mail.alias.edit.address" /></th> |
<td><html:text property="address" /></td> |
<td> </td> |
<td> </td> |
<td> </td> |
</tr> |
<tr> |
<th><bean:message key="ak.hostadmiral.page.mail.alias.edit.domain" /></th> |
<td> |
<html:select property="domain"> |
<html:option value="" key="ak.hostadmiral.page.mail.alias.edit.domain.empty"/> |
<html:options collection="domains" property="id" labelProperty="name" /> |
</html:select> |
</td> |
<td> </td> |
<td> </td> |
<td> </td> |
</tr> |
<tr> |
<th><bean:message key="ak.hostadmiral.page.mail.alias.edit.owner" /></th> |
<td> |
<html:select property="owner"> |
<html:option value="" key="ak.hostadmiral.page.mail.alias.edit.owner.empty"/> |
<html:options collection="users" property="id" labelProperty="login" /> |
</html:select> |
</td> |
<td> </td> |
<td> </td> |
<td> </td> |
</tr> |
<tr> |
<th><bean:message key="ak.hostadmiral.page.mail.alias.edit.enabled" /></th> |
<td><html:checkbox property="enabled" /></td> |
<td> </td> |
<td> </td> |
<td> </td> |
</tr> |
<tr> |
<th><bean:message key="ak.hostadmiral.page.mail.alias.edit.comment" /></th> |
<td><html:textarea property="comment" /></td> |
<td> </td> |
<td> </td> |
<td> </td> |
</tr> |
<tr> |
<th><bean:message key="ak.hostadmiral.page.mail.alias.edit.header.tomailbox" /></th> |
<th><bean:message key="ak.hostadmiral.page.mail.alias.edit.header.toexternal" /></th> |
<th><bean:message key="ak.hostadmiral.page.mail.alias.edit.header.enabled" /></th> |
<th><bean:message key="ak.hostadmiral.page.mail.alias.edit.header.comment" /></th> |
<th> </th> |
</tr> |
<logic:iterate name="ak.hostadmiral.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.hostadmiral.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:checkbox name="dests" property="enabled" indexed="true" /></td> |
<td><html:text name="dests" property="comment" indexed="true" /></td> |
<td><html:submit property="delete.dests" indexed="true"><bean:message key="ak.hostadmiral.page.mail.alias.edit.delete" /></html:submit></td> |
</tr> |
</logic:iterate> |
<tr> |
<td colspan=5><html:submit property="add"><bean:message key="ak.hostadmiral.page.mail.alias.edit.add" /></html:submit></td> |
<tr> |
</tr> |
<td colspan=5> |
<html:submit property="submit"><bean:message key="ak.hostadmiral.page.mail.alias.edit.submit" /></html:submit> |
<backpath:backlink><bean:message key="ak.hostadmiral.page.mail.alias.edit.back" /></backpath:backlink> |
</td> |
</tr> |
</table> |
</html:form> |
<script>loadForm();</script> |
</body> |
</html> |
/sun/hostadmiral/trunk/webapp/mail/alias/editdests.jsp |
---|
0,0 → 1,154 |
<%@ 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" %> |
<%@ taglib uri="/WEB-INF/hostadmiral-core.tld" prefix="core" %> |
<html> |
<head> |
<meta http-equiv="expires" content="0"> |
<title><bean:message key="ak.hostadmiral.page.mail.alias.editdest.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.hostadmiral.page.mail.alias.editdest.title" /></h1> |
<html:errors/> |
<html:form action="/mail/alias/submit" onsubmit="submitForm()"> |
<backpath:current/> |
<html:hidden property="id" /> |
<table border=1> |
<tr> |
<th><bean:message key="ak.hostadmiral.page.mail.alias.editdest.address" /></th> |
<td><bean:write name="alias" property="address" /></td> |
<td> </td> |
<td> </td> |
<td> </td> |
</tr> |
<tr> |
<th><bean:message key="ak.hostadmiral.page.mail.alias.editdest.domain" /></th> |
<td><bean:write name="alias" property="domain.name" /></td> |
<td> </td> |
<td> </td> |
<td> </td> |
</tr> |
<tr> |
<th><bean:message key="ak.hostadmiral.page.mail.alias.editdest.owner" /></th> |
<td><bean:write name="alias" property="owner.login" /></td> |
<td> </td> |
<td> </td> |
<td> </td> |
</tr> |
<tr> |
<th><bean:message key="ak.hostadmiral.page.mail.alias.editdest.enabled" /></th> |
<td> |
<logic:equal name="alias" property="enabled" value="true"> |
<bean:message key="ak.hostadmiral.page.mail.box.view.enabled.true" /> |
</logic:equal> |
<logic:notEqual name="alias" property="enabled" value="true"> |
<bean:message key="ak.hostadmiral.page.mail.box.view.enabled.false" /> |
</logic:notEqual> |
</td> |
<td> </td> |
<td> </td> |
<td> </td> |
</tr> |
<tr> |
<th><bean:message key="ak.hostadmiral.page.mail.alias.editdest.comment" /></th> |
<td><bean:write name="alias" property="comment" /> </td> |
<td> </td> |
<td> </td> |
<td> </td> |
</tr> |
<tr> |
<th><bean:message key="ak.hostadmiral.page.mail.alias.editdest.header.tomailbox" /></th> |
<th><bean:message key="ak.hostadmiral.page.mail.alias.editdest.header.toexternal" /></th> |
<th><bean:message key="ak.hostadmiral.page.mail.alias.editdest.header.enabled" /></th> |
<th><bean:message key="ak.hostadmiral.page.mail.alias.editdest.header.comment" /></th> |
<th> </th> |
</tr> |
<logic:iterate name="ak.hostadmiral.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.hostadmiral.page.mail.alias.editdest.external"/> |
<html:options collection="mailboxes" property="id" labelProperty="login" /> |
</html:select> |
</td> |
<td><html:text name="dests" property="email" indexed="true" /></td> |
<td><html:checkbox name="dests" property="enabled" indexed="true" /></td> |
<td><html:text name="dests" property="comment" indexed="true" /></td> |
<td><html:submit property="delete.dests" indexed="true"><bean:message key="ak.hostadmiral.page.mail.alias.editdest.delete" /></html:submit></td> |
</tr> |
</logic:iterate> |
<tr> |
<td colspan=5><html:submit property="add"><bean:message key="ak.hostadmiral.page.mail.alias.editdest.add" /></html:submit></td> |
<tr> |
</tr> |
<td colspan=5> |
<html:submit property="submit"><bean:message key="ak.hostadmiral.page.mail.alias.editdest.submit" /></html:submit> |
<backpath:backlink><bean:message key="ak.hostadmiral.page.mail.alias.editdest.back" /></backpath:backlink> |
</td> |
</tr> |
</table> |
</html:form> |
<script>loadForm();</script> |
</body> |
</html> |
/sun/hostadmiral/trunk/webapp/mail/alias/view.jsp |
---|
0,0 → 1,32 |
<%@ 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" %> |
<%@ taglib uri="/WEB-INF/hostadmiral-core.tld" prefix="core" %> |
<html> |
<head> |
<meta http-equiv="expires" content="0"> |
<title><bean:message key="ak.hostadmiral.page.mail.alias.view.title" /></title> |
</head> |
<body> |
<h1><bean:message key="ak.hostadmiral.page.mail.alias.view.title" /></h1> |
<h2>FIXME: NOT IMPLEMENTED. DO WE REALLY NEED IT?</h2> |
<html:errors/> |
<table border=1> |
</tr> |
<td colspan=5> |
<backpath:backlink><bean:message key="ak.hostadmiral.page.mail.alias.view.back" /></backpath:backlink> |
</td> |
</tr> |
</table> |
</body> |
</html> |