friend.php 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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;好友列表";
  10. require(ECMS_PATH.'e/template/incfile/header.php');
  11. ?>
  12. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  13. <form name="form1" method="post" action="">
  14. <tr>
  15. <td width="50%" height="30" bgcolor="#FFFFFF">选择分类:
  16. <select name="cid" id="select" onchange=window.location='../friend/?cid='+this.options[this.selectedIndex].value>
  17. <option value="0">显示全部</option>
  18. <?=$select?>
  19. </select></td>
  20. <td width="50%" bgcolor="#FFFFFF"><div align="right">[<a href="FriendClass/">管理分类</a>] [<a href="add/?fcid=<?=$cid?>">添加好友</a>]&nbsp;&nbsp;</div></td>
  21. </tr>
  22. </form>
  23. </table>
  24. <br>
  25. <table width="100%" border="0" cellpadding="3" cellspacing="1" class="tableborder">
  26. <form name=favaform method=post action="../doaction.php" onsubmit="return confirm('确认要操作?');">
  27. <input type=hidden value=hy name=enews>
  28. <tr class="header">
  29. <td width="5%" height="25"><div align="center"></div></td>
  30. <td width="30%"><div align="center">用户名</div></td>
  31. <td width="45%"><div align="center">备注</div></td>
  32. <td width="20%"><div align="center">操作</div></td>
  33. </tr>
  34. <?php
  35. while($r=$empire->fetch($sql))
  36. {
  37. ?>
  38. <tr bgcolor="#FFFFFF">
  39. <td height="25"> <div align="center"><img src="../../data/images/man.gif" width="16" height="16" border=0></div></td>
  40. <td> <div align="center"><a href="../ShowInfo/?username=<?=$r[fname]?>" target=_blank>
  41. <?=$r[fname]?>
  42. </a></div></td>
  43. <td> <div align="center">
  44. <input name="fsay[]" type="text" id="fsay[]" value="<?=stripSlashes($r[fsay])?>" size="32">
  45. </div></td>
  46. <td> <div align="center">[<a href="add/?enews=EditFriend&fid=<?=$r[fid]?>&fcid=<?=$cid?>">修改</a>]
  47. [<a href="../doaction.php?enews=DelFriend&fid=<?=$r[fid]?>&fcid=<?=$cid?>" onclick="return confirm('确认要删除?');">删除</a>]</div></td>
  48. </tr>
  49. <?php
  50. }
  51. ?>
  52. <tr bgcolor="#FFFFFF">
  53. <td height="25" colspan="4"> &nbsp;&nbsp;&nbsp;
  54. <?=$returnpage?></td>
  55. </tr>
  56. </form>
  57. </table>
  58. <?php
  59. require(ECMS_PATH.'e/template/incfile/footer.php');
  60. ?>