Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/hadoop/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 显示自定义页面内容_Php_Messages_Inbox - Fatal编程技术网

Php 显示自定义页面内容

Php 显示自定义页面内容,php,messages,inbox,Php,Messages,Inbox,首先感谢大家的帮助 我正在尝试在收件箱页面上显示自定义内容。我的代码如下所示: <?php $page = basename($_SERVER['REQUEST_URI']); if ($page == 'messages' || $page == "/" || $page == 'inbox') { ?> @if ($buttons or $showSearchBox) <div class="toolbar top"> {!! $buttons !!}

首先感谢大家的帮助

我正在尝试在收件箱页面上显示自定义内容。我的代码如下所示:

 <?php 
$page = basename($_SERVER['REQUEST_URI']);
if ($page == 'messages' || $page == "/" || $page == 'inbox') {
?>
@if ($buttons or $showSearchBox)
<div class="toolbar top">
    {!! $buttons !!}

    @if ($showSearchBox)
        <div class="model-search-box">
    @if (user()->countMessages() > 0)
        <div class="inbox-notify">
    You have unread messages, please read that!
    </div>
    @endif
            {!! Form::open(['url' => URL::current().'/search']) !!}
                    {!! Form::text('search', $searchString, array('placeholder'=>'Search in messages ), ['class' => 'search-string']) !!}
                    {!! Form::submit(trans('app.search'), ['class' => 'button-search']) !!}
            {!! Form::close() !!}
        </div>
    @endif
  </div>
@endif
    <?php } ?>

@如果($buttons或$showSearchBox)
{!!$buttons!!}
@如果($showSearchBox)
@if(user()->countMessages()>0)
你有未读的信息,请阅读!
@恩迪夫
{!!Form::open(['url'=>url::current()./search'])
{!!Form::text('search',$searchString,array('placeholder'=>'search in messages),['class'=>'search string'])
{!!表单::提交(trans('app.search'),['class'=>'按钮搜索'])
{!!Form::close()!!}
@恩迪夫
@恩迪夫
但此代码仅适用于“邮件/收件箱”页面。如何在“邮件/发件箱”页面上添加此内容?对不起,英语不好。我是这方面的新手:)


@如果($buttons或$showSearchBox)
{!!$buttons!!}
@如果($showSearchBox)
@if(user()->countMessages()>0)
你有未读的信息,请阅读!
@恩迪夫
{!!Form::open(['url'=>url::current()./search'])
{!!Form::text('search',$searchString,array('placeholder'=>'search in messages),['class'=>'search string'])
{!!表单::提交(trans('app.search'),['class'=>'按钮搜索'])
{!!Form::close()!!}
@恩迪夫
@恩迪夫
 <?php 
    $page = basename($_SERVER['REQUEST_URI']);
    if ($page == 'messages' || $page == "/" || $page == 'inbox' || $page == 'outbox') {
    ?>
    @if ($buttons or $showSearchBox)
    <div class="toolbar top">
        {!! $buttons !!}

        @if ($showSearchBox)
            <div class="model-search-box">
        @if (user()->countMessages() > 0)
            <div class="inbox-notify">
        You have unread messages, please read that!
        </div>
        @endif
                {!! Form::open(['url' => URL::current().'/search']) !!}
                        {!! Form::text('search', $searchString, array('placeholder'=>'Search in messages ), ['class' => 'search-string']) !!}
                        {!! Form::submit(trans('app.search'), ['class' => 'button-search']) !!}
                {!! Form::close() !!}
            </div>
        @endif
      </div>
    @endif
        <?php } ?>