input[0]->name;
$res_id = $npref.$shortId;
if (!empty($metainfo[$shortId])) {
if ($child->meta_help == '1' || $child->help == 'Help!') {
$child->help = $metainfo[$shortId];
}
}
// --- Add Hidden option
$res_sec_class ='';
if (!empty($child ->class)) {
$res_sec_class = (string)$child ->class;
}
if (empty($child->nameseparator)) {
$child->nameseparator = ' / ';
}
$i = 0;
?>
name;
if (!empty($metainfo[$res_n])) {
if ($child->meta_help == '1' || $child->help == 'Help!') {
$child->help = $metaInfo[$res_n];
}
}
// $res_value
$lnhtm = '';
$res_id = $napref.$child->name;
$i = 0;
$max_row = 255;
if (!empty($child->max_row)) {
$max_row = $child->max_row;
}
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);
}
?>
name;
$res_id = $npref.$res_n;
$res_ext = str_replace($npref,'',$res_n);
$usingSysDefaults = true;
if (!empty($metainfo[$res_n])) {
if ($child->meta_help == '1' || $child->help == 'Help!') {
$child->help = $metaInfo[$res_n];
}
}
// --- Add Hidden option
$res_sec_class ='';
if (!empty($child ->class)) {
$res_sec_class = (string)$child ->class;
}
?>
name;
$res_id = $npref.$res_n;
// $select_opt is a simple array for these types.
$select_opt = array();
if (!empty($metainfo[$res_n])) {
if ($child->meta_help == '1' || $child->help == 'Help!') {
$child->help = $metaInfo[$res_n];
}
}
if (empty($child->class)) {
$child->class = 'form-control';
}
switch ($child['type']) {
case 'SLD':
$day_format = array("D.M.Y", "D.M.YA", "Y.M.D", "YA.M.D", "M-D-Y", "M-D-YA", "D-M-Y", "D-M-YA", "Y-M-D", "YA-M-D", "M/D/Y", "M/D/YA",
"D/M/Y", "D/M/YA", "Y/M/D", "YA/M/D", "M/D/Y", "M/D/YA");
$select_opt= $day_format;
break;
case 'SLM':
if (function_exists('music_list')) {
$moh_list = music_list();
}
if (!is_array($moh_list)) {
$moh_list = array('default');
}
$select_opt= $moh_list;
break;
case 'SLK':
$softKeyList = \FreePBX::Sccp_manager()->aminterface->sccp_list_keysets();
$select_opt= $softKeyList;
break;
case 'SLP':
$dialplan_list = array();
foreach (\FreePBX::Sccp_manager()->getDialPlanList() as $tmpkey) {
$tmp_id = $tmpkey['id'];
$dialplan_list[$tmp_id] = $tmp_id;
}
$select_opt= $dialplan_list;
break;
}
if (!empty($fvalues[$res_n])) {
if (!empty($fvalues[$res_n]['data'])) {
$child->value = $fvalues[$res_n]['data'];
}
}
?>
name;
$res_id = $npref.$res_n;
$child->value ='';
// $select_opt is an associative array for these types.
if (!empty($metainfo[$res_n])) {
if ($child->meta_help == '1' || $child->help == 'Help!') {
$child->help = $metaInfo[$res_n];
}
}
switch ($child['type']) {
case 'SLS':
if (\FreePBX::Modules()->checkStatus("soundlang")) {
$syslangs = \FreePBX::Soundlang()->getLanguages();
if (!is_array($syslangs)) {
$syslangs = array();
}
}
$select_opt= $syslangs;
foreach (array_keys($select_opt) as $k => $v) {
if ($k !== $v) {
dbug('sys list is an associative array');
} else {
dbug('sys list is a simple array');
}
}
break;
case 'SLT':
$select_opt= $tftp_lang;
break;
case 'SLZ':
$timeZoneOffsetList = array('-12' => 'GMT -12', '-11' => 'GMT -11', '-10' => 'GMT -10', '-09' => 'GMT -9',
'-08' => 'GMT -8', '-07' => 'GMT -7', '-06' => 'GMT -6', '-05' => 'GMT -5',
'-04' => 'GMT -4', '-03' => 'GMT -3', '-02' => 'GMT -2', '-01' => 'GMT -1',
'00' => 'GMT', '01' => 'GMT +1', '02' => 'GMT +2', '03' => 'GMT +3',
'04' => 'GMT +4', '05' => 'GMT +5', '06' => 'GMT +6', '07' => 'GMT +7',
'08' => 'GMT +8', '09' => 'GMT +9', '10' => 'GMT +10', '11'=> 'GMT +11', '12' => 'GMT +12');
$select_opt= $timeZoneOffsetList;
break;
case 'SLA':
$select_opt ='';
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);
}
foreach ($res_value as $key) {
$select_opt[$key]= $key;
}
}
case 'SLM':
if (function_exists('music_list')) {
$moh_list = music_list();
}
if (!is_array($moh_list)) {
$moh_list = array('default');
}
$select_opt= $moh_list;
break;
case 'SLD':
$day_format = array("D.M.Y", "D.M.YA", "Y.M.D", "YA.M.D", "M-D-Y", "M-D-YA", "D-M-Y", "D-M-YA", "Y-M-D", "YA-M-D", "M/D/Y", "M/D/YA",
"D/M/Y", "D/M/YA", "Y/M/D", "YA/M/D", "M/D/Y", "M/D/YA");
$select_opt= $day_format;
break;
case 'SLK':
$softKeyList = \FreePBX::Sccp_manager()->aminterface->sccp_list_keysets();
$select_opt= $softKeyList;
break;
case 'SLP':
$dialplan_list = array();
foreach (\FreePBX::Sccp_manager()->getDialPlanList() as $tmpkey) {
$tmp_id = $tmpkey['id'];
$dialplan_list[$tmp_id] = $tmp_id;
}
$select_opt= $dialplan_list;
break;
case 'SL':
$select_opt = array();
break;
}
if (empty($child->class)) {
$child->class = 'form-control';
}
if (!empty($fvalues[$res_n])) {
if (!empty($fvalues[$res_n]['data'])) {
$child->value = $fvalues[$res_n]['data'];
}
}
if (empty($child->value)) {
if (!empty($child->default)) {
$child->value = $child->default;
}
}
?>
name;
$res_id = $npref.$res_n;
if (!empty($metainfo[$res_n])) {
if ($child->meta_help == '1' || $child->help == 'Help!') {
$child->help = $metaInfo[$res_n];
}
}
if (empty($child->class)) {
$child->class = 'form-control';
}
switch ($child['type']) {
case 'SDM':
$model_list = \FreePBX::Sccp_manager()->dbinterface->getSccpDeviceTableData("HWDevice");
$select_opt= $model_list;
break;
case 'SDMS':
$model_list = \FreePBX::Sccp_manager()->dbinterface->getSccpDeviceTableData("HWSipDevice");
$select_opt= $model_list;
break;
case 'SDE':
$extension_list = \FreePBX::Sccp_manager()->dbinterface->getSccpDeviceTableData("HWextension");
$extension_list[]=array( 'model' => 'NONE', 'vendor' => 'CISCO', 'dns' => '0');
foreach ($extension_list as &$data) {
$d_name = explode(';', $data['model']);
if (is_array($d_name) && (count($d_name) > 1)) {
$data['description'] = count($d_name).'x '.$d_name[0];
} else {
$data['description'] = $data['model'];
}
}
unset($data);
$select_opt= $extension_list;
break;
case 'SDD':
$device_list = \FreePBX::Sccp_manager()->dbinterface->getSccpDeviceTableData("SccpDevice");
$device_list[]=array('name' => 'NONE', 'description' => 'No Device');
$select_opt = $device_list;
break;
}
?>
name;
// $res_value
$lnhtm = '';
$res_id = $napref.$child->name;
$i = 0;
if (!empty($fvalues[$res_na])) {
if (!empty($fvalues[$res_na]['data'])) {
$res_value = explode(';', $fvalues[$res_na]['data']);
}
}
if (empty($res_value)) {
$res_value = array((string) $child->default);
}
echo "';
}
function addElementHLP($child, $fvalues, $sccp_defaults,$npref) {
$res_n = (string)$child ->name;
$res_id = $npref.$res_n;
if (empty($child->class)) {
$child->class = 'form-control';
}
?>
xpath('element') as $value) {
switch ($value['type']) {
case 'p':
case 'h1':
case 'h2':
case 'h3':
case 'h4':
echo '<'.$value['type'].'>'._((string)$value).''.$value['type'].'>';
break;
case 'table':
echo '<'.$value['type'].' class="table" >';
foreach ($value->xpath('row') as $trow) {
echo '
';
foreach ($trow->xpath('col') as $tcol) {
echo ''._((string)$tcol).' | ';
}
echo '
';
}
echo ''.$value['type'].'>';
break;
}
}
?>
name;
$res_id = $npref.$res_n;
$child->value ='';
if (!empty($metainfo[$res_n])) {
if ($child->meta_help == '1' || $child->help == 'Help!') {
$child->help = $metaInfo[$res_n];
}
}
if (empty($child->class)) {
$child->class = 'form-control';
}
if (!empty($fvalues[$res_n])) {
if (!empty($fvalues[$res_n]['data'])) {
$child->value = $fvalues[$res_n]['data'];
}
}
$child->value = \date_default_timezone_get();
?>
children();
if ($h_show==1) {
$sec_class ='';
if (!empty($items ->class)) {
$sec_class = (string)$items ->class;
}
?>
label) ?>
help)) {
$child->help = 'Help is not available.';
$child->meta_help = '1';
}
echo "";
// $child->meta_help = '1'; // Remove comments to see chan-sccp supplied help !
switch ($child['type']) {
case 'IE':
$thisSccpView->addElementIE($child, $fvalues, $sccp_defaults,$npref);
break;
case 'IED':
$thisSccpView->addElementIED($child, $fvalues, $sccp_defaults,$npref, $napref);
break;
case 'IS':
$thisSccpView->addElementIS($child, $fvalues, $sccp_defaults,$npref);
break;
case 'SLD':
case 'SLM':
case 'SLK':
case 'SLP':
//$thisSccpView->addElementSL($child, $fvalues, $sccp_defaults,$npref);
//break;
case 'SLS':
case 'SLT':
case 'SLA':
case 'SLZ':
case 'SL':
$thisSccpView->addElementSL2($child, $fvalues, $sccp_defaults,$npref);
break;
case 'SDM':
case 'SDMS':
case 'SDE':
case 'SDD':
$thisSccpView->addElementSD($child, $fvalues, $sccp_defaults,$npref);
break;
case 'ITED':
$thisSccpView->addElementITED($child, $fvalues, $sccp_defaults, $npref, $napref);
break;
case 'HLP':
$thisSccpView->addElementHLP($child, $fvalues, $sccp_defaults,$npref);
break;
case 'SLTZN':
$thisSccpView->addElementSLTZN($child, $fvalues, $sccp_defaults,$npref);
break;
}
echo "";
}
if ($h_show==1) {
echo '
';
}
?>