Exemplo n.º 1
0
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// 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('base');
$this->lang->load('network');
///////////////////////////////////////////////////////////////////////////////
// Form
///////////////////////////////////////////////////////////////////////////////
echo form_open('web_proxy/warning');
echo form_header(lang('web_proxy_web_proxy'));
echo field_view(lang('base_status'), $message, 'warning');
echo field_view(lang('web_proxy_web_address'), $url, 'web_address');
echo field_view(lang('network_ip'), $ip, 'ip');
echo field_view(lang('web_proxy_internet_connection_status'), '<div class="theme-loading-small"></div>', 'status');
echo form_footer();
echo form_close();
Exemplo n.º 2
0
<html lang="ja">
<head>
  <?php 
include $_SERVER['DOCUMENT_ROOT'] . "/form/form_result.php";
?>
  <?php 
form_metadata();
?>
</head>
<body id="hpb-template-03-05-01" class="hpb-layoutset-02">
<div id="hpb-skip"><a href="#hpb-title">本文へスキップ</a></div>
<!-- container -->
<div id="hpb-container">
  <!-- header -->
  <?php 
form_header();
?>
  <!-- header end --><!-- inner -->
  <div id="hpb-inner">
    <!-- wrapper -->
    <div id="hpb-wrapper">
      <!-- page title -->
      <div id="hpb-title">
        <h2><span class="ja">競技結果</span><span class="en">Race result</span></h2>
      </div>
      <!-- page title end --><!-- main -->
      <div id="hpb-main">
        <!-- policy -->
        <div id="policy" align="center">
<h3 class="hpb-parts-hl-08 hpb-parts-hl-style">●2014年 12月 〜競技結果〜</h3>  
Exemplo n.º 3
0
// 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') {
        echo field_dropdown('mode', $modes, $mode, lang('web_proxy_mode'), $read_only);
    } else {
        echo field_toggle_enable_disable('transparent', $transparent, lang('web_proxy_transparent_mode'), $read_only);
        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);
        }
    }
Exemplo n.º 4
0
// Load dependencies
///////////////////////////////////////////////////////////////////////////////
$this->lang->load('web_proxy');
$this->lang->load('network');
///////////////////////////////////////////////////////////////////////////////
// Form handler
///////////////////////////////////////////////////////////////////////////////
if ($form_type === 'view') {
    $read_only = TRUE;
    $form_path = '/web_proxy/exceptions/view';
    $buttons = array(form_submit_add('submit'), anchor_cancel('/app/web_proxy/exceptions'));
} else {
    if ($form_type === 'add') {
        $read_only = FALSE;
        $form_path = '/web_proxy/exceptions/add';
        $buttons = array(form_submit_add('submit'), anchor_cancel('/app/web_proxy/exceptions/'));
    } else {
        $read_only = FALSE;
        $form_path = '/web_proxy/exceptions/edit';
        $buttons = array(form_submit_update('submit'), anchor_cancel('/app/web_proxy/exceptions/'), anchor_delete('/app/web_proxy/exceptions/delete/' . $interface));
    }
}
///////////////////////////////////////////////////////////////////////////////
// Form
///////////////////////////////////////////////////////////////////////////////
echo form_open($form_path);
echo form_header(lang('web_proxy_exception_sites'));
echo field_input('site', $site, lang('web_proxy_site'), $read_only);
echo field_button_set($buttons);
echo form_footer();
echo form_close();
Exemplo n.º 5
0
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);
echo field_input('remote_ip', $remote_ip, lang('pptpd_remote_ip_range'), $read_only);
echo field_input('dns', $dns, lang('pptpd_dns_server'), $read_only);
echo field_input('wins', $wins, lang('pptpd_wins_server'), $read_only);
echo field_button_set($buttons);
echo form_footer();
echo form_close();
Exemplo n.º 6
0
// along with this program.  If not, see <http://www.gnu.org/licenses/>.
//
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
// Load dependencies
///////////////////////////////////////////////////////////////////////////////
$this->lang->load('base');
$this->lang->load('apcups');
if (isset($error)) {
    echo infobox_warning(lang('base_warning'), $error, array('id' => 'connection_error'));
}
///////////////////////////////////////////////////////////////////////////////
// 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);
Exemplo n.º 7
0
$this->lang->load('web_proxy');
$this->lang->load('firewall');
$this->lang->load('network');
///////////////////////////////////////////////////////////////////////////////
// Form handler
///////////////////////////////////////////////////////////////////////////////
if ($form_type === 'view') {
    $read_only = TRUE;
    $form_path = '/web_proxy/bypass/view';
    $buttons = array(form_submit_add('submit'), anchor_cancel('/app/web_proxy/bypass'));
} else {
    if ($form_type === 'add') {
        $read_only = FALSE;
        $form_path = '/web_proxy/bypass/add';
        $buttons = array(form_submit_add('submit'), anchor_cancel('/app/web_proxy/bypass/'));
    } else {
        $read_only = FALSE;
        $form_path = '/web_proxy/bypass/edit';
        $buttons = array(form_submit_update('submit'), anchor_cancel('/app/web_proxy/bypass/'), anchor_delete('/app/web_proxy/bypass/delete/' . $interface));
    }
}
///////////////////////////////////////////////////////////////////////////////
// Form
///////////////////////////////////////////////////////////////////////////////
echo form_open($form_path);
echo form_header(lang('web_proxy_web_proxy_bypass'));
echo field_input('nickname', $nickname, lang('firewall_nickname'), $read_only);
echo field_input('address', $address, lang('network_address'), $read_only);
echo field_button_set($buttons);
echo form_footer();
echo form_close();