fava.php 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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='../fava/?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="FavaClass/">管理分类</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=DelFava_All name=enews>
  28. <tr class="header">
  29. <td width="4%" height="25"><div align="center"></div></td>
  30. <td width="57%"><div align="center">标题</div></td>
  31. <td width="12%"><div align="center">点击</div></td>
  32. <td width="20%"><div align="center">收藏时间</div></td>
  33. <td width="7%"><div align="center">选择</div></td>
  34. </tr>
  35. <?php
  36. while($fr=$empire->fetch($sql))
  37. {
  38. if(empty($class_r[$fr[classid]][tbname]))
  39. {continue;}
  40. $r=$empire->fetch1("select title,isurl,titleurl,onclick,classid,id from {$dbtbpre}ecms_".$class_r[$fr[classid]][tbname]." where id='$fr[id]' limit 1");
  41. //标题链接
  42. $titlelink=sys_ReturnBqTitleLink($r);
  43. if(!$r['id'])
  44. {
  45. $r['title']="此信息已删除";
  46. $titlelink="#EmpireCMS";
  47. }
  48. ?>
  49. <tr bgcolor="#FFFFFF">
  50. <td height="25"> <div align="center"><img src="../../data/images/dir.gif" border=0></div></td>
  51. <td> <div align="left"><a href="<?=$titlelink?>" target=_blank>
  52. <?=stripSlashes($r[title])?>
  53. </a></div></td>
  54. <td> <div align="center">
  55. <?=$r[onclick]?>
  56. </div></td>
  57. <td> <div align="center">
  58. <?=$fr[favatime]?>
  59. </div></td>
  60. <td> <div align="center">
  61. <input name="favaid[]" type="checkbox" id="favaid[]2" value="<?=$fr[favaid]?>">
  62. </div></td>
  63. </tr>
  64. <?php
  65. }
  66. ?>
  67. <tr bgcolor="#FFFFFF">
  68. <td height="25" colspan="5"> &nbsp;&nbsp;&nbsp;
  69. <?=$returnpage?>
  70. &nbsp;&nbsp; <select name="cid">
  71. <option value="0">请选择要转移的目标分类</option>
  72. <?=$select?>
  73. </select> <input type="submit" name="Submit" value="转移选中" onclick="document.favaform.enews.value='MoveFava_All'">
  74. &nbsp;&nbsp; <input type="submit" name="Submit" value="删除选中" onclick="document.favaform.enews.value='DelFava_All'"></td>
  75. </tr>
  76. </form>
  77. </table>
  78. <?php
  79. require(ECMS_PATH.'e/template/incfile/footer.php');
  80. ?>