Exemplo n.º 1
0
					
<?php 
// get value
$pagename = $_SERVER["PHP_SELF"] . "?choose=category2";
$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), 'order by catid,ordering');
} else {
    // loadPaging(&$start,&$nume,$limit=20,$where='',$order='order by id desc')
    $res = $tbl->loadPaging($start, $nume, $limit, '', 'order by catid,ordering');
}
/*$sql=("select * from category1 where lang = ".$a." ");
		$res=mysql_query($sql);*/
if ($res) {
    while ($row = mysql_fetch_array($res)) {
        $thumb_img = get_thumb('../Images/Category2/', $row['image']);
        ?>
                    
                    <tr>
						<td class="first style1">
                        	<a href="<?php 
        echo loadPage('editCategory2&id=' . $row['id']);
Exemplo n.º 2
0
					
<?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']);
        ?>
Exemplo n.º 3
0
						<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='******'username']);
        ?>
"><?php 
        echo $row['username'];
        ?>