+% if ( $field eq 'selfservice_access' ) {
+
+ <SELECT NAME = "<%$name%>_<%$field%>"
+ ID = "<%$id%>_<%$field%>"
+ STYLE = "width: 140px"
+ >
+ <OPTION VALUE="">Disabled
+% if ( $value || $self_base_url ) {
+ <OPTION VALUE="<% $value eq 'Y' ? 'Y' : 'E' %>" <% $value eq 'Y' ? 'SELECTED' : '' %>>Enabled
+% if ( $value eq 'Y' && $self_base_url ) {
+ <OPTION VALUE="R">Re-email
+ <OPTION VALUE="P"><% $pwd_change_label %>
+% }
+% }
+ </SELECT>
+ <& /elements/change_password.html,
+ 'contact_num' => $curr_value,
+ 'custnum' => $opt{'custnum'},
+ 'curr_value' => '',
+ 'no_label_display' => '1',
+ 'noformtag' => '1',
+ 'pre_pwd_field_label' => $id.'_',
+ &>
+ <SCRIPT TYPE="text/javascript">
+ document.getElementById("<%$id%>_<%$field%>").onchange = function() {
+ if (this.value == "P" || this.value == "E") { changepw<%$id%>_toggle(true); }
+ return false
+ }
+ </SCRIPT>
+% } elsif ( $field eq 'invoice_dest' || $field eq 'message_dest' ) {
+% my $curr_value = $cgi->param($name . '_' . $field);
+% $curr_value = $value if !defined($curr_value);
+ <& select.html,
+ field => $name . '_' . $field,
+ curr_value => $curr_value,
+ options => [ '', 'Y' ],
+ option_labels => { '' => 'no', 'Y' => 'yes' },
+ style => 'width: 100%',
+ &>
+% } else {
+ <INPUT TYPE = "text"
+ NAME = "<%$name%>_<%$field%>"
+ ID = "<%$id%>_<%$field%>"
+ SIZE = "<% $size{$field} || 14 %>"
+ VALUE = "<% scalar($cgi->param($name . '_' . $field))
+ || $value |h %>"
+ <% $onchange %>
+ >
+% }
+ <BR>
+ <FONT SIZE="-1"><% $label{$field} %></FONT>