?
Path : /home/admin/public_html/modules/content/ |
Current File : /home/admin/public_html/modules/content/com_edit_category.php |
<? session_start(); require_once('../../../config.php'); require_once('../../../libs/MySql.php'); require_once('function.php'); $db=new MySql; $cat_id=$_GET['group_id']; $parent=$_GET['parent']; if ($_SESSION["la"] == 1){ $data=$db->getDataOneRow('content_cat',$cat_id,'CatID'); }else{ $data=$db->getDataOneRow('content_cat_en',$cat_id,'CatID'); } $cat_name=$data['CatName']; $parent_id=$data['CatParentID']; ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML xmlns="http://www.w3.org/1999/xhtml"> <HEAD> <TITLE><? echo $cfg['site_name'];?></TITLE> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <META content="" name=Keywords> <META content="<?echo $cfg['site_name'];?>" name="Description"> <META content="<?echo $cfg['site_name'];?>" name="Author"> <META content="<?echo $cfg['site_name'];?>" name="Copyright"> <LINK href="../../css/backend_style.css" type="text/css" rel="stylesheet"> <script> function delGroup(){ var obj=document.webForm; obj.action='edit_group_do.php?ac=del&group_id=<?=$cat_id;?>'; window.parent.frames[1].location ='edit_group_do.php?ac=del&group_id=<?=$cat_id;?>'; } </script> <br> <form method="POST" action="edit_group_do.php" name="webForm"> <input type="hidden" name="group_id" value="<?=$cat_id?>"> <input type="hidden" name="WebID" value="<?=$_GET[WebID];?>"> <table width="500" height="300"> <tr> <td width="127" height="24">หมวดหมู่หลัก</td> <td width="266" height="18"><SELECT name="parent"> <OPTION value="">--หมวดหมู่หลัก--</OPTION> <? echo get_sub_cat('',$parent_id,'');?> </SELECT></td> </tr> <tr> <td width="127" height="24">ชื่อหมวดหมู่</td> <td width="266" height="18"><input type="text" name=" CatName" size="55" maxlength="150" class="backend_inputbox" value="<?=$cat_name?>" ></td> </tr> <tr> <td width="127" height="33"> </td> <td width="266" height="33"> <input type="submit" value=" Save " name="submit"><input type="button" value=" Delete Category " onClick="javascript:if(confirm(unescape('ยืนยันลบข้อมูลที่เลือกไว้'))){delGroup();}"></td> </tr> <tr> <td width="127" height="13"></td> <td width="266" height="13"> </td> </tr> </table> </form>