コード例 #1
0
ファイル: Pagination.php プロジェクト: VSG24/ccms
 function __construct($max_pp = null, $count = null)
 {
     $posts = new Posts();
     $this->current_page = $posts->getCurrentPageNumber();
     $this->per_page = $posts->getMaxPostPerPage();
     $this->total_count = $posts->getPostsCount();
     if (isset($count)) {
         $this->total_count = $count;
     }
     if (isset($max_pp)) {
         $this->per_page = $max_pp;
     }
 }
コード例 #2
0
ファイル: manage_posts.php プロジェクト: VSG24/ccms
<div class="container-fluid">
    <div class="row" align="center">
        <div class="col-xs-6 col-sm-4 col-md-4 col-xs-offset-3 col-sm-offset-4 col-md-offset-4">
            <span style="float:<?php 
echo getLBA();
?>
;"><?php 
_e('posts_count', '', ':');
?>
</span>
            <span style="float:<?php 
echo getLBA_rev();
?>
;"><?php 
echo Posts::getPostsCount();
?>
</span><br>
        </div>
    </div>
</div><br>

<div class="container-fluid">
    <div class="row" align="center">
        <div class="col-xs-12 col-sm-12 col-md-10 col-md-offset-1">
            <div id="tablediv">
                <table width="auto" class="table table-hover" ">
                <tr>
                    <th style="vertical-align: middle;"><?php 
_e('', 'ID');
?>