checkStatus("soundlang")) {
$syslangs = \FreePBX::Soundlang()->getLanguages();
if (!is_array($syslangs)) {
$syslangs = array();
}
}
if (function_exists('music_list')){
$moh_list = music_list();
// $cur = (isset($mohsilence) && $mohsilence != "" ? $mohsilence : 'default');
}
if (!is_array($moh_list)){
$moh_list = array('default');
}
$sofkey_list = \FreePBX::Sccp_manager()-> sccp_list_keysets();
$model_list = \FreePBX::Sccp_manager()->get_db_SccpTableData("HWDevice");
$extension_list = \FreePBX::Sccp_manager()->get_db_SccpTableData("HWextension");
$extension_list[]=array(model=>'none', vendor=>'CISCO', dns=>'0');
$items = $itm -> children();
//print_r($sofkey_list);
//print_r($syslangs);
//print_r($moh_list);
if ($h_show==1) {
?>
help)) {
$child->help = 'Help is not available.';
}
if ($child['type'] == 'IE') {
$res_input = '';
$res_name = '';
$res_id = $npref.$child->input[0]->name;
if (empty($child->nameseparator)) {
$child->nameseparator = ' / ';
}
$i = 0;
echo '';
?>
label.' -->';
}
if ($child['type'] == 'IED') {
$res_input = '';
$res_name = '';
$res_n = (string)$child->name;
// $res_value
$lnhtm = '';
$res_id = $napref.$child->name;
$i = 0;
if (!empty($fvalues[$res_n])) {
if (!empty($fvalues[$res_n]['data'])) {
$res_value = explode(';', $fvalues[$res_n]['data']);
}
}
if (empty($res_value)) {
$res_value = array((string) $child->default);
// $res_value = explode('/', (string) $child->default);
}
echo '';
?>
label.' -->';
}
if ($child['type'] == 'IS') {
$res_n = (string)$child->name;
$res_id = $npref.$child->name;
echo '';
?>
label.' -->';
}
/*
* Input element Select SLD - Date format
* SLZ - Time Zone
* SLT - TFTP Lang
* SLM - Music on hold
* SLK - System KeySet
*/
if ($child['type'] == 'SLD' || $child['type'] == 'SLM'|| $child['type'] == 'SLK'|| $child['type'] == 'SLZ' || $child['type'] == 'SLZN') {
// $value = $child -> select;
$res_n = (string)$child ->name;
$res_id = $npref.$res_n;
if (empty($child->class)) {
$child->class = 'form-control';
}
if ($child['type'] == 'SLD') {
$select_opt= $day_format;
}
// if ($child['type'] == 'SLT') {
// $select_opt= $tftp_lang;
// }
if ($child['type'] == 'SLM') {
$select_opt= $moh_list;
}
if ($child['type'] == 'SLK') {
$select_opt= $sofkey_list;
}
if ($child['type'] == 'SLZ') {
$select_opt= $time_zone;
}
if ($child['type'] == 'SLZN') {
$select_opt= $time_zone_name;
}
echo '';
?>
label.' -->';
}
/*
* Input element Select SLS - System Language
*/
if ($child['type'] == 'SLS' || $child['type'] == 'SLT') {
// $value = $child -> select;
$res_n = (string)$child ->name;
$res_id = $npref.$res_n;
if ($child['type'] == 'SLS') {
$select_opt= $syslangs;
}
if ($child['type'] == 'SLT') {
$select_opt= $tftp_lang;
}
if (empty($child->class)) {
$child->class = 'form-control';
}
echo '';
?>
label.' -->';
}
/*
* Input element Select
*/
if ($child['type'] == 'SL') {
$res_n = (string)$child->name;
$res_id = $npref.$child->name;
if (empty($child ->class)) {
$child->class = 'form-control';
}
echo '';
?>
label.' -->';
}
/*
* Input element Select SDM - Model List
* SDE - Extension List
*/
if ($child['type'] == 'SDM' || $child['type'] == 'SDE' ) {
// $value = $child -> select;
$res_n = (string)$child ->name;
$res_id = $npref.$res_n;
if (empty($child->class)) {
$child->class = 'form-control';
}
if ($child['type'] == 'SDM') {
$select_opt= $model_list;
}
if ($child['type'] == 'SDE') {
$select_opt= $extension_list;
}
echo '';
?>
label.' -->';
}
}
?>
';
}
?>