Added functionality for creating a simplified interface or alternative schemas.
This commit is contained in:
parent
36a70e0dd5
commit
ac4603d543
|
@ -37,7 +37,7 @@
|
||||||
* + Make System Acces from separate class
|
* + Make System Acces from separate class
|
||||||
* + Make Var elements from separate class
|
* + Make Var elements from separate class
|
||||||
* + To make creating XML files in a separate class
|
* + To make creating XML files in a separate class
|
||||||
* - Add Switch to select XML schema (display)
|
* + Add Switch to select XML schema (display)
|
||||||
* - Bootstrap encodeURI(row['type']) ???????
|
* - Bootstrap encodeURI(row['type']) ???????
|
||||||
* - Check Time zone ....
|
* - Check Time zone ....
|
||||||
* + SRST Config
|
* + SRST Config
|
||||||
|
@ -68,8 +68,10 @@
|
||||||
* + dir "templates"
|
* + dir "templates"
|
||||||
* + dir "firmware"
|
* + dir "firmware"
|
||||||
* + dir "locales"
|
* + dir "locales"
|
||||||
* - Create Simple User Interface
|
* + Create Simple User Interface
|
||||||
* - sccpsimple.xml
|
* + sccpsimple.xml
|
||||||
|
* + Add error information on the server information page (critical display error - the system can not work correctly)
|
||||||
|
* - Add Warning Information on Server Info Page
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -140,7 +142,11 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO {
|
||||||
|
|
||||||
|
|
||||||
// Load Advanced Form Constuctor Data
|
// Load Advanced Form Constuctor Data
|
||||||
|
if (empty($this->sccpvalues['displayconfig'])) {
|
||||||
$xml_vars = __DIR__ . '/conf/sccpgeneral.xml.v' . $this->sccpvalues['sccp_compatible']['data'];
|
$xml_vars = __DIR__ . '/conf/sccpgeneral.xml.v' . $this->sccpvalues['sccp_compatible']['data'];
|
||||||
|
} else {
|
||||||
|
$xml_vars = __DIR__ . '/conf/'.$this->sccpvalues['displayconfig']['data'].'.xml.v'.$this->sccpvalues['sccp_compatible']['data'];
|
||||||
|
}
|
||||||
if (!file_exists($xml_vars)) {
|
if (!file_exists($xml_vars)) {
|
||||||
$xml_vars = __DIR__ . '/conf/sccpgeneral.xml';
|
$xml_vars = __DIR__ . '/conf/sccpgeneral.xml';
|
||||||
}
|
}
|
||||||
|
@ -354,10 +360,28 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO {
|
||||||
$request = $_REQUEST;
|
$request = $_REQUEST;
|
||||||
$action = !empty($request['action']) ? $request['action'] : '';
|
$action = !empty($request['action']) ? $request['action'] : '';
|
||||||
|
|
||||||
|
if (!empty(($this->sccpvalues['displayconfig']))) {
|
||||||
|
if (!empty(($this->sccpvalues['displayconfig']['data'] == 'sccpsimple'))) {
|
||||||
|
$this->pagedata = array(
|
||||||
|
"general" => array(
|
||||||
|
"name" => _("General SCCP Settings"),
|
||||||
|
"page" => 'views/server.setting.php'
|
||||||
|
),
|
||||||
|
"sccpdevice" => array(
|
||||||
|
"name" => _("SCCP Device"),
|
||||||
|
"page" => 'views/server.device.php'
|
||||||
|
),
|
||||||
|
"sccpinfo" => array(
|
||||||
|
"name" => _("SCCP info"),
|
||||||
|
"page" => 'views/server.info.php'
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
if (empty($this->pagedata)) {
|
if (empty($this->pagedata)) {
|
||||||
// $driver = $this->FreePBX->Config->get_conf_setting('ASTSIPDRIVER');
|
// $driver = $this->FreePBX->Config->get_conf_setting('ASTSIPDRIVER');
|
||||||
|
|
||||||
$this->pagedata = array(
|
$this->pagedata = array(
|
||||||
"general" => array(
|
"general" => array(
|
||||||
"name" => _("General SCCP Settings"),
|
"name" => _("General SCCP Settings"),
|
||||||
|
@ -385,6 +409,8 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO {
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
}
|
||||||
|
if (!empty($this->pagedata)) {
|
||||||
foreach ($this->pagedata as &$page) {
|
foreach ($this->pagedata as &$page) {
|
||||||
ob_start();
|
ob_start();
|
||||||
include($page['page']);
|
include($page['page']);
|
||||||
|
@ -392,7 +418,6 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO {
|
||||||
ob_end_clean();
|
ob_end_clean();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->pagedata;
|
return $this->pagedata;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -138,6 +138,14 @@ and open the template in the editor. Base Version before all crash :-)
|
||||||
<button value="all">All</button>
|
<button value="all">All</button>
|
||||||
<help>Debug: Enable debugging level in SCCP module.</help>
|
<help>Debug: Enable debugging level in SCCP module.</help>
|
||||||
</item>
|
</item>
|
||||||
|
<item type="IS" id="6">
|
||||||
|
<name>displayconfig</name>
|
||||||
|
<label>SCCP Config Mode </label>
|
||||||
|
<default>sccpgeneral</default>
|
||||||
|
<button value="sccpgeneral">Advanced</button>
|
||||||
|
<button value="sccpsimple">Silmpe</button>
|
||||||
|
<help>Help!</help>
|
||||||
|
</item>
|
||||||
</page_group>
|
</page_group>
|
||||||
<page_group name="sccp_net">
|
<page_group name="sccp_net">
|
||||||
<label>SCCP Networks</label>
|
<label>SCCP Networks</label>
|
||||||
|
|
1477
conf/sccpsimple.xml.v431
Normal file
1477
conf/sccpsimple.xml.v431
Normal file
File diff suppressed because it is too large
Load diff
|
@ -17,10 +17,12 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
echo $this->ShowGroup('sccp_general',1);
|
echo $this->ShowGroup('sccp_general',1);
|
||||||
|
echo $this->ShowGroup('sccp_dev_time_s',1);
|
||||||
echo $this->ShowGroup('sccp_net',1);
|
echo $this->ShowGroup('sccp_net',1);
|
||||||
echo $this->ShowGroup('sccp_lang',1);
|
echo $this->ShowGroup('sccp_lang',1);
|
||||||
echo $this->ShowGroup('sccp_qos_config',1);
|
echo $this->ShowGroup('sccp_qos_config',1);
|
||||||
echo $this->ShowGroup('sccp_extpath_config',1);
|
echo $this->ShowGroup('sccp_extpath_config',1);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Reference in a new issue