?
Path : /home/admin/domains/happytokorea.com/public_html_bk/gall/admin/ |
Current File : /home/admin/domains/happytokorea.com/public_html_bk/gall/admin/article.php |
<? include("header.php");?> <div id="top-panel"> <div id="panel"> <ul> <li><a href="article.php" class="report">Article</a></li> <li><a href="add_ar.php" class="report_seo">Create Article</a></li> </ul> </div> </div> <div id="content"> <div id="box" > <h3>Article</h3> <table width="99%"> <thead> <tr> <th><a href="#">Article</a></th> <th width="60px"><a href="#">Action</a></th> </tr> </thead> <tbody> <? if(isset($_GET[del])){ $db->query("delete from article where ar_id = $_GET[del]"); echo "<script>window.location.href='article.php';</script>"; } ?> <? $sql = "select * from article order by ar_id "; $res = $db->query($sql); while($line = mysql_fetch_array($res)){ ?> <tr> <td> <a href="article_link.php?ar_id=<? echo $line[ar_id];?>"><? echo $line[ar_title];?></a> </td> <td align="center"> <a href="article_link.php?ar_id=<? echo $line[ar_id];?>"><img src="img/icons/page_white_link.png" title="Show profile" width="16" height="16" /></a> <a href="edit_ar.php?ar_id=<? echo $line[ar_id];?>"><img src="img/icons/page_white_edit.png" width="16" height="16" /></a> <a href="?del=<?=$line[ar_id]?>" onclick="if(!confirm('ต้องการลบ ?')){return false;}"><img src="img/icons/page_white_delete.png" width="16" height="16" /></a> </td></tr> <? } ?> </tbody> </table> </div> </div> <? include("footer.php");?>