mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-02-12 22:24:59 +00:00
Time Conditions: Editable.
This commit is contained in:
@@ -280,11 +280,13 @@ else {
|
||||
unset($app_uuid);
|
||||
}
|
||||
|
||||
if (
|
||||
if ($app_uuid == "4b821450-926b-175a-af93-a03c441818b1" && permission_exists('time_condition_edit')) {
|
||||
$tr_link = "href='".PROJECT_PATH."/app/time_conditions/time_condition_edit.php?id=".$row['dialplan_uuid'].(($app_uuid != '') ? "&app_uuid=".$app_uuid : null)."'";
|
||||
}
|
||||
elseif (
|
||||
($app_uuid == "c03b422e-13a8-bd1b-e42b-b6b9b4d27ce4" && permission_exists('inbound_route_edit')) ||
|
||||
($app_uuid == "8c914ec3-9fc0-8ab5-4cda-6c9288bdc9a3" && permission_exists('outbound_route_edit')) ||
|
||||
($app_uuid == "16589224-c876-aeb3-f59f-523a1c0801f7" && permission_exists('fifo_edit')) ||
|
||||
($app_uuid == "4b821450-926b-175a-af93-a03c441818b1" && permission_exists('time_condition_edit')) ||
|
||||
permission_exists('dialplan_edit')
|
||||
) {
|
||||
$tr_link = "href='dialplan_edit.php?id=".$row['dialplan_uuid'].(($app_uuid != '') ? "&app_uuid=".$app_uuid : null)."'";
|
||||
@@ -295,11 +297,13 @@ else {
|
||||
$dialplan_ids[] = 'checkbox_'.$row['dialplan_uuid'];
|
||||
}
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>";
|
||||
if (
|
||||
if ($app_uuid == "4b821450-926b-175a-af93-a03c441818b1" && permission_exists('time_condition_edit')) {
|
||||
echo "<a href='".PROJECT_PATH."/app/time_conditions/time_condition_edit.php?id=".$row['dialplan_uuid'].(($app_uuid != '') ? "&app_uuid=".$app_uuid : null)."'>".$row['dialplan_name']."</a>";
|
||||
}
|
||||
elseif (
|
||||
($app_uuid == "c03b422e-13a8-bd1b-e42b-b6b9b4d27ce4" && permission_exists('inbound_route_edit')) ||
|
||||
($app_uuid == "8c914ec3-9fc0-8ab5-4cda-6c9288bdc9a3" && permission_exists('outbound_route_edit')) ||
|
||||
($app_uuid == "16589224-c876-aeb3-f59f-523a1c0801f7" && permission_exists('fifo_edit')) ||
|
||||
($app_uuid == "4b821450-926b-175a-af93-a03c441818b1" && permission_exists('time_condition_edit')) ||
|
||||
permission_exists('dialplan_edit')
|
||||
) {
|
||||
echo "<a href='dialplan_edit.php?id=".$row['dialplan_uuid'].(($app_uuid != '') ? "&app_uuid=".$app_uuid : null)."'>".$row['dialplan_name']."</a>";
|
||||
@@ -316,11 +320,13 @@ else {
|
||||
echo " </td>\n";
|
||||
echo " <td valign='top' class='row_stylebg' width='30%'>".((strlen($row['dialplan_description']) > 0) ? $row['dialplan_description'] : " ")."</td>\n";
|
||||
echo " <td class='list_control_icons'>\n";
|
||||
if (
|
||||
if ($app_uuid == "4b821450-926b-175a-af93-a03c441818b1" && permission_exists('time_condition_edit')) {
|
||||
echo "<a href='".PROJECT_PATH."/app/time_conditions/time_condition_edit.php?id=".$row['dialplan_uuid'].(($app_uuid != '') ? "&app_uuid=".$app_uuid : null)."' alt='".$text['button-edit']."'>$v_link_label_edit</a>";
|
||||
}
|
||||
elseif (
|
||||
($app_uuid == "c03b422e-13a8-bd1b-e42b-b6b9b4d27ce4" && permission_exists('inbound_route_edit')) ||
|
||||
($app_uuid == "8c914ec3-9fc0-8ab5-4cda-6c9288bdc9a3" && permission_exists('outbound_route_edit')) ||
|
||||
($app_uuid == "16589224-c876-aeb3-f59f-523a1c0801f7" && permission_exists('fifo_edit')) ||
|
||||
($app_uuid == "4b821450-926b-175a-af93-a03c441818b1" && permission_exists('time_condition_edit')) ||
|
||||
permission_exists('dialplan_edit')
|
||||
) {
|
||||
echo "<a href='dialplan_edit.php?id=".$row['dialplan_uuid'].(($app_uuid != '') ? "&app_uuid=".$app_uuid : null)."' alt='".$text['button-edit']."'>$v_link_label_edit</a>";
|
||||
|
||||
@@ -3,16 +3,16 @@
|
||||
if ($domains_processed == 1) {
|
||||
|
||||
//define holiday presets
|
||||
$preset[] = json_encode(array("new_years_day" => array("variables" => array("mday" => "1", "mon" => "1"))));
|
||||
$preset[] = json_encode(array("martin_luther_king_jr_day" => array("variables" => array("wday" => "2", "mon" => "1", "mweek" => "3"))));
|
||||
$preset[] = json_encode(array("presidents_day" => array("variables" => array("wday" => "2", "mon" => "2", "mweek" => "3"))));
|
||||
$preset[] = json_encode(array("memorial_day" => array("variables" => array("mday" => "25-31", "wday" => "2", "mon" => "5"))));
|
||||
$preset[] = json_encode(array("independence_day" => array("variables" => array("mday" => "4", "mon" => "7"))));
|
||||
$preset[] = json_encode(array("labor_day" => array("variables" => array("wday" => "2", "mon" => "9", "mweek" => "1"))));
|
||||
$preset[] = json_encode(array("columbus_day" => array("variables" => array("wday" => "2", "mon" => "10", "mweek" => "2"))));
|
||||
$preset[] = json_encode(array("veterans_day" => array("variables" => array("mday" => "11", "mon" => "11"))));
|
||||
$preset[] = json_encode(array("thanksgiving_day" => array("variables" => array("wday" => "5-6", "mon" => "11", "mweek" => "4"))));
|
||||
$preset[] = json_encode(array("christmas_day" => array("variables" => array("mday" => "25", "mon" => "12"))));
|
||||
$preset[] = json_encode(array("new_years_day" => array("mday" => "1", "mon" => "1")));
|
||||
$preset[] = json_encode(array("martin_luther_king_jr_day" => array("wday" => "2", "mon" => "1", "mweek" => "3")));
|
||||
$preset[] = json_encode(array("presidents_day" => array("wday" => "2", "mon" => "2", "mweek" => "3")));
|
||||
$preset[] = json_encode(array("memorial_day" => array("mday" => "25-31", "wday" => "2", "mon" => "5")));
|
||||
$preset[] = json_encode(array("independence_day" => array("mday" => "4", "mon" => "7")));
|
||||
$preset[] = json_encode(array("labor_day" => array("wday" => "2", "mon" => "9", "mweek" => "1")));
|
||||
$preset[] = json_encode(array("columbus_day" => array("wday" => "2", "mon" => "10", "mweek" => "2")));
|
||||
$preset[] = json_encode(array("veterans_day" => array("mday" => "11", "mon" => "11")));
|
||||
$preset[] = json_encode(array("thanksgiving_day" => array("wday" => "5-6", "mon" => "11", "mweek" => "4")));
|
||||
$preset[] = json_encode(array("christmas_day" => array("mday" => "25", "mon" => "12")));
|
||||
|
||||
//define array of settings
|
||||
$x = 0;
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
<?php
|
||||
|
||||
$text['title-time-condition-add']['en-us'] = "Time Conditions";
|
||||
$text['title-time-condition-add']['es-cl'] = "Condiciones Temporales";
|
||||
$text['title-time-condition-add']['pt-pt'] = "Condições Temporais";
|
||||
$text['title-time-condition-add']['fr-fr'] = "Conditions Temporelles";
|
||||
$text['title-time-conditions']['en-us'] = "Time Conditions";
|
||||
$text['title-time-conditions']['es-cl'] = "Condiciones Temporales";
|
||||
$text['title-time-conditions']['pt-pt'] = "Condições Temporais";
|
||||
$text['title-time-conditions']['fr-fr'] = "Conditions Temporelles";
|
||||
|
||||
$text['description-time-condition-add']['en-us'] = "Time conditions route calls based on time conditions. You can use time conditions to send calls to an IVR Menu, External numbers, Scripts, or other destinations.";
|
||||
$text['description-time-condition-add']['es-cl'] = "Dirije llamadas basado en condiciones temporales. Piede configurar condiciones horarias para enviar llamadas a un IVR, números externos, scripts u otro destino";
|
||||
$text['description-time-condition-add']['pt-pt'] = "As condições temporais encaminham as chamadas com base no tempo. Pode utilizar as condições temporais para enviar chamadas para um menu de IVR, números externos, scripts, ou outros destinos.";
|
||||
$text['description-time-condition-add']['fr-fr'] = "Configurer l'acheminement d'apppel en fonction de conditions temporelles. Ces conditions temporelles permettent de diriger les appels vers un menu SVI, un numéro externe, un script, ou tout autre destination.";
|
||||
$text['description-time-conditions']['en-us'] = "Dynamically route calls to an IVR menu, external numbers, scripts, or other destinations based on time conditions.";
|
||||
$text['description-time-conditions']['es-cl'] = "Ruta dinámicamente llama a un menú IVR, números externos, guiones u otros destinos basados en las condiciones de tiempo.";
|
||||
$text['description-time-conditions']['pt-pt'] = "Rota dinamicamente as chamadas para um menu IVR, números externos, scripts ou outros destinos com base nas condições de tempo.";
|
||||
$text['description-time-conditions']['fr-fr'] = "Dynamiquement acheminer les appels à un menu IVR, numéros externes, scripts, ou d'autres destinations en fonction des conditions de temps.";
|
||||
|
||||
$text['button-back']['en-us'] = "Back";
|
||||
$text['button-back']['es-cl'] = "Volver";
|
||||
@@ -65,6 +65,16 @@
|
||||
$text['label-condition_scope']['pt-pt'] = "Escopo";
|
||||
$text['label-condition_scope']['fr-fr'] = "Portée";
|
||||
|
||||
$text['option-condition_scope_specific']['en-us'] = "Specific";
|
||||
$text['option-condition_scope_specific']['es-cl'] = "Específico";
|
||||
$text['option-condition_scope_specific']['pt-pt'] = "Específico";
|
||||
$text['option-condition_scope_specific']['fr-fr'] = "Spécifique";
|
||||
|
||||
$text['option-condition_scope_range']['en-us'] = "Range";
|
||||
$text['option-condition_scope_range']['es-cl'] = "Alcance";
|
||||
$text['option-condition_scope_range']['pt-pt'] = "Alcance";
|
||||
$text['option-condition_scope_range']['fr-fr'] = "Gamme";
|
||||
|
||||
$text['label-condition_values']['en-us'] = "Value(s)";
|
||||
$text['label-condition_values']['es-cl'] = "";
|
||||
$text['label-condition_values']['pt-pt'] = "";
|
||||
@@ -185,6 +195,16 @@
|
||||
$text['label-time-of-day']['pt-pt'] = "Hora do Dia";
|
||||
$text['label-time-of-day']['fr-fr'] = "Heure de la journée";
|
||||
|
||||
$text['label-time-of-day_minute']['en-us'] = "Minute";
|
||||
$text['label-time-of-day_minute']['es-cl'] = "Minuto";
|
||||
$text['label-time-of-day_minute']['pt-pt'] = "Minuto";
|
||||
$text['label-time-of-day_minute']['fr-fr'] = "Minute";
|
||||
|
||||
$text['label-time-of-day_hour']['en-us'] = "Hour";
|
||||
$text['label-time-of-day_hour']['es-cl'] = "Horas";
|
||||
$text['label-time-of-day_hour']['pt-pt'] = "Horas";
|
||||
$text['label-time-of-day_hour']['fr-fr'] = "Hour";
|
||||
|
||||
$text['label-date-and-time']['en-us'] = "Date & Time";
|
||||
$text['label-date-and-time']['es-cl'] = "Fecha y hora";
|
||||
$text['label-date-and-time']['pt-pt'] = "Data e Hora";
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user