// along with this program. If not, see <http://www.gnu.org/licenses/>. // /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// // Load dependencies /////////////////////////////////////////////////////////////////////////////// $this->lang->load('web_proxy'); /////////////////////////////////////////////////////////////////////////////// // Form handler /////////////////////////////////////////////////////////////////////////////// if ($form_type === 'edit') { $read_only = FALSE; $buttons = array(form_submit_update('submit'), anchor_cancel('/app/web_proxy')); } else { $read_only = TRUE; $buttons = array(anchor_edit('/app/web_proxy/authentication/edit')); } /////////////////////////////////////////////////////////////////////////////// // Form /////////////////////////////////////////////////////////////////////////////// // This is a bit unusual... the edit mode combines two fields (transparent and // user authentication). echo form_open('web_proxy/authentication/edit'); echo form_header(lang('web_proxy_authentication')); if (!$transparent_capable) { echo field_toggle_enable_disable('user_authentication', $user_authentication, lang('web_proxy_user_authentication'), $read_only); if ($ntlm_available) { echo field_toggle_enable_disable('ntlm', $ntlm, lang('web_proxy_ntlm_mode'), $read_only); } } else { if ($form_type === 'edit') {
/////////////////////////////////////////////////////////////////////////////// $this->lang->load('base'); $this->lang->load('pptpd'); /////////////////////////////////////////////////////////////////////////////// // Form handler /////////////////////////////////////////////////////////////////////////////// if ($auto_configure) { $read_only = TRUE; $buttons = array(); } else { if ($form_type === 'edit') { $read_only = FALSE; $buttons = array(form_submit_update('submit'), anchor_cancel('/app/pptpd/settings')); } else { $read_only = TRUE; $buttons = array(anchor_edit('/app/pptpd/settings/edit')); } } /////////////////////////////////////////////////////////////////////////////// // Auto configure help /////////////////////////////////////////////////////////////////////////////// $options['buttons'] = array(anchor_custom('/app/pptpd/settings/disable_auto_configure', lang('base_disable_auto_configuration'))); if ($auto_configure) { echo infobox_highlight(lang('base_automatic_configuration_enabled'), lang('pptpd_auto_configure_help'), $options); } /////////////////////////////////////////////////////////////////////////////// // Form /////////////////////////////////////////////////////////////////////////////// echo form_open('pptpd/settings'); echo form_header(lang('base_settings')); echo field_input('local_ip', $local_ip, lang('pptpd_local_ip_range'), $read_only);
// along with this program. If not, see <http://www.gnu.org/licenses/>. // /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// // Load dependencies /////////////////////////////////////////////////////////////////////////////// $this->lang->load('web_proxy'); /////////////////////////////////////////////////////////////////////////////// // Form handler /////////////////////////////////////////////////////////////////////////////// if ($form_type === 'edit') { $read_only = FALSE; $buttons = array(form_submit_update('submit'), anchor_cancel('/app/web_proxy')); } else { $read_only = TRUE; $buttons = array(anchor_edit('/app/web_proxy/settings/edit'), anchor_custom('/app/web_proxy/settings/delete', lang('web_proxy_reset_cache'))); // anchor_javascript('reset_cache', lang('web_proxy_reset_cache'), 'high') } /////////////////////////////////////////////////////////////////////////////// // Form open /////////////////////////////////////////////////////////////////////////////// echo form_open('web_proxy/settings/edit'); echo form_header(lang('base_settings')); echo fieldset_header(lang('web_proxy_cache')); echo field_dropdown('cache', $cache_options, $cache, lang('web_proxy_maximum_cache_size'), $read_only); echo field_dropdown('object', $object_options, $object, lang('web_proxy_maximum_object_size'), $read_only); echo field_dropdown('download', $download_options, $download, lang('web_proxy_maximum_file_download_size'), $read_only); echo fieldset_footer(); echo fieldset_header(lang('base_tuning')); echo field_dropdown('levels', $levels, $level, lang('base_performance_level'), TRUE); echo fieldset_footer();
// the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. // /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// // Load dependencies /////////////////////////////////////////////////////////////////////////////// $this->lang->load('web_proxy'); /////////////////////////////////////////////////////////////////////////////// // Items /////////////////////////////////////////////////////////////////////////////// $anchor = anchor_edit('/app/web_proxy/bypass/index', 'high'); $items['bypass']['title'] = lang('web_proxy_bypass'); $items['bypass']['action'] = $anchor; $items['bypass']['anchors'] = array($anchor); $anchor = anchor_edit('/app/web_proxy/exceptions/index', 'high'); $items['exceptions']['title'] = lang('web_proxy_exception_sites'); $items['exceptions']['action'] = $anchor; $items['exceptions']['anchors'] = array($anchor); /////////////////////////////////////////////////////////////////////////////// // Action table /////////////////////////////////////////////////////////////////////////////// echo action_table(lang('web_proxy_rules'), array(), $items);
// // You should have received a copy of the GNU General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. // /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// // Load dependencies /////////////////////////////////////////////////////////////////////////////// $this->lang->load('base'); $this->lang->load('network'); $this->lang->load('airplay'); /////////////////////////////////////////////////////////////////////////////// // Form type handling /////////////////////////////////////////////////////////////////////////////// if ($form_type === 'edit') { $read_only = FALSE; $buttons = array(form_submit_update('submit'), anchor_cancel('/app/airplay/settings')); } else { $read_only = TRUE; $buttons = array(anchor_edit('/app/airplay/settings/edit')); } /////////////////////////////////////////////////////////////////////////////// // Form /////////////////////////////////////////////////////////////////////////////// echo form_open('airplay/settings/edit'); echo form_header(lang('base_settings')); echo field_multiselect_dropdown('allowed_nics[]', $interfaces, $allowed_nics, lang('airplay_interfaces'), $read_only); echo field_toggle_enable_disable('reflector', $reflector, lang('airplay_reflector'), $read_only); echo field_button_set($buttons); echo form_footer(); echo form_close();
/////////////////////////////////////////////////////////////////////////////// // Form open /////////////////////////////////////////////////////////////////////////////// echo form_open('apcups/settings/edit'); echo form_header(lang('base_summary')); /////////////////////////////////////////////////////////////////////////////// // Form fields and buttons /////////////////////////////////////////////////////////////////////////////// if ($mode === 'edit') { $read_only = FALSE; $buttons = array(form_submit_update('submit', 'important', array('id' => 'submit_update')), anchor_cancel('/app/apcups')); } else { $read_only = TRUE; // Only display edit button if connected to UPS if ($is_found) { $buttons = array(anchor_edit('/app/apcups/settings/edit')); } } echo field_input('model', $model, lang('apcups_model'), TRUE); echo field_input('status', $status, lang('apcups_status'), TRUE); echo field_input('load_percent', $loadpct, lang('apcups_load_percent'), TRUE); echo field_input('battery_charge', $bcharge, lang('apcups_battery_charge'), TRUE); echo field_input('battery_time_remaining', $timeleft, lang('apcups_battery_time_remaining'), TRUE); echo field_input('battery_age', $battage, lang('apcups_battery_age'), TRUE); echo field_dropdown('powerdown', $powerdown_options, $mbattchg, lang('apcups_powerdown'), $read_only); echo field_input('control_email', $control_email, lang('apcups_admin_email_address'), $read_only); echo field_button_set($buttons); /////////////////////////////////////////////////////////////////////////////// // Form close /////////////////////////////////////////////////////////////////////////////// echo form_footer();