本文整理汇总了PHP中pagination::get_page方法的典型用法代码示例。如果您正苦于以下问题:PHP pagination::get_page方法的具体用法?PHP pagination::get_page怎么用?PHP pagination::get_page使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pagination
的用法示例。
在下文中一共展示了pagination::get_page方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: pagination
?>
</h1>
<?php
global $db;
$records_per_page = 100;
$pagination = new pagination();
if (!$db->Query("SELECT id , titr" . LANG . " as titre ,document ,dat , modul from contenu where titr" . LANG . " LIKE '%" . tp('mot') . "%' or cont" . LANG . " LIKE '%" . tp('mot') . "%' order by id DESC ")) {
$db->Kill('Error1s');
}
if ($db->RowCount() > 0) {
$totalrow = $db->RowCount();
if (!$db->Query("SELECT id , titr" . LANG . " as titre ,document ,dat , modul from contenu where titr" . LANG . " LIKE '%" . tp('mot') . "%' or cont" . LANG . " LIKE '%" . tp('mot') . "%' order by id DESC limit " . ($pagination->get_page() - 1) * $records_per_page . ', ' . $records_per_page)) {
$db->Kill('Error1s');
}
$pagination->records($totalrow);
$pagination->records_per_page($records_per_page);
?>
<div class="sidebar">
<!-- ################################################################################################ -->
<article>
<nav class="sdb_holder">
<ul>
<?php
while (!$db->EndOfSeek()) {
$row = $db->Row();
示例2: lg
<div class="postcontent"><h2><?php
echo lg('PLUSCOM');
?>
</h2>
<link rel="stylesheet" href="css/zebra_pagination.css" type="text/css">
<?php
global $db;
$records_per_page = 8;
$pagination = new pagination();
if (!$db->Query("SELECT titr" . LANG . " as titre ,id,app,DATE_FORMAT(dat,'%d-%m-%Y') as dat,cont" . LANG . " as content from communique where titr" . LANG . " IS NOT NULL order by id DESC")) {
$db->Kill('Error1s');
}
if ($db->RowCount() > 0) {
$totalrow = $db->RowCount();
$requet = "SELECT titr" . LANG . " as titre ,id,app,DATE_FORMAT(dat,'%d-%m-%Y') as dat,cont" . LANG . " as content from communique where titr" . LANG . " IS NOT NULL order by id DESC limit " . ($pagination->get_page() - 1) * $records_per_page . ', ' . $records_per_page;
if (!$db->Query($requet)) {
$db->Kill($requet);
}
$pagination->records($totalrow);
$pagination->records_per_page($records_per_page);
?>
<?php
$index = 0;
?>
<?php
while (!$db->EndOfSeek()) {
$row = $db->Row();
?>
示例3: lg
<div class="span9">
<div class="postcontent"><h2><?php
echo lg('PLUSACT');
?>
</h2>
<link rel="stylesheet" href="css/zebra_pagination.css" type="text/css">
<?php
global $db;
$records_per_page = 6;
$pagination = new pagination();
if (!$db->Query("SELECT titr" . LANG . " as titre ,id,img,app,DATE_FORMAT(dat,'%d-%m-%Y') as dat,cont" . LANG . " as content from news where titr" . LANG . " IS NOT NULL and flash = 0 order by id DESC")) {
$db->Kill('Error1s');
}
if ($db->RowCount() > 0) {
$totalrow = $db->RowCount();
$requet = "SELECT titr" . LANG . " as titre,aut" . LANG . " as autor ,id,img,app,DATE_FORMAT(dat,'%d-%m-%Y') as dat,cont" . LANG . " as content from news where titr" . LANG . " IS NOT NULL and flash = 0 order by id DESC limit " . ($pagination->get_page() - 1) * $records_per_page . ', ' . $records_per_page;
if (!$db->Query($requet)) {
$db->Kill($requet);
}
$pagination->records($totalrow);
$pagination->records_per_page($records_per_page);
?>
<?php
$index = 0;
?>
<?php
while (!$db->EndOfSeek()) {
$row = $db->Row();
示例4: while
echo $post;
?>
" a retourné <?php
if ($db->RowCount() > 0) {
echo $db->RowCount();
} else {
echo "0";
}
?>
résultats</p>
</div>
<?php
if ($db->RowCount() > 0) {
$totalrow = $db->RowCount();
// nombre d'enregistrement dans une table retourner par mysql_num_rows() par exemple ou autre ,
if (!$db->Query("SELECT titr" . LANG . " as titre ,id,app,cont" . LANG . " as content from " . $mode . " where titr" . LANG . " like '%" . $post . "%' or cont" . LANG . " like '%" . $post . "%' limit " . ($pagination->get_page() - 1) * $records_per_page . ', ' . $records_per_page)) {
$db->Kill('Error1s');
}
$pagination->records($totalrow);
$pagination->records_per_page($records_per_page);
while (!$db->EndOfSeek()) {
$row = $db->Row();
$applic = $row->app;
if (tg('m') == 4) {
$mode = 'com';
}
?>
<div id="act" style="height:auto; max-height:93; min-height:35;">
<a class="titactp" href="./<?php
echo $mode . '-' . $row->id . '-' . fl($row->titre) . '.html';
?>
示例5: DAY
}
if (tp('jour') != 0) {
$wher .= " and DAY(dat) = " . tp('jour');
}
if (tp('motcle') != '') {
$wher .= " and titr" . LANG . " LIKE '%" . tp('motcle') . "%'";
}
if (tp('mois') != 0) {
$wher .= " and MONTH(dat) = " . tp('mois');
}
if (!$db->Query("SELECT id , titr" . LANG . " as titre ,document ,dat from contenu where titr" . LANG . " IS NOT NULL and modul=" . tg('id') . " {$wher} order by id DESC ")) {
$db->Kill('Error1s');
}
if ($db->RowCount() > 0) {
$totalrow = $db->RowCount();
if (!$db->Query("SELECT id , titr" . LANG . " as titre ,document , dat from contenu where titr" . LANG . " IS NOT NULL and modul=" . tg('id') . " {$wher} order by id DESC limit " . ($pagination->get_page() - 1) * $records_per_page . ', ' . $records_per_page)) {
$db->Kill('Error1s');
}
$pagination->records($totalrow);
$pagination->records_per_page($records_per_page);
?>
<div class="sidebar">
<!-- ################################################################################################ -->
<article>
<nav class="sdb_holder">
<ul>
<?php
while (!$db->EndOfSeek()) {
$row = $db->Row();
示例6: lg
<div class="postcontent"><h2><?php
echo lg('LIEN');
?>
</h2>
<?php
global $db;
$records_per_page = 16;
$pagination = new pagination();
if (!$db->Query("SELECT titr" . LANG . " as titre ,id from lienu where titr" . LANG . " IS NOT NULL order by id ")) {
$db->Kill('Error1s');
}
if ($db->RowCount() > 0) {
$totalrow = $db->RowCount();
if (!$db->Query("SELECT titr" . LANG . " as titre ,id,lien from lienu where titr" . LANG . " IS NOT NULL order by id limit " . ($pagination->get_page() - 1) * $records_per_page . ', ' . $records_per_page)) {
$db->Kill('Error1s');
}
$pagination->records($totalrow);
$pagination->records_per_page($records_per_page);
?>
<div class="pj">
<ul>
<?php
while (!$db->EndOfSeek()) {
$row = $db->Row();
// $class= str_replace(".","",strrchr($row->img,'.'));
?>
<li class="lien"><a href="http://<?php
echo $row->lien;
?>
示例7: lg
<div class="span9" >
<div class="postcontent"><h2><?php
echo lg('DOCX');
?>
</h2>
<?php
global $db;
$records_per_page = 16;
$pagination = new pagination();
if (!$db->Query("SELECT titr" . LANG . " as titre ,id,img from document where titr" . LANG . " IS NOT NULL order by id DESC")) {
$db->Kill('Error1s');
}
if ($db->RowCount() > 0) {
$totalrow = $db->RowCount();
if (!$db->Query("SELECT titr" . LANG . " as titre ,id,img from document where titr" . LANG . " IS NOT NULL order by id DESC limit " . ($pagination->get_page() - 1) * $records_per_page . ', ' . $records_per_page)) {
$db->Kill('Error1s');
}
$pagination->records($totalrow);
$pagination->records_per_page($records_per_page);
?>
<div class="pj">
<ul>
<?php
while (!$db->EndOfSeek()) {
$row = $db->Row();
$class = str_replace(".", "", strrchr($row->img, '.'));
?>
<li class="<?php
echo $class;
示例8: pagination
?>
</h1>
<?php
global $db;
$records_per_page = 100;
$pagination = new pagination();
if (!$db->Query("SELECT id , titr" . LANG . " as titre from synthese where titr" . LANG . " IS NOT NULL order by id DESC ")) {
$db->Kill('Error1s');
}
if ($db->RowCount() > 0) {
$totalrow = $db->RowCount();
if (!$db->Query("SELECT id , titr" . LANG . " as titre from synthese where titr" . LANG . " IS NOT NULL order by id DESC limit " . ($pagination->get_page() - 1) * $records_per_page . ', ' . $records_per_page)) {
$db->Kill('Error1s');
}
$pagination->records($totalrow);
$pagination->records_per_page($records_per_page);
?>
<div class="sidebar">
<!-- ################################################################################################ -->
<article>
<nav class="sdb_holder">
<ul>
<?php
while (!$db->EndOfSeek()) {
$row = $db->Row();
示例9: lg
<div class="span9">
<div class="postcontent"><h2><?php
echo lg('GVIDEO');
?>
</h2>
<?php
global $db;
$records_per_page = 9;
$pagination = new pagination();
if (!$db->Query("SELECT titr" . LANG . " as titre ,vod" . LANG . " as vod,id from vod where vod" . LANG . " IS NOT NULL order by id DESC")) {
$db->Kill('Error1s');
}
if ($db->RowCount() > 0) {
$totalrow = $db->RowCount();
if (!$db->Query("SELECT titr" . LANG . " as titre ,vod" . LANG . " as vod,id from vod where vod" . LANG . " IS NOT NULL order by id DESC limit " . ($pagination->get_page() - 1) * $records_per_page . ', ' . $records_per_page)) {
$db->Kill('Error1s');
}
$pagination->records($totalrow);
$pagination->records_per_page($records_per_page);
?>
<link rel="stylesheet" href="css/zebra_pagination.css" type="text/css">
<?php
while (!$db->EndOfSeek()) {
$row = $db->Row();
?>
<div id="contvod">
<a class="youtube titvod" href="http://www.youtube.com/embed/<?php
示例10: pagination
<?php
global $db;
$records_per_page = 70;
$wher = '';
$pagination = new pagination();
if (tp('motcle') != '') {
$wher .= " and titr" . LANG . " LIKE '%" . tp('motcle') . "%'";
}
if (!$db->Query("SELECT id , titr" . LANG . " as titre , img from document where article = 84 and titr" . LANG . " IS NOT NULL {$wher} order by id DESC ")) {
$db->Kill('Error1s');
}
if ($db->RowCount() > 0) {
$totalrow = $db->RowCount();
if (!$db->Query("SELECT id , titr" . LANG . " as titre , img from document where article = 84 and titr" . LANG . " IS NOT NULL {$wher} order by id DESC limit " . ($pagination->get_page() - 1) * $records_per_page . ', ' . $records_per_page)) {
$db->Kill('Error1s');
}
$pagination->records($totalrow);
$pagination->records_per_page($records_per_page);
?>
<div class="sidebar">
<!-- ################################################################################################ -->
<article>
<nav class="sdb_holder">
<ul>
<?php
while (!$db->EndOfSeek()) {
$row = $db->Row();
示例11: tg
<div id="content" class="three_quarter">
<?php
if (tg('id') != '') {
$id = tg('id');
$titre = tg('titre');
global $db;
$records_per_page = 9;
$pagination = new pagination();
if (!$db->Query("SELECT titr" . LANG . " as titre ,id from album where titr" . LANG . " IS NOT NULL and arch <> 1 order by id DESC ")) {
$db->Kill('Error1s');
}
if ($db->RowCount() > 0) {
$totalrow = $db->RowCount();
if (!$db->Query("SELECT titr" . LANG . " as titre ,id from album where titr" . LANG . " IS NOT NULL and arch <> 1 order by id DESC limit " . ($pagination->get_page() - 1) * $records_per_page . ', ' . $records_per_page)) {
$db->Kill('Error1s');
}
$pagination->records($totalrow);
$pagination->records_per_page($records_per_page);
?>
<h1 ><?php
echo lg('GALPHOTOS');
?>
</h1>
<div id="gallery">
<figure>
<article>
<ul class="nospace clear">