diff options
author | ivan <ivan> | 2008-04-01 03:49:17 +0000 |
---|---|---|
committer | ivan <ivan> | 2008-04-01 03:49:17 +0000 |
commit | d6ed8d790ea01fad5bcb42ea3fcb58cf8c5aac2c (patch) | |
tree | dcd1177739913bc561747c97b9a1b4f6961b2809 /httemplate | |
parent | 4104f4e3d1b387296b16b4a035b4b7f42e0c5977 (diff) |
use popup_link element for phonenumber.html silly vonage popup
Diffstat (limited to 'httemplate')
-rw-r--r-- | httemplate/elements/phonenumber.html | 21 |
1 files changed, 15 insertions, 6 deletions
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 @@ -<SCRIPT TYPE="text/javascript" SRC="<%$fsurl%>elements/overlibmws.js"></SCRIPT> -<SCRIPT TYPE="text/javascript" SRC="<%$fsurl%>elements/overlibmws_iframe.js"></SCRIPT> -<SCRIPT TYPE="text/javascript" SRC="<%$fsurl%>elements/overlibmws_draggable.js"></SCRIPT> -<SCRIPT TYPE="text/javascript" SRC="<%$fsurl%>elements/iframecontentmws.js"></SCRIPT> +<% include('/elements/init_overlib.html') %> % if ( length($number) ) { - <% $number %> + <% $number %> % if ( $opt{'callable'} && $curuser->option('vonage-username') ) { - <A HREF="javascript:void(0);" onClick="overlib( OLiframeContent('https://secure.click2callu.com/tpcc/makecall?username=<% uri_escape($curuser->option('vonage-username')) %>&password=<% uri_escape($curuser->option('vonage-password')) %>&fromnumber=<% uri_escape($curuser->option('vonage-fromnumber')) %>&tonumber=1<% $snumber %>', 240, 64, 'call_popup'), CAPTION, 'Initiating call', STICKY, AUTOSTATUSCAP, CLOSECLICK, DRAGGABLE, WIDTH, 240, HEIGHT, 64 ); return false;" TITLE="Call this number"><IMG SRC="<%$fsurl%>images/red_telephone_mimooh_01.png" BORDER=0 ALT="Call this number"></A> + <% 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!<IMG SRC="${fsurl}images/red_telephone_mimooh_01.png" BORDER=0 ALT="Call this number">!, + ) + %> % } % |