diff options
author | Christopher Burger <burgerc@freeside.biz> | 2019-04-15 08:05:48 -0400 |
---|---|---|
committer | Christopher Burger <burgerc@freeside.biz> | 2019-04-15 08:05:48 -0400 |
commit | 1d2cb271a07e021cef5d4cd2f4acf40f716d2daa (patch) | |
tree | 58ea85591d7906fab3ce459628750eb1c8c87ae4 /httemplate/elements | |
parent | 7afd80e3dfcaa34b04f693c40949d7408f7a7ac1 (diff) |
RT# 79913 - Mass agent transfer files
Diffstat (limited to 'httemplate/elements')
-rw-r--r-- | httemplate/elements/agent_transfer_link.html | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/httemplate/elements/agent_transfer_link.html b/httemplate/elements/agent_transfer_link.html new file mode 100644 index 000000000..4256f07f0 --- /dev/null +++ b/httemplate/elements/agent_transfer_link.html @@ -0,0 +1,37 @@ + <FORM NAME="agent_transfer_form"> + <INPUT TYPE="hidden" NAME="search" VALUE="<% $search %>"> + <INPUT TYPE="hidden" NAME="list" VALUE="<% $list %>"> + <INPUT TYPE="hidden" NAME="table" VALUE="cust_main"> + <& /elements/progress-init.html, + 'agent_transfer_form', + [ qw( search list table agentnum) ], + $process_url, + $pdest, + &> + <& /elements/select-agent.html, 'empty_label' => 'Transfer these customers to agent', 'onchange' => 'areyousure()' &> + </FORM> + + <SCRIPT> + function areyousure(href) { + var sel = document.getElementById("agentnum"); + if (sel.selectedIndex == 0) { alert("Please select a new agent to transfer to."); } + else if (confirm("Transfer these customers to agent " + sel.options[sel.selectedIndex].text )) { + process(); + sel.selectedIndex = 0; + } + else { + sel.selectedIndex = 0; + } + } + </SCRIPT> + +<%init> + +my $opt = shift; +my ($search, $list); +$search = encode_base64(nfreeze($opt->{'search'})) if ref ($opt->{'search'}) eq 'HASH'; +$list = encode_base64(nfreeze($opt->{'list'})) if ref ($opt->{'list'}) eq 'ARRAY'; +my $process_url = "${p}misc/process/customers_transfer_to_agent.html"; +my $pdest = { 'message' => 'Transfer Complete' }; + +</%init>
\ No newline at end of file |