From: ivan Date: Tue, 1 Apr 2008 03:49:17 +0000 (+0000) Subject: use popup_link element for phonenumber.html silly vonage popup X-Git-Tag: root_of_webpay_support~771 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=d6ed8d790ea01fad5bcb42ea3fcb58cf8c5aac2c;hp=4104f4e3d1b387296b16b4a035b4b7f42e0c5977 use popup_link element for phonenumber.html silly vonage popup --- diff --git a/httemplate/elements/phonenumber.html b/httemplate/elements/phonenumber.html index b1ae2aa2a..60414a644 100644 --- a/httemplate/elements/phonenumber.html +++ b/httemplate/elements/phonenumber.html @@ -1,15 +1,24 @@ - - - - +<% include('/elements/init_overlib.html') %> % if ( length($number) ) { - <% $number %> + <% $number %> % if ( $opt{'callable'} && $curuser->option('vonage-username') ) { - Call this number + <% include('/elements/popup_link.html', + 'action' => + 'https://secure.click2callu.com/tpcc/makecall'. + '?username='. uri_escape($curuser->option('vonage-username')). + '&password='. uri_escape($curuser->option('vonage-password')). + "&fromnumber=$vonage_number". + "&tonumber=$snumber", + 'width' => 240, + 'height' => 64, + 'actionlabel' => 'Initiating call', + 'label' => qq!Call this number!, + ) + %> % } %