1 % if ( $communigate ) {
4 <% ntable("#cccccc",2) %>
6 <% include('/elements/tr-checkbox.html',
7 'label' => 'Password modification',
8 'field' => 'acct_def_password_selfchange',
9 'curr_value' => $svc_domain->acct_def_password_selfchange,
14 <% include('/elements/tr-checkbox.html',
15 'label' => 'Password recovery',
16 'field' => 'acct_def_password_recover',
17 'curr_value' => $svc_domain->acct_def_password_recover,
23 <TD ALIGN="right">Enabled services
25 <TD><% include('/elements/communigate_pro-accessmodes.html',
26 'element_name_prefix' => 'acct_def_cgp_accessmodes_',
27 'curr_value' => $svc_domain->acct_def_cgp_accessmodes,
33 <% include('/elements/tr-input-text.html',
34 'label' => 'Mail storage limit',
35 'field' => 'acct_def_quota',
36 'curr_value' => $svc_domain->acct_def_quota,
39 <% include('/elements/tr-input-text.html',
40 'label' => 'File storage limit',
41 'field' => 'acct_def_file_quota',
42 'curr_value' => $svc_domain->acct_def_file_quota,
45 <% include('/elements/tr-input-text.html',
46 'label' => 'Files limit',
47 'field' => 'acct_def_file_maxnum',
48 'curr_value' => $svc_domain->acct_def_file_maxnum,
51 <% include('/elements/tr-input-text.html',
52 'label' => 'File size limit',
53 'field' => 'acct_def_file_maxsize',
54 'curr_value' => $svc_domain->acct_def_file_maxsize,
58 <% include('/elements/tr-select.html',
59 'label' => 'Allowed mail rules',
60 'field' => 'acct_def_cgp_rulesallowed',
61 'options' => [ '', 'No', 'Filter Only', 'All But Exec', 'Any' ],
63 '' => 'default (No)', #No always the default?
65 'curr_value' => $svc_domain->acct_def_cgp_rulesallowed,
69 <% include('/elements/tr-checkbox.html',
70 'label' => 'RPOP modifications',
71 'field' => 'acct_def_cgp_rpopallowed',
72 'curr_value' => $svc_domain->acct_def_cgp_rpopallowed,
77 <% include('/elements/tr-checkbox.html',
78 'label' => 'Accepts mail to "all"',
79 'field' => 'acct_def_cgp_mailtoall',
80 'curr_value' => $svc_domain->acct_def_cgp_mailtoall,
85 <% include('/elements/tr-checkbox.html',
86 'label' => 'Add trailer to sent mail',
87 'field' => 'acct_def_cgp_addmailtrailer',
88 'curr_value' => $svc_domain->acct_def_cgp_addmailtrailer,
93 %# more false laziness w/svc_acct acct_def
94 <% include('/elements/tr-select.html',
95 'label' => 'Archive messages after',
96 'field' => 'acct_def_cgp_archiveafter',
97 'options' => [ '', 0, 86400, 172800, 259200, 432000, 604800,
98 1209600, 2592000, 7776000, 15552000, 31536000,
102 '' => 'default (730 days)',#730 always default?
109 1209600 => '2 weeks',
110 2592000 => '30 days',
111 7776000 => '90 days',
112 15552000 => '180 days',
113 31536000 => '365 days',
114 63072000 => '730 days',
116 'curr_value' => $svc_domain->acct_def_cgp_archiveafter,
120 %# false laziness w/svc_acct acct_def
122 <TD ALIGN="right">Message delete method</TD>
124 <SELECT NAME="acct_def_cgp_deletemode">
125 % for ( 'Move To Trash', 'Immediately', 'Mark' ) {
126 <OPTION VALUE="<% $_ %>"
127 <% $_ eq $svc_domain->acct_def_cgp_deletemode ? 'SELECTED' : '' %>
134 <% include('/elements/tr-select.html',
135 'label' => 'On logout remove trash',
136 'field' => 'acct_def_cgp_emptytrash',
137 'options' => $svc_domain->cgp_emptytrash_values,
139 '' => 'default (92 days)', #right?
141 'curr_value' => $svc_domain->acct_def_cgp_emptytrash,
145 <% include('/elements/tr-select.html',
146 'label' => 'Language',
147 'field' => 'acct_def_cgp_language',
148 'options' => [ '', qw( English Arabic Chinese Dutch French German Hebrew Italian Japanese Portuguese Russian Slovak Spanish Thai ) ],
150 '' => 'default (English)',
152 'curr_value' => $svc_domain->acct_def_cgp_language,
156 <% include('/elements/tr-select.html',
157 'label' => 'Time zone',
158 'field' => 'acct_def_cgp_timezone',
159 'options' => $svc_domain->cgp_timezone_values,
161 '' => 'default (HostOS)',
163 'curr_value' => $svc_domain->acct_def_cgp_timezone,
167 <% include('/elements/tr-select.html',
169 'field' => 'acct_def_cgp_skinname',
170 'options' => [ '', '***', 'GoldFleece', 'Skin2' ],
172 '' => 'default (***)',
174 'curr_value' => $svc_domain->acct_def_cgp_skinname,
178 <% include('/elements/tr-select.html',
179 'label' => 'Pronto style',
180 'field' => 'acct_def_cgp_prontoskinname',
181 'options' => [ '', 'Pronto', 'Pronto-darkflame', 'Pronto-steel', 'Pronto-twilight', ],
182 'curr_value' => $svc_domain->acct_def_cgp_prontoskinname,
186 <% include('/elements/tr-select.html',
187 'label' => 'Send read receipts',
188 'field' => 'acct_def_cgp_sendmdnmode',
189 'options' => [ '', 'Never', 'Manually', 'Automatically' ],
191 '' => 'default (Automatically)',
193 'curr_value' => $svc_domain->acct_def_cgp_language,
202 % foreach my $f (qw( password_selfchange password_recover cgp_accessmodes
203 % quota file_quota file_maxnum file_maxsize
204 % cgp_rulesallowed cgp_rpopallowed cgp_mailtoall
206 % cgp_deletemode cgp_emptytrash cgp_language
207 % cgp_timezone cgp_skinname cgp_sendmdnmode
209 <INPUT TYPE="hidden" NAME="acct_def_<%$f%>" VALUE="<% $svc_domain->get("acct_def_$f") %>">
218 my $svc_domain = $opt{'svc_domain'};
219 my $part_svc = $opt{'part_svc'};
221 my $communigate = $opt{'communigate'};