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

PHP flash_get函数代码示例

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

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



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

示例1: handleOnAfterInit

 public static function handleOnAfterInit()
 {
     // only allow GET requests
     if ($_SERVER['REQUEST_METHOD'] != 'GET' || defined('USE_FLASH') && (flash_get('success') != NULL || flash_get('error') != NULL)) {
         return;
     }
     $etagEnabled = ConfigOptions::getValue('three_o_four_etag_enabled');
     $cacheEnabled = ConfigOptions::getValue('three_o_four_response_cache_enabled');
     $engineEnabled = $etagEnabled || $cacheEnabled;
     if (!$engineEnabled) {
         return;
     }
     $request = self::_getRequest();
     $request->three_o_four_emit_etag = $etagEnabled;
     if ($cacheEnabled && isset(self::$_routeMap[$request->matched_route])) {
         $cacheOpts = self::$_routeMap[$request->matched_route];
         //$request->three_o_four_cache_response = self::_isCacheableRequest($request);
         $request->three_o_four_cache_response = true;
         $request->three_o_four_cache_opts = $cacheOpts;
         if (($cacheData = self::_getFromCache($request)) !== NULL) {
             // if the user has no view permissions, continue request as usual to output the standard 403
             if (self::_checkPermissions($cacheData, $request)) {
                 self::_sendResponse($cacheData['content'], $cacheData['contentLength'], $cacheData['etag'], $cacheData['headers']);
                 exit;
             }
         }
     }
     $application = application();
     $application->events_manager->listen('on_shutdown', 'onShutdown', THREE_O_FOUR_MODULE);
     ob_start();
     $request->three_o_four_buffering_started = true;
 }
开发者ID:nischu7,项目名称:ac-304,代码行数:32,代码来源:ThreeOFourCore.class.php


示例2: evt_list

/**
 * Returns the events
 *
 * @return array
 */
function evt_list()
{
    $events = flash_get("events");
    if (!$events) {
        return array();
    }
    return $events;
}
开发者ID:abhinay100,项目名称:fengoffice_app,代码行数:13,代码来源:event.php


示例3: smarty_function_flash_box

/**
 * Render smarty flash box
 * 
 * No parameters expected
 *
 * @param array $params
 * @param Smarty $smarty
 * @return string
 */
function smarty_function_flash_box($params, &$smarty)
{
    if ($message = flash_get('success')) {
        $id = 'success';
    } elseif ($message = flash_get('error')) {
        $id = 'error';
    } else {
        return '';
    }
    // if
    //return '<p id="' . $id . '" class="flash"><span class="flash_inner">' . $message . '</span></p>';
    //bof:mod
    return '<p id="' . $id . '" class="flash"><span class="flash_inner">' . strip_tags(html_entity_decode($message)) . '</span></p>';
    //eof:mod
}
开发者ID:NaszvadiG,项目名称:activecollab_loc,代码行数:24,代码来源:function.flash_box.php


示例4: clean

// if
?>
        <div id="innerContentWrapper">
<?php 
if (!is_null(flash_get('success'))) {
    ?>
          <div id="success" onclick="this.style.display = 'none'"><?php 
    echo clean(flash_get('success'));
    ?>
</div>
<?php 
}
if (!is_null(flash_get('error'))) {
    ?>
          <div id="error" onclick="this.style.display = 'none'"><?php 
    echo clean(flash_get('error'));
    ?>
</div>
<?php 
}
?>

          <h1 id="pageTitle"><?php 
echo get_page_title();
?>
</h1>
          <div id="pageContent">
            <div id="content">
              <!-- Content -->
              <?php 
echo $content_for_layout;
开发者ID:bklein01,项目名称:Project-Pier,代码行数:31,代码来源:administration.php


示例5: get_page_title

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
  <head>
    <title><?php echo get_page_title() ?></title>
<?php echo stylesheet_tag('dialog.css') ?>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<?php echo add_javascript_to_page('login.js') ?> 
<?php echo meta_tag('content-type', 'text/html; charset=utf-8', true) ?> 
<link rel="Shortcut Icon" href="<?php echo ROOT_URL ?>/favicon.ico?086" type="image/x-icon" />
<?php echo render_page_head() ?>
  </head>
  <body>
    <div style="margin: 150px auto; width: 414px; 1text-align: center;">
      <img src="public/files/logo.png" style="margin: 0 auto 10px;" />
      <div id="dialog">
        <h1><?php echo get_page_title() ?></h1>
        <?php foreach (array('success', 'error') as $message_type): if (!is_null(flash_get($message_type))): ?>
        <div class="flash-message" id="<?php echo $message_type ?>">
          <p><?php echo clean(flash_get($message_type)) ?></p>
          <div class="hide-flash">x</div>
          <div class="clear"></div>
        </div>
        <?php endif; endforeach; ?>
        <?php echo $content_for_layout ?>
      </div>
    </div>
  </body>
</html>
开发者ID:rjv,项目名称:Project-Pier,代码行数:28,代码来源:dialog.php


示例6: if

<?php } // if {?>
<?php } // foreach ?>
            </ul>
<?php } // if ?>
          </div>
        </div>
      </div>
      
      <!-- content wrapper -->
      <div id="outerContentWrapper">
        <div id="innerContentWrapper">
