• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP form_header函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中form_header函数的典型用法代码示例。如果您正苦于以下问题:PHP form_header函数的具体用法?PHP form_header怎么用?PHP form_header使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了form_header函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: form_open

//
// 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();
开发者ID:azizjonm,项目名称:app-web-proxy,代码行数:31,代码来源:warning.php


示例2: form_metadata

<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>  
开发者ID:hitomine14,项目名称:aogaku,代码行数:30,代码来源:result_12.php


示例3: array

// 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);
        }
    }
开发者ID:azizjonm,项目名称:app-web-proxy,代码行数:31,代码来源:authentication.php


示例4: array

// 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();
开发者ID:azizjonm,项目名称:app-web-proxy,代码行数:31,代码来源:item.php


示例5: array

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();
开发者ID:huayuxian,项目名称:app-pptpd,代码行数:31,代码来源:settings.php


示例6: infobox_warning

// 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);
开发者ID:clearos,项目名称:app-apcups,代码行数:31,代码来源:overview.php



注:本文中的form_header函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP form_helper_prepare_dropdownfromdb函数代码示例发布时间:2022-05-15
下一篇:
PHP form_get_errors函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap