diff --git a/views/form.sbuttons.php b/views/form.sbuttons.php index 0157378..fc60738 100644 --- a/views/form.sbuttons.php +++ b/views/form.sbuttons.php @@ -6,14 +6,14 @@ * and open the template in the editor. */ $forminfo =array( - array("name"=>"dev_buttons",label=>"Buttons Configuration"), - array("name"=>"button",label=>"Buttons ",help=>"help.") - ); + array('name'=>'dev_buttons','label'=>'Buttons Configuration'), + array('name'=>'button','label'=>'Buttons','help'=>'help') + ); //$buttons_type= array("empty","line","service","feature","speeddial"); // "feature","service" -- Add leter ! //$buttons_type= array("empty","line","silent","monitor","speeddial","feature","adv.line"); -$buttons_type= array("empty","line","speeddial"); -$feature_list= array('parkinglot'=>'Park Slots','monitor'=> "Record Calls",'devstate'=> "Change Status"); +$buttons_type= array('empty','line','speeddial'); +$feature_list= array('parkinglot'=>'Park Slots','monitor'=> 'Record Calls','devstate'=> 'Change Status'); //$lines_list = $this->dbinterface->HWextension_db_SccpTableData('SccpExtension'); $lines_list = $this->sipconfigs->get_db_sip_TableData('Device'); @@ -27,8 +27,8 @@ $show_buttons =1; //print_r($hint_list); if (!empty($_REQUEST['id'])) { $dev_id = $_REQUEST['id']; - $db_buttons = $this->dbinterface->HWextension_db_SccpTableData('get_sccpdevice_buttons', array("id" => $dev_id)); - $db_device = $this->dbinterface->HWextension_db_SccpTableData('get_sccpdevice_byid', array("id" => $dev_id)); + $db_buttons = $this->dbinterface->HWextension_db_SccpTableData('get_sccpdevice_buttons', array('id' => $dev_id)); + $db_device = $this->dbinterface->HWextension_db_SccpTableData('get_sccpdevice_byid', array('id' => $dev_id)); $max_buttons = $db_device['buttons']; if (!empty($db_device['addon_buttons'])) { $max_buttons += $db_device['addon_buttons']; @@ -37,19 +37,19 @@ if (!empty($_REQUEST['id'])) { } if (!empty($_REQUEST['new_id'])) { $val = $_REQUEST['type']; - $dev_schema = $this-> getSccpModelInformation('byid', false, "all", array('model' =>$val)); + $dev_schema = $this-> getSccpModelInformation('byid', false, 'all', array('model' =>$val)); // $db_device = $this->dbinterface->HWextension_db_SccpTableData('get_sccpdevice_byid', array("id" => $val)); $max_buttons = $dev_schema[0]['buttons']; if (!empty($_REQUEST['addon'])) { $val = $_REQUEST['addon']; - $dev_schema = $this-> getSccpModelInformation('byid', false, "all", array('model' =>$val)); + $dev_schema = $this-> getSccpModelInformation('byid', false, 'all', array('model' =>$val)); $max_buttons += $dev_schema[0]['buttons']; } $show_buttons = $max_buttons; } if (!empty($_REQUEST['ru_id'])) { $dev_id = $_REQUEST['ru_id']; - $db_buttons = $this->dbinterface->HWextension_db_SccpTableData('get_sccpdevice_buttons', array("id" => $dev_id)); + $db_buttons = $this->dbinterface->HWextension_db_SccpTableData('get_sccpdevice_buttons', array('id' => $dev_id)); $show_buttons = $max_buttons; } @@ -63,7 +63,7 @@ if (!empty($_REQUEST['ru_id'])) {

-
+
@@ -84,14 +84,14 @@ if (!empty($_REQUEST['ru_id'])) { hold = To be implemented
  • transfer = To be implemented
  • multiblink = To be implemented
  • mobility = To be implemented
  • conference = To be implemented
  • ");?>
    - -
    + +
    '; echo '
    '; // echo 'Mode : '.$show_form_mode. ' opt: '; // print_r( $defaul_opt); - ?> -
    + ?> +
    @@ -206,7 +206,7 @@ if (!empty($_REQUEST['ru_id'])) { echo '
    '; echo '