xpath('input') as $value) {
$res_n = (string)$value->name;
$res_name = $npref . $res_n;
//if (!empty($fvalues[$res_n])) {
+ $value->value = $fvalues[$res_n]['data'];
if (!empty($fvalues[$res_n]['data'])) {
if (!empty($sccp_defaults[$res_n]['systemdefault']) && ($sccp_defaults[$res_n]['systemdefault'] != $fvalues[$res_n]['data'])) {
$usingSysDefaults = false;
- }
- $value->value = $fvalues[$res_n]['data'];
+ }
}
//}
// Default to chan-sccp defaults, not xml defaults.
@@ -144,6 +144,9 @@ foreach ($items as $child) {
echo $child->nameseparator;
}
// Output current value
+ if (empty($value->value)) {
+ echo "Value not found for {$res_n}";
+ }
echo $value->value;
$i ++;
}
diff --git a/views/server.device.php b/views/server.device.php
index 21838cb..dc4f74a 100644
--- a/views/server.device.php
+++ b/views/server.device.php
@@ -22,10 +22,11 @@
$def_val_line = $this->getTableDefaults('sccpline');
$def_val_device = $this->getTableDefaults('sccpdevice');
- echo $this->showGroup('sccp_dev_config', 1, 'sccpdevice', $def_val_device);
- echo $this->showGroup('sccp_dev_group_config', 1, 'sccpline', $def_val_line);
- echo $this->showGroup('sccp_dev_advconfig', 1, 'sccpdevice', $def_val_device);
- echo $this->showGroup('sccp_dev_softkey', 1, 'sccpdevice', $def_val_device);
- echo $this->showGroup('sccp_hotline_config', 1, 'sccpdevice', $def_val_device);
+ //echo $this->showGroup('sccp_dev_config', 1, 'sccpdevice', $def_val_device);
+ echo $this->showGroup('sccp_dev_config', 1);
+ echo $this->showGroup('sccp_dev_group_config', 1);
+ echo $this->showGroup('sccp_dev_advconfig', 1);
+ echo $this->showGroup('sccp_dev_softkey', 1);
+ echo $this->showGroup('sccp_hotline_config', 1);
?>
diff --git a/views/server.setting.php b/views/server.setting.php
index c2ca156..8de4a20 100644
--- a/views/server.setting.php
+++ b/views/server.setting.php
@@ -41,7 +41,7 @@