FavaClass.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php
  2. if(!defined('InEmpireCMS'))
  3. {
  4. exit();
  5. }
  6. ?>
  7. <?php
  8. $public_diyr['pagetitle']='收藏夹分类';
  9. $url="<a href=../../../../>首页</a>&nbsp;>&nbsp;<a href=../../cp/>会员中心</a>&nbsp;>&nbsp;<a href=../../fava/>收藏夹</a>&nbsp;>&nbsp;管理分类";
  10. require(ECMS_PATH.'e/template/incfile/header.php');
  11. ?>
  12. <script>
  13. function DelFavaClass(cid)
  14. {
  15. var ok;
  16. ok=confirm("确认要删除?");
  17. if(ok)
  18. {
  19. self.location.href='../../doaction.php?enews=DelFavaClass&cid='+cid;
  20. }
  21. }
  22. </script>
  23. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  24. <form name="form1" method="post" action="../../doaction.php">
  25. <tr class="header">
  26. <td height="25">增加收藏夹分类</td>
  27. </tr>
  28. <tr>
  29. <td height="25" bgcolor="#FFFFFF">分类名称:
  30. <input name="cname" type="text" id="cname"> <input type="submit" name="Submit" value="增加">
  31. <input name="enews" type="hidden" id="enews" value="AddFavaClass"></td>
  32. </tr>
  33. </form>
  34. </table>
  35. <br>
  36. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  37. <tr class="header">
  38. <td width="10%" height="25"> <div align="center">ID</div></td>
  39. <td width="56%"><div align="center">分类名称</div></td>
  40. <td width="34%"><div align="center">操作</div></td>
  41. </tr>
  42. <?php
  43. while($r=$empire->fetch($sql))
  44. {
  45. ?>
  46. <form name=form method=post action=../../doaction.php>
  47. <tr bgcolor="#FFFFFF">
  48. <td height="25"> <div align="center">
  49. <?=$r[cid]?>
  50. </div></td>
  51. <td><div align="center">
  52. <input name="enews" type="hidden" id="enews" value="EditFavaClass">
  53. <input name="cid" type="hidden" value="<?=$r[cid]?>">
  54. <input name="cname" type="text" id="cname" value="<?=stripSlashes($r[cname])?>">
  55. </div></td>
  56. <td><div align="center">
  57. <input type="submit" name="Submit2" value="修改">
  58. &nbsp;
  59. <input type="button" name="Submit3" value="删除" onclick="javascript:DelFavaClass(<?=$r[cid]?>);">
  60. </div></td>
  61. </tr>
  62. </form>
  63. <?php
  64. }
  65. ?>
  66. </table>
  67. <?php
  68. require(ECMS_PATH.'e/template/incfile/footer.php');
  69. ?>