<?
include_once("../includes/class_mysql.php");
include_once("../includes/config.php");
$db=new DB();
$db->connectdb(DB_NAME,DB_USER,DB_PASS);
$res=$db->querydb("SELECT * FROM ".TB_CATEGORY." order by seq asc ");
?>
</br>
<H3 class="text-primary"> Edit Drop</H3>
<table class="table table-hover">
<tr>
<th width="59" bgcolor="#f5f5f5"><center><b>ลำดับ</b></center></th>
<th width="300" bgcolor="#f5f5f5"><center><b>ชื่อหัวข้อ</b></center></th>
<th width="85" bgcolor="#f5f5f5"><center><b>เรียงลำดับ</b></center></th>
<th width="62" bgcolor="#f5f5f5"><center><b>Edit</b></center></th>
<th width="64" bgcolor="#f5f5f5"><center><b>Delete</b></center></th>
</tr>
<?
while($arr=$db->fetch($res)){
?>
<tr>
<td><center><?=$arr[id];?></center></td>
<td><center><?=$arr[name];?></center></td>
<td><center><?=$arr[seq];?></center></td>
<td><center><a href="F_Edit.php?id=<?=$arr[id];?>"><img src="../images/b_edit.png" width="16" height="16"></a></center></td>
<td width="64"><center><a href="Delete.php?id=<?=$arr[id];?>" onClick="return confirm('Are you sure you want to delete this item?');"><img src="../images/b_drop.png" width="16" height="16" /></a></center>
</tr>
<?
}
?>
</table>
<a href="../Category"> <code>..Back</code></a>
<?
$db->closedb();
?>
ไม่มีความคิดเห็น:
แสดงความคิดเห็น