當前位置: 首頁>>代碼示例>>PHP>>正文


PHP table::loadPaging方法代碼示例

本文整理匯總了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']);
        ?>
開發者ID:aile54,項目名稱:akachan,代碼行數:30,代碼來源:category.php

示例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 
開發者ID:aile54,項目名稱:akachan,代碼行數:31,代碼來源:img.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'];
開發者ID:aile54,項目名稱:akachan,代碼行數:30,代碼來源:chuyenmuc.php

示例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']);
開發者ID:aile54,項目名稱:akachan,代碼行數:31,代碼來源:edit.php

示例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'];
        ?>
開發者ID:aile54,項目名稱:akachan,代碼行數:31,代碼來源:admin.php

示例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 
    }
開發者ID:aile54,項目名稱:akachan,代碼行數:31,代碼來源:ip.php


注:本文中的table::loadPaging方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。