From 5f9a99736bcdba07ff32f68d4e5deb27ab87eda9 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Thu, 15 Aug 2013 23:30:35 +0000 Subject: [PATCH] When adding a ring group re-enable the ability to add the first destination at the same time. --- app/ring_groups/ring_group_edit.php | 107 ++++++++++++++-------------- 1 file changed, 53 insertions(+), 54 deletions(-) diff --git a/app/ring_groups/ring_group_edit.php b/app/ring_groups/ring_group_edit.php index f2aeb1d454..a7ea0fc362 100644 --- a/app/ring_groups/ring_group_edit.php +++ b/app/ring_groups/ring_group_edit.php @@ -484,8 +484,15 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { echo " "; echo " ".$text['label-destinations'].":"; echo " "; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; if ($action == "update") { - echo "
".$text['label-destination_number']."".$text['label-destination_delay']."".$text['label-destination_timeout']."".$text['label-destination_prompt']."
\n"; $sql = "SELECT * FROM v_ring_group_destinations "; $sql .= "where domain_uuid = '".$_SESSION['domain_uuid']."' "; $sql .= "and ring_group_uuid = '".$ring_group_uuid."' "; @@ -494,71 +501,63 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { $prep_statement->execute(); $result = $prep_statement->fetchAll(PDO::FETCH_NAMED); $result_count = count($result); - echo "\n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo "\n"; foreach($result as $field) { if (strlen($field['destination_delay']) == 0) { $field['destination_delay'] = "0"; } if (strlen($field['destination_timeout']) == 0) { $field['destination_timeout'] = "30"; } - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; - echo " \n"; - echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; } - - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - - echo " \n"; - echo " \n"; - echo " \n"; - echo "
".$text['label-destination_number']."".$text['label-destination_delay']."".$text['label-destination_timeout']."".$text['label-destination_prompt']."
\n"; - echo " ".$field['destination_number']; - echo " \n"; - echo " ".$field['destination_delay']." \n"; - echo " \n"; - echo " ".$field['destination_timeout']." \n"; - echo " \n"; + echo "
\n"; + echo " ".$field['destination_number']; + echo " \n"; + echo " ".$field['destination_delay']." \n"; + echo " \n"; + echo " ".$field['destination_timeout']." \n"; + echo " \n"; if ($field['destination_prompt'] == "1") { - echo " ".$text['label-destination_prompt_confirm']." \n"; + echo " ".$text['label-destination_prompt_confirm']." \n"; } elseif ($field['destination_prompt'] == "2") { - echo " ".$text['label-destination_prompt_announce']." \n"; + echo " ".$text['label-destination_prompt_announce']." \n"; } else { - echo "  \n"; + echo "  \n"; } - echo " \n"; - echo " $v_link_label_edit\n"; - echo " $v_link_label_delete\n"; - echo "
\n"; + echo " $v_link_label_edit\n"; + echo " $v_link_label_delete\n"; + echo "
\n"; - echo " \n"; - echo " \n"; - destination_select('destination_delay', $destination_delay, '0'); - echo " \n"; - destination_select('destination_timeout', $destination_timeout, '30'); - echo " \n"; - echo " \n"; - echo " \n"; - if ($action == "update") { - echo " \n"; - } - echo "
\n"; } unset($sql, $result); + + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + destination_select('destination_delay', $destination_delay, '0'); + echo " \n"; + echo " \n"; + destination_select('destination_timeout', $destination_timeout, '30'); + echo " \n"; + + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " ".$text['description-destinations']."\n"; echo "
\n"; echo " ";