本文整理汇总了PHP中page::fpage方法的典型用法代码示例。如果您正苦于以下问题:PHP page::fpage方法的具体用法?PHP page::fpage怎么用?PHP page::fpage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类page
的用法示例。
在下文中一共展示了page::fpage方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<?php
}
}
?>
<tr>
<th colspan="4" style="text-align:center;vertical-align:middle;">
<input type="hidden" name="dopost" value="mut_edit">
<input type="hidden" name="page" value="1">
<input class="f-submit" style="float:left;" type="submit" value="保存">
<div class="pagination"><?php
echo $pages->fpage(array(0, 1, 3, 5, 4, 2, 6, 7, 8));
?>
</div> </th>
</tr>
</table>
</form>
<br>
<!--内容部分-->
</td>
</tr>
</table>
<script src="/assets/js/kissy-min.js"></script>
<script src="/assets/all/js/admin.js"></script>
</body>
</html>
示例2: system_adjust_transport
public function system_adjust_transport($where = '')
{
$total = PurchaseOrderModel::getCountAdjustTransport($where);
$perNum = 50;
$page = new page($total, $perNum, $pa = "", $lang = "CN");
$listPage = PurchaseOrderModel::getAdjustTransport($where, $page->limit);
if ($total > $perNum) {
$fpage = $page->fpage(array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9));
} else {
$fpage = $page->fpage(array(0, 1, 2, 3));
}
return array($listPage, $fpage, $total);
}
示例3:
?>
<!--/if -->
</p>
</div>
</li>
<?php
}
?>
</ul>
</div>
</div>
<div class="clear"></div>
<div class="pageCenter" id="J_page">
<div class="pageMain"><?php
echo $pages->fpage(array(3, 5, 4, 8, 6));
?>
</div>
</div>
</td>
<td width="200" valign="top"> <div style="margin-top: 0px;" class="col-side">
<div class="col-side-ad">
<h2 class="try-title">试用直通车</h2>
<?php
include 'v1youad.php';
?>
</div>
</div></td>
</tr>
示例4: page
$total = $db->num_rows($sql);
$pagesize = 10;
//实例化分页类
$page = new page($total, $pagesize, $tcon, $order);
$result = $db->select(PRE . 'web_star', "order by id desc {$page->limit}");
echo "<div class=\"message\">";
echo "<h1>留言列表</h1>";
echo "<ul>";
if ($result) {
while ($rows = $db->fetch_array($result)) {
echo "<li><a href=\"user.php?pg=Ushow&id={$rows['id']} \">{$rows['title']}</a> <span class=\"date\">作者:{$rows['username']} 时间:" . date("Y-m-d H:i:s", $rows['time']) . " </span></li>";
}
echo "</ul>";
echo "</div>";
echo "<div class=\"page\">";
echo $page->fpage();
echo "</div>";
}
} elseif ($order == 'Ushow') {
$id = $userid;
$query = $db->select(PRE . 'web_star', "where id='{$id}'");
if ($query) {
echo "<div class=\"show\">";
while ($row = $db->fetch_array($query)) {
echo "<h2>{$row['title']}</h2>";
echo "<div class=\"show_article\">";
echo "<div class=\"show_article_con\">";
echo $row['content'];
echo "</div>";
echo "<div class=\"show_article_show\">";
echo "<a href=\"javascript:setUserAjaxFunc('del',{$row['id']},'UshowD') \">删除</a>";