Change $content_calls to $text and make the names more consistent.
This commit is contained in:
parent
849a69630c
commit
750f0094e9
|
|
@ -1,90 +1,90 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$content_calls['title']['en-us'] = 'Calls';
|
$text['title']['en-us'] = 'Calls';
|
||||||
$content_calls['title']['pt-pt'] = 'Chamadas';
|
$text['title']['pt-pt'] = 'Chamadas';
|
||||||
|
|
||||||
$content_calls['description']['en-us'] = 'Directs incoming calls for extension:';
|
$text['description']['en-us'] = 'Directs incoming calls for extension:';
|
||||||
$content_calls['description']['pt-pt'] = 'Direciona as chamadas recebidas para a extensão:';
|
$text['description']['pt-pt'] = 'Direciona as chamadas recebidas para a extensão:';
|
||||||
|
|
||||||
$content_calls['description2']['en-us'] = 'Use the links to configure call forward follow me, or do no disturb.';
|
$text['description-2']['en-us'] = 'Use the links to configure call forward follow me, or do no disturb.';
|
||||||
$content_calls['description2']['pt-pt'] = 'Utilizar os links para definir as funcinalidades de encaminhamento de chamada, segue-me, ou de não perturbar.';
|
$text['description-2']['pt-pt'] = 'Utilizar os links para definir as funcinalidades de encaminhamento de chamada, segue-me, ou de não perturbar.';
|
||||||
|
|
||||||
$content_calls['description3']['en-us'] = 'The following list the extensions that have been assigned to this user account.';
|
$text['description-3']['en-us'] = 'The following list the extensions that have been assigned to this user account.';
|
||||||
$content_calls['description3']['pt-pt'] = 'A tabela a seguir lista as extensões que foram atribuídas a esta conta de utilizador.';
|
$text['description-3']['pt-pt'] = 'A tabela a seguir lista as extensões que foram atribuídas a esta conta de utilizador.';
|
||||||
|
|
||||||
$content_calls['label-callforward']['en-us'] = 'Call Forward';
|
$text['label-call-forward']['en-us'] = 'Call Forward';
|
||||||
$content_calls['label-callforward']['pt-pt'] = 'Encaminhamento de Chamadas';
|
$text['label-call-forward']['pt-pt'] = 'Encaminhamento de Chamadas';
|
||||||
|
|
||||||
$content_calls['label-enabled']['en-us'] = 'Enabled';
|
$text['label-enabled']['en-us'] = 'Enabled';
|
||||||
$content_calls['label-enabled']['pt-pt'] = 'Activo';
|
$text['label-enabled']['pt-pt'] = 'Activo';
|
||||||
|
|
||||||
$content_calls['label-enable']['en-us'] = 'Enable';
|
$text['label-enable']['en-us'] = 'Enable';
|
||||||
$content_calls['label-enable']['pt-pt'] = 'Activar';
|
$text['label-enable']['pt-pt'] = 'Activar';
|
||||||
|
|
||||||
$content_calls['label-disabled']['en-us'] = 'Disabled';
|
$text['label-disabled']['en-us'] = 'Disabled';
|
||||||
$content_calls['label-disabled']['pt-pt'] = 'Desactivo';
|
$text['label-disabled']['pt-pt'] = 'Desactivo';
|
||||||
|
|
||||||
$content_calls['label-disable']['en-us'] = 'Disabled';
|
$text['label-disable']['en-us'] = 'Disabled';
|
||||||
$content_calls['label-disable']['pt-pt'] = 'Desactivar';
|
$text['label-disable']['pt-pt'] = 'Desactivar';
|
||||||
|
|
||||||
$content_calls['label-number']['en-us'] = 'Number';
|
$text['label-number']['en-us'] = 'Number';
|
||||||
$content_calls['label-number']['pt-pt'] = 'Número';
|
$text['label-number']['pt-pt'] = 'Número';
|
||||||
|
|
||||||
$content_calls['label-followme']['en-us'] = 'Follow Me';
|
$text['label-follow-me']['en-us'] = 'Follow Me';
|
||||||
$content_calls['label-followme']['pt-pt'] = 'Segue-me';
|
$text['label-follow-me']['pt-pt'] = 'Segue-me';
|
||||||
|
|
||||||
$content_calls['label-ring1']['en-us'] = 'Ring 1st Number';
|
$text['label-ring-1']['en-us'] = 'Ring 1st Number';
|
||||||
$content_calls['label-ring1']['pt-pt'] = '1º Número a Tocar';
|
$text['label-ring-1']['pt-pt'] = '1º Número a Tocar';
|
||||||
|
|
||||||
$content_calls['label-ring2']['en-us'] = 'Ring 2st Number';
|
$text['label-ring-2']['en-us'] = 'Ring 2nd Number';
|
||||||
$content_calls['label-ring2']['pt-pt'] = '2º Número a Tocar';
|
$text['label-ring-2']['pt-pt'] = '2º Número a Tocar';
|
||||||
|
|
||||||
$content_calls['label-ring3']['en-us'] = 'Ring 3st Number';
|
$text['label-ring-3']['en-us'] = 'Ring 3rd Number';
|
||||||
$content_calls['label-ring3']['pt-pt'] = '3º Número a Tocar';
|
$text['label-ring-3']['pt-pt'] = '3º Número a Tocar';
|
||||||
|
|
||||||
$content_calls['label-ring4']['en-us'] = 'Ring 4st Number';
|
$text['label-ring-4']['en-us'] = 'Ring 4th Number';
|
||||||
$content_calls['label-ring4']['pt-pt'] = '4º Número a Tocar';
|
$text['label-ring-4']['pt-pt'] = '4º Número a Tocar';
|
||||||
|
|
||||||
$content_calls['label-ring5']['en-us'] = 'Ring 5st Number';
|
$text['label-ring-5']['en-us'] = 'Ring 5th Number';
|
||||||
$content_calls['label-ring5']['pt-pt'] = '5º Número a Tocar';
|
$text['label-ring-5']['pt-pt'] = '5º Número a Tocar';
|
||||||
|
|
||||||
$content_calls['label-ringorder']['en-us'] = 'Ring Order';
|
$text['label-ring-order']['en-us'] = 'Ring Order';
|
||||||
$content_calls['label-ringorder']['pt-pt'] = 'Pedir Chamada';
|
$text['label-ring-order']['pt-pt'] = 'Pedir Chamada';
|
||||||
|
|
||||||
$content_calls['check-sequence']['en-us'] = 'sequence';
|
$text['check-sequence']['en-us'] = 'sequence';
|
||||||
$content_calls['ckeck-sequence']['pt-pt'] = 'sequêncial';
|
$text['ckeck-sequence']['pt-pt'] = 'sequêncial';
|
||||||
|
|
||||||
$content_calls['check-simultaneous']['en-us'] = 'simultaneous';
|
$text['check-simultaneous']['en-us'] = 'simultaneous';
|
||||||
$content_calls['ckeck-simultaneous']['pt-pt'] = 'simultâneo';
|
$text['ckeck-simultaneous']['pt-pt'] = 'simultâneo';
|
||||||
|
|
||||||
$content_calls['label-prompt']['en-us'] = 'Prompt to accept the call';
|
$text['label-prompt']['en-us'] = 'Prompt to accept the call';
|
||||||
$content_calls['label-prompt']['pt-pt'] = 'Perguntar para aceitar a chamada';
|
$text['label-prompt']['pt-pt'] = 'Perguntar para aceitar a chamada';
|
||||||
|
|
||||||
$content_calls['check-true']['en-us'] = 'true';
|
$text['check-true']['en-us'] = 'true';
|
||||||
$content_calls['ckeck-true']['pt-pt'] = 'verdadeiro';
|
$text['ckeck-true']['pt-pt'] = 'verdadeiro';
|
||||||
|
|
||||||
$content_calls['check-false']['en-us'] = 'false';
|
$text['check-false']['en-us'] = 'false';
|
||||||
$content_calls['ckeck-false']['pt-pt'] = 'falso';
|
$text['ckeck-false']['pt-pt'] = 'falso';
|
||||||
|
|
||||||
$content_calls['label-dnd']['en-us'] = 'Do Not Disturb';
|
$text['label-dnd']['en-us'] = 'Do Not Disturb';
|
||||||
$content_calls['label-dnd']['pt-pt'] = 'Não Perturbar';
|
$text['label-dnd']['pt-pt'] = 'Não Perturbar';
|
||||||
|
|
||||||
$content_calls['button-back']['en-us'] = 'Back';
|
$text['button-back']['en-us'] = 'Back';
|
||||||
$content_calls['button-back']['pt-pt'] = 'Voltar';
|
$text['button-back']['pt-pt'] = 'Voltar';
|
||||||
|
|
||||||
$content_calls['button-save']['en-us'] = 'Save';
|
$text['button-save']['en-us'] = 'Save';
|
||||||
$content_calls['button-save']['pt-pt'] = 'Guardar';
|
$text['button-save']['pt-pt'] = 'Guardar';
|
||||||
|
|
||||||
$content_calls['confirm-update']['en-us'] = 'Update Complete';
|
$text['confirm-update']['en-us'] = 'Update Complete';
|
||||||
$content_calls['confirm-update']['pt-pt'] = 'Actualização Completa';
|
$text['confirm-update']['pt-pt'] = 'Actualização Completa';
|
||||||
|
|
||||||
$content_calls['table-extension']['en-us'] = 'Extension';
|
$text['table-extension']['en-us'] = 'Extension';
|
||||||
$content_calls['table-extension']['pt-pt'] = 'Extensão';
|
$text['table-extension']['pt-pt'] = 'Extensão';
|
||||||
|
|
||||||
$content_calls['table-tools']['en-us'] = 'Tools';
|
$text['table-tools']['en-us'] = 'Tools';
|
||||||
$content_calls['table-tools']['pt-pt'] = 'Ferramentas';
|
$text['table-tools']['pt-pt'] = 'Ferramentas';
|
||||||
|
|
||||||
$content_calls['table-description']['en-us'] = 'Description';
|
$text['table-description']['en-us'] = 'Description';
|
||||||
$content_calls['table-description']['pt-pt'] = 'Descrição';
|
$text['table-description']['pt-pt'] = 'Descrição';
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
@ -35,8 +35,9 @@ else {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach($content_calls as $key => $value) {
|
//add multi-lingual support
|
||||||
$content_calls[$key] = $value[$_SESSION['domain']['language']['code']];
|
foreach($text as $key => $value) {
|
||||||
|
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||||
}
|
}
|
||||||
|
|
||||||
//define the destination_select function
|
//define the destination_select function
|
||||||
|
|
@ -389,7 +390,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||||
require_once "includes/header.php";
|
require_once "includes/header.php";
|
||||||
echo "<meta http-equiv=\"refresh\" content=\"3;url=".PROJECT_PATH."/app/calls/v_calls.php\">\n";
|
echo "<meta http-equiv=\"refresh\" content=\"3;url=".PROJECT_PATH."/app/calls/v_calls.php\">\n";
|
||||||
echo "<div align='center'>\n";
|
echo "<div align='center'>\n";
|
||||||
echo "".$content_calls['confirm-update']."<br />\n";
|
echo "".$text['confirm-update']."<br />\n";
|
||||||
echo "</div>\n";
|
echo "</div>\n";
|
||||||
require_once "includes/footer.php";
|
require_once "includes/footer.php";
|
||||||
return;
|
return;
|
||||||
|
|
@ -496,21 +497,21 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||||
echo "<table width='100%' border='0' cellpadding='6' cellspacing='0'>\n";
|
echo "<table width='100%' border='0' cellpadding='6' cellspacing='0'>\n";
|
||||||
echo "<tr>\n";
|
echo "<tr>\n";
|
||||||
echo "<td align='left' width='30%' nowrap>\n";
|
echo "<td align='left' width='30%' nowrap>\n";
|
||||||
echo " <b>".$content_calls['title']."</b>\n";
|
echo " <b>".$text['title']."</b>\n";
|
||||||
echo "</td>\n";
|
echo "</td>\n";
|
||||||
echo "<td width='70%' align='right'>\n";
|
echo "<td width='70%' align='right'>\n";
|
||||||
echo " <input type='button' class='btn' name='' alt='back' onclick=\"window.location='v_calls.php'\" value='".$content_calls['button-back']."'>\n";
|
echo " <input type='button' class='btn' name='' alt='back' onclick=\"window.location='v_calls.php'\" value='".$text['button-back']."'>\n";
|
||||||
echo "</td>\n";
|
echo "</td>\n";
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
echo "<tr>\n";
|
echo "<tr>\n";
|
||||||
echo "<td align='left' colspan='2'>\n";
|
echo "<td align='left' colspan='2'>\n";
|
||||||
echo " ".$content_calls['description']." $extension.<br /><br />\n";
|
echo " ".$text['description']." $extension.<br /><br />\n";
|
||||||
echo "</td>\n";
|
echo "</td>\n";
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
|
|
||||||
echo "<tr>\n";
|
echo "<tr>\n";
|
||||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||||
echo " <strong>".$content_calls['label-callforward'].":</strong>\n";
|
echo " <strong>".$text['label-call-forward'].":</strong>\n";
|
||||||
echo "</td>\n";
|
echo "</td>\n";
|
||||||
echo "<td class='vtable' align='left'>\n";
|
echo "<td class='vtable' align='left'>\n";
|
||||||
$on_click = "document.getElementById('follow_me_enabled').checked=true;";
|
$on_click = "document.getElementById('follow_me_enabled').checked=true;";
|
||||||
|
|
@ -518,16 +519,16 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||||
$on_click .= "document.getElementById('dnd_enabled').checked=false;";
|
$on_click .= "document.getElementById('dnd_enabled').checked=false;";
|
||||||
$on_click .= "document.getElementById('dnd_disabled').checked=true;";
|
$on_click .= "document.getElementById('dnd_disabled').checked=true;";
|
||||||
if ($call_forward_enabled == "true") {
|
if ($call_forward_enabled == "true") {
|
||||||
echo " <input type='radio' name='call_forward_enabled' id='call_forward_enabled' onclick=\"$on_click\" value='true' checked='checked'/> ".$content_calls['label-enabled']." \n";
|
echo " <input type='radio' name='call_forward_enabled' id='call_forward_enabled' onclick=\"$on_click\" value='true' checked='checked'/> ".$text['label-enabled']." \n";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
echo " <input type='radio' name='call_forward_enabled' id='call_forward_enabled' onclick=\"$on_click\" value='true' /> ".$content_calls['label-enable']." \n";
|
echo " <input type='radio' name='call_forward_enabled' id='call_forward_enabled' onclick=\"$on_click\" value='true' /> ".$text['label-enable']." \n";
|
||||||
}
|
}
|
||||||
if ($call_forward_enabled == "false" || $call_forward_enabled == "") {
|
if ($call_forward_enabled == "false" || $call_forward_enabled == "") {
|
||||||
echo " <input type='radio' name='call_forward_enabled' id='call_forward_disabled' onclick=\"\" value='false' checked='checked' /> ".$content_calls['label-disabled']." \n";
|
echo " <input type='radio' name='call_forward_enabled' id='call_forward_disabled' onclick=\"\" value='false' checked='checked' /> ".$text['label-disabled']." \n";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
echo " <input type='radio' name='call_forward_enabled' id='call_forward_disabled' onclick=\"\" value='false' /> ".$content_calls['label-disable']." \n";
|
echo " <input type='radio' name='call_forward_enabled' id='call_forward_disabled' onclick=\"\" value='false' /> ".$text['label-disable']." \n";
|
||||||
}
|
}
|
||||||
unset($on_click);
|
unset($on_click);
|
||||||
echo "<br />\n";
|
echo "<br />\n";
|
||||||
|
|
@ -538,7 +539,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||||
|
|
||||||
echo "<tr>\n";
|
echo "<tr>\n";
|
||||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||||
echo " ".$content_calls['label-number'].":\n";
|
echo " ".$text['label-number'].":\n";
|
||||||
echo "</td>\n";
|
echo "</td>\n";
|
||||||
echo "<td class='vtable' align='left'>\n";
|
echo "<td class='vtable' align='left'>\n";
|
||||||
echo " <input class='formfld' type='text' name='call_forward_number' maxlength='255' value=\"$call_forward_number\">\n";
|
echo " <input class='formfld' type='text' name='call_forward_number' maxlength='255' value=\"$call_forward_number\">\n";
|
||||||
|
|
@ -555,7 +556,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||||
|
|
||||||
echo "<tr>\n";
|
echo "<tr>\n";
|
||||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||||
echo " <strong>".$content_calls['label-followme'].":</strong>\n";
|
echo " <strong>".$text['label-follow-me'].":</strong>\n";
|
||||||
echo "</td>\n";
|
echo "</td>\n";
|
||||||
echo "<td class='vtable' align='left'>\n";
|
echo "<td class='vtable' align='left'>\n";
|
||||||
$on_click = "document.getElementById('call_forward_enabled').checked=true;";
|
$on_click = "document.getElementById('call_forward_enabled').checked=true;";
|
||||||
|
|
@ -563,16 +564,16 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||||
$on_click .= "document.getElementById('dnd_enabled').checked=false;";
|
$on_click .= "document.getElementById('dnd_enabled').checked=false;";
|
||||||
$on_click .= "document.getElementById('dnd_disabled').checked=true;";
|
$on_click .= "document.getElementById('dnd_disabled').checked=true;";
|
||||||
if ($follow_me_enabled == "true") {
|
if ($follow_me_enabled == "true") {
|
||||||
echo " <input type='radio' name='follow_me_enabled' id='follow_me_enabled' value='true' onclick=\"$on_click\" checked='checked'/> ".$content_calls['label-enabled']." \n";
|
echo " <input type='radio' name='follow_me_enabled' id='follow_me_enabled' value='true' onclick=\"$on_click\" checked='checked'/> ".$text['label-enabled']." \n";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
echo " <input type='radio' name='follow_me_enabled' id='follow_me_enabled' value='true' onclick=\"$on_click\" /> ".$content_calls['label-enable']." \n";
|
echo " <input type='radio' name='follow_me_enabled' id='follow_me_enabled' value='true' onclick=\"$on_click\" /> ".$text['label-enable']." \n";
|
||||||
}
|
}
|
||||||
if ($follow_me_enabled == "false" || $follow_me_enabled == "") {
|
if ($follow_me_enabled == "false" || $follow_me_enabled == "") {
|
||||||
echo " <input type='radio' name='follow_me_enabled' id='follow_me_disabled' value='false' onclick=\"\" checked='checked' /> ".$content_calls['label-disabled']." \n";
|
echo " <input type='radio' name='follow_me_enabled' id='follow_me_disabled' value='false' onclick=\"\" checked='checked' /> ".$text['label-disabled']." \n";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
echo " <input type='radio' name='follow_me_enabled' id='follow_me_disabled' value='false' onclick=\"\" /> ".$content_calls['label-disable']." \n";
|
echo " <input type='radio' name='follow_me_enabled' id='follow_me_disabled' value='false' onclick=\"\" /> ".$text['label-disable']." \n";
|
||||||
}
|
}
|
||||||
unset($on_click);
|
unset($on_click);
|
||||||
echo "<br />\n";
|
echo "<br />\n";
|
||||||
|
|
@ -582,7 +583,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||||
|
|
||||||
echo "<tr>\n";
|
echo "<tr>\n";
|
||||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||||
echo " ".$content_calls['label-ring1'].":\n";
|
echo " ".$text['label-ring-1'].":\n";
|
||||||
echo "</td>\n";
|
echo "</td>\n";
|
||||||
echo "<td class='vtable' align='left'>\n";
|
echo "<td class='vtable' align='left'>\n";
|
||||||
echo " <input class='formfld' type='text' name='destination_data_1' maxlength='255' value=\"$destination_data_1\">\n";
|
echo " <input class='formfld' type='text' name='destination_data_1' maxlength='255' value=\"$destination_data_1\">\n";
|
||||||
|
|
@ -595,7 +596,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||||
|
|
||||||
echo "<tr>\n";
|
echo "<tr>\n";
|
||||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||||
echo " ".$content_calls['label-ring2'].":\n";
|
echo " ".$text['label-ring-2'].":\n";
|
||||||
echo "</td>\n";
|
echo "</td>\n";
|
||||||
echo "<td class='vtable' align='left'>\n";
|
echo "<td class='vtable' align='left'>\n";
|
||||||
echo " <input class='formfld' type='text' name='destination_data_2' maxlength='255' value=\"$destination_data_2\">\n";
|
echo " <input class='formfld' type='text' name='destination_data_2' maxlength='255' value=\"$destination_data_2\">\n";
|
||||||
|
|
@ -608,7 +609,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||||
|
|
||||||
echo "<tr>\n";
|
echo "<tr>\n";
|
||||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||||
echo " ".$content_calls['label-ring3'].":\n";
|
echo " ".$text['label-ring-3'].":\n";
|
||||||
echo "</td>\n";
|
echo "</td>\n";
|
||||||
echo "<td class='vtable' align='left'>\n";
|
echo "<td class='vtable' align='left'>\n";
|
||||||
echo " <input class='formfld' type='text' name='destination_data_3' maxlength='255' value=\"$destination_data_3\">\n";
|
echo " <input class='formfld' type='text' name='destination_data_3' maxlength='255' value=\"$destination_data_3\">\n";
|
||||||
|
|
@ -621,7 +622,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||||
|
|
||||||
echo "<tr>\n";
|
echo "<tr>\n";
|
||||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||||
echo " ".$content_calls['label-ring4'].":\n";
|
echo " ".$text['label-ring-4'].":\n";
|
||||||
echo "</td>\n";
|
echo "</td>\n";
|
||||||
echo "<td class='vtable' align='left'>\n";
|
echo "<td class='vtable' align='left'>\n";
|
||||||
echo " <input class='formfld' type='text' name='destination_data_4' maxlength='255' value=\"$destination_data_4\">\n";
|
echo " <input class='formfld' type='text' name='destination_data_4' maxlength='255' value=\"$destination_data_4\">\n";
|
||||||
|
|
@ -634,7 +635,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||||
|
|
||||||
echo "<tr>\n";
|
echo "<tr>\n";
|
||||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||||
echo " ".$content_calls['label-ring5'].":\n";
|
echo " ".$text['label-ring-5'].":\n";
|
||||||
echo "</td>\n";
|
echo "</td>\n";
|
||||||
echo "<td class='vtable' align='left'>\n";
|
echo "<td class='vtable' align='left'>\n";
|
||||||
echo " <input class='formfld' type='text' name='destination_data_5' maxlength='255' value=\"$destination_data_5\">\n";
|
echo " <input class='formfld' type='text' name='destination_data_5' maxlength='255' value=\"$destination_data_5\">\n";
|
||||||
|
|
@ -647,7 +648,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||||
|
|
||||||
echo "<tr>\n";
|
echo "<tr>\n";
|
||||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||||
echo " ".$content_calls['label-ringorder'].":\n";
|
echo " ".$text['label-ring-order'].":\n";
|
||||||
echo "</td>\n";
|
echo "</td>\n";
|
||||||
echo "<td class='vtable' align='left'>\n";
|
echo "<td class='vtable' align='left'>\n";
|
||||||
echo "<select class='formfld' name='follow_me_type'>\n";
|
echo "<select class='formfld' name='follow_me_type'>\n";
|
||||||
|
|
@ -672,7 +673,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||||
|
|
||||||
echo "<tr>\n";
|
echo "<tr>\n";
|
||||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||||
echo " ".$content_calls['label-prompt'].":\n";
|
echo " ".$text['label-prompt'].":\n";
|
||||||
echo "</td>\n";
|
echo "</td>\n";
|
||||||
echo "<td class='vtable' align='left'>\n";
|
echo "<td class='vtable' align='left'>\n";
|
||||||
echo "<select class='formfld' name='hunt_group_call_prompt'>\n";
|
echo "<select class='formfld' name='hunt_group_call_prompt'>\n";
|
||||||
|
|
@ -703,7 +704,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||||
|
|
||||||
echo "<tr>\n";
|
echo "<tr>\n";
|
||||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||||
echo " <strong>".$content_calls['label-dnd'].":</strong>\n";
|
echo " <strong>".$text['label-dnd'].":</strong>\n";
|
||||||
echo "</td>\n";
|
echo "</td>\n";
|
||||||
echo "<td class='vtable' align='left'>\n";
|
echo "<td class='vtable' align='left'>\n";
|
||||||
$on_click = "document.getElementById('call_forward_enabled').checked=true;";
|
$on_click = "document.getElementById('call_forward_enabled').checked=true;";
|
||||||
|
|
@ -711,16 +712,16 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||||
$on_click .= "document.getElementById('follow_me_enabled').checked=true;";
|
$on_click .= "document.getElementById('follow_me_enabled').checked=true;";
|
||||||
$on_click .= "document.getElementById('follow_me_disabled').checked=true;";
|
$on_click .= "document.getElementById('follow_me_disabled').checked=true;";
|
||||||
if ($dnd_enabled == "true") {
|
if ($dnd_enabled == "true") {
|
||||||
echo " <input type='radio' name='dnd_enabled' id='dnd_enabled' value='true' onclick=\"$on_click\" checked='checked'/> ".$content_calls['label-enabled']." \n";
|
echo " <input type='radio' name='dnd_enabled' id='dnd_enabled' value='true' onclick=\"$on_click\" checked='checked'/> ".$text['label-enabled']." \n";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
echo " <input type='radio' name='dnd_enabled' id='dnd_enabled' value='true' onclick=\"$on_click\"/> ".$content_calls['label-enable']." \n";
|
echo " <input type='radio' name='dnd_enabled' id='dnd_enabled' value='true' onclick=\"$on_click\"/> ".$text['label-enable']." \n";
|
||||||
}
|
}
|
||||||
if ($dnd_enabled == "false" || $dnd_enabled == "") {
|
if ($dnd_enabled == "false" || $dnd_enabled == "") {
|
||||||
echo " <input type='radio' name='dnd_enabled' id='dnd_disabled' value='false' onclick=\"\" checked='checked' /> ".$content_calls['label-disabled']." \n";
|
echo " <input type='radio' name='dnd_enabled' id='dnd_disabled' value='false' onclick=\"\" checked='checked' /> ".$text['label-disabled']." \n";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
echo " <input type='radio' name='dnd_enabled' id='dnd_disabled' value='false' onclick=\"\" /> ".$content_calls['label-disable']." \n";
|
echo " <input type='radio' name='dnd_enabled' id='dnd_disabled' value='false' onclick=\"\" /> ".$text['label-disable']." \n";
|
||||||
}
|
}
|
||||||
echo " <br />\n";
|
echo " <br />\n";
|
||||||
echo "</td>\n";
|
echo "</td>\n";
|
||||||
|
|
@ -743,7 +744,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||||
if ($action == "update") {
|
if ($action == "update") {
|
||||||
echo " <input type='hidden' name='id' value='$extension_uuid'>\n";
|
echo " <input type='hidden' name='id' value='$extension_uuid'>\n";
|
||||||
}
|
}
|
||||||
echo " <input type='submit' name='submit' class='btn' value='".$content_calls['button-save']."'>\n";
|
echo " <input type='submit' name='submit' class='btn' value='".$text['button-save']."'>\n";
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
echo " </tr>";
|
echo " </tr>";
|
||||||
echo "</table>";
|
echo "</table>";
|
||||||
|
|
|
||||||
|
|
@ -42,8 +42,8 @@ $order = check_str($_GET["order"]);
|
||||||
echo "<!--\n";
|
echo "<!--\n";
|
||||||
require_once "app_languages.php";
|
require_once "app_languages.php";
|
||||||
echo "-->\n";
|
echo "-->\n";
|
||||||
foreach($content_calls as $key => $value) {
|
foreach($text as $key => $value) {
|
||||||
$content_calls[$key] = $value[$_SESSION['domain']['language']['code']];
|
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||||
}
|
}
|
||||||
|
|
||||||
//begin the content
|
//begin the content
|
||||||
|
|
@ -58,9 +58,9 @@ $order = check_str($_GET["order"]);
|
||||||
if ($is_included != "true") {
|
if ($is_included != "true") {
|
||||||
echo " <table width=\"100%\" border=\"0\" cellpadding=\"6\" cellspacing=\"0\">\n";
|
echo " <table width=\"100%\" border=\"0\" cellpadding=\"6\" cellspacing=\"0\">\n";
|
||||||
echo " <tr>\n";
|
echo " <tr>\n";
|
||||||
echo " <td align='left'><b>".$content_calls['title']."</b><br>\n";
|
echo " <td align='left'><b>".$text['title']."</b><br>\n";
|
||||||
echo " ".$content_calls['description2']."\n";
|
echo " ".$text['description2']."\n";
|
||||||
echo " ".$content_calls['description3']." \n";
|
echo " ".$text['description-3']." \n";
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
echo " </tr>\n";
|
echo " </tr>\n";
|
||||||
echo " </table>\n";
|
echo " </table>\n";
|
||||||
|
|
@ -143,9 +143,9 @@ $order = check_str($_GET["order"]);
|
||||||
|
|
||||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||||
echo "<tr>\n";
|
echo "<tr>\n";
|
||||||
echo "<th>".$content_calls['table-extension']."</th>\n";
|
echo "<th>".$text['table-extension']."</th>\n";
|
||||||
echo "<th>".$content_calls['table-tools']."</th>\n";
|
echo "<th>".$text['table-tools']."</th>\n";
|
||||||
echo "<th>".$content_calls['table-description']."</th>\n";
|
echo "<th>".$text['table-description']."</th>\n";
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
|
|
||||||
if ($result_count > 0) {
|
if ($result_count > 0) {
|
||||||
|
|
@ -154,15 +154,15 @@ $order = check_str($_GET["order"]);
|
||||||
echo " <td valign='top' class='".$row_style[$c]."'>".$row['extension']."</td>\n";
|
echo " <td valign='top' class='".$row_style[$c]."'>".$row['extension']."</td>\n";
|
||||||
echo " <td valign='top' class='".$row_style[$c]."'>\n";
|
echo " <td valign='top' class='".$row_style[$c]."'>\n";
|
||||||
if (permission_exists('call_forward')) {
|
if (permission_exists('call_forward')) {
|
||||||
echo " <a href='".PROJECT_PATH."/app/calls/v_call_edit.php?id=".$row[extension_uuid]."&a=call_forward' alt='Call Forward'>".$content_calls['label-callforward']."</a> \n";
|
echo " <a href='".PROJECT_PATH."/app/calls/v_call_edit.php?id=".$row[extension_uuid]."&a=call_forward' alt='Call Forward'>".$text['label-call-forward']."</a> \n";
|
||||||
echo " \n";
|
echo " \n";
|
||||||
}
|
}
|
||||||
if (permission_exists('follow_me')) {
|
if (permission_exists('follow_me')) {
|
||||||
echo " <a href='".PROJECT_PATH."/app/calls/v_call_edit.php?id=".$row[extension_uuid]."&a=follow_me' alt='Follow Me'>".$content_calls['label-followme']."</a> \n";
|
echo " <a href='".PROJECT_PATH."/app/calls/v_call_edit.php?id=".$row[extension_uuid]."&a=follow_me' alt='Follow Me'>".$text['label-follow-me']."</a> \n";
|
||||||
echo " \n";
|
echo " \n";
|
||||||
}
|
}
|
||||||
if (permission_exists('do_not_disturb')) {
|
if (permission_exists('do_not_disturb')) {
|
||||||
echo " <a href='".PROJECT_PATH."/app/calls/v_call_edit.php?id=".$row[extension_uuid]."&a=do_not_disturb' alt='Do Not Disturb'>".$content_calls['label-dnd']."</a> \n";
|
echo " <a href='".PROJECT_PATH."/app/calls/v_call_edit.php?id=".$row[extension_uuid]."&a=do_not_disturb' alt='Do Not Disturb'>".$text['label-dnd']."</a> \n";
|
||||||
}
|
}
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
echo " <td valign='top' class='row_stylebg' width='40%'>".$row['description']." </td>\n";
|
echo " <td valign='top' class='row_stylebg' width='40%'>".$row['description']." </td>\n";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue