Warning: Attempt to read property "date" on null in /home/www/websvn.26th.net/html/blame.php on line 247

Warning: Attempt to read property "msg" on null in /home/www/websvn.26th.net/html/blame.php on line 247

Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/www/websvn.26th.net/html/blame.php on line 247
WebSVN – general – Blame – //hostadmiral/trunk/webapp/mail/alias/edit.jsp – Rev 899

Subversion Repositories general

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
899 dev 1
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
2
<%@ taglib uri="/WEB-INF/struts-bean.tld"  prefix="bean"     %>
3
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"    %>
4
<%@ taglib uri="/WEB-INF/struts-html.tld"  prefix="html"     %>
5
<%@ taglib uri="/WEB-INF/ak-backpath.tld"  prefix="backpath" %>
6
<html>
7
 
8
<head>
9
	<meta http-equiv="expires" content="0">
10
	<title><bean:message key="ak.webcontrol.page.mail.alias.edit.title" /></title>
11
	<script>
12
	    function submitForm()
13
	    {
14
	    	idx = 0;
15
	    	while(true) {
16
		    	var t = document.forms[0].elements["dests[" + (idx++) + "].email"];
17
		    	if(t) t.disabled = false;
18
		    	else break;
19
	    	}
20
	    }
21
 
22
	    function loadForm()
23
	    {
24
	    	idx = 0;
25
	    	while(true) {
26
		    	var s = document.forms[0].elements["dests[" + (idx++) + "].mailbox"];
27
		    	if(s) mailboxChanged(s);
28
		    	else break;
29
	    	}
30
	    }
31
 
32
	    function mailboxChanged(s)
33
	    {
34
	    	// extract index
35
	    	var name = s.name;
36
	    	var i1 = name.indexOf("[");
37
	    	var i2 = name.indexOf("]");
38
 
39
	    	if(i1 < 0 || i2 < 0) return;
40
 
41
	    	var idx = name.substring(i1+1, i2);
42
 
43
	    	// find text field
44
	    	var t = document.forms[0].elements["dests[" + idx + "].email"];
45
 
46
	        // change status
47
	    	if(t) {
48
	    		if(s.options[s.selectedIndex] && s.options[s.selectedIndex].value != '') {
49
	    		  t.disabled = true;
50
	    		}
51
	    		else {
52
	    		  t.disabled = false;
53
	    		}
54
	    	}
55
	    }
56
	</script>
57
</head>
58
 
59
<body>
60
 
61
<h1><bean:message key="ak.webcontrol.page.mail.alias.edit.title" /></h1>
62
 
63
<html:errors/>
64
 
65
<html:form action="/mail/alias/submit" onsubmit="submitForm()">
66
<backpath:current/>
67
<html:hidden property="id" />
68
 
69
<p>
70
	<bean:message key="ak.webcontrol.page.mail.alias.edit.address" />:
71
		<html:text property="address" />
72
	<br>
73
 
74
	<bean:message key="ak.webcontrol.page.mail.alias.edit.domain" />:
75
		<html:select property="domain">
76
			<html:option value="" key="ak.webcontrol.page.mail.alias.edit.domain.empty"/>
77
			<html:options collection="domains" property="id" labelProperty="name" />
78
		</html:select>
79
	<br>
80
 
81
	<bean:message key="ak.webcontrol.page.mail.alias.edit.owner" />:
82
		<html:select property="owner">
83
			<html:option value="" key="ak.webcontrol.page.mail.alias.edit.owner.empty"/>
84
			<html:options collection="users" property="id" labelProperty="login" />
85
		</html:select>
86
	<br>
87
</p>
88
 
89
<table>
90
	<tr>
91
		<th><bean:message key="ak.webcontrol.page.mail.alias.edit.header.tomailbox" /></th>
92
		<th><bean:message key="ak.webcontrol.page.mail.alias.edit.header.toexternal" /></th>
93
		<th>&nbsp;</th>
94
	</tr>
95
 
96
<logic:iterate name="ak.webcontrol.core.form.MailAliasEditForm" property="dests" id="dests" indexId="iid">
97
	<tr>
98
		<td>
99
			<html:hidden name="dests" property="id" indexed="true" />
100
			<html:select name="dests" property="mailbox" indexed="true" onchange="mailboxChanged(this)">
101
				<html:option value="" key="ak.webcontrol.page.mail.alias.edit.external"/>
102
				<html:options collection="mailboxes" property="id" labelProperty="login" />
103
			</html:select>
104
		</td>
105
		<td><html:text name="dests" property="email" indexed="true" /></td>
106
		<td><html:submit property="delete.dests" indexed="true"><bean:message key="ak.webcontrol.page.mail.alias.edit.delete" /></html:submit></td>
107
	</tr>
108
</logic:iterate>
109
 
110
	<tr>
111
		<td colspan=3><html:submit property="add"><bean:message key="ak.webcontrol.page.mail.alias.edit.add" /></html:submit></td>
112
	<tr>
113
	</tr>
114
		<td colspan=3>
115
			<html:submit property="submit"><bean:message key="ak.webcontrol.page.mail.alias.edit.submit" /></html:submit>
116
            <backpath:backlink><bean:message key="ak.webcontrol.page.mail.alias.edit.cancel" /></backpath:backlink>
117
		</td>
118
	</tr>
119
</table>
120
 
121
</html:form>
122
<script>loadForm();</script>
123
 
124
</body>
125
 
126
</html>