mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Tab the app_languages.php file. Change $content_broadcast to $content. Change the save button on the edit page from displaying array to showing the correct label 'Save'.
This commit is contained in:
@@ -1,100 +1,100 @@
|
||||
<?php
|
||||
|
||||
//v_call_broadcast
|
||||
$content_broadcast['title']['en-us'] = 'Call Broadcast List';
|
||||
$content_broadcast['title']['pt-pt'] = 'Lista de Chamadas Broadcast';
|
||||
//v_call_broadcast
|
||||
$content['title']['en-us'] = 'Call Broadcast List';
|
||||
$content['title']['pt-pt'] = 'Lista de Chamadas Broadcast';
|
||||
|
||||
$content_broadcast['label-name']['en-us'] = 'Name';
|
||||
$content_broadcast['label-name']['pt-pt'] = 'Nome';
|
||||
$content['label-name']['en-us'] = 'Name';
|
||||
$content['label-name']['pt-pt'] = 'Nome';
|
||||
|
||||
$content_broadcast['label-concurrent-limit']['en-us'] = 'Concurrent Limit';
|
||||
$content_broadcast['label-concurrent-limit']['pt-pt'] = 'Limite de concorrencia';
|
||||
$content['label-concurrent-limit']['en-us'] = 'Concurrent Limit';
|
||||
$content['label-concurrent-limit']['pt-pt'] = 'Limite de concorrencia';
|
||||
|
||||
$content_broadcast['label-description']['en-us'] = 'Description';
|
||||
$content_broadcast['label-description']['pt-pt'] = 'Descrição';
|
||||
$content['label-description']['en-us'] = 'Description';
|
||||
$content['label-description']['pt-pt'] = 'Descrição';
|
||||
|
||||
$content_broadcast['confirm-delete-info']['en-us'] = 'Do you really want to delete this?';
|
||||
$content_broadcast['confirm-delete-info']['pt-pt'] = 'Deseja realmente eliminar isto?';
|
||||
$content['confirm-delete-info']['en-us'] = 'Do you really want to delete this?';
|
||||
$content['confirm-delete-info']['pt-pt'] = 'Deseja realmente eliminar isto?';
|
||||
|
||||
//v_call_broadcast_delete
|
||||
$content_broadcast['confirm-delete']['en-us'] = 'Delete Complete';
|
||||
$content_broadcast['confirm-delete']['pt-pt'] = 'Eliminação Completa';
|
||||
//v_call_broadcast_delete
|
||||
$content['confirm-delete']['en-us'] = 'Delete Complete';
|
||||
$content['confirm-delete']['pt-pt'] = 'Eliminação Completa';
|
||||
|
||||
//v_call_broadcast_edit
|
||||
$content_broadcast['confirm-name']['en-us'] = 'Please provide: Name';
|
||||
$content_broadcast['confirm-name']['pt-pt'] = 'Por favor, forneça: Nome';
|
||||
//v_call_broadcast_edit
|
||||
$content['confirm-name']['en-us'] = 'Please provide: Name';
|
||||
$content['confirm-name']['pt-pt'] = 'Por favor, forneça: Nome';
|
||||
|
||||
$content_broadcast['confirm-add']['en-us'] = 'Add Complete';
|
||||
$content_broadcast['confirm-add']['pt-pt'] = 'Adição Completa';
|
||||
$content['confirm-add']['en-us'] = 'Add Complete';
|
||||
$content['confirm-add']['pt-pt'] = 'Adição Completa';
|
||||
|
||||
$content_broadcast['confirm-update']['en-us'] = 'Update Complete';
|
||||
$content_broadcast['confirm-update']['pt-pt'] = 'Actualização Completa';
|
||||
$content['confirm-update']['en-us'] = 'Update Complete';
|
||||
$content['confirm-update']['pt-pt'] = 'Actualização Completa';
|
||||
|
||||
$content_broadcast['label-call-broadcast']['en-us'] = 'Call Broadcast';
|
||||
$content_broadcast['label-call-broadcast']['pt-pt'] = 'Chamada Broadcast';
|
||||
$content['label-call-broadcast']['en-us'] = 'Call Broadcast';
|
||||
$content['label-call-broadcast']['pt-pt'] = 'Chamada Broadcast';
|
||||
|
||||
$content_broadcast['label-call-broadcast-edit']['en-us'] = 'Call Broadcast Edit';
|
||||
$content_broadcast['label-call-broadcast-edit']['pt-pt'] = 'Editar Chamada Broadcast';
|
||||
$content['label-call-broadcast-edit']['en-us'] = 'Call Broadcast Edit';
|
||||
$content['label-call-broadcast-edit']['pt-pt'] = 'Editar Chamada Broadcast';
|
||||
|
||||
$content_broadcast['button-back']['en-us'] = 'Back';
|
||||
$content_broadcast['button-back']['pt-pt'] = 'Voltar';
|
||||
$content['button-back']['en-us'] = 'Back';
|
||||
$content['button-back']['pt-pt'] = 'Voltar';
|
||||
|
||||
$content_broadcast['description-name']['en-us'] = 'Enter the name here.';
|
||||
$content_broadcast['description-name']['pt-pt'] = 'Insira aqui o nome.';
|
||||
$content['description-name']['en-us'] = 'Enter the name here.';
|
||||
$content['description-name']['pt-pt'] = 'Insira aqui o nome.';
|
||||
|
||||
$content_broadcast['label-timeout']['en-us'] = 'Timeout';
|
||||
$content_broadcast['label-timeout']['pt-pt'] = 'Tempo Limite';
|
||||
$content['label-timeout']['en-us'] = 'Timeout';
|
||||
$content['label-timeout']['pt-pt'] = 'Tempo Limite';
|
||||
|
||||
$content_broadcast['description-timeout']['en-us'] = 'Limit the length of the call. Leave this empty for no limit.';
|
||||
$content_broadcast['description-timeout']['pt-pt'] = 'Limitar a duração da chamada. Deixe em branco para não ter limite.';
|
||||
$content['description-timeout']['en-us'] = 'Limit the length of the call. Leave this empty for no limit.';
|
||||
$content['description-timeout']['pt-pt'] = 'Limitar a duração da chamada. Deixe em branco para não ter limite.';
|
||||
|
||||
$content_broadcast['description-concurrent-limit']['en-us'] = 'Limit the approximate number of concurrent calls. Leave this empty for no limit.';
|
||||
$content_broadcast['description-concurrent-limit']['pt-pt'] = 'Limitar o número de chamadas simultâneas. Deixe em branco para não ter limite.';
|
||||
$content['description-concurrent-limit']['en-us'] = 'Limit the approximate number of concurrent calls. Leave this empty for no limit.';
|
||||
$content['description-concurrent-limit']['pt-pt'] = 'Limitar o número de chamadas simultâneas. Deixe em branco para não ter limite.';
|
||||
|
||||
$content_broadcast['label-callerid-name']['en-us'] = 'Caller ID Name';
|
||||
$content_broadcast['label-callerid-name']['pt-pt'] = 'Nome de Origem';
|
||||
$content['label-callerid-name']['en-us'] = 'Caller ID Name';
|
||||
$content['label-callerid-name']['pt-pt'] = 'Nome de Origem';
|
||||
|
||||
$content_broadcast['label-callerid-number']['en-us'] = 'Caller ID Number';
|
||||
$content_broadcast['label-callerid-number']['pt-pt'] = 'Numero de Origem';
|
||||
$content['label-callerid-number']['en-us'] = 'Caller ID Number';
|
||||
$content['label-callerid-number']['pt-pt'] = 'Numero de Origem';
|
||||
|
||||
$content_broadcast['description-callerid-name']['en-us'] = 'Applicable if the provider allow the Caller ID Name to be set. default: anonymous';
|
||||
$content_broadcast['description-callerid-name']['pt-pt'] = 'Aplicável se o provedor permitir o nome de origem para serem enviadas as chamadas. padrão: anonymous';
|
||||
$content['description-callerid-name']['en-us'] = 'Applicable if the provider allow the Caller ID Name to be set. default: anonymous';
|
||||
$content['description-callerid-name']['pt-pt'] = 'Aplicável se o provedor permitir o nome de origem para serem enviadas as chamadas. padrão: anonymous';
|
||||
|
||||
$content_broadcast['description-callerid-number']['en-us'] = 'Applicable if the provider that allow the Caller ID number to be sent. default: 0000000000';
|
||||
$content_broadcast['description-callerid-number']['pt-pt'] = 'Aplicável se o provedor permitir o numero de origem para serem eninationviadas as chamadas. padrão: 0000000000';
|
||||
$content['description-callerid-number']['en-us'] = 'Applicable if the provider that allow the Caller ID number to be sent. default: 0000000000';
|
||||
$content['description-callerid-number']['pt-pt'] = 'Aplicável se o provedor permitir o numero de origem para serem eninationviadas as chamadas. padrão: 0000000000';
|
||||
|
||||
$content_broadcast['label-destination']['en-us'] = 'Destination Number';
|
||||
$content_broadcast['label-destination']['pt-pt'] = 'Numero de Destino';
|
||||
$content['label-destination']['en-us'] = 'Destination Number';
|
||||
$content['label-destination']['pt-pt'] = 'Numero de Destino';
|
||||
|
||||
$content_broadcast['description-destination']['en-us'] = 'Send the call to the extension an IVR Menu, Conference Room, or any other number.';
|
||||
$content_broadcast['description-destination']['pt-pt'] = 'Enviar a chamada para a extensão de um menu de IVR, Sala de Conferência, ou qualquer outro número.';
|
||||
$content['description-destination']['en-us'] = 'Send the call to the extension an IVR Menu, Conference Room, or any other number.';
|
||||
$content['description-destination']['pt-pt'] = 'Enviar a chamada para a extensão de um menu de IVR, Sala de Conferência, ou qualquer outro número.';
|
||||
|
||||
$content_broadcast['label-phone']['en-us'] = 'Phone Number List';
|
||||
$content_broadcast['label-phone']['pt-pt'] = 'Lista de Números de Telefone';
|
||||
$content['label-phone']['en-us'] = 'Phone Number List';
|
||||
$content['label-phone']['pt-pt'] = 'Lista de Números de Telefone';
|
||||
|
||||
$content_broadcast['description-phone']['en-us'] = 'Optional, set a list of phone numbers one per row in the following format: 123-123-1234|Last Name, First Name';
|
||||
$content_broadcast['description-phone']['pt-pt'] = 'Opcional, definir uma lista de números de telefone, um por linha no seguinte formato: 123-123-1234 | Sobrenome, Nome';
|
||||
$content['description-phone']['en-us'] = 'Optional, set a list of phone numbers one per row in the following format: 123-123-1234|Last Name, First Name';
|
||||
$content['description-phone']['pt-pt'] = 'Opcional, definir uma lista de números de telefone, um por linha no seguinte formato: 123-123-1234 | Sobrenome, Nome';
|
||||
|
||||
$content_broadcast['label-description']['en-us'] = 'Description';
|
||||
$content_broadcast['label-description']['pt-pt'] = 'Descrição';
|
||||
$content['label-description']['en-us'] = 'Description';
|
||||
$content['label-description']['pt-pt'] = 'Descrição';
|
||||
|
||||
$content_broadcast['description-info']['en-us'] = 'Enter the description here.';
|
||||
$content_broadcast['description-info']['pt-pt'] = 'Insira aqui a descrição';
|
||||
$content['description-info']['en-us'] = 'Enter the description here.';
|
||||
$content['description-info']['pt-pt'] = 'Insira aqui a descrição';
|
||||
|
||||
$content_broadcast['button-send']['en-us'] = 'Send Broadcast';
|
||||
$content_broadcast['button-send']['pt-pt'] = 'Enviar Broadcast';
|
||||
$content['button-send']['en-us'] = 'Send Broadcast';
|
||||
$content['button-send']['pt-pt'] = 'Enviar Broadcast';
|
||||
|
||||
$content_broadcast['button-save']['en-us'] = 'Save';
|
||||
$content_broadcast['button-save']['pt-pt'] = 'Guardar';
|
||||
$content['button-save']['en-us'] = 'Save';
|
||||
$content['button-save']['pt-pt'] = 'Guardar';
|
||||
|
||||
//v_call_broadcast_send
|
||||
$content_broadcast['label-viewcalls']['en-us'] = 'View Calls';
|
||||
$content_broadcast['label-viewcalls']['pt-pt'] = 'Ver Chamadas';
|
||||
//v_call_broadcast_send
|
||||
$content['label-viewcalls']['en-us'] = 'View Calls';
|
||||
$content['label-viewcalls']['pt-pt'] = 'Ver Chamadas';
|
||||
|
||||
$content_broadcast['label-message']['en-us'] = 'Message';
|
||||
$content_broadcast['label-message']['pt-pt'] = 'Mensagem';
|
||||
$content['label-message']['en-us'] = 'Message';
|
||||
$content['label-message']['pt-pt'] = 'Mensagem';
|
||||
|
||||
$content_broadcast['label-hasbeen']['en-us'] = 'has been started';
|
||||
$content_broadcast['label-hasbeen']['pt-pt'] = 'foi iniciada';
|
||||
$content['label-hasbeen']['en-us'] = 'has been started';
|
||||
$content['label-hasbeen']['pt-pt'] = 'foi iniciada';
|
||||
|
||||
?>
|
||||
@@ -35,12 +35,15 @@ else {
|
||||
exit;
|
||||
}
|
||||
|
||||
foreach($content_broadcast as $key => $value) {
|
||||
$content_broadcast[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
//add multi-lingual support
|
||||
require_once "app_languages.php";
|
||||
foreach($content_broadcast as $key => $value) {
|
||||
$content[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
}
|
||||
|
||||
require_once "includes/header.php";
|
||||
require_once "includes/paging.php";
|
||||
//add the includes
|
||||
require_once "includes/header.php";
|
||||
require_once "includes/paging.php";
|
||||
|
||||
|
||||
//get the http get variables and set them to php variables
|
||||
@@ -56,7 +59,7 @@ require_once "includes/paging.php";
|
||||
echo " <br>";
|
||||
|
||||
echo "<table width='100%' border='0'><tr>\n";
|
||||
echo "<td width='50%' nowrap='nowrap' align='left'><b>".$content_broadcast['title']."</b></td>\n";
|
||||
echo "<td width='50%' nowrap='nowrap' align='left'><b>".$content['title']."</b></td>\n";
|
||||
echo "<td width='50%' align='right'> </td>\n";
|
||||
echo "</tr></table>\n";
|
||||
|
||||
@@ -93,9 +96,9 @@ require_once "includes/paging.php";
|
||||
echo "<div align='center'>\n";
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo th_order_by('broadcast_name', $content_broadcast['label-name'], $order_by, $order);
|
||||
echo th_order_by('broadcast_concurrent_limit', $content_broadcast['label-concurrent-limit'], $order_by, $order);
|
||||
echo th_order_by('broadcast_description', $content_broadcast['label-description'], $order_by, $order);
|
||||
echo th_order_by('broadcast_name', $content['label-name'], $order_by, $order);
|
||||
echo th_order_by('broadcast_concurrent_limit', $content['label-concurrent-limit'], $order_by, $order);
|
||||
echo th_order_by('broadcast_description', $content['label-description'], $order_by, $order);
|
||||
//echo th_order_by('recordingid', 'Recording', $order_by, $order);
|
||||
echo "<td align='right' width='42'>\n";
|
||||
if (permission_exists('call_broadcast_add')) {
|
||||
@@ -116,7 +119,7 @@ require_once "includes/paging.php";
|
||||
echo " <a href='v_call_broadcast_edit.php?id=".$row['call_broadcast_uuid']."' alt='edit'>$v_link_label_edit</a>\n";
|
||||
}
|
||||
if (permission_exists('call_broadcast_delete')) {
|
||||
echo " <a href='v_call_broadcast_delete.php?id=".$row['call_broadcast_uuid']."' alt='delete' onclick=\"return confirm('".$content_broadcast['confirm-delete-info']."')\">$v_link_label_delete</a>\n";
|
||||
echo " <a href='v_call_broadcast_delete.php?id=".$row['call_broadcast_uuid']."' alt='delete' onclick=\"return confirm('".$content['confirm-delete-info']."')\">$v_link_label_delete</a>\n";
|
||||
}
|
||||
echo " </td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
require "root.php";
|
||||
require_once "includes/require.php";
|
||||
require_once "includes/checkauth.php";
|
||||
require_once "app_languages.php";
|
||||
if (permission_exists('call_broadcast_delete')) {
|
||||
//access granted
|
||||
}
|
||||
@@ -35,8 +34,10 @@ else {
|
||||
exit;
|
||||
}
|
||||
|
||||
foreach($content_broadcast as $key => $value) {
|
||||
$content_broadcast[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
//add multi-lingual support
|
||||
require_once "app_languages.php";
|
||||
foreach($content_broadcast as $key => $value) {
|
||||
$content[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
}
|
||||
|
||||
//get the id
|
||||
@@ -58,7 +59,7 @@ else {
|
||||
require_once "includes/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=v_call_broadcast.php\">\n";
|
||||
echo "<div align='center'>\n";
|
||||
echo "".$content_broadcast['confirm-delete']."\n";
|
||||
echo "".$content['confirm-delete']."\n";
|
||||
echo "</div>\n";
|
||||
require_once "includes/footer.php";
|
||||
return;
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
include "root.php";
|
||||
require_once "includes/require.php";
|
||||
require_once "includes/checkauth.php";
|
||||
require_once "app_languages.php";
|
||||
if (permission_exists('call_broadcast_edit')) {
|
||||
//access granted
|
||||
}
|
||||
@@ -35,8 +34,10 @@ else {
|
||||
exit;
|
||||
}
|
||||
|
||||
foreach($content_broadcast as $key => $value) {
|
||||
$content_broadcast[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
//add multi-lingual support
|
||||
require_once "app_languages.php";
|
||||
foreach($content_broadcast as $key => $value) {
|
||||
$content[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
}
|
||||
|
||||
//set the action with add or update
|
||||
@@ -70,7 +71,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
}
|
||||
|
||||
//check for all required data
|
||||
if (strlen($broadcast_name) == 0) { $msg .= "".$content_broadcast['confirm-name']."<br>\n"; }
|
||||
if (strlen($broadcast_name) == 0) { $msg .= "".$content['confirm-name']."<br>\n"; }
|
||||
//if (strlen($broadcast_description) == 0) { $msg .= "Please provide: Description<br>\n"; }
|
||||
//if (strlen($broadcast_timeout) == 0) { $msg .= "Please provide: Timeout<br>\n"; }
|
||||
//if (strlen($broadcast_concurrent_limit) == 0) { $msg .= "Please provide: Concurrent Limit<br>\n"; }
|
||||
@@ -143,7 +144,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
require_once "includes/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=v_call_broadcast.php\">\n";
|
||||
echo "<div align='center'>\n";
|
||||
echo "".$content_broadcast['confirm-add']."\n";
|
||||
echo "".$content['confirm-add']."\n";
|
||||
echo "</div>\n";
|
||||
require_once "includes/footer.php";
|
||||
return;
|
||||
@@ -179,7 +180,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
require_once "includes/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=v_call_broadcast.php\">\n";
|
||||
echo "<div align='center'>\n";
|
||||
echo "".$content_broadcast['confirm-update']."\n";
|
||||
echo "".$content['confirm-update']."\n";
|
||||
echo "</div>\n";
|
||||
require_once "includes/footer.php";
|
||||
return;
|
||||
@@ -230,46 +231,46 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
|
||||
echo "<tr>\n";
|
||||
if ($action == "add") {
|
||||
echo "<td width='30%' align='left' nowrap='nowrap'><b>".$content_broadcast['label-call-broadcast']."</b></td>\n";
|
||||
echo "<td width='30%' align='left' nowrap='nowrap'><b>".$content['label-call-broadcast']."</b></td>\n";
|
||||
}
|
||||
if ($action == "update") {
|
||||
echo "<td width='30%' align='left' nowrap='nowrap'><b>".$content_broadcast['label-call-broadcast-edit']."</b></td>\n";
|
||||
echo "<td width='30%' align='left' nowrap='nowrap'><b>".$content['label-call-broadcast-edit']."</b></td>\n";
|
||||
}
|
||||
echo "<td width='70%' align='right'>\n";
|
||||
echo " <input type='button' class='btn' name='back' alt='back' onclick=\"window.location='v_call_broadcast.php'\" value='".$content_broadcast['button-back']."'>\n";
|
||||
echo " <input type='button' class='btn' name='back' alt='back' onclick=\"window.location='v_call_broadcast.php'\" value='".$content['button-back']."'>\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
echo " ".$content_broadcast['label-name'].":\n";
|
||||
echo " ".$content['label-name'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='broadcast_name' maxlength='255' value=\"$broadcast_name\">\n";
|
||||
echo "<br />\n";
|
||||
echo "".$content_broadcast['description-name']."\n";
|
||||
echo "".$content['description-name']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo " ".$content_broadcast['label-timeout'].":\n";
|
||||
echo " ".$content['label-timeout'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='broadcast_timeout' maxlength='255' value=\"$broadcast_timeout\">\n";
|
||||
echo "<br />\n";
|
||||
echo "".$content_broadcast['description-timeout']."\n";
|
||||
echo "".$content['description-timeout']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo " ".$content_broadcast['label-concurrent-limit'].":\n";
|
||||
echo " ".$content['label-concurrent-limit'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='broadcast_concurrent_limit' maxlength='255' value=\"$broadcast_concurrent_limit\">\n";
|
||||
echo "<br />\n";
|
||||
echo "".$content_broadcast['description-concurrent-limit']."\n";
|
||||
echo "".$content['description-concurrent-limit']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
@@ -305,23 +306,23 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo " ".$content_broadcast['label-callerid-name'].":\n";
|
||||
echo " ".$content['label-callerid-name'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='broadcast_caller_id_name' maxlength='255' value=\"$broadcast_caller_id_name\">\n";
|
||||
echo "<br />\n";
|
||||
echo "".$content_broadcast['description-callerid-name']."\n";
|
||||
echo "".$content['description-callerid-name']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo " ".$content_broadcast['label-callerid-number'].":\n";
|
||||
echo " ".$content['label-callerid-number'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='broadcast_caller_id_number' maxlength='255' value=\"$broadcast_caller_id_number\">\n";
|
||||
echo "<br />\n";
|
||||
echo "".$content_broadcast['description-callerid-number']."\n";
|
||||
echo "".$content['description-callerid-number']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
/*
|
||||
@@ -354,34 +355,34 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo " ".$content_broadcast['label-destination'].":\n";
|
||||
echo " ".$content['label-destination'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='broadcast_destination_data' maxlength='255' value=\"$broadcast_destination_data\">\n";
|
||||
echo "<br />\n";
|
||||
echo "".$content_broadcast['description-destination']." <br /><br />\n";
|
||||
echo "".$content['description-destination']." <br /><br />\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo " ".$content_broadcast['label-phone'].":\n";
|
||||
echo " ".$content['label-phone'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <textarea class='formfld' type='text' name='broadcast_phone_numbers' rows='10'>$broadcast_phone_numbers</textarea>\n";
|
||||
echo "<br />\n";
|
||||
echo "".$content_broadcast['description-phone']." <br /><br />\n";
|
||||
echo "".$content['description-phone']." <br /><br />\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo " ".$content_broadcast['label-description'].":\n";
|
||||
echo " ".$content['label-description'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='broadcast_description' maxlength='255' value=\"$broadcast_description\">\n";
|
||||
echo "<br />\n";
|
||||
echo "".$content_broadcast['description-info']."\n";
|
||||
echo "".$content['description-info']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
@@ -389,10 +390,10 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
echo " <td colspan='2' align='right'>\n";
|
||||
if ($action == "update") {
|
||||
echo " <input type='hidden' name='call_broadcast_uuid' value='$call_broadcast_uuid'>\n";
|
||||
echo " <input type='button' class='btn' name='' alt='back' onclick=\"window.location='v_call_broadcast_send.php?call_broadcast_uuid=$call_broadcast_uuid'\" value='".$content_broadcast['button-send']."'>\n";
|
||||
echo " <input type='button' class='btn' name='' alt='back' onclick=\"window.location='v_call_broadcast_send.php?call_broadcast_uuid=$call_broadcast_uuid'\" value='".$content['button-send']."'>\n";
|
||||
}
|
||||
|
||||
echo " <input type='submit' name='submit' class='btn' value='".$content_broadcast."'>\n";
|
||||
echo " <input type='submit' name='submit' class='btn' value='".$content['button-save']."'>\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>";
|
||||
echo "</table>";
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
include "root.php";
|
||||
require_once "includes/require.php";
|
||||
require_once "includes/checkauth.php";
|
||||
require_once "app_languages.php";
|
||||
if (permission_exists('call_broadcast_send')) {
|
||||
//access granted
|
||||
}
|
||||
@@ -35,8 +34,10 @@ else {
|
||||
exit;
|
||||
}
|
||||
|
||||
foreach($content_broadcast as $key => $value) {
|
||||
$content_broadcast[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
//add multi-lingual support
|
||||
require_once "app_languages.php";
|
||||
foreach($content_broadcast as $key => $value) {
|
||||
$content[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
}
|
||||
|
||||
//set the max execution time to 1 hour
|
||||
@@ -68,8 +69,7 @@ function cmd_async($cmd) {
|
||||
$phonetype2 = $_GET["phonetype2"];
|
||||
|
||||
//get the call broadcast details from the database
|
||||
$sql = "";
|
||||
$sql .= "select * from v_call_broadcasts ";
|
||||
$sql = "select * from v_call_broadcasts ";
|
||||
$sql .= "where domain_uuid = '$domain_uuid' ";
|
||||
$sql .= "and call_broadcast_uuid = '$call_broadcast_uuid' ";
|
||||
$prep_statement = $db->prepare(check_sql($sql));
|
||||
@@ -122,7 +122,7 @@ function cmd_async($cmd) {
|
||||
echo "<div align='center'>\n";
|
||||
echo "<table width='40%'>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<th align='left'>".$content_broadcast['label-message']."</th>\n";
|
||||
echo "<th align='left'>".$content['label-message']."</th>\n";
|
||||
echo "</tr>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td class='row_style1'><strong>$msg</strong></td>\n";
|
||||
@@ -201,12 +201,12 @@ function cmd_async($cmd) {
|
||||
echo "</tr>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td class='row_style1' align='center'>\n";
|
||||
echo " <strong>".$content_broadcast['label-call-broadcast']." $broadcast_name ".$content_broadcast['label-hasbeen']."</strong>\n";
|
||||
echo " <strong>".$content['label-call-broadcast']." $broadcast_name ".$content['label-hasbeen']."</strong>\n";
|
||||
echo " <br /><br />\n";
|
||||
echo " <table width='100%'>\n";
|
||||
echo " <tr>\n";
|
||||
echo " <td align='center'>\n";
|
||||
echo " <a href='".PROJECT_PATH."/app/calls_active/v_calls_active.php'>".$content_broadcast['label-viewcalls']."</a>\n";
|
||||
echo " <a href='".PROJECT_PATH."/app/calls_active/v_calls_active.php'>".$content['label-viewcalls']."</a>\n";
|
||||
echo " </td>\n";
|
||||
echo " </table>\n";
|
||||
echo "</td>\n";
|
||||
|
||||
Reference in New Issue
Block a user