$select_options .= "\t\t<option value='\${rs-ring}' selected='selected'>" . $text['option-rsring'] . "</option>\n"; } else { $select_options .= "\t\t<option value='\${rs-ring}'>" . $text['option-rsring'] . "</option>\n"; } if ($ring_group_ringback == "\${it-ring}" || $ring_group_ringback == "it-ring") { $select_options .= "\t\t<option value='\${it-ring}' selected='selected'>" . $text['option-itring'] . "</option>\n"; } else { $select_options .= "\t\t<option value='\${it-ring}'>" . $text['option-itring'] . "</option>\n"; } if (is_dir($_SERVER["DOCUMENT_ROOT"] . PROJECT_PATH . '/app/music_on_hold')) { require_once "app/music_on_hold/resources/classes/switch_music_on_hold.php"; $moh = new switch_music_on_hold(); $moh->select_name = "ring_group_ringback"; $moh->select_value = $ring_group_ringback; $moh->select_options = $select_options; echo $moh->select(); } else { echo "\t<select class='formfld' name='ring_group_ringback'>\n"; //echo " <option value=''></option>\n"; echo $select_options; echo "\t</select>\n"; } echo "<br />\n"; echo $text['description-ringback'] . "\n"; echo "</td>\n"; echo "</tr>\n"; echo "\t<tr>"; echo "\t\t<td class='vncell' valign='top'>" . $text['label-user_list'] . "</td>"; echo "\t\t<td class='vtable'>"; echo "\t\t\t<table width='52%'>\n"; foreach ($ring_group_users as $field) {
} echo " </select>\n"; echo "<br />\n"; echo $text['description-user_record'] . "\n"; echo "</td>\n"; echo "</tr>\n"; } if (is_dir($_SERVER["DOCUMENT_ROOT"] . PROJECT_PATH . '/app/music_on_hold')) { echo "<tr>\n"; echo "<td width=\"30%\" class='vncell' valign='top' align='left' nowrap='nowrap'>\n"; echo "\t" . $text['label-hold_music'] . "\n"; echo "</td>\n"; echo "<td width=\"70%\" class='vtable' align='left'>\n"; require_once "app/music_on_hold/resources/classes/switch_music_on_hold.php"; $moh = new switch_music_on_hold(); echo $moh->select('hold_music', $hold_music); echo "\t<br />\n"; echo $text['description-hold_music'] . "\n"; echo "</td>\n"; echo "</tr>\n"; } if (if_group("superadmin")) { if (strlen($user_context) == 0) { $user_context = $_SESSION['domain_name']; } echo "<tr>\n"; echo "<td class='vncellreq' valign='top' align='left' nowrap='nowrap'>\n"; echo " " . $text['label-user_context'] . "\n"; echo "</td>\n"; echo "<td class='vtable' align='left'>\n"; echo " <input class='formfld' type='text' name='user_context' maxlength='255' value=\"{$user_context}\" required='required'>\n";