FriendClass.php 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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=../../friend/>好友列表</a>&nbsp;>&nbsp;管理分类";
  10. require(ECMS_PATH.'e/template/incfile/header.php');
  11. ?>
  12. <script>
  13. function DelFriendClass(cid)
  14. {
  15. var ok;
  16. ok=confirm("确认要删除?");
  17. if(ok)
  18. {
  19. self.location.href='../../doaction.php?enews=DelFriendClass&doing=1&cid='+cid;
  20. }
  21. }
  22. </script>
  23. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  24. <tr>
  25. <td width="84%" valign="top"> <div align="center">
  26. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  27. <form name="form1" method="post" action="../../doaction.php">
  28. <tr class="header">
  29. <td height="25">增加好友分类</td>
  30. </tr>
  31. <tr>
  32. <td height="25" bgcolor="#FFFFFF">分类名称:
  33. <input name="cname" type="text" id="cname"> <input type="submit" name="Submit" value="增加">
  34. <input name="enews" type="hidden" id="enews" value="AddFriendClass">
  35. <input name="doing" type="hidden" id="doing" value="1"></td>
  36. </tr>
  37. </form>
  38. </table>
  39. <br>
  40. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  41. <tr class="header">
  42. <td width="10%" height="25"> <div align="center">ID</div></td>
  43. <td width="56%"><div align="center">分类名称</div></td>
  44. <td width="34%"><div align="center">操作</div></td>
  45. </tr>
  46. <?php
  47. while($r=$empire->fetch($sql))
  48. {
  49. ?>
  50. <form name=form method=post action=../../doaction.php>
  51. <tr bgcolor="#FFFFFF">
  52. <td height="25"> <div align="center">
  53. <?=$r[cid]?>
  54. </div></td>
  55. <td><div align="center">
  56. <input name="doing" type="hidden" id="doing" value="1">
  57. <input name="enews" type="hidden" id="enews" value="EditFriendClass">
  58. <input name="cid" type="hidden" value="<?=$r[cid]?>">
  59. <input name="cname" type="text" id="cname" value="<?=stripSlashes($r[cname])?>">
  60. </div></td>
  61. <td><div align="center">
  62. <input type="submit" name="Submit2" value="修改">
  63. &nbsp;
  64. <input type="button" name="Submit3" value="删除" onclick="javascript:DelFriendClass(<?=$r[cid]?>);">
  65. </div></td>
  66. </tr>
  67. </form>
  68. <?php
  69. }
  70. ?>
  71. </table>
  72. </div></td>
  73. </tr>
  74. </table>
  75. <?php
  76. require(ECMS_PATH.'e/template/incfile/footer.php');
  77. ?>