<?php if (!is_null(flash_get('success'))) { ?>
          <div id="success" onclick="this.style.display = 'none'"><?php echo clean(flash_get('success')) ?></div>
<?php } ?>
<?php if (!is_null(flash_get('error'))) { ?>
          <div id="error" onclick="this.style.display = 'none'"><?php echo clean(flash_get('error')) ?></div>
<?php } ?>

          <div id="pageHeader"><span id="pageTitle"><?php echo get_page_title() ?></span><?php include('pageoptions.php'); ?></div>
          <div id="pageContent">
            <div id="content">
              <!-- Content -->
              <?php echo $content_for_layout ?>
              <!-- /Content -->
            </div>
<?php if (isset($content_for_sidebar)) { ?>
            <div id="sidebar"><?php echo $content_for_sidebar ?></div>
<?php } // if ?>
            <div class="clear"></div>
          </div>
        </div>
开发者ID:pombredanne,项目名称:ArcherSys,代码行数:31,代码来源:administration.php


示例7: set_page_title

<?php
set_page_title(lang("error"));
echo flash_get("error");
?>
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:4,代码来源:download_file.php


示例8: foreach

<?php foreach (page_actions() as $page_action) { ?>
                <li><a href="<?php echo $page_action->getURL() ?>"><?php echo clean($page_action->getTitle()) ?></a></li>
<?php } // foreach ?>
              </ul>
            </div>
          </div>
        </div>
<?php } else { // if ?>
        <div style="height:1px"></div>
<?php } // if ?>
        <div id="innerContentWrapper">
<?php if (!is_null(flash_get('success'))) { ?>
          <div id="success"><?php echo clean(flash_get('success')) ?></div>
<?php } ?>
<?php if (!is_null(flash_get('error'))) { ?>
          <div id="error"><?php echo clean(flash_get('error')) ?></div>
<?php } ?>

          <h1 id="pageTitle"><?php echo get_page_title() ?></h1>
          <div id="pageContent">
            <div id="content">
              <!-- Content -->
              <?php echo $content_for_layout ?>
              <!-- /Content -->
            </div>
<?php if (isset($content_for_sidebar)) { ?>
            <div id="sidebar"><?php echo $content_for_sidebar ?></div>
<?php } // if ?>
            <div class="clear"></div>
          </div>
        </div>
开发者ID:pombredanne,项目名称:ArcherSys,代码行数:31,代码来源:account.php


示例9: testForFlashSetterGetter

 public function testForFlashSetterGetter()
 {
     // 1.
     $msg = 'This is success flash message.';
     flash_set($msg);
     $msg = '<span class="success">' . $msg . '</span>';
     $expectedOutput = '<div class="message success" style="display:block;"><ul><li>' . $msg . '</li></ul></div>';
     $this->assertEqual(flash_get(), $expectedOutput);
     // 2.
     $msg = 'This is error flash message.';
     flash_set($msg, null, 'error');
     $msg = '<span class="error">' . $msg . '</span>';
     $expectedOutput = '<div class="message error" style="display:block;"><ul><li>' . $msg . '</li></ul></div>';
     $this->assertEqual(flash_get(), $expectedOutput);
     // 3.
     $msg = array('(1) This is array of flash messages.', '(2) This is array of flash messages.');
     flash_set($msg, null, 'error');
     $expectedOutput = '<div class="message error" style="display:block;"><ul>';
     $expectedOutput .= '<li><span class="error">(1) This is array of flash messages.</span></li>';
     $expectedOutput .= '<li><span class="error">(2) This is array of flash messages.</span></li>';
     $expectedOutput .= '</ul></div>';
     $this->assertEqual(flash_get(), $expectedOutput);
 }
开发者ID:phplucidframe,项目名称:phplucidframe,代码行数:23,代码来源:session_helper.test.php


示例10: _img

<div class="container-box">
    <form method="post" id="frmLogin">
    <div class="box">
        <div class="logo"><img src="<?php 
echo _img('logo.png');
?>
" /></div>
        <div class="form">
            <?php 
if ($msg = flash_get()) {
    echo $msg;
} else {
    ?>
                <div class="message error"></div>
            <?php 
}
?>
            <div class="row">
                <div class="entry"><input type="text" name="txtUsername" id="txtUsername" class="large full-width" placeholder="<?php 
echo _t('Username');
?>
" /></div>
            </div>
            <div class="row">
                <div class="entry pwd">
                    <input type="password" name="txtPwd" id="txtPwd" class="large full-width" placeholder="<?php 
echo _t('Password');
?>
" />
                    <a href="#" title="<?php 
echo _t('Forgot password?');
开发者ID:phplucidframe,项目名称:phplucidframe,代码行数:31,代码来源:view.php


示例11: _i

/**
 * The view.php (required) is a visual output representation to user using data provided by query.php.
 * It generally should contain HTML between <body> and </body>.
 */
include _i('inc/tpl/header.php');
?>

<h3><?php 
echo $pageTitle;
?>
</h3>
<p>This is an example page which shows generic file upload handling.</p>
<p>
    <form id="frmUpload" method="post" class="no-ajax" enctype="multipart/form-data">
        <?php 
echo flash_get('file-upload-success');
?>
        <div class="message"></div>
        <div class="table">
            <div class="row">
                <input type="file" name="filImage" id="filImage" />
            </div>
            <div class="row">
                <input type="submit" name="btnUpload" value="<?php 
echo _t('Upload');
?>
" class="button green" />
            </div>
        </div>
        <?php 
form_token();
开发者ID:phplucidframe,项目名称:phplucidframe,代码行数:31,代码来源:view.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP flash_message函数代码示例发布时间:2022-05-15
下一篇:
PHP flash_error函数代码示例发布时间: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