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) { ?>

label) ?>

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 ''; ?>
xpath('input') as $value) { $res_n = (string)$value->name; $res_name = $npref . $res_n; if (empty($res_id)) { $res_id = $res_name; } if (!empty($fvalues[$res_n])) { if (!empty($fvalues[$res_n]['data'])) { $value->value = $fvalues[$res_n]['data']; } } if (empty($value->value)) { $value->value = $value->default; } if (empty($value->type)) { $value->type = 'text'; } if (empty($value->class)) { $value->class = 'form-control'; } if ($i > 0) echo $child->nameseparator; // echo 'options)){ foreach ($value->options ->attributes() as $optkey =>$optval){ echo ' '.$optkey.'="'.$optval.'"'; } } if (!empty($value->min)) echo ' min="'.$value->min.'"'; if (!empty($value->max)) echo ' max="'.$value->max.'"'; echo '>'; $i ++; } ?>
help);?>
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 ''; ?>
> xpath('input') as $value) { $res_n = $res_id.'['.$i.']['.$value['field'].']'; $fields_id = (string)$value['field']; $opt_at[$fields_id]['nameseparator']=(string)$value['nameseparator']; if (!empty($value->class)) { $opt_at[$fields_id]['class']='form-control ' .(string)$value->class; } $opt_at[$fields_id]['nameseparator']=(string)$value['nameseparator']; echo 'options)){ foreach ($value->options ->attributes() as $optkey =>$optval){ $opt_at[$fields_id]['options'][$optkey]=(string)$optval; echo ' '.$optkey.'="'.$optval.'"'; } } echo '> '.(string)$value['nameseparator'].' '; $i2 ++; } echo '
'; $i++; } ?>
button).'" />'; ?>
help);?>
label.' -->'; } if ($child['type'] == 'IS') { $res_n = (string)$child->name; $res_id = $npref.$child->name; echo ''; ?>
default)) { $res_v = 'no'; } else { $res_v = (string)$child->default; } if (!empty($child->value)) { $res_v = (string)$child->value; } if (!empty($fvalues[$res_n])) { if (!empty($fvalues[$res_n]['data'])) { $res_v = (string)$fvalues[$res_n]['data']; } } foreach ($child->xpath('button') as $value) { echo ''; echo ''; $i++; } ?>
help);?>
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 ''; ?>
class . '" id="' . $res_id . '">'; if (!empty($fvalues[$res_n])) { if (!empty($fvalues[$res_n]['data'])) { $child->value = $fvalues[$res_n]['data']; } } foreach ($select_opt as $key) { echo ''; } ?>
help);?>
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 ''; ?>
class . '" id="' . $res_id . '">'; if (!empty($fvalues[$res_n])) { if (!empty($fvalues[$res_n]['data'])) { $child->value = $fvalues[$res_n]['data']; } } foreach ($select_opt as $key => $val) { echo ''; } ?>
help);?>
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 ''; ?>
class . '" id="' . $res_id . '">'; if (!empty($fvalues[$res_n])) { if (!empty($fvalues[$res_n]['data'])) { $child->value = $fvalues[$res_n]['data']; } } foreach ($child->xpath('select') as $value) { if (!empty($value[@value])) { $key = $value[@value]; } else { $key = (string)$value; } echo ''; } ?>
help);?>
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 ''; ?>
class . '" id="' . $res_id . '">'; if (!empty($fvalues[$res_n])) { if (!empty($fvalues[$res_n]['data'])) { $child->value = $fvalues[$res_n]['data']; } } $fld = (string)$child->select['name']; $flv = (string)$child->select; $flk = (string)$child->select['dataid']; $flkv= (string)$child->select['dataval']; $key = (string)$child->default; foreach ($select_opt as $data) { echo ''; } ?>
help);?>
label.' -->'; } } ?> '; } ?>