当前位置: 首页>>代码示例>>PHP>>正文


PHP PagerModule::Write方法代码示例

本文整理汇总了PHP中PagerModule::Write方法的典型用法代码示例。如果您正苦于以下问题:PHP PagerModule::Write方法的具体用法?PHP PagerModule::Write怎么用?PHP PagerModule::Write使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PagerModule的用法示例。


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

示例1: Url

<?php

if (!defined('APPLICATION')) {
    exit;
}
?>
<div class="SearchForm">
<?php 
$Form = $this->Form;
$Form->InputPrefix = '';
echo $Form->Open(array('action' => Url('/search'), 'method' => 'get')), '<div class="SiteSearch">', $Form->TextBox('Search'), $Form->Button('Search', array('Name' => '')), '</div>', $Form->Errors(), $Form->Close();
?>
</div>
<?php 
if (!is_array($this->SearchResults) || count($this->SearchResults) == 0) {
    echo '<p class="NoResults">', sprintf(T('No results for %s.', 'No results for <b>%s</b>.'), htmlspecialchars($this->SearchTerm)), '</p>';
} else {
    $ViewLocation = $this->FetchViewLocation('results');
    include $ViewLocation;
    echo '<div class="PageControls Bottom">';
    PagerModule::Write();
    echo '</div>';
}
开发者ID:elpum,项目名称:TgaForumBundle,代码行数:23,代码来源:index.php

示例2: WriteFilterTabs

<?php

if (!defined('APPLICATION')) {
    exit;
}
$Session = Gdn::Session();
include $this->FetchViewLocation('helper_functions', 'discussions', 'vanilla');
WriteFilterTabs($this);
if ($this->DiscussionData->NumRows() > 0 || isset($this->AnnounceData) && is_object($this->AnnounceData) && $this->AnnounceData->NumRows() > 0) {
    ?>
<ul class="DataList Discussions">
   <?php 
    include $this->FetchViewLocation('discussions');
    ?>
</ul>
<?php 
    $PagerOptions = array('RecordCount' => $this->Data('CountDiscussions'), 'CurrentRecords' => $this->Data('Discussions')->NumRows());
    if ($this->Data('_PagerUrl')) {
        $PagerOptions['Url'] = $this->Data('_PagerUrl');
    }
    echo PagerModule::Write($PagerOptions);
} else {
    ?>
   <div class="Empty"><?php 
    echo T('No discussions were found.');
    ?>
</div>
   <?php 
}
开发者ID:seedbank,项目名称:old-repo,代码行数:29,代码来源:index.php

示例3: T

<?php

if (!defined('APPLICATION')) {
    exit;
}
echo '<h2 class="H">' . T('Notifications') . '</h2>';
if (count($this->Data('Activities'))) {
    echo '<ul class="DataList Activities Notifications">';
    include $this->FetchViewLocation('activities', 'activity', 'dashboard');
    echo '</ul>';
    echo PagerModule::Write(array('CurrentRecords' => count($this->Data('Activities'))));
} else {
    ?>
<div class="Empty"><?php 
    echo T('You do not have any notifications yet.');
    ?>
</div>
   <?php 
}
开发者ID:elpum,项目名称:TgaForumBundle,代码行数:19,代码来源:notifications.php

示例4: T

<?php

if (!defined('APPLICATION')) {
    exit;
}
if ($this->ActivityData->NumRows() > 0) {
    echo '<ul class="DataList Activities Notifications">';
    include $this->FetchViewLocation('activities', 'activity', 'dashboard');
    echo '</ul>';
    echo PagerModule::Write(array('CurrentRecords' => $this->ActivityData->NumRows()));
} else {
    ?>
<div class="Empty"><?php 
    echo T('You do not have any notifications yet.');
    ?>
</div>
   <?php 
}
开发者ID:Raz0r,项目名称:Garden,代码行数:18,代码来源:notifications.php

示例5: T

         <th><?php 
    echo T('Last IP');
    ?>
</th>
         <?php 
}
?>
         <?php 
$this->FireEvent('UserCell');
?>
         <?php 
if ($EditUser) {
    ?>
            <th><?php 
    echo T('Options');
    ?>
</th>
         <?php 
}
?>
      </tr>
   </thead>
   <tbody>
      <?php 
include $this->FetchViewLocation('users');
?>
   </tbody>
</table>
<?php 
PagerModule::Write(array('Sender' => $this));
echo $this->Form->Close();
开发者ID:edward-tsai,项目名称:vanilla4china,代码行数:31,代码来源:index.php

示例6: urlencode

    //
    //                  echo "\n<li>".
    //                     Anchor($child['Summary'], $child['Url']);
    //                     '</li>';
    //
    //                  if ($i >= 3)
    //                     break;
    //               }
    //               echo '</ul>';
    //            }
    if ($Count > 1) {
        $url = $this->Data('SearchUrl') . '&discussionid=' . urlencode($Row['DiscussionID']) . '#search-results';
        echo '<div>' . Anchor(Plural($Count, '%s result', '%s results'), $url) . '</div>';
    }
    ?>
         </div>
      </div>
   </li>
   <?php 
}
?>
</ol>

<?php 
echo '<div class="PageControls Bottom">';
$RecordCount = $this->Data('RecordCount');
if ($RecordCount) {
    echo '<span class="Gloss">' . Plural($RecordCount, '%s result', '%s results') . '</span>';
}
PagerModule::Write(array('Wrapper' => '<div %1$s>%2$s</div>'));
echo '</div>';
开发者ID:edward-tsai,项目名称:vanilla4china,代码行数:31,代码来源:results.php

示例7: Url

echo $this->Data('Title');
?>
</h1>
<?php 
include_once $this->FetchViewLocation('helper_functions');
$this->FireEvent('BeforeStatusForm');
$Session = Gdn::Session();
if ($Session->CheckPermission('Garden.Profiles.Edit')) {
    echo $this->Form->Open(array('action' => Url('/activity/post/' . $this->Data('Filter')), 'class' => 'Activity'));
    echo $this->Form->Errors();
    echo Wrap($this->Form->TextBox('Comment', array('MultiLine' => TRUE)), 'div', array('class' => 'TextBoxWrapper'));
    echo $this->Form->Button('Share', array('class' => 'Button Primary'));
    echo $this->Form->Close();
}
echo '</div>';
echo '<ul class="DataList Activities">';
$Activities = $this->Data('Activities', array());
if (count($Activities) > 0) {
    include $this->FetchViewLocation('activities', 'activity', 'dashboard');
} else {
    ?>
<li><div class="Empty"><?php 
    echo T('Not much happening here, yet.');
    ?>
</div></li>
   <?php 
}
echo '</ul>';
if (count($Activities) > 0) {
    PagerModule::Write(array('CurrentRecords' => count($Activities)));
}
开发者ID:bishopb,项目名称:vanilla,代码行数:31,代码来源:all.php


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