3 border: 1px solid #7e0079;
7 background-color: #ffffff;
11 <A ID="<%$pre%>link" HREF="javascript:void(0)" onclick="<%$pre%>toggle(true)">(<% emt( $change_title ) %>)</A>
12 <DIV ID="<%$pre%>form" CLASS="passwordbox">
13 <FORM METHOD="POST" ACTION="<%$fsurl%>misc/process/change-password.html">
14 <% $change_id_input %>
15 <INPUT TYPE="text" ID="<%$pre%>password" NAME="password" VALUE="<% $curr_value |h%>">
16 <& /elements/random_pass.html, $pre.'password', 'randomize' &>
17 <INPUT TYPE="submit" VALUE="change">
18 % if ($opt{'popup'}) {
19 <INPUT TYPE="button" VALUE="cancel" onclick="parent.cClick();">
22 <INPUT TYPE="button" VALUE="cancel" onclick="<%$pre%>toggle(false)">
24 <DIV ID="<%$pre%>password_result" STYLE="font-size: smaller"></DIV>
25 <& '/elements/validate_password.html',
26 'fieldid' => $pre.'password',
28 'contactnum' => $contactnum,
31 <BR><SPAN STYLE="color: #ff0000"><% $error |h %></SPAN>
35 <SCRIPT TYPE="text/javascript">
36 function <%$pre%>toggle(val) {
37 document.getElementById('<%$pre%>form').style.display =
38 val ? 'inline-block' : 'none';
39 document.getElementById('<%$pre%>link').style.display =
40 val ? 'none' : 'inline';
42 % if ( $error || $opt{'popup'} ) {
49 my $contactnum = $opt{'contact_num'};
50 my $curr_value = $opt{'curr_value'} || '';
51 my $change_title = $opt{'label'} || 'change';
54 my $change_id_input = '';
57 if ($opt{'svc_acct'}) {
58 my $svc_acct = $opt{'svc_acct'};
59 $change_id_input = '<INPUT TYPE="hidden" NAME="svcnum" VALUE="' . $svc_acct->svcnum . '">';
60 $pre .= $svc_acct->svcnum . '_';
61 $svcnum = $svc_acct->svcnum;
63 elsif ($opt{'contact_num'}) {
65 <INPUT TYPE="hidden" NAME="contactnum" VALUE="' . $opt{'contact_num'} . '">
66 <INPUT TYPE="hidden" NAME="custnum" VALUE="' . $opt{'custnum'} . '">
68 $pre .= $opt{'contact_num'} . '_';
72 $change_id_input .= '<INPUT TYPE="hidden" NAME="popup" VALUE="' . $opt{'popup'} . '">';
75 my $error = $cgi->param($pre.'error');