本文整理汇总了PHP中Pagination::instance方法的典型用法代码示例。如果您正苦于以下问题:PHP Pagination::instance方法的具体用法?PHP Pagination::instance怎么用?PHP Pagination::instance使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Pagination
的用法示例。
在下文中一共展示了Pagination::instance方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getInstance
public static function getInstance()
{
if (!isset(self::$instance)) {
$object = __CLASS__;
self::$instance = new $object();
}
return self::$instance;
}
示例2:
<button aria-label="Close" data-dismiss="alert" class="close" type="button">
<span aria-hidden="true">×</span>
</button>
<?php
echo "該当するデータがありません";
?>
</div>
<?php
}
?>
<?php
if (count($listPerson) > 0) {
?>
<nav>
<?php
echo Pagination::instance('mypagination');
?>
</ul>
</nav>
<table class="table table-bordered table-striped">
<tr>
<th class="text-center">応募日時</th>
<th class="text-center">応募者氏名</th>
<th class="text-center">メールアドレス</th>
<th class="text-center">電話番号</th>
<th class="text-center">取引先グループ</th>
<th class="text-center">取引先(支店)</th>
<th class="text-center">対象SS</th>
<th class="text-center">担当者氏名</th>
示例3:
echo Input::cut_strings(htmlspecialchars_decode($s['desc']), 50);
?>
</p>
</div>
<?php
}
?>
<?php
if (!empty(Pagination::instance('paging_search'))) {
?>
<div class="col-md-12">
<div class="pagination">
<ul class="dc_pagination dc_paginationA dc_paginationA06">
<?php
$pag_links = Pagination::instance('paging_search');
echo $pag_links->render();
?>
</ul>
<div class="clear"></div>
</div>
</div>
<?php
}
?>
</div>
示例4: isset
<div class="col-md-10">
<?php
echo Form::input('keyword', Input::get('keyword', isset($get) ? $get->keyword : ''), array('class' => 'form-control', 'size' => 100, 'placeholder' => '電話番号 氏名(全角) 氏名(ふりがな) メールアドレス'));
?>
</div>
</div>
<div class="row text-center">
<button type="submit" class="btn btn-primary btn-sm"><i class="glyphicon glyphicon-search icon-white"></i> フィルタ</button>
<button type="button" class="btn btn-info btn-sm" name="filter-clear-btn"><i class="glyphicon glyphicon-refresh icon-white"></i> フィルタ解除</button>
</div>
</div>
</div>
<nav>
<?php
echo Pagination::instance('concierges-pagination');
?>
</nav>
<?php
if ($listall) {
?>
<table class="table table-bordered table-striped">
<tbody><tr>
<th class="text-center">登録日時</th>
<th class="text-center">住所</th>
<th class="text-center">氏名</th>
<th class="text-center">電話番号</th>
<th class="text-center">メールアドレス</th>
<th class="text-center">状態</th>
<th class="text-center">管理</th>
示例5:
</h2>
<h4>タイトル:<?php
print $lan['title'];
?>
</h4>
<h4>使用言語:<?php
print $lan['language'];
?>
</h4>
</div><!-- content-right -->
</div><!-- c_l_i -->
</div><!-- c_l -->
</div><!-- content-->
<?php
}
if (count($language) >= 3) {
?>
<div class="content">
<div class="c_l">
<div class="c_l_p">
<?php
echo Pagination::instance('mypagination')->render();
?>
</div><!-- c_l_p-->
</div><!-- c_l -->
</div><!-- content -->
<?php
}
?>
</div>
示例6:
<?php
if (Auth::member(\Config::get('my.groups.superadmin'))) {
?>
<div class="add-vendor">
<div class="add-button">
<i class="fa fa-plus-circle" aria-hidden="true"></i>
</div>
</div>
<?php
}
?>
<div class="pagination-box">
<?php
echo \Pagination::instance('default')->render();
?>
</div>
<?php
if ($vendors) {
?>
<div class="conteiner-wrapper">
<div class="vendor-wrapper item-title">
<div class="vendor-name">Vendor name</div>
<div class="by-now">By now</div>
<div class="post-index">Post index</div>
<div class="address">Address</div>
</div>
示例7:
</div>
</div>
</div>
<div class="col-md-12"><br><br><br></div>
<?php
}
?>
<div align="center" class="col-md-12 col-sm-12 col-xs-12">
<!--foreachの処理終了-->
<?php
echo Pagination::instance('post_pagination')->render();
?>
<?php
}
?>
<!-- main end -->
</div>
</div>
<!--**************************************-->
<!--********RIGHT SIDEBAR CONTENT*********-->
<!--**************************************-->
<!-- views/layout/rightsidebar.phpの呼び出し(viewからviewを呼び出している)-->
<?php
示例8: array
?>
</td>
<td>
<?php
echo $val->views;
?>
</td>
<td>
<?php
echo Html::anchor("admin/article/edit/{$val->id}/{$selected_cat_view}/{$selected_lang_view}", '<i class="glyphicon glyphicon-pencil"></i>', array('class' => 'btn btn-default btn-xs'));
?>
<?php
echo Html::anchor("admin/article/delete/{$val->id}/{$selected_cat_view}/{$selected_lang_view}", '<i class="glyphicon glyphicon-trash"></i>', array('class' => 'btn btn-default btn-xs', 'onclick' => 'return confirm("' . __('message.deleteyn') . '");'));
?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
<div class="pagination">
<ul class="dc_pagination dc_paginationA dc_paginationA06">
<?php
$pag_links = Pagination::instance('paging');
echo $pag_links->render();
?>
</ul>
<div class="clear"></div>
</div>
</div>
示例9: http_build_query
<div class="row text-center">
<input type="hidden" name="flag" value="1" />
<button type="submit" class="btn btn-primary btn-sm"><i class="glyphicon glyphicon-search icon-white"></i> フィルタ</button>
<button type="button" class="btn btn-info btn-sm" name="filter-clear-btn"><i class="glyphicon glyphicon-refresh icon-white"></i> フィルタ解除</button>
<a class="btn btn-warning btn-sm" href="<?php
echo \Uri::base() . 'job/orders/index/' . (\Uri::segment(4) ? \Uri::segment(4) : 1) . '?' . http_build_query(\Input::get()) . '&export=true';
?>
"><i class="glyphicon glyphicon-download-alt icon-white"></i>CSVダウンロード</a>
</div>
</div>
</div>
<nav>
<nav>
<?php
echo Pagination::instance('orders-pagination');
?>
</nav>
</nav>
<?php
if (isset($listorders) && $listorders != NULL && count($listorders) > 0) {
?>
<table class="table table-bordered table-striped">
<tbody><tr>
<th class="text-center">オーダーID</th>
<th class="text-center">掲載枠</th>
<th class="text-center">掲載SS</th>
<th class="text-center">作成者</th>
<th class="text-center">発注者</th>
<th class="text-center">掲載開始日</th>
示例10:
<?php
if (!count($res['res'])) {
?>
<div role="alert" class="alert alert-danger alert-dismissible">
<button aria-label="Close" data-dismiss="alert" class="close" type="button"><span aria-hidden="true">×</span></button>
該当するデータがありません
</div>
<?php
}
?>
<?php
if (count($res['res'])) {
?>
<nav>
<?php
echo Pagination::instance('jobpage');
?>
</nav>
<table class="table table-bordered table-striped">
<tbody><tr>
<th class="text-center">SS名</th>
<th class="text-center">取引先グループ</th>
<th class="text-center">取引先(支店)</th>
<th class="text-center">売上形態</th>
<th class="text-center">掲載サイト</th>
<th class="text-center">状態</th>
<th class="text-center">管理</th>
</tr>
<?php