本文整理汇总了PHP中table::loadPaging方法的典型用法代码示例。如果您正苦于以下问题:PHP table::loadPaging方法的具体用法?PHP table::loadPaging怎么用?PHP table::loadPaging使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类table
的用法示例。
在下文中一共展示了table::loadPaging方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: formatCompare
<?php
// get value
$pagename = $_SERVER["PHP_SELF"] . "?choose=category_adv";
$limit = 20;
if (isset($_GET["start"])) {
$start = $_GET["start"];
}
if (!isset($start)) {
$start = 0;
}
$nume = 0;
if (isset($_POST["search"])) {
// loadPaging(&$start,&$nume,$limit=20,$where='',$order='order by id desc')
// formatCompare($str,$pos=0)
$res = $tbl->loadPaging($start, $nume, $limit, 'where name like ' . formatCompare($_POST["key"], 0));
} else {
// loadPaging(&$start,&$nume,$limit=20,$where='',$order='order by id desc')
$res = $tbl->loadPaging($start, $nume, $limit);
}
/*$sql=("select * from categoryadvertise where lang = ".$a." ");
$res=mysql_query($sql);*/
if ($res) {
while ($row = mysql_fetch_array($res)) {
?>
<tr>
<td class="first style1">
<a href="<?php
echo loadPage('editcategory_adv&id=' . $row['id']);
?>
示例2: while
</tr>
<?php
$pagename = $_SERVER["PHP_SELF"] . "?choose=img";
$limit = 20;
if (isset($_GET["start"])) {
$start = $_GET["start"];
}
if (!isset($start)) {
$start = 0;
}
$nume = 0;
if (isset($_POST["search"])) {
// loadPaging(&$start,&$nume,$limit=20,$where='',$order='order by id desc');
// formatCompare($str,$pos=0);
$res = $tbl->loadPaging($start, $nume, $limit, 'where proid=' . $_POST["key"], 'order by proid desc');
} else {
// loadPaging(&$start,&$nume,$limit=20,$where='',$order='order by id desc');
$res = $tbl->loadPaging($start, $nume, $limit, '', 'order by proid desc');
}
if ($res) {
while ($row = mysql_fetch_array($res)) {
$tbl_pro = new table('products');
$res_pro = $tbl_pro->loadOne('id=' . $row['proid']);
$row_pro = mysql_fetch_array($res_pro);
$thumb_img = get_thumb('../Images/Products/', $row['image']);
?>
<tr>
<td class="first style1">
<a href="<?php
示例3: formatCompare
<?php
// get value
$pagename = $_SERVER["PHP_SELF"] . "?choose=chuyenmuc";
$limit = 30;
if (isset($_GET["start"])) {
$start = $_GET["start"];
}
if (!isset($start)) {
$start = 0;
}
$nume = 0;
if (isset($_POST["search"])) {
// loadPaging(&$start,&$nume,$limit=20,$where='',$order='order by id desc')
// formatCompare($str,$pos=0)
$res = $tbl->loadPaging($start, $nume, $limit, 'where name like ' . formatCompare($_POST["key"], 0), 'order by ordering');
} else {
// loadPaging(&$start,&$nume,$limit=20,$where='',$order='order by id desc')
$res = $tbl->loadPaging($start, $nume, $limit, '', 'order by ordering');
}
if ($res) {
while ($row = mysql_fetch_array($res)) {
$thumb_img = get_thumb('uploads/nsx/', $row['image']);
?>
<tr>
<td class="first style1"><a href="<?php
echo loadPage('editchuyenmuc&id=' . $row['id']);
?>
"><?php
echo $row['name'];
示例4: while
</tr>
<?php
$pagename = $_SERVER["PHP_SELF"] . "?choose=img";
$limit = 20;
if (isset($_GET["start"])) {
$start = $_GET["start"];
}
if (!isset($start)) {
$start = 0;
}
$nume = 0;
if (isset($_POST["search"])) {
// loadPaging(&$start,&$nume,$limit=20,$where='',$order='order by id desc');
// formatCompare($str,$pos=0);
$res = $tbl->loadPaging($start, $nume, $limit, 'where proid=' . $_POST["key"], 'order by proid desc');
} else {
// loadPaging(&$start,&$nume,$limit=20,$where='',$order='order by id desc');
$res = $tbl->loadPaging($start, $nume, $limit, 'where proid=' . $proid . ' and id <>' . $_GET['id'], 'order by proid desc');
}
if ($res) {
while ($row = mysql_fetch_array($res)) {
$tbl_pro = new table('products');
$res_pro = $tbl_pro->loadOne('id=' . $row['proid']);
$row_pro = mysql_fetch_array($res_pro);
$thumb_img = get_thumb('../Images/Products/', $row['image']);
?>
<tr>
<td class="first style1"><a href="<?php
echo loadPage('editimg&id=' . $row['id']);
示例5: formatCompare
<th class="last">Xóa</th>
</tr>
<?php
$pagename = $_SERVER["PHP_SELF"] . "?choose=admin";
$limit = 10;
if (isset($_GET["start"])) {
$start = $_GET["start"];
}
if (!isset($start)) {
$start = 0;
}
$nume = 0;
if (isset($_POST["search"])) {
// loadPaging(&$start,&$nume,$limit=20,$where='',$order='order by id desc')
// formatCompare($str,$pos=0)
$res = $tbl->loadPaging($start, $nume, $limit, 'where username like' . formatCompare($_POST["key"], 0), 'order by per asc');
} else {
// loadPaging(&$start,&$nume,$limit=20,$where='',$order='order by id desc')
$res = $tbl->loadPaging($start, $nume, $limit, 'where username!="" and per <> 0', 'order by per asc');
}
if ($res) {
while ($row = mysql_fetch_array($res)) {
$id = $row['id'];
?>
<tr>
<td class="first style1"><a href="<?php
echo loadPage('editAdmin&username=' . $row['username']);
?>
"><?php
echo $row['username'];
?>
示例6: while
<table class="listing" cellpadding="0" cellspacing="0">
<tr>
<th>IP</th>
<th>Date</th>
</tr>
<?php
$pagename = $_SERVER["PHP_SELF"] . "?choose=ip";
$limit = 20;
$start = $_GET["start"];
if (!isset($start)) {
$start = 0;
}
$nume = 0;
// loadPaging(&$start,&$nume,$limit=20,$where='',$order='order by id desc')
$res = $tbl->loadPaging($start, $nume, $limit);
if ($res) {
while ($row = mysql_fetch_array($res)) {
?>
<tr>
<td><?php
echo $row['ip'];
?>
</td>
<td><?php
echo $row['timelogin'];
?>
</td>
</tr>
<?php
}