<?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']); ?>
</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
<?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'];
</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']);
<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']; ?>
<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 }