From baac03c085cdacee03b8decb77f7eb3a0a060966 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 10 Feb 2018 13:16:23 -0700 Subject: [PATCH] Update ring_group_edit.php --- app/ring_groups/ring_group_edit.php | 73 +++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/app/ring_groups/ring_group_edit.php b/app/ring_groups/ring_group_edit.php index a3b1dc451c..22a33fd75c 100644 --- a/app/ring_groups/ring_group_edit.php +++ b/app/ring_groups/ring_group_edit.php @@ -96,6 +96,7 @@ //set variables from http values $ring_group_name = check_str($_POST["ring_group_name"]); $ring_group_extension = check_str($_POST["ring_group_extension"]); + $ring_group_greeting = check_str($_POST["ring_group_greeting"]); $ring_group_context = check_str($_POST["ring_group_context"]); $ring_group_strategy = check_str($_POST["ring_group_strategy"]); $ring_group_timeout_action = check_str($_POST["ring_group_timeout_action"]); @@ -167,6 +168,7 @@ $msg = ''; if (strlen($ring_group_name) == 0) { $msg .= $text['message-name']."
\n"; } if (strlen($ring_group_extension) == 0) { $msg .= $text['message-extension']."
\n"; } + //if (strlen($ring_group_greeting) == 0) { $msg .= $text['message-greeting']."
\n"; } if (strlen($ring_group_strategy) == 0) { $msg .= $text['message-strategy']."
\n"; } //if (strlen($ring_group_timeout_app) == 0) { $msg .= $text['message-timeout-action']."
\n"; } //if (strlen($ring_group_cid_name_prefix) == 0) { $msg .= "Please provide: Caller ID Name Prefix
\n"; } @@ -363,6 +365,7 @@ foreach ($result as &$row) { $ring_group_name = $row["ring_group_name"]; $ring_group_extension = $row["ring_group_extension"]; + $ring_group_greeting = $row["ring_group_greeting"]; $ring_group_context = $row["ring_group_context"]; $ring_group_strategy = $row["ring_group_strategy"]; $ring_group_timeout_app = $row["ring_group_timeout_app"]; @@ -455,9 +458,46 @@ $ringbacks = new ringbacks; $ringbacks = $ringbacks->select('ring_group_ringback', $ring_group_ringback); +//get the sounds + $sounds = new sounds; + $sounds = $sounds->get(); + //show the header require_once "resources/header.php"; +//option to change select to text + if (if_group("superadmin")) { + echo "\n"; + echo "\n"; + } + //show the content echo "
\n"; echo "\n"; @@ -496,6 +536,39 @@ echo "\n"; echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; echo "
\n"; + echo " ".$text['label-greeting']."\n"; + echo "\n"; + echo "\n"; + echo "
\n"; + echo $text['description-greeting']."\n"; + echo "
\n"; echo " ".$text['label-strategy']."\n";