addElement('text', 'visio_host', get_lang('VisioHost'));
$form -> addElement('html',' '); $form -> addElement('text', 'visio_port', get_lang('VisioPort')); $form -> addElement('html',' '); $form -> addElement('text', 'visio_pass', get_lang('VisioPassword')); $form -> addElement('html',' '); $group = array(); $group[] =& HTML_QuickForm::createElement('radio', 'visio_use_rtmpt',null,get_lang('Yes'),'true'); $group[] =& HTML_QuickForm::createElement('radio', 'visio_use_rtmpt',null,get_lang('No'),'false'); $form->addGroup($group, '', get_lang('VisioUseRtmptTitle').' ('.get_lang('VisioUseRtmptComment').')', ' '); //$form -> addElement('text', 'visio_is_web_rtmp', get_lang('VisioRTMPIsWeb')); //$form -> addElement('html',' '); $form -> addElement('hidden', 'extension_code', 'visio'); $defaults = array(); $renderer = $form -> defaultRenderer(); $renderer -> setElementTemplate(' {label} {element} ');
$form -> addElement('html',''); if(in_array('service_visio',$listActiveServices)) { $sql = 'SELECT subkey, selected_value FROM '.$tbl_settings_current.' WHERE variable = "service_visio"'; $rs = Database::query($sql); while($row = Database::fetch_array($rs,'ASSOC')) { $defaults[$row['subkey']] = $row['selected_value']; } $form -> addElement('style_submit_button', 'activeExtension', get_lang('ReconfigureExtension'),'class="save"'); } else { $form -> addElement('style_submit_button', 'activeExtension', get_lang('ActivateExtension'),'class="save"'); } $form -> setDefaults($defaults); $form -> display(); ?> |