diff --git a/app/call_broadcast/app_languages.php b/app/call_broadcast/app_languages.php index 0da0c9cf0b..4b9d418767 100644 --- a/app/call_broadcast/app_languages.php +++ b/app/call_broadcast/app_languages.php @@ -143,6 +143,11 @@ $text['button-save']['pt-pt'] = "Guardar"; $text['button-save']['fr-fr'] = "Sauvegarder"; + $text['button-cancel']['en-us'] = "Cancel"; + $text['button-cancel']['es-cl'] = "Cancelar"; + $text['button-cancel']['pt-pt'] = "Cancelar"; + $text['button-cancel']['fr-fr'] = "Annuler"; + //v_call_broadcast_send $text['label-view-calls']['en-us'] = "View Calls"; $text['label-view-calls']['es-cl'] = "Ver llamadas"; @@ -159,4 +164,4 @@ $text['label-has-been']['pt-pt'] = "foi inicializada"; $text['label-has-been']['fr-fr'] = "a commencé"; -?> +?> \ No newline at end of file diff --git a/app/call_broadcast/call_broadcast_cancel.php b/app/call_broadcast/call_broadcast_cancel.php new file mode 100644 index 0000000000..be651138d8 --- /dev/null +++ b/app/call_broadcast/call_broadcast_cancel.php @@ -0,0 +1,64 @@ + + Portions created by the Initial Developer are Copyright (C) 2008-2012 + the Initial Developer. All Rights Reserved. + + Contributor(s): + Mark J Crane +*/ +include "root.php"; +require_once "resources/require.php"; +require_once "resources/check_auth.php"; +if (permission_exists('call_broadcast_send')) { + //access granted +} +else { + echo "access denied"; + exit; +} + +//add multi-lingual support + require_once "app_languages.php"; + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; + } + +//get the html values and set them as variables + if (count($_GET)>0) { + $uuid = trim($_GET["id"]); + } + +//show the header + require_once "resources/header.php"; + echo "\n"; + +//show the result + if (count($_GET) > 0) { + $fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']); + if ($fp) { + $cmd = "sched_del ".$uuid; + $result = event_socket_request($fp, 'api '.$cmd); + echo htmlentities($result); + } + } + +//show the footer + require_once "resources/footer.php"; +?> \ No newline at end of file diff --git a/app/call_broadcast/call_broadcast_edit.php b/app/call_broadcast/call_broadcast_edit.php index 7f8e37a83c..7ac85bd520 100644 --- a/app/call_broadcast/call_broadcast_edit.php +++ b/app/call_broadcast/call_broadcast_edit.php @@ -231,6 +231,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "\n"; echo "".$text['label-call-broadcast']."\n"; echo "\n"; + echo " \n"; echo " \n"; echo "\n"; echo "\n";