本文整理汇总了PHP中PagerModule::write方法的典型用法代码示例。如果您正苦于以下问题:PHP PagerModule::write方法的具体用法?PHP PagerModule::write怎么用?PHP PagerModule::write使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PagerModule
的用法示例。
在下文中一共展示了PagerModule::write方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: url
include_once $this->fetchViewLocation('helper_functions');
$this->fireEvent('BeforeStatusForm');
$Session = Gdn::session();
if ($Session->checkPermission('Garden.Profiles.Edit')) {
echo '<div class="FormWrapper FormWrapper-Condensed">';
echo $this->Form->open(array('action' => url('/activity/post/' . $this->data('Filter')), 'class' => 'Activity'));
echo $this->Form->errors();
echo $this->Form->textBox('Comment', array('MultiLine' => true, 'Wrap' => TRUE));
echo '<div class="Buttons">';
echo $this->Form->button('Share', array('class' => 'Button Primary'));
echo '</div>';
echo $this->Form->close();
echo '</div>';
}
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)));
}
示例2: helpAsset
if (!defined('APPLICATION')) {
exit;
}
?>
<h1><?php
echo $this->data('Title');
?>
</h1>
<?php
helpAsset($this->data('Title'), t('Content flagged as spam is stored here for moderator review.'));
echo '<noscript><div class="Errors"><ul><li>', t('This page requires Javascript.'), '</li></ul></div></noscript>';
echo $this->Form->open();
?>
<div class="toolbar flex-wrap">
<div class="toolbar-buttons">
<?php
echo anchor(t('Spam'), '#', array('class' => 'SpamButton btn btn-primary'));
echo anchor(t('Not Spam'), '#', array('class' => 'NotSpamButton btn btn-primary'));
?>
</div>
<?php
PagerModule::write(['Sender' => $this, 'Limit' => 10, 'View' => 'pager-dashboard']);
?>
</div>
<?php
echo '<div id="LogTable">';
include dirname(__FILE__) . '/table.php';
echo '</div id="LogTable">';
$this->addDefinition('ExpandText', t('more'));
$this->addDefinition('CollapseText', t('less'));
echo $this->Form->close();
示例3: TagFullName
?>
">
<?php
$DisplayName = TagFullName($Tag);
if ($Special) {
echo htmlspecialchars($DisplayName) . ' ' . Wrap($Tag['CountDiscussions'], 'span', array('class' => 'Count'));
} else {
echo anchor(htmlspecialchars($DisplayName) . ' ' . Wrap($Tag['CountDiscussions'], 'span', array('class' => 'Count')), "/settings/tags/edit/{$Tag['TagID']}", 'TagName Tag_' . str_replace(' ', '_', $Tag['Name']));
echo ' ' . anchor('×', "/settings/tags/delete/{$Tag['TagID']}", 'Delete Popup');
}
?>
</div>
<?php
}
}
?>
<div class="add-new-tag">
<?php
if ($CanAddTags) {
echo ' ' . anchor('Add Tag', '/settings/tags/add?type=' . $TagType, 'Popup Button');
}
?>
</div>
</div>
<?php
PagerModule::write();
echo $this->Form->close();
示例4: sprintf
?>
<div class="toolbar">
<div class="toolbar-main">
<?php
$info = '';
$count = $this->data('RecordCount', $this->data('UserCount', null));
if ($count !== null) {
$info = sprintf(plural($count, '%s user found.', '%s users found.'), $count);
} elseif ($this->data('UserEstimate', null) !== null) {
$info = sprintf(t('Approximately %s users exist.'), $this->data('UserEstimate'));
}
echo $this->Form->searchForm('Keywords', '/user/browse', [], $info);
?>
</div>
<?php
PagerModule::write(array('Sender' => $this, 'View' => 'pager-dashboard'));
?>
</div>
<div class="table-wrap">
<table id="Users" class="table-data js-tj">
<thead>
<tr>
<!-- <th class="CheckboxCell"><input id="SelectAll" type="checkbox" /></th>-->
<th class="column-lg"><?php
echo anchor(t('Username'), $this->_OrderUrl('Name'));
?>
</th>
<th><?php
echo t('Roles');
?>
</th>
示例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();
示例6: foreach
<tbody>
<?php
$Alt = '';
if (property_exists($this, 'AnnounceData') && is_object($this->AnnounceData)) {
foreach ($this->AnnounceData->result() as $Discussion) {
$Alt = $Alt == ' Alt' ? '' : ' Alt';
WriteDiscussionRow($Discussion, $this, $Session, $Alt);
}
}
$Alt = '';
foreach ($this->DiscussionData->result() as $Discussion) {
$Alt = $Alt == ' Alt' ? '' : ' Alt';
WriteDiscussionRow($Discussion, $this, $Session, $Alt);
}
?>
</tbody>
</table>
</div>
<?php
echo '<div class="PageControls Bottom">';
PagerModule::write($PagerOptions);
echo Gdn_Theme::Module('NewDiscussionModule', $this->data('_NewDiscussionProperties', array('CssClass' => 'Button Action Primary')));
echo '</div>';
} else {
?>
<div class="Empty"><?php
echo t('No discussions were found.');
?>
</div>
<?php
}
示例7: t
<?php
if (!defined('APPLICATION')) {
exit;
}
echo '<div class="DataListWrap">';
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 sprintf(t('You do not have any %s yet.'), t('notifications'));
?>
</div>
<?php
}
echo '</div>';
示例8: 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>';
示例9: count
<?php
if (!defined('APPLICATION')) {
exit;
}
?>
<div class="toolbar">
<?php
PagerModule::write(array('Sender' => $this, 'Limit' => 20, 'CurrentRecords' => count($this->data('Bans')), 'View' => 'pager-dashboard'));
?>
</div>
<div class="table-wrap">
<table id="Log" class="table-data js-tj">
<thead>
<tr>
<th class="column-lg"><?php
echo t('Ban Item', 'Item');
?>
</th>
<th><?php
echo t('Ban Type', 'Type');
?>
</th>
<th class="column-sm"><?php
echo t('User Count', 'Users');
?>
</th>
<th class="column-sm"><?php
echo '<span title="' . t('Number of blocked registrations') . '">', t('Blocked'), '</span>';
?>
</th